Converts ICU data files to gettext po files.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
convert.lua
convert_curr.lua
convert_lang.lua
convert_locales.lua
convert_region.lua
convert_unit.lua
convert_zone.lua

README.md

ICU2po

Converts ICU data files to gettext po files.

This script is for converting CLDR data from the ICU package into .po files, so translators can load it into their translation memories.

Note that I wrote this script for myself and I am publishing it for your convenience. No warranty whatsoever that it will work or that it won't blow up your computer. Also, don't expect me to provide support. YOu can of course ask nicely ;)

The po file output can have multiple entries for the same key, so if you run them with msgmerge, it will give you an error. You can avoid some of this by commenting out stuff. In any case, you will be able to load the resulting po files into Virtaal or Poedit to fill up your translation memory.

I am releasing this script into the Public Domain, so you are welcome to do what you want with it.

Usage instructions can be found in the convert.lua file.