天天看点

linux app internationization

to get the string from source:

xgettext -a -o po/zh_CN.po src/*.c

to get the strings from glade.xml:

xgettext -L Glade -o po/zh_CN.po  data/*.xml

translate:

msgid "Some String"

msgstr "一些字符串"

merge change

msgmerge --update zh_CN.po zh_CN.po.new

继续阅读