DEV-41358: pass localization information to the Search web pages via a

new ?lang=<LANG> query parameter.
meow-7.2.2
Lynx Linden 2009-12-01 13:07:41 +00:00
parent bd4c1fa8d8
commit 3a2fcad0cb
1 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,7 @@
#include "lllogininstance.h"
#include "lluri.h"
#include "llagent.h"
#include "llui.h"
LLFloaterSearch::LLFloaterSearch(const LLSD& key) :
LLFloater(key),
@ -139,6 +140,9 @@ void LLFloaterSearch::search(const LLSD &key)
}
url += "&r=" + maturity;
// add the current localization information
url += "&lang=" + LLUI::getLanguage();
// and load the URL in the web view
mBrowser->navigateTo(url);
}