Lines Matching refs:pLang
53 const sal_Char *pLang = NULL; in getLangFromEnvironment() local
55 pLang = getenv ( "LC_ALL" ); in getLangFromEnvironment()
56 if (! pLang || pLang[0] == 0) in getLangFromEnvironment()
57 pLang = getenv ( "LC_CTYPE" ); in getLangFromEnvironment()
58 if (! pLang || pLang[0] == 0) in getLangFromEnvironment()
59 pLang = getenv( "LANG" ); in getLangFromEnvironment()
60 if (! pLang || pLang[0] == 0) in getLangFromEnvironment()
61 pLang = pFallback; in getLangFromEnvironment()
63 return pLang; in getLangFromEnvironment()
72 const sal_Char *pLang = NULL; in getUILangFromEnvironment() local
74 pLang = getenv ( "LANGUAGE" ); // respect the GNU extension in getUILangFromEnvironment()
75 if (! pLang || pLang[0] == 0) in getUILangFromEnvironment()
76 pLang = getenv ( "LC_ALL" ); in getUILangFromEnvironment()
77 if (! pLang || pLang[0] == 0) in getUILangFromEnvironment()
78 pLang = getenv ( "LC_MESSAGES" ); in getUILangFromEnvironment()
79 if (! pLang || pLang[0] == 0) in getUILangFromEnvironment()
80 pLang = getenv( "LANG" ); in getUILangFromEnvironment()
81 if (! pLang || pLang[0] == 0) in getUILangFromEnvironment()
82 pLang = pFallback; in getUILangFromEnvironment()
84 return pLang; in getUILangFromEnvironment()