Commits

Yuya Nishihara committed c1af6d4

i18n: add 'en' to availablelanguages() list, which means null translation

  • Participants
  • Parent commits bf9d3ee
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/util/i18n.py

     basedir = paths.get_locale_path()
     def mopath(lang):
         return os.path.join(basedir, lang, 'LC_MESSAGES', 'tortoisehg.mo')
-    return tuple(sorted(e for e in os.listdir(basedir)
-                        if os.path.exists(mopath(e))))
+    langs = [e for e in os.listdir(basedir) if os.path.exists(mopath(e))]
+    langs.append('en')  # means null translation
+    return sorted(langs)
 
 def _(message):
     return t.gettext(message)