mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
21 lines
756 B
Diff
21 lines
756 B
Diff
|
--- a/src/libUnicorn/Settings.h
|
||
|
+++ b/src/libUnicorn/Settings.h
|
||
|
@@ -226,6 +226,17 @@
|
||
|
QString langCode = customAppLanguage();
|
||
|
if ( langCode.isEmpty() )
|
||
|
{
|
||
|
+ #ifdef LINUX
|
||
|
+ // Now check the environment including LC_MESSAGES
|
||
|
+ // This fixes Debian bug #432232
|
||
|
+ if ( langCode.isEmpty() )
|
||
|
+ langCode = qgetenv( "LC_ALL" );
|
||
|
+ if ( langCode.isEmpty() )
|
||
|
+ langCode = qgetenv( "LC_MESSAGES" );
|
||
|
+ if ( langCode.isEmpty() )
|
||
|
+ langCode = qgetenv( "LANG" );
|
||
|
+ #endif
|
||
|
+
|
||
|
// If none found, use system locale
|
||
|
#ifdef Q_WS_MAC
|
||
|
QLocale::Language qtLang = UnicornUtils::osxLanguageCode();
|