Index: LanguageSelector/LocaleInfo.py =================================================================== --- LanguageSelector/LocaleInfo.py (revisiĆ³n: 6185) +++ LanguageSelector/LocaleInfo.py (copia de trabajo) @@ -104,7 +104,7 @@ p = subprocess.Popen(["locale", "-a"], stdout=subprocess.PIPE) for line in string.split(p.communicate()[0], "\n"): tmp = line.strip() - if tmp.startswith("#") or tmp == "" or tmp == "C" or tmp == "POSIX": + if tmp.startswith("#") or tmp == "" or tmp == "C" or tmp == "POSIX" or tmp.endswith("@valencia"): continue # we are only interessted in the locale, not the codec macr = macros.LangpackMacros(self._datadir, tmp) @@ -250,6 +250,10 @@ language = os.environ["LANGUAGE"] else: language = self.makeEnvString(lang) + if "LANGUAGE" in os.environ: + lang=os.environ["LANG"] + language=os.environ["LANGUAGE"] + result.append(lang) result.append(language) return result