NAME
Locale::Msgfmt - Compile .po files to .mo files
SYNOPSIS
This module does the same thing as msgfmt from GNU gettext-tools, except this is pure Perl. The interface is best explained through examples:
use Locale::Msgfmt;# Compile po/fr.po into po/fr.momsgfmt({in => "po/fr.po", out => "po/fr.mo"});# Compile po/fr.po into po/fr.mo and include fuzzy translationsmsgfmt({in => "po/fr.po", out => "po/fr.mo", fuzzy => 1});# Compile all the .po files in the po directory, and write the .mo# files to the po directorymsgfmt("po/");# Compile all the .po files in the po directory, and write the .mo# files to the po directory, and include fuzzy translationsmsgfmt({in => "po/", fuzzy => 1});# Compile all the .po files in the po directory, and write the .mo# files to the output directory, creating the output directory if# it doesn't already existmsgfmt({in => "po/", out => "output/"});# Compile all the .po files in the po directory, and write the .mo# files to the output directory, and include fuzzy translationsmsgfmt({in => "po/", out => "output/", fuzzy => 1});# Compile po/fr.po into po/fr.momsgfmt("po/fr.po");# Compile po/fr.po into po/fr.mo and include fuzzy translationsmsgfmt({in => "po/fr.po", fuzzy => 1});
COPYRIGHT & LICENSE
Copyright 2009 Ryan Niebur, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.