Lines Matching refs:gettext
4 support for your Python programs by providing an interface to the GNU gettext
18 # gettext.py implementation.
24 # James Henstridge, who also wrote a gettext.py module, which has some
43 # you'll need to study the GNU gettext code to do this.
56 'textdomain', 'dgettext', 'dngettext', 'gettext',
65 # The gettext library supports a small subset of C syntax. The only
69 # https://www.gnu.org/software/gettext/manual/gettext.html#Plural-forms
70 # http://git.savannah.gnu.org/cgit/gettext.git/tree/gettext-runtime/intl/plural.y
275 def gettext(self, message):
277 return self._fallback.gettext(message)
309 builtins.__dict__['_'] = self.gettext
311 allowed = {'gettext', 'ngettext', 'npgettext', 'pgettext'}
322 # msgctxt + "\x04" + msgid (gettext version >= 0.15)
334 # Delay struct import for speeding up gettext import when .mo files
400 # parameter of the Content-Type header. The gettext documentation
403 # traditional gettext applications, the msgid conversion will
421 def gettext(self, message):
426 return self._fallback.gettext(message)
466 # Locate a .mo file using the gettext strategy
530 # Delay copy import for speeding up gettext import when .mo files
548 # current global domain, `messages' used for compatibility w/ GNU gettext
571 return t.gettext(message)
604 def gettext(message):
622 # James Henstridge's Catalog constructor from GNOME gettext. Documented usage
625 # import gettext
626 # cat = gettext.Catalog(PACKAGE, localedir=LOCALEDIR)
627 # _ = cat.gettext
632 # gettext.