1Locale::Msgfmt(3)     User Contributed Perl Documentation    Locale::Msgfmt(3)
2
3
4

NAME

6       Locale::Msgfmt - Compile .po files to .mo files
7

SYNOPSIS

9       This module does the same thing as msgfmt from GNU gettext-tools,
10       except this is pure Perl. The interface is best explained through
11       examples:
12
13           use Locale::Msgfmt;
14
15           # compile po/fr.po into po/fr.mo
16           msgfmt({in => "po/fr.po", out => "po/fr.mo"});
17           # compile po/fr.po into po/fr.mo and include fuzzy translations
18           msgfmt({in => "po/fr.po", out => "po/fr.mo", fuzzy => 1});
19           # compile all the .po files in the po directory, and write the .mo
20           # files to the po directory
21           msgfmt("po/");
22           # compile all the .po files in the po directory, and write the .mo
23           # files to the po directory, and include fuzzy translations
24           msgfmt({in => "po/", fuzzy => 1});
25           # compile all the .po files in the po directory, and write the .mo
26           # files to the output directory, creating the output directory if
27           # it doesn't already exist
28           msgfmt({in => "po/", out => "output/"});
29           # compile all the .po files in the po directory, and write the .mo
30           # files to the output directory, and include fuzzy translations
31           msgfmt({in => "po/", out => "output/", fuzzy => 1});
32           # compile po/fr.po into po/fr.mo
33           msgfmt("po/fr.po");
34           # compile po/fr.po into po/fr.mo and include fuzzy translations
35           msgfmt({in => "po/fr.po", fuzzy => 1});
36
38       Copyright 2009 Ryan Niebur, all rights reserved.
39
40       This program is free software; you can redistribute it and/or modify it
41       under the same terms as Perl itself.
42
43
44
45perl v5.12.0                      2010-05-02                 Locale::Msgfmt(3)
Impressum