Home
last modified time | relevance | path

Searched refs:ngettext (Results 1 – 25 of 35) sorted by relevance

12

/external/libchrome/third_party/jinja2/
Dext.py149 def ngettext(__context, __singular, __plural, __num, **variables): function
155 return ngettext
185 ngettext = getattr(translations, 'ungettext', None)
186 if ngettext is None:
187 ngettext = translations.ngettext
188 self._install_callables(gettext, ngettext, newstyle)
197 def _install_callables(self, gettext, ngettext, newstyle=None): argument
202 ngettext = _make_new_ngettext(ngettext)
205 ngettext=ngettext
375 ngettext = nodes.Name('ngettext', 'load')
[all …]
/external/python/jinja/src/jinja2/
Dext.py157 def ngettext(__context, __singular, __plural, __num, **variables): function
165 return ngettext
198 ngettext = getattr(translations, "ungettext", None)
199 if ngettext is None:
200 ngettext = translations.ngettext
201 self._install_callables(gettext, ngettext, newstyle)
208 def _install_callables(self, gettext, ngettext, newstyle=None): argument
213 ngettext = _make_new_ngettext(ngettext)
214 self.environment.globals.update(gettext=gettext, ngettext=ngettext)
395 ngettext = nodes.Name("ngettext", "load")
[all …]
/external/e2fsprogs/intl/
Dintl-compat.c41 #undef ngettext
85 ngettext (const char *msgid1, const char *msgid2, unsigned long int n) in ngettext() function
Dngettext.c64 weak_alias (__ngettext, ngettext);
Dlibgnuintl.h.in163 static inline char *ngettext (const char *__msgid1, const char *__msgid2, function
170 # define ngettext libintl_ngettext macro
172 extern char *ngettext (const char *__msgid1, const char *__msgid2,
/external/python/cpython2/Lib/
Dgettext.py276 def ngettext(self, msgid1, msgid2, n): member in NullTranslations
278 return self._fallback.ngettext(msgid1, msgid2, n)
325 or self.ngettext)
444 def ngettext(self, msgid1, msgid2, n): member in GNUTranslations
454 return self._fallback.ngettext(msgid1, msgid2, n)
628 return t.ngettext(msgid1, msgid2, n)
647 def ngettext(msgid1, msgid2, n): function
/external/python/cpython3/Lib/test/
Dtest_gettext.py320 x = gettext.ngettext('There is %s file', 'There are %s files', 1)
322 x = gettext.ngettext('There is %s file', 'There are %s files', 2)
338 x = t.ngettext('There is %s file', 'There are %s files', 1)
340 x = t.ngettext('There is %s file', 'There are %s files', 2)
725 self.ngettext = self.t.ngettext
730 unless(isinstance(self.ngettext('', '', 1), str))
731 unless(isinstance(self.ngettext('', '', 2), str))
741 t = self.ngettext("There is %s file", "There are %s files", 1)
745 t = self.ngettext("There is %s file", "There are %s files", 5)
/external/python/jinja/docs/
Dextensions.rst35 ``ngettext`` functions, either globally or when rendering. A ``_()``
47 ``translations`` object must implement ``gettext`` and ``ngettext``.
61 .. method:: jinja2.Environment.install_gettext_callables(gettext, ngettext, newstyle=False)
63 Install the given ``gettext`` and ``ngettext`` callables into the
65 :func:`gettext.gettext` and :func:`gettext.ngettext`.
145 ``ngettext`` calls.
151 {{ ngettext(
162 {{ ngettext("%(num)d apple", "%(num)d apples", apples|count) }}
Dtemplates.rst1661 - ``ngettext``: translate a pluralizable string
1687 {{ ngettext('%(num)d apple', '%(num)d apples', apples|count) }}
1689 The ``ngettext`` function's format string automatically receives the
/external/libexif/auto-m4/
Dgettext.m434 dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
35 dnl implementations (in libc or libintl) without the ngettext() function
65 ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
125 …[gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1)))
141 return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl…
177 return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl…
198 return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl…
/external/python/cpython3/Lib/
Dgettext.py291 def ngettext(self, msgid1, msgid2, n): member in NullTranslations
293 return self._fallback.ngettext(msgid1, msgid2, n)
505 def ngettext(self, msgid1, msgid2, n): member in GNUTranslations
510 return self._fallback.ngettext(msgid1, msgid2, n)
697 return t.ngettext(msgid1, msgid2, n)
753 def ngettext(msgid1, msgid2, n): function
Doptparse.py90 from gettext import gettext, ngettext
95 def ngettext(singular, plural, n): function
1485 self.error(ngettext(
1523 self.error(ngettext(
Dargparse.py92 from gettext import gettext as _, ngettext
1588 message = ngettext('conflicting option string: %s',
2152 msg = ngettext('expected %s argument',
/external/e2fsprogs/lib/support/
Dnls-enable.h10 #define P_(singular, plural, n) (ngettext (singular, plural, n))
/external/python/jinja/tests/
Dtest_ext.py73 def ngettext(context, s, p, n): function
83 i18n_env.globals.update({"_": gettext, "gettext": gettext, "ngettext": ngettext})
87 {"_": gettext, "gettext": gettext, "ngettext": ngettext}
93 newstyle_i18n_env.install_gettext_callables(gettext, ngettext, newstyle=True)
/external/libexif/libexif/
Di18n.h38 # define ngettext(String1,String2,Count) (Count==1?String1:String2) macro
/external/python/cpython2/Lib/test/
Dtest_gettext.py226 x = gettext.ngettext('There is %s file', 'There are %s files', 1)
228 x = gettext.ngettext('There is %s file', 'There are %s files', 2)
235 x = t.ngettext('There is %s file', 'There are %s files', 1)
237 x = t.ngettext('There is %s file', 'There are %s files', 2)
/external/python/cpython3/Doc/library/
Dgettext.rst79 .. function:: ngettext(singular, plural, n)
96 Like :func:`ngettext`, but look the message up in the specified *domain*.
105 is, :func:`gettext`, :func:`dgettext`, :func:`ngettext`, :func:`dngettext`),
117 (:func:`.gettext`, :func:`dgettext`, :func:`ngettext` and :func:`dngettext`),
274 .. method:: ngettext(singular, plural, n)
276 If a fallback has been set, forward :meth:`!ngettext` to the fallback.
300 Equivalent to :meth:`.gettext` and :meth:`.ngettext`, but the translation
346 addition to :func:`_`. Supported names are ``'gettext'``, ``'ngettext'``,
407 .. method:: ngettext(singular, plural, n)
414 the request is forwarded to the fallback's :meth:`~NullTranslations.ngettext`
[all …]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/bench/
DDateTimeShortcuts.js109 message = ngettext(
117 message = ngettext(
/external/python/cpython2/Doc/library/
Dgettext.rst94 .. function:: ngettext(singular, plural, n)
112 Equivalent to :func:`ngettext`, but the translation is returned in the preferred
121 Like :func:`ngettext`, but look the message up in the specified *domain*.
292 .. method:: ngettext(singular, plural, n)
294 If a fallback has been set, forward :meth:`!ngettext` to the
355 flag), ``'ngettext'`` (bound to :meth:`self.ngettext` or
436 .. method:: GNUTranslations.ngettext(singular, plural, n)
444 request is forwarded to the fallback's :meth:`ngettext` method. Otherwise, when
/external/python/httplib2/doc/html/_static/
Ddoctools.js118 ngettext : function(singular, plural, n) { method
/external/e2fsprogs/doc/RelNotes/
Dv1.34.txt68 - Used ngettext() (abbreviated with the macro P_(str1, str2, n)) to
/external/elfutils/src/
Dreadelf.c1610 ? ngettext ("\ in handle_scngrp()
1615 : ngettext ("\ in handle_scngrp()
1812 printf (ngettext ("\ in handle_dynamic()
2012 printf (ngettext ("\ in handle_relocs_rel()
2027 printf (ngettext ("\ in handle_relocs_rel()
2202 printf (ngettext ("\ in handle_relocs_rela()
2217 printf (ngettext ("\ in handle_relocs_rela()
2467 printf (ngettext ("\nSymbol table [%2u] '%s' contains %u entry:\n", in handle_symtab()
2472 printf (ngettext (" %lu local symbol String table: [%2u] '%s'\n", in handle_symtab()
2720 printf (ngettext ("\ in handle_verneed()
[all …]
/external/e2fsprogs/e2fsck/
De2fsck.h51 #define P_(singular, plural, n) (ngettext (singular, plural, n))
/external/e2fsprogs/
Daclocal.m4276 dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
277 dnl implementations (in libc or libintl) without the ngettext() function
309 ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
361 *" need-ngettext "*) gt_api_version=2 ;;
398 gt_expression_test_code=' + * ngettext ("", "", 0)'

12