Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 474 Bytes
domain_name="test" # Should match the "domain" used by the app
langs="en ja" # modify as desired
locale_root="locale" # mo's are created in subdirectories inside here.
# Force an English LANG setting (to make MinGW's gettext utilities
# happy in non-english locales)
export LANG=en
for lang in $langs; do
mkdir -pv "${locale_dir}"
msgfmt "po/${lang}.po" -o "${locale_dir}/${domain_name}.mo"