Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 0a90919b61859a90da060685ee09fe54 > files > 9

lastfm-player-1.3.2.13-1mdv2008.1.src.rpm

--- a/src/lastfmapplication.cpp
+++ b/src/lastfmapplication.cpp
@@ -164,6 +164,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