/external/libchrome/third_party/jinja2/ |
D | ext.py | 149 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/ |
D | ext.py | 157 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/ |
D | intl-compat.c | 41 #undef ngettext 85 ngettext (const char *msgid1, const char *msgid2, unsigned long int n) in ngettext() function
|
D | ngettext.c | 64 weak_alias (__ngettext, ngettext);
|
D | libgnuintl.h.in | 163 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/ |
D | gettext.py | 276 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/ |
D | test_gettext.py | 320 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/ |
D | extensions.rst | 35 ``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) }}
|
D | templates.rst | 1661 - ``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/ |
D | gettext.m4 | 34 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/ |
D | gettext.py | 291 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
|
D | optparse.py | 90 from gettext import gettext, ngettext 95 def ngettext(singular, plural, n): function 1485 self.error(ngettext( 1523 self.error(ngettext(
|
D | argparse.py | 92 from gettext import gettext as _, ngettext 1588 message = ngettext('conflicting option string: %s', 2152 msg = ngettext('expected %s argument',
|
/external/e2fsprogs/lib/support/ |
D | nls-enable.h | 10 #define P_(singular, plural, n) (ngettext (singular, plural, n))
|
/external/python/jinja/tests/ |
D | test_ext.py | 73 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/ |
D | i18n.h | 38 # define ngettext(String1,String2,Count) (Count==1?String1:String2) macro
|
/external/python/cpython2/Lib/test/ |
D | test_gettext.py | 226 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/ |
D | gettext.rst | 79 .. 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/ |
D | DateTimeShortcuts.js | 109 message = ngettext( 117 message = ngettext(
|
/external/python/cpython2/Doc/library/ |
D | gettext.rst | 94 .. 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/ |
D | doctools.js | 118 ngettext : function(singular, plural, n) { method
|
/external/e2fsprogs/doc/RelNotes/ |
D | v1.34.txt | 68 - Used ngettext() (abbreviated with the macro P_(str1, str2, n)) to
|
/external/elfutils/src/ |
D | readelf.c | 1610 ? 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/ |
D | e2fsck.h | 51 #define P_(singular, plural, n) (ngettext (singular, plural, n))
|
/external/e2fsprogs/ |
D | aclocal.m4 | 276 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)'
|