argv[0] 一般是执行程序,脚本本身。 argv[1]才是被读写的文件。
All Replies
deepinuser17
deepin
2023-05-14 21:50 Reply Like 0 View the author
177******69
deepin
2023-05-14 22:11 deepinuser17:
argv[0] 一般是执行程序,脚本本身。 argv[1]才是被读写的文件。
改了还是不行 可以帮忙看看吗
Reply Like 0 View the author
W2J
deepin
2023-05-14 22:36 明显命令格式没用对嘛。
usage:intltool-extract [option]... file
直接试试这个 intltool-extract ./pychess/*.glade
或者这个 inttool-extract --local --srcdir=./pychess *.glade
Reply Like 0 View the author
W2J
deepin
2023-05-14 22:39 W2J deepin
发表于 2023-05-14 14:36
地板
明显命令格式没用对嘛。
usage:intltool-extract [option]... file
直接试试这个 intltool-extract ./pychess/*.glade
或者这个 inttool-extract --local=./ --srcdir=./pychess/ *.glade
Reply Like 0 View the author
177******69
deepin
2023-05-15 00:14 W2J:
W2J deepin
发表于 2023-05-14 14:36
地板
明显命令格式没用对嘛。
usage:intltool-extract [option]... file
直接试试这个 intltool-extract ./pychess/*.glade
或者这个 inttool-extract --local=./ --srcdir=./pychess/ *.glade
没用
Reply Like 0 View the author
donaldsebleung
deepin
2023-05-15 01:33 --srcdir 应该是根目录吧,试试从 ./pychess/*.glade 改为 ./pychess/
intltool-extract --type=gettext/glade --local --srcdir=./pychess/
(我没用过 intltool-extract ,所以也只是猜测而已)
Reply Like 0 View the author
W2J
deepin
2023-05-15 02:14 177******69:
没用

你到底有没有试过,还要我帮你试才行?
Reply Like 0 View the author
177******69
deepin
2023-05-15 03:31 It has been deleted!
177******69
deepin
2023-05-15 03:32 W2J:

你到底有没有试过,还要我帮你试才行?

怎么说
Reply Like 0 View the author
绍贝格尔
deepin
2023-05-15 17:08 路径绝对路径尼
Reply Like 0 View the author
177******69
deepin
2023-05-15 20:06 问题被意想不到的方式解决了 使用xgettext
Reply Like 0 View the author
Please sign in first


中文 


我想要用intltool汉化一个软件
第一步 安装intltool
第二步 检查是否安装成功
我如果没有理解错 --type=翻译项目的类型 --local=将输出文件写入当前工作目录 --srcdir=翻译项目的根目录或路径
我的电脑信息