LOCALE:...MON.3PM(1)
π¦ NAME π¦
Hiii bestie! π This is Locale::Po4a::Common β the common parts of the po4a scripts and utils β and yes, this is the LOCALE:...MON.3PM(1) page from the User Contributed Perl Documentation. It's giving βshared bits for the po4a modulesβ energy, fr fr. π«Ά
β¨ DESCRIPTION β¨
Okay so Locale::Po4a::Common contains the common parts of the po4a scripts and some useful functions used along the other modules. No cap. π
If needed, you can disable the use of Text::WrapI18N as such:
use Locale::Po4a::Common qw(nowrapi18n);
use Locale::Po4a::Text;
instead of:
use Locale::Po4a::Text;
The ordering is important here: as most Locale::Po4a modules load themselves Locale::Po4a::Common, the first time this module is loaded determines whether Text::WrapI18N is used. π
π FUNCTIONS π
π Showing output messages π
show_version($)β Shows the current version of the script, and a short copyright message. It takes the name of the script as an argument. Slay, version reveal. β¨wrap_msg($@)β This function displays a message the same way assprintf()does, but wraps the result so that they look nice on the terminal. Cute output, no horizontal-scroll chaos. πwrap_mod($$@)β This function works likewrap_msg(), but it takes a module name as the first argument, and leaves a space at the left of the message. π¦wrap_ref_mod($$$@)β This function works likewrap_msg(), but it takes afile:linereference as the first argument, a module name as the second one, and leaves a space at the left of the message. π
π Wrappers for other modules π
Locale::Gettextβ When theLocale::Gettextmodule cannot be loaded, this module provide dummy (empty) implementation of the following functions. In that case, po4a messages won't get translated but the program will continue to work. π«Ά
If Locale::gettext is present, this wrapper also calls setlocale(LC_MESSAGES, "") so callers don't depend on the POSIX module either.
bindtextdomain($$)textdomain($)gettext($)dgettext($$)
π AUTHORS π
Jordi Vilalta <jvprat@gmail.com> β iconic. π
πΈ COPYRIGHT AND LICENSE πΈ
Copyright Β© 2005 SPI, Inc.
This program is free software; you may redistribute it and/or modify it under the terms of GPL v2.0 or later (see the COPYING file).
Mwah π this page is from perl v5.42.0, dated 2025-07-13, and it's the LOCALE:...MON.3PM(1) manual. Bye bestie, go wrap some messages responsibly! π§ββοΈπ
π¦ where this page comes from
- alpine 3.23: po4a-doc 0.74-r0 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms