aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpaneldirfind.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpaneldirfind.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/linden/indra/newview/llpaneldirfind.cpp b/linden/indra/newview/llpaneldirfind.cpp
index 5d34d47..294c535 100644
--- a/linden/indra/newview/llpaneldirfind.cpp
+++ b/linden/indra/newview/llpaneldirfind.cpp
@@ -297,6 +297,18 @@ std::string LLPanelDirFindAll::getSearchURLSuffix(bool mature_in)
297 substring = "[SESSION]"; 297 substring = "[SESSION]";
298 url.replace(url.find(substring), substring.length(), session_string); 298 url.replace(url.find(substring), substring.length(), session_string);
299 299
300 // set the currently selected lanaguage by asking the pref setting
301 std::string language_string = LLUI::sConfigGroup->getString( "Language" );
302 if ( language_string == "default" )
303 {
304 // if "default system language" setting used, ask again
305 // (we can't do this directly since it can vary if you install
306 // under one language and select a different one using prefs)
307 language_string = gSavedSettings.getString( "SystemLanguage" );
308 }
309 std::string language_tag = "[LANG]";
310 url.replace( url.find( language_tag ), language_tag.length(), language_string );
311
300 return url; 312 return url;
301} 313}
302 314