Locale...::Text(3pm)

πŸ’– NAME πŸ’–

Locale::XGettext::Text β€” bestie, this is the one that creates PO files out of plain text files ✨

No cap, it's a Perl module, it lives at Locale::XGettext::Text, and it's giving "turn your text into translatable PO entries" energy. Periodt.


🌸 USAGE 🌸

Okay so here's literally all you gotta do:

use Locale::XGettext::Text;

Locale::XGettext::Text->newFromArgv(\@ARGV)->run->po;

That's the whole vibe. Chain it, run it, get your PO. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

Not gonna lie, this page is the short one. For the full tea you gotta go read xgettext-txt. It has all the details, iykyk. πŸ‘‘


✨ METHODS ✨

Here's what's actually implemented right here in this module. Everything else? Inherited from Locale::XGettext. So don't come for me, the rest is up the family tree, fr fr. 🌈

  • readFile FILENAME β€” Reads FILENAME and adds a PO entry for every single paragraph in FILENAME. Every paragraph. Not every line. Paragraphs. Obsessed with how simple that is. πŸ’…
  • versionInformation β€” Hands you back the version information for the module. Iconic, informative, short. ✨
  • fileInformation β€” Hands you back info about the expected input file format. Basically it tells you what kind of file it's expecting to snack on. πŸ“

πŸ‘‘ AUTHOR πŸ‘‘

Written by Guido Flohr (<http://www.guido-flohr.net/>). Shoutout to him, we love a creator. 🫢


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>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law. Like, none. Zero. Nada. Don't come crying to anybody if it goes sideways, bestie. 😭

πŸ”₯ SEE ALSO πŸ”₯


Okay that's the whole page, you ate it up, go forth and generate PO files πŸ’–βœ¨

This little gem ships as part of perl v5.36.0 and this version of the page is dated 2023-02-05. Byeee bestie, mwah πŸŽ€πŸ¦‹πŸ’