GETTEXT(1)
๐ GETTEXT โ translate message ๐
okay bestie, welcome to the gettext page from the User Commands manual. this is the one that makes your app speak every language, no cap โจ
โจ NAME โจ
gettext โ translate message
๐ SYNOPSIS ๐
gettext [OPTION] [[TEXTDOMAIN] MSGID]
gettext [OPTION] -s [MSGID]...
๐ฆ DESCRIPTION ๐ฆ
So like. The gettext program translates a natural language message into the user's language, by looking up the translation in a message catalog. that's the whole vibe. it displays the native language translation of a textual message ๐
๐ธ Options and arguments ๐ธ
-d,--domain=TEXTDOMAINโ retrieve translated messages fromTEXTDOMAIN. like, which catalog are we even pulling from, bestie-c,--context=CONTEXTโ specify context forMSGID. because sometimes the same word means different things and we need the receipts-eโ enable expansion of some escape sequences-nโ suppress trailing newline. she's being minimal, iconic-Eโ (ignored for compatibility). yeah she does nothing, she's just here for the plot ๐[TEXTDOMAIN] MSGIDโ retrieve translated message corresponding toMSGIDfromTEXTDOMAIN
๐ 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. If the message catalog is not found in the regular directory, another location can be specified with the environment variable TEXTDOMAINDIR. When used with the -s option the program behaves like the 'echo' command. But it does not simply copy its arguments to stdout. Instead those messages found in the selected catalog are translated. Standard search directory: /usr/share/locale
fr fr, do not sleep on this:-slooks likeechobut she is NOTecho. she does not just copy your args tostdoutโ only the messages that actually exist in the selected catalog get translated. lowkey the most important plot twist on this whole page ๐ซถ
๐ AUTHOR ๐
Written by Ulrich Drepper. king behaviour, honestly ๐
๐ญ REPORTING BUGS ๐ญ
Report bugs in the bug tracker at <https://savannah.gnu.org/projects/gettext> or by email to <bug-gettext@gnu.org>.
not me asking you to file the bug report properly instead of subtweeting about it ๐
๐ 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.
โญ SEE ALSO โญ
The full documentation for gettext is maintained as a Texinfo manual. If the info and gettext programs are properly installed at your site, the command
info gettext
should give you access to the complete manual.
okay that's the whole page, you ate it ๐
โจ this was GNU gettext-runtime 1.0, dated January 2026, straight out of the GETTEXT(1) era โ go forth and translate everything, bestie, i'm obsessed with you ๐๐ฆ๐ธ
๐ฆ 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