/yaml2po

Script for converting YML or YAML translation files to Gettext PO or POT

Primary LanguageRubyGNU General Public License v2.0GPL-2.0

yaml2po and po2yaml

yaml2po is a script for converting YML or YAML translation files to Gettext PO or POT

po2yaml is a script for converting to Gettext PO to YML or YAML translation files

Developed from the homonymous scripts found in http://git.openstreetmap.org/rails.git/tree/HEAD:/script/locale

yaml2po usage mode

  • Create a POT from a given YML file
 $ yaml2po.rb -b en.yml -i de.yml -o de.pot
  • Create a language's PO from a given YML file
 $ yaml2po.rb -b en.yml -i de.yml -o de.po

po2yaml usage mode

  • Create a language's YML from a given PO file
 $ po2yaml.rb -i en.po -o en.yml

License

This software is licensed under the GNU General Public License 2.0 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt), a copy of which can be found in the LICENSE file.