From 4bf7dd9d529a4e6a0d2132f9587182f483495e23 Mon Sep 17 00:00:00 2001 From: Vadim Savchuk Date: Mon, 2 Aug 2010 19:04:32 +0300 Subject: EXT-6542 Localized the "none/none" in the About land floater. This is an additional fix to the one made in rev. 6788ff579917. Reviewed by Mike Antipov at https://codereview.productengine.com/secondlife/r/828/ --- indra/newview/llpanellandmedia.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'indra') diff --git a/indra/newview/llpanellandmedia.cpp b/indra/newview/llpanellandmedia.cpp index f0f386c5d1..240139d714 100644 --- a/indra/newview/llpanellandmedia.cpp +++ b/indra/newview/llpanellandmedia.cpp @@ -145,7 +145,7 @@ void LLPanelLandMedia::refresh() mMediaURLEdit->setText(parcel->getMediaURL()); mMediaURLEdit->setEnabled( FALSE ); - getChild("current_url")->setValue(parcel->getMediaCurrentURL()); + childSetText("current_url", parcel->getMediaCurrentURL()); mMediaDescEdit->setText(parcel->getMediaDesc()); mMediaDescEdit->setEnabled( can_change_media ); @@ -157,7 +157,7 @@ void LLPanelLandMedia::refresh() } setMediaType(mime_type); mMediaTypeCombo->setEnabled( can_change_media ); - getChild("mime_type")->setValue(mime_type); + childSetText("mime_type", mime_type); mMediaUrlCheck->set( parcel->getObscureMedia() ); mMediaUrlCheck->setEnabled( can_change_media ); @@ -255,7 +255,7 @@ void LLPanelLandMedia::setMediaType(const std::string& mime_type) // localizable - "none" for example (see EXT-6542) mime_str = LLMIMETypes::getDefaultMimeTypeTranslation(); } - getChild("mime_type")->setValue(mime_str); + childSetText("mime_type", mime_str); } void LLPanelLandMedia::setMediaURL(const std::string& media_url) @@ -269,7 +269,7 @@ void LLPanelLandMedia::setMediaURL(const std::string& media_url) mMediaURLEdit->onCommit(); // LLViewerParcelMedia::sendMediaNavigateMessage(media_url); - getChild("current_url")->setValue(media_url); + childSetText("current_url", media_url); } std::string LLPanelLandMedia::getMediaURL() { @@ -280,11 +280,11 @@ std::string LLPanelLandMedia::getMediaURL() void LLPanelLandMedia::onCommitType(LLUICtrl *ctrl, void *userdata) { LLPanelLandMedia *self = (LLPanelLandMedia *)userdata; - std::string current_type = LLMIMETypes::widgetType(self->getChild("mime_type")->getValue().asString()); + std::string current_type = LLMIMETypes::widgetType(self->childGetText("mime_type")); std::string new_type = self->mMediaTypeCombo->getValue(); if(current_type != new_type) { - self->getChild("mime_type")->setValue(LLMIMETypes::findDefaultMimeType(new_type)); + self->childSetText("mime_type", LLMIMETypes::findDefaultMimeType(new_type)); } onCommitAny(ctrl, userdata); @@ -304,7 +304,7 @@ void LLPanelLandMedia::onCommitAny(LLUICtrl*, void *userdata) // Extract data from UI std::string media_url = self->mMediaURLEdit->getText(); std::string media_desc = self->mMediaDescEdit->getText(); - std::string mime_type = self->getChild("mime_type")->getValue().asString(); + std::string mime_type = self->childGetText("mime_type"); U8 media_auto_scale = self->mMediaAutoScaleCheck->get(); U8 media_loop = self->mMediaLoopCheck->get(); U8 obscure_media = self->mMediaUrlCheck->get(); @@ -313,7 +313,7 @@ void LLPanelLandMedia::onCommitAny(LLUICtrl*, void *userdata) LLUUID media_id = self->mMediaTextureCtrl->getImageAssetID(); - self->getChild("mime_type")->setValue(mime_type); + self->childSetText("mime_type", mime_type); // Remove leading/trailing whitespace (common when copying/pasting) LLStringUtil::trim(media_url); @@ -354,7 +354,7 @@ void LLPanelLandMedia::onResetBtn(void *userdata) LLParcel* parcel = self->mParcel->getParcel(); // LLViewerMedia::navigateHome(); self->refresh(); - self->getChild("current_url")->setValue(parcel->getMediaURL()); + self->childSetText("current_url", parcel->getMediaURL()); // LLViewerParcelMedia::sendMediaNavigateMessage(parcel->getMediaURL()); } -- cgit v1.2.3 From 7e576a6a66ce0eabf5624c8b2d8d1fa9da1657b8 Mon Sep 17 00:00:00 2001 From: Eli Linden Date: Tue, 3 Aug 2010 14:59:14 -0700 Subject: CT-575 WIP DE JA ES translation for set16 for Viewer 2.1.1 --- indra/newview/skins/default/xui/de/floater_preview_gesture.xml | 1 - 1 file changed, 1 deletion(-) (limited to 'indra') diff --git a/indra/newview/skins/default/xui/de/floater_preview_gesture.xml b/indra/newview/skins/default/xui/de/floater_preview_gesture.xml index 6d3635fa8d..c3c017ae97 100644 --- a/indra/newview/skins/default/xui/de/floater_preview_gesture.xml +++ b/indra/newview/skins/default/xui/de/floater_preview_gesture.xml @@ -64,7 +64,6 @@ - Alle Schritte werden gleichzeitig ausgeführt, wenn keine Pausen hinzugefügt wurden. -- cgit v1.2.3 From d3f6135dce4b6c9a2e5fa8561718a2e6cb6cf5b1 Mon Sep 17 00:00:00 2001 From: Xiaohong Bao Date: Tue, 3 Aug 2010 18:26:47 -0600 Subject: fix for EXT-7399: 2.0.2 with http textures loads textures slower than 1.23.5 and EXT-7397: decoding textures get stuck in REQ status --- indra/newview/lltexturefetch.cpp | 46 +++++++++++----------------------------- indra/newview/lltexturefetch.h | 1 - 2 files changed, 12 insertions(+), 35 deletions(-) (limited to 'indra') diff --git a/indra/newview/lltexturefetch.cpp b/indra/newview/lltexturefetch.cpp index 846cba4a3b..63bcdcda2d 100644 --- a/indra/newview/lltexturefetch.cpp +++ b/indra/newview/lltexturefetch.cpp @@ -855,9 +855,9 @@ bool LLTextureFetchWorker::doWork(S32 param) // but probably not for Textures. // Set the throttle to the entire bandwidth, assuming UDP packets will get priority // when they are needed - //F32 max_bandwidth = mFetcher->mMaxBandwidth; - if (mFetcher->isHTTPThrottled(mDesiredSize))// || - //mFetcher->getTextureBandwidth() > max_bandwidth) + F32 max_bandwidth = mFetcher->mMaxBandwidth; + if (mFetcher->isHTTPThrottled(mDesiredSize) || + mFetcher->getTextureBandwidth() > max_bandwidth) { // Make normal priority and return (i.e. wait until there is room in the queue) setPriority(LLWorkerThread::PRIORITY_NORMAL | mWorkPriority); @@ -872,17 +872,10 @@ bool LLTextureFetchWorker::doWork(S32 param) cur_size = mFormattedImage->getDataSize(); // amount of data we already have if (mFormattedImage->getDiscardLevel() == 0) { - if(cur_size > 0) - { - // We already have all the data, just decode it - mLoadedDiscard = mFormattedImage->getDiscardLevel(); - mState = DECODE_IMAGE; - return false; - } - else - { - return true ; //abort. - } + // We already have all the data, just decode it + mLoadedDiscard = mFormattedImage->getDiscardLevel(); + mState = DECODE_IMAGE; + return false; } } mRequestedSize = mDesiredSize; @@ -899,7 +892,7 @@ bool LLTextureFetchWorker::doWork(S32 param) mGetReason.clear(); LL_DEBUGS("Texture") << "HTTP GET: " << mID << " Offset: " << offset << " Bytes: " << mRequestedSize - << " Bandwidth(kbps): " << mFetcher->getTextureBandwidth() << "/" << mFetcher->mMaxBandwidth + << " Bandwidth(kbps): " << mFetcher->getTextureBandwidth() << "/" << max_bandwidth << LL_ENDL; setPriority(LLWorkerThread::PRIORITY_LOW | mWorkPriority); mState = WAIT_HTTP_REQ; @@ -989,17 +982,6 @@ bool LLTextureFetchWorker::doWork(S32 param) } } - llassert_always(mBufferSize == cur_size + mRequestedSize); - if(!mBufferSize)//no data received. - { - delete[] mBuffer; - mBuffer = NULL; - - //abort. - mState = DONE; - return true; - } - if (mFormattedImage.isNull()) { // For now, create formatted image based on extension @@ -1010,7 +992,8 @@ bool LLTextureFetchWorker::doWork(S32 param) mFormattedImage = new LLImageJ2C; // default } } - + + llassert_always(mBufferSize == cur_size + mRequestedSize); if (mHaveAllData && mRequestedDiscard == 0) //the image file is fully loaded. { mFileSize = mBufferSize; @@ -1069,12 +1052,7 @@ bool LLTextureFetchWorker::doWork(S32 param) if (mFormattedImage->getDataSize() <= 0) { - //llerrs << "Decode entered with invalid mFormattedImage. ID = " << mID << llendl; - - //abort, don't decode - mState = DONE; - setPriority(LLWorkerThread::PRIORITY_LOW | mWorkPriority); - return true; + llerrs << "Decode entered with invalid mFormattedImage. ID = " << mID << llendl; } if (mLoadedDiscard < 0) { @@ -1729,7 +1707,7 @@ bool LLTextureFetch::isHTTPThrottled(S32 requested_size) if(mHTTPTextureQueue.size() >= MAX_HTTP_QUEUE_SIZE)//if the http queue is full. { - if(!mHTTPThrottleFlag[type + 1]) + if(!mHTTPThrottleFlag[TOTAL_TEXTURE_TYPES - 1]) { for(S32 i = type + 1 ; i < TOTAL_TEXTURE_TYPES; i++) //block all requests with fetching size larger than this request. { diff --git a/indra/newview/lltexturefetch.h b/indra/newview/lltexturefetch.h index c31c38b04a..bae2ceff72 100644 --- a/indra/newview/lltexturefetch.h +++ b/indra/newview/lltexturefetch.h @@ -141,7 +141,6 @@ private: SMALL_TEXTURE = 0 , //size <= 64 * 64 MEDIUM_TEXTURE, //size <= 256 * 256 LARGE_TEXTURE, //size > 256 * 256 - DUMMY, TOTAL_TEXTURE_TYPES }; BOOL mHTTPThrottleFlag[TOTAL_TEXTURE_TYPES]; -- cgit v1.2.3 From a97af8da85c0996911b935c36594db14ffba0d71 Mon Sep 17 00:00:00 2001 From: Eli Linden Date: Wed, 4 Aug 2010 12:51:12 -0700 Subject: CT-575 WIP PT translation for set16 for Viewer 2.1.1 --- indra/newview/skins/default/xui/fr/strings.xml | 98 +++----------------------- 1 file changed, 8 insertions(+), 90 deletions(-) (limited to 'indra') diff --git a/indra/newview/skins/default/xui/fr/strings.xml b/indra/newview/skins/default/xui/fr/strings.xml index 1204d3325a..c2a0e173ed 100644 --- a/indra/newview/skins/default/xui/fr/strings.xml +++ b/indra/newview/skins/default/xui/fr/strings.xml @@ -415,7 +415,7 @@ image targa - Corbeille + Poubelle image jpeg @@ -663,9 +663,6 @@ Hors ligne - - [AREA] m² [PRICE] L$ - Aucun résultat. @@ -1064,7 +1061,6 @@ - @@ -1127,7 +1123,7 @@ Parties du corps - Corbeille + Poubelle Albums photo @@ -1147,12 +1143,12 @@ Favoris + + Favoris + Tenue actuelle - - Tenues initiales - Mes tenues @@ -1472,7 +1468,6 @@ - Solde @@ -1692,12 +1687,6 @@ Le résident auquel vous avez envoyé un message est en mode Occupé, ce qui signifie qu'il a demandé à ne pas être dérangé. Votre message restera affiché dans son panneau IM afin qu'il puisse le lire ultérieurement. - - Aucune tenue n'est actuellement en votre possession. Essayez [secondlife:///app/search/all Rechercher]. - - - Vous n'avez pas trouvé ce que vous cherchiez ? Essayez [secondlife:///app/search/all/Rechercher [SEARCH_TERM]]. - (par nom) @@ -3687,9 +3676,6 @@ Si ce message persiste, veuillez aller sur la page [SUPPORT_SITE]. Propriétaires - - En ligne - Chargement en cours... @@ -3743,15 +3729,9 @@ de l'infraction signalée Objet à porter non valide - - Nouveau geste - Nouveau script - - Nouvelle note - Nouveau dossier @@ -3780,7 +3760,7 @@ de l'infraction signalée Homme - Demander pardon - Homme - Get lost + Homme - Dire d'aller au diable Homme - Envoyer un baiser @@ -3809,20 +3789,11 @@ de l'infraction signalée Homme - Ouah ! - - Femme - Glousser - - - Femme - Pleurer - - - Femme - Gêne - Femme - Demander pardon - Femme - Get lost + Femme - Dire d'aller au diable Femme - Envoyer un baiser @@ -3836,21 +3807,9 @@ de l'infraction signalée Femme - Hé ! - - Femme - Hey baby - Femme - Rire - - Femme - Looking good - - - Femme - Over here - - - Femme - Please - Femme - Dégoût @@ -3900,46 +3859,5 @@ de l'infraction signalée PM - - [AMOUNT] US$ - - - Inscription - - - Rôles - - - Identité du groupe - - - Gestion des parcelles - - - Identité des parcelles - - - Paramètres des parcelles - - - Pouvoirs sur les parcelles - - - Accès aux parcelles - - - Contenu des parcelles - - - Gestion des objets - - - Comptabilité - - - Notices - - - Chat - + [AMOUNT] US$ -- cgit v1.2.3 From 96ae6ecc0a374b90e61dd4101655c900cb83d773 Mon Sep 17 00:00:00 2001 From: Eli Linden Date: Wed, 4 Aug 2010 15:35:13 -0700 Subject: CT-575 WIP FR translation for set16 for Viewer 2.1.1 --- .../default/xui/fr/floater_preview_gesture.xml | 4 +- .../newview/skins/default/xui/fr/notifications.xml | 2 +- .../skins/default/xui/fr/panel_group_notices.xml | 2 +- .../skins/default/xui/fr/panel_nearby_media.xml | 2 +- indra/newview/skins/default/xui/fr/strings.xml | 90 +++++++++++++++++++++- 5 files changed, 91 insertions(+), 9 deletions(-) (limited to 'indra') diff --git a/indra/newview/skins/default/xui/fr/floater_preview_gesture.xml b/indra/newview/skins/default/xui/fr/floater_preview_gesture.xml index 82f5bac047..e7c7385fc8 100644 --- a/indra/newview/skins/default/xui/fr/floater_preview_gesture.xml +++ b/indra/newview/skins/default/xui/fr/floater_preview_gesture.xml @@ -13,13 +13,13 @@ Attendre : - Arrêter + Stop Prévisualiser - - Aucun choix - + -- Aucune -- Geste : [NAME] diff --git a/indra/newview/skins/default/xui/fr/notifications.xml b/indra/newview/skins/default/xui/fr/notifications.xml index c1321b71ea..6cfc2b5c66 100644 --- a/indra/newview/skins/default/xui/fr/notifications.xml +++ b/indra/newview/skins/default/xui/fr/notifications.xml @@ -1683,7 +1683,7 @@ Publier cette petite annonce maintenant pour [AMOUNT] L$ ? - Saisissez un message qui sera envoyé à tous les résidents présents dans cette région. + Saisissez une message qui sera envoyé à tous les résidents présents dans cette région.