XGETTEXT-TXT(1p)
β¨ NAME β¨
okay bestie, meet xgettext-txt β it's the xgettext-txt manual page (that's the 1p section, perl peeps π«Ά) and its whole entire job is creating PO files out of text files. that's it. that's the vibe. π
πΈ USAGE πΈ
here's how you run it, no cap:
xgettext-txt [OPTIONS] TEXTFILE[, TEXTFILE]
xgettext-txt [OPTIONS] --files-from="filelist"
xgettext-txt --help
like, three whole ways. pick your fighter. π
π DESCRIPTION π
so basically it reads one or more text files and turns every paragraph into a translatable string inside a PO file (or a .pot file, same energy). paragraphs in, translatable strings out. iconic behaviour honestly. β¨
if you want the full list of options (and there are a lot, we're not playing around), go check the online docs for Locale::XGettext over at http://search.cpan.org/~guido/Locale-XGettext/lib/Locale/XGettext.pm, or literally just run perldoc Locale::XGettext in your terminal and read it there. both give you the complete rundown. π
π BUGS π
ngl, there's a known wish here: it should be possible to specify alternative delimiters and not just paragraphs. right now? paragraphs only. sad but true. π
π AUTHOR π
written by Guido Flohr β you can find him at http://www.guido-flohr.net/. king behaviour fr fr. π«Ά
π COPYRIGHT π
Copyright (C) 2016-2017 Guido Flohr (http://www.guido-flohr.net/).
License LGPLv1.1+: GNU General Public License version 2.1 or later <http://gnu.org/licenses/lgpl.html>
it's free software babes β you're free to change it and redistribute it. but also, and I need you to hear this: there is NO WARRANTY, to the extent permitted by law. none. zero. zilch. π
π¦ SEE ALSO π¦
Locale::XGettextperlxgettext(1)
go read those too, iykyk. πβ¨
and that's a wrap on this page, bestie π β this lil manual came to you from perl v5.36.0, dated 2023-02-05, and it's filed under XGETTEXT-TXT(1p). now go make some PO files, you main character. slay. π πΈ
π¦ where this page comes from
- debian bookworm: liblocale-xgettext-perl 0.7-2 Β· LGPL-3.0-or-later
- debian trixie: liblocale-xgettext-perl 0.7-2 Β· LGPL-3.0-or-later
- ubuntu noble: liblocale-xgettext-perl 0.7-2 Β· LGPL-3.0-or-later
- ubuntu resolute: liblocale-xgettext-perl 0.7-2 Β· LGPL-3.0-or-later
- ubuntu stonking: liblocale-xgettext-perl 0.7-2 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms