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 from TEXTDOMAIN. like, which catalog are we even pulling from, bestie
  • -c, --context=CONTEXT โ€” specify context for MSGID. 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 to MSGID from TEXTDOMAIN

๐Ÿ‘‘ 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: -s looks like echo but she is NOT echo. she does not just copy your args to stdout โ€” 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 ยฉ 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