- 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 https://git.openstreetmap.org/rails.git/tree/HEAD:/script/locale
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)
Create a language's yaml from a given po file
po2yaml de.po de.yml
This software is licensed under the GNU General Public License 2.0 (https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt), a copy of which can be found in the LICENSE file.