Commits

Wagner Bruna  committed d89c534

i18n: avoid marking context separator for translation

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

  • Participants
  • Parent commits b20aced
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/util/i18n.py

 
 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)