Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

yaml2po and po2yaml

yaml2po
script for converting .yml or .yaml translation files to Gettext PO or POT
po2yaml
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 'master' .pot file from source english translation

    yaml2po -P en.yml file.pot
    

    -P option indicates the template YAML file (the english translation one)

  • Create a language's .po from specified existing translation

    yaml2po -l de -t en.yml de.yml de.po
    

    -l option indicates the language code in the YAML translation file

    -t option indicates the template YAML file (the english translation one)

po2yaml usage mode

  • Create a language's yaml from a given po file

    po2yaml de.po de.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.

About

Script for converting .yml or .yaml translation files to Gettext PO or POT

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages