Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.4, 2.0.5, and 2.1

stable i18n: provide language variable for toolkit-specific translations

Changeset b74988b243b0

Parent 6a8e61bdbcdf

by Yuya Nishihara

Changes to one file · Browse files at b74988b243b0 Showing diff from parent 6a8e61bdbcdf Diff from another changeset...

 
30
31
32
33
 
34
35
36
 
38
39
40
 
41
42
43
 
30
31
32
 
33
34
35
36
 
38
39
40
41
42
43
44
@@ -30,7 +30,7 @@
   def setlanguage(lang=None):   """Change translation catalog to the specified language""" - global t + global t, language   if not lang:   lang = _defaultlanguage()   opts = {} @@ -38,6 +38,7 @@
  opts['languages'] = (lang,)   t = gettext.translation('tortoisehg', paths.get_locale_path(),   fallback=True, **opts) + language = lang or locale.getdefaultlocale(_localeenvs)[0]  setlanguage()    def availablelanguages():