Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

i18n: use 'fromutf' instead of it own way

Changeset 113fceb58553

Parent 216178a6388c

by Yuki KODAMA

Changes to one file · Browse files at 113fceb58553 Showing diff from parent 216178a6388c Diff from another changeset...

Change 1 of 2 Show Entire File thgutil/​i18n.py Stacked
 
8
9
10
11
 
12
13
14
 
22
23
24
25
 
26
27
28
 
8
9
10
 
11
12
13
14
 
22
23
24
 
25
26
27
28
@@ -8,7 +8,7 @@
   import gettext, sys  from gettext import gettext as _ -import paths +import paths, hglib    gettext.bindtextdomain("tortoisehg", paths.get_locale_path())  gettext.textdomain("tortoisehg") @@ -22,7 +22,7 @@
  """   try:   u = _(message) - return u.encode(sys.stdout.encoding, "replace") + return hglib.fromutf(u)   except LookupError:   return message