Changeset 5629
- Timestamp:
- 06/26/09 18:45:26 (3 years ago)
- Location:
- trunk/Locale-Msgfmt
- Files:
-
- 2 edited
-
Changes (modified) (1 diff)
-
lib/Locale/Msgfmt.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Locale-Msgfmt/Changes
r5628 r5629 8 8 - always build_require Locale::Maketext::Gettext, now it will 9 9 install correctly 10 - improved POD 10 11 11 12 0.06 Jun 26, 2009 -
trunk/Locale-Msgfmt/lib/Locale/Msgfmt.pm
r5620 r5629 100 100 101 101 This module does the same thing as msgfmt from GNU gettext-tools, 102 except this is pure Perl. 102 except this is pure Perl. The interface is best explained through 103 examples: 103 104 104 105 use Locale::Msgfmt; 105 106 107 # compile po/fr.po into po/fr.mo 106 108 msgfmt({in => "po/fr.po", out => "po/fr.mo"}); 109 # compile po/fr.po into po/fr.mo and include fuzzy translations 107 110 msgfmt({in => "po/fr.po", out => "po/fr.mo", fuzzy => 1}); 111 # compile all the .po files in the po directory, and write the .mo 112 # files to the po directory 108 113 msgfmt("po/"); 114 # compile all the .po files in the po directory, and write the .mo 115 # files to the po directory, and include fuzzy translations 116 msgfmt({in => "po/", fuzzy => 1}); 117 # compile all the .po files in the po directory, and write the .mo 118 # files to the output directory 109 119 msgfmt({in => "po/", out => "output/"}); 120 # compile all the .po files in the po directory, and write the .mo 121 # files to the output directory, and include fuzzy translations 122 msgfmt({in => "po/", out => "output/", fuzzy => 1}); 123 # compile po/fr.po into po/fr.mo 110 124 msgfmt("po/fr.po"); 125 # compile po/fr.po into po/fr.mo and include fuzzy translations 111 126 msgfmt({in => "po/fr.po", fuzzy => 1}); 112 127
Note: See TracChangeset
for help on using the changeset viewer.
