Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 749d95b410bf3bb4e88011a8139ff957 > files > 9

lastfm-player-1.3.1.0-3mdv2008.0.src.rpm

--- last.fm-1.3.0.62.orig/src/lastfmapplication.cpp
+++ last.fm-1.3.0.62/src/lastfmapplication.cpp
@@ -158,6 +158,17 @@
         // First check settings
         langCode = The::settings().appLanguage();
 
+      #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 ( langCode.isEmpty() )
         {
             // If none found, use system locale