我正在尝试从该文件中提取字符串:
http://bazaar.launchpad.net/~gufw-developers/gui-ufw/gufw-13.04/view/head:/data/ui/add.ui
它的命令是什么?
这不起作用:
user@desktop:~/Desktop$ xgettext -k_ -kN_ -o messages.pot *.ui
xgettext: warning: file `add.ui' extension `ui' is unknown; will try C
add.ui:192: warning: unterminated character constant
add.ui:483: warning: unterminated character constant
add.ui:750: warning: unterminated character constant
user@desktop:~/Desktop$
提前致谢! :)
答案1
您需要说明xgettext
您的文件是 Glade 文件:
xgettext -k_ -kN_ -L Glade -o messages.pot *.ui