diff --git a/indra/llui/llui.cpp b/indra/llui/llui.cpp
index b2c9a22123..b749b65c83 100755
--- a/indra/llui/llui.cpp
+++ b/indra/llui/llui.cpp
@@ -293,7 +293,10 @@ void LLUI::getMousePositionLocal(const LLView* viewp, S32 *x, S32 *y)
// language follows the OS language. In all cases the user can override
// the language manually in preferences. JC
// static
-std::string LLUI::getLanguage()
+// FIRE-16709: Bypass FSEnabledLanguages for llGetAgentLanguage
+//std::string LLUI::getLanguage()
+std::string LLUI::getLanguage(bool ignore_enabled_languages /*= false*/)
+//
{
std::string language = "en";
if (sSettingGroups["config"])
@@ -313,6 +316,11 @@ std::string LLUI::getLanguage()
}
// Limit available languages
+ if (ignore_enabled_languages)
+ {
+ return language;
+ }
+
bool language_enabled = false;
LLSD enabled_languages = sSettingGroups["config"]->getLLSD("FSEnabledLanguages");
for (LLSD::array_const_iterator it = enabled_languages.beginArray(); it != enabled_languages.endArray(); ++it)
diff --git a/indra/llui/llui.h b/indra/llui/llui.h
index 1493fc582a..096e805e6a 100755
--- a/indra/llui/llui.h
+++ b/indra/llui/llui.h
@@ -262,7 +262,10 @@ public:
// Return the ISO639 language name ("en", "ko", etc.) for the viewer UI.
// http://www.loc.gov/standards/iso639-2/php/code_list.php
- static std::string getLanguage();
+ // FIRE-16709: Bypass FSEnabledLanguages for llGetAgentLanguage
+ //static std::string getLanguage();
+ static std::string getLanguage(bool ignore_enabled_languages = false);
+ //
//helper functions (should probably move free standing rendering helper functions here)
static LLView* getRootView() { return sRootView; }
diff --git a/indra/newview/llagentlanguage.cpp b/indra/newview/llagentlanguage.cpp
index d96e63e559..cf87eaecc6 100755
--- a/indra/newview/llagentlanguage.cpp
+++ b/indra/newview/llagentlanguage.cpp
@@ -66,7 +66,10 @@ bool LLAgentLanguage::update()
if (!url.empty())
{
- std::string language = LLUI::getLanguage();
+ // FIRE-16709: Bypass FSEnabledLanguages for llGetAgentLanguage
+ //std::string language = LLUI::getLanguage();
+ std::string language = LLUI::getLanguage(true);
+ //
body["language"] = language;
body["language_is_public"] = gSavedSettings.getBOOL("LanguageIsPublic");