summaryrefslogtreecommitdiff
path: root/community/lastfm-client/set-locale.diff
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/lastfm-client/set-locale.diff
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/lastfm-client/set-locale.diff')
-rw-r--r--community/lastfm-client/set-locale.diff20
1 files changed, 20 insertions, 0 deletions
diff --git a/community/lastfm-client/set-locale.diff b/community/lastfm-client/set-locale.diff
new file mode 100644
index 000000000..3b81e6cbb
--- /dev/null
+++ b/community/lastfm-client/set-locale.diff
@@ -0,0 +1,20 @@
+--- 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();