Lines Matching full: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.
57 'dgettext', 'dngettext', 'gettext', 'lgettext', 'ldgettext',
66 # The gettext library supports a small subset of C syntax. The only
70 # https://www.gnu.org/software/gettext/manual/gettext.html#Plural-forms
71 # http://git.savannah.gnu.org/cgit/gettext.git/tree/gettext-runtime/intl/plural.y
272 def gettext(self, message): member in NullTranslations
274 return self._fallback.gettext(message)
279 warnings.warn('lgettext() is deprecated, use gettext() instead',
350 builtins.__dict__['_'] = self.gettext
352 allowed = {'gettext', 'lgettext', 'lngettext',
364 # msgctxt + "\x04" + msgid (gettext version >= 0.15)
376 # Delay struct import for speeding up gettext import when .mo files
442 # parameter of the Content-Type header. The gettext documentation
445 # traditional gettext applications, the msgid conversion will
465 warnings.warn('lgettext() is deprecated, use gettext() instead',
496 def gettext(self, message): member in GNUTranslations
501 return self._fallback.gettext(message)
541 # Locate a .mo file using the gettext strategy
606 # Delay copy import for speeding up gettext import when .mo files
636 # current global domain, `messages' used for compatibility w/ GNU gettext
669 return t.gettext(message)
741 def gettext(message): function
746 warnings.warn('lgettext() is deprecated, use gettext() instead',
776 # James Henstridge's Catalog constructor from GNOME gettext. Documented usage
779 # import gettext
780 # cat = gettext.Catalog(PACKAGE, localedir=LOCALEDIR)
781 # _ = cat.gettext
786 # gettext.