Comment 4 for bug 444316

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks, the below patch should fix it:

=== modified file 'softwarecenter/db/update.py'
--- softwarecenter/db/update.py 2009-09-30 13:32:12 +0000
+++ softwarecenter/db/update.py 2009-10-06 11:18:41 +0000
@@ -57,7 +57,7 @@
                     return translated_value
         # then try the i18n version of the key (in [de_DE] or
         # [de]
- locale = getdefaultlocale()[0]
+ locale = getdefaultlocale(('LANGUAGE','LANG','LC_CTYPE','LC_ALL'))[0]
         if locale:
             if self.has_option_desktop("%s[%s]" % (key, locale)):
                 return self.get(self.DE, "%s[%s]" % (key, locale))

I commtied it to bzr and it will be part of the next upload.