Comment 2 for bug 455370

Revision history for this message
Markus Korn (thekorn) wrote :

Fixing this bug is very easy:

 === modified file 'LanguageSelector/LanguageSelector.py'
--- LanguageSelector/LanguageSelector.py 2009-09-17 22:41:58 +0000
+++ LanguageSelector/LanguageSelector.py 2009-10-19 11:20:42 +0000
@@ -96,7 +96,7 @@
             if pkgcode in self._cache.pkg_translations:
                 for (pkg, translation) in self._cache.pkg_translations[pkgcode]:
                     if (self._cache[pkg].isInstalled and not self._cache[translation].isInstalled):
- missing += translation
+ missing.append(translation)
         support_packages = LanguageSelectorPkgCache._getPkgList(self._cache, pkgcode)
         for support_package in support_packages:
             if (support_package in self._cache and

'translation' is always a string, this is why 'missing += translation' does not work as intended (it adds each character to the 'missing' list)