Search Results
Plural version of dcgettext dcngettext (PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) dcngettext — Plural version of dcgettext
The categoryname part is the string "LC_MESSAGES" if gettext (), dgettext (), ngettext (), or dngettext () is called, or the locale category name corresponding to the category argument to dcgettext () or dcngettext (). Likewise for the *_l () variants of all these functions.
gettext , dgettext , dcgettext , ngettext , dngettext , dcngettext , textdomain , bindtextdomain , bind_textdomain_codeset - message handling functions
The ngettext, dngettext and dcngettext functions attempt to translate a text string into the user's native language, by looking up the appropriate plural form of the translation in a message catalog.
The ngettext, dngettext and dcngettext functions work like the gettext, dgettext and dcgettext functions, respectively. Additionally, they choose the appropriate plural form, which depends on the number n and the language of the message catalog where the translation was found.
dcngettext applies domainname to the currently active LC_MESSAGE locale. This usage is equivalent in syntax and meaning to the textdomain function's application of domainname, except that the selection of the domain in dcngettext is valid only for the duration of the call.
The ngettext, dngettext and dcngettext functions work like the gettext, dgettext and dcgettext functions, respectively. Additionally, they choose the appropriate plural form, which depends on the number n and the language of the message catalog where the translation was found.
