1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Wagner Bruna  committed f69b81c

i18n: avoid marking context separator for translation

xgettext was picking up the string constant inside the
gettext() call.

  • Participants
  • Parent commits 09e1835
  • Branches hgtk

Comments (0)

Files changed (1)

File tortoisehg/util/i18n.py

View file
  • Ignore whitespace
 
 def _(message, context=''):
     if context:
-        tmsg = t.gettext(context + '\004' + message)
-        if '\004' not in tmsg:
+        sep = '\004'
+        tmsg = t.gettext(context + sep + message)
+        if sep not in tmsg:
             return tmsg
     return t.gettext(message)