New loplugin:conststringvar: i18nlangtag
Change-Id: I261755055109430e6e8974efc57cc82fce8fd28a
This commit is contained in:
@@ -42,7 +42,7 @@ static LanguageType nImplSystemUILanguage = LANGUAGE_DONTKNOW;
|
|||||||
// Get locale of category LC_CTYPE of environment variables
|
// Get locale of category LC_CTYPE of environment variables
|
||||||
static const sal_Char* getLangFromEnvironment()
|
static const sal_Char* getLangFromEnvironment()
|
||||||
{
|
{
|
||||||
static const sal_Char* pFallback = "C";
|
static const sal_Char* const pFallback = "C";
|
||||||
const sal_Char *pLang = nullptr;
|
const sal_Char *pLang = nullptr;
|
||||||
|
|
||||||
pLang = getenv ( "LC_ALL" );
|
pLang = getenv ( "LC_ALL" );
|
||||||
@@ -60,7 +60,7 @@ static const sal_Char* getLangFromEnvironment()
|
|||||||
// Get locale of category LC_MESSAGES of environment variables
|
// Get locale of category LC_MESSAGES of environment variables
|
||||||
static const sal_Char* getUILangFromEnvironment()
|
static const sal_Char* getUILangFromEnvironment()
|
||||||
{
|
{
|
||||||
static const sal_Char* pFallback = "C";
|
static const sal_Char* const pFallback = "C";
|
||||||
const sal_Char *pLang = nullptr;
|
const sal_Char *pLang = nullptr;
|
||||||
|
|
||||||
pLang = getenv ( "LANGUAGE" ); // respect the GNU extension
|
pLang = getenv ( "LANGUAGE" ); // respect the GNU extension
|
||||||
|
Reference in New Issue
Block a user