LOCALE::PO4A::PO.3PM(1) User Contributed Perl Documentation Locale::Po4a::Po - PO use Locale::Po4a::Po; my $pofile=Locale::Po4a::Po->new(); # PO $pofile->read('file.po'); # $pofile->push('msgid' => 'Hello', 'msgstr' => '', 'flags' => "wrap", 'reference'=>'file.c:46'); # $pofile->gettext("Hello"); # 'bonjour' # $pofile->write('otherfile.po'); Locale::Po4a::Po / ( po) PO gettext ("'PO "') po4a PO ()()debconf --porefs type type never file counter full full --wrap-po no|newlines|number (default: 76) po git gettext 77 po po4a po4a po newlinespo4a msgid msgstr no po4a po gettext msgid msgstr --msgid-bugs-address email@address msgid POT Report-Msgid-Bugs-To --copyright-holder string POT "" --package-name string POT "" --package-version string POT "" new() PO read($) PO ()self write($) write_if_needed($$) write PO POT ( POT-Creation-Date POT) filter($) Perl true Perl ;) gettext($%) () wrap wrapcol (76) stats_get() stats_clear() gettext msgfmt --statistic PO msgfmt [ PO ] ($percent,$hit,$queries) = $pofile->stats_get(); print "So far, we found translations for $percent\% ($hit of $queries) of strings.\n"; stats_clear() gettext push(%) msgid msgstr reference file.c:46( 46 'file.c' ) comment automatic --add-comments xgettext 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 PO msgid msgid msgid msgstrPO msgid ( DocBook "chapt""sect1""p" ) PO wrap true wrap no-wrap PO wrapcol ignored; the key is kept for backward computability. count_entries() () count_entries_doc() msgid($) msgid msgid_doc($) msgid type_doc($) Returns the type of the msgid with the given position in the document. This is probably only useful to gettextization, and it's stored separately from {$msgid}{'type'} because the later location may be overwritten by another type when the $msgid is duplicated in the master document. get_charset() PO "UTF-8" Denis Barbier Martin Quinson (mquinson#debian.org) perl v5.38.2 2024-06-26 LOCALE::PO4A::PO.3PM(1)