1Publican::Translate(3)User Contributed Perl DocumentationPublican::Translate(3)
2
3
4

NAME

6       Publican::Translate - Module for manipulating POT and PO files.
7

VERSION

9       This document describes Publican::Translate version $VERSION
10

SYNOPSIS

12               use Publican::Translate;
13               my $po = Publican::Translate->new();
14
15               $po->update_pot();
16               $po->update_po({ langs => 'fr-FR,de-DE' });
17               $po->update_po({ langs => 'all' });
18               $po->merge_xml({ lang  => 'fr-FR' });
19

DESCRIPTION

21       Creates, updates and merges POT and PO files for Publican projects.
22

INTERFACE

24   new
25       Create a new Publican::Translate object.
26
27   update_pot
28       Update the pot files
29
30   po2xml
31       Merge XML and PO into a translated XML file.
32
33   update_po
34       Update the PO files using msgmerge
35
36   update_po_all
37       Update the PO files for all languages
38
39   get_msgs
40       Get the strings to translate from an XML::TreeBuilder object
41
42   merge_msgs
43       Merge translations in to XML
44
45   translate
46       Replace strings with translated strings.
47
48   print_msgs
49       Print the translation strings in an XML::TreeBuilder object to a POT
50       file
51
52   header
53       Returns a valid PO header string.
54
55   normalise
56       Remove extraneous white space.
57
58   po_format
59       Format a string for use in a PO file.
60
61   po_unformat
62       Remove PO formatting from a string.
63
64   po_report
65       Generate translation statistics for the supplied language.
66

DIAGNOSTICS

68       "unknown args %s"
69           All subs with named parameters will return this error when
70           unexpected named arguments are provided.
71
72       "%s is a required argument"
73           Any sub with a mandatory parameter will return this error if the
74           parameter is undef.
75

CONFIGURATION AND ENVIRONMENT

77       Publican requires no configuration files or environment variables.
78

DEPENDENCIES

80       Carp version Publican File::Copy::Recursive File::Path
81

INCOMPATIBILITIES

83       None reported.
84

BUGS AND LIMITATIONS

86       No bugs have been reported.
87
88       Please report any bugs or feature requests to
89       "publican-list@redhat.com", or through the web interface at
90       <https://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Publican&amp;component=publican>.
91

AUTHOR

93       Jeff Fearn  "<jfearn@redhat.com>"
94
95
96
97perl v5.12.4                      2011-09-22            Publican::Translate(3)
Impressum