1. jdb
  2. sphinx

Commits

Georg Brandl  committed 7a02c94

#421: fix Unicode errors for translations with non-ASCII characters.

  • Participants
  • Parent commits 15d4cfc
  • Branches default

Comments (0)

Files changed (1)

File sphinx/locale/__init__.py

View file
 translator = None
 
 def _(message):
-    return translator.gettext(message)
+    return translator.ugettext(message)
 
 def init(locale_dirs, language):
     global translator