NGETTEXT(1)
๐ NGETTEXT(1) โ User Commands ๐
okay bestie, sit DOWN, because this is the ngettext manual page and it is genuinely the most underrated little icon in the GNU gettext-runtime 1.0 lineup. it's a User Commands page. it's giving translator-bestie energy. let's go โจ
๐ธ NAME ๐ธ
ngettext โ translate message and choose plural form ๐ซถ
๐ SYNOPSIS ๐
ngettext [OPTION] [TEXTDOMAIN] MSGID MSGID-PLURAL COUNT
โจ DESCRIPTION โจ
so the ngettext program does the absolute most in the best way: it translates a natural language message into the user's language, by looking up the translation in a message catalog, and then โ this is the main character part โ it chooses the appropriate plural form, which depends on the number COUNT and on the language of the message catalog where the translation was found. ๐
basically it displays a native language translation of a textual message whose grammatical form depends on a number. because "1 file" and "5 files" are not the same vibe and every language counts differently. no cap. ๐
๐ง Options and arguments: ๐ง
-d,--domain=TEXTDOMAINโ retrieve translated message fromTEXTDOMAIN-c,--context=CONTEXTโ specify context forMSGID-eโ enable expansion of some escape sequences-Eโ (ignored for compatibility) ๐ซ[TEXTDOMAIN]โ retrieve translated message fromTEXTDOMAINMSGIDMSGID-PLURALโ translateMSGID(singular) /MSGID-PLURAL(plural)COUNTโ choose singular/plural form based on this value
๐ข Informative output: ๐ข
-h,--helpโ display this help and exit-V,--versionโ display version information and exit
if the TEXTDOMAIN parameter is not given, the domain is determined from the environment variable TEXTDOMAIN. and if the message catalog is not found in the regular directory, you can point it somewhere else with the environment variable TEXTDOMAINDIR. the standard search directory is:
/usr/share/locale
๐ lowkey important: noTEXTDOMAINarg + noTEXTDOMAINenv var = the domain has to come from somewhere, so know your env, bestie.
๐ AUTHOR ๐
Written by Ulrich Drepper and Bruno Haible. legends fr fr ๐ซก
๐ REPORTING BUGS ๐
found a bug? report it in the bug tracker at <https://savannah.gnu.org/projects/gettext> or by email to <bug-gettext@gnu.org>. don't just suffer in silence, that's not the vibe. ๐ญ
โ๏ธ COPYRIGHT โ๏ธ
Copyright ยฉ 1995-2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
๐จ bestie read that again: NO WARRANTY. to the extent permitted by law. it's free, it's yours to remix, but nobody's covering you if it goes sideways. periodt.
๐ SEE ALSO ๐
The full documentation for ngettext is maintained as a Texinfo manual. If the info and ngettext programs are properly installed at your site, the command
info ngettext
should give you access to the complete manual. iykyk ๐ง
and that's the whole page, babe ๐ this was GNU gettext-runtime 1.0, dated January 2026 โ thanks for reading my little manual-page hyperfixation, mwah ๐โจ
๐ฆ where this page comes from
- alpine 3.24: gettext-doc 1.0-r0 ยท GPL-3.0-or-later AND LGPL-2.1-or-later AND MIT
- arch rolling: gettext 1.0-2 ยท GFDL-1.2-only AND GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-only
- ubuntu stonking: gettext-base 1.0-3 ยท GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms