diff options
| -rw-r--r-- | indra/llcommon/llstring.cpp | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llcommon/llstring.cpp b/indra/llcommon/llstring.cpp index 505789f9ea..2c40ff3efd 100644 --- a/indra/llcommon/llstring.cpp +++ b/indra/llcommon/llstring.cpp @@ -1410,6 +1410,14 @@ bool LLStringUtil::simpleReplacement(std::string &replacement, std::string token  template<>  void LLStringUtil::setLocale(std::string inLocale)  { +    if(startsWith(inLocale, "MissingString")) +    { +        // it seems this hasn't been working for some time, and I'm not sure how it is intentded to +        // properly discover the correct locale.  early out now to avoid failures later in +        // formatNumber() +        LL_WARNS() << "Failed attempting to set invalid locale: " << inLocale << LL_ENDL; +        return; +    }      sLocale = inLocale;  };  | 
