如何在bash脚本中使用gettext?在bash中使用gettext
我只找到这个网页,但我不明白。
我的剧本是这样写的:
#!/bin/bash
. lang_file.sh
echo $LANG_HELLO_WORLD
而且lang_file.sh看起来像:
#!/bin/bash
LANG_HELLO_WORLD="Hello World"
我想用gettext的改变lang_file.sh的东西,像这样:
#!/bin/bash
LANG_HELLO_WORLD=`some gettext command to get string in user language`
我想使用Launchpad中的代码,所以其他用户可以翻译它(.po,.pot文件)
对不起,英语有什么建议吗?
只用了4年,该死的 – lauriys 2014-06-06 19:41:20