Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 467 Bytes

i18n.md

File metadata and controls

19 lines (11 loc) · 467 Bytes

Macast i18n

create macast.pot

xgettext macast/macast.py -o i18n/macast.pot

create *.po files

mkdir -p i18n/zh_CN/LC_MESSAGES msginit --locale=zh_CN -i i18n/macast.pot -o i18n/zh_CN/LC_MESSAGES/macast.po

update *.po files

msgmerge -NU --no-location i18n/zh_CN/LC_MESSAGES/macast.po i18n/macast.pot sed -i ".back" 's/#~ //g' i18n/zh_CN/LC_MESSAGES/macast.po

build *.mo files

msgfmt -o i18n/zh_CN/LC_MESSAGES/macast.mo i18n/zh_CN/LC_MESSAGES/macast.po