LOCALE::PO4A::PO.3PM(1) User Contributed Perl Documentation Locale::Po4a::Po - PO file use Locale::Po4a::Po; my $pofile=Locale::Po4a::Po->new(); # PO $pofile->read('file.po'); # $pofile->push('msgid' => 'Hello', 'msgstr' => 'bonjour', 'flags' => "wrap", 'reference'=>'file.c:46'); # $pofile->gettext("Hello"); # returns 'bonjour' # $pofile->write('otherfile.po'); Locale::Po4a::Po ( po ) PO gettext ("`PO "' ) po4a () PO (man info ) debconf --porefs type type none noline counter full full --wrap-po no|newlines|number76 pogit gettextpo77po4apo4aponewlinespo4amsgidmsgstrnopo4apopo4agettext msgidmsgstr --msgid-bugs-address E@ msgid POT Report-Msgid-Bugs-To --copyright-holder POT (copyright holder) "Free Software Foundation, Inc." --package-name string POT "PACKAGE" --package-version string POT "VERSION" new() PO read($) () PO write($) write_if_needed($$) write PO POT ( POT-Creation-Date ) filter($) Perl true Perl ;) gettext($%) () : wrap yes wrapcol (: 76) stats_get() stats_clear() gettext msgfmt --statistic msgfmt PO : [ PO ] ($percent,$hit,$queries) = $pofile->stats_get(); print "$percent\%$queries$hit\n"; stats_clear() gettext push(%) : msgid msgstr reference file.c:46 ('file.c' 46 ) comment () automatic xgettext --add-comments flags c-text, python-text, lisp-text, elisp- text, librep-text, smalltalk-text, java-text, awk-text, object- pascal-text, ycp-text, tcl-text, wrap, no-wrap, fuzzy gettext type gettext PO msgid msgid msgid msgstr PO msgid (DocBook "chapt", "sect1", "p" ) type type PO wrap true PO wrap no-wrap wrapcol count_entries() () count_entries_doc() . msgid($) msgid msgid_doc($) msgid type_doc($) msgidgettextization{$msgid}{'type'}$msgid get_charset() PO "UTF-8" Denis Barbier Martin Quinson (mquinson#debian.org) Debian JP Documentation ML perl v5.38.2 2024-06-26 LOCALE::PO4A::PO.3PM(1)