Closed ghost closed 8 months ago
这个我不太清楚欸,后面研究一下
你要不先检查一下有没有 xgettext
这个命令?
我在wsl和非wsl上面通过apt安装gcc,但是都没有找到gcc.mo 是不是应该通过其他方式安装?
这个我不太清楚欸,后面研究一下
你要不先检查一下有没有
xgettext
这个命令?
xgettext是有的,运行 xgettext --version 反馈xgettext (GNU gettext-tools) 0.21 Copyright (C) 1995-2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Ulrich Drepper. 应该是已经安装成功了
我也
@hellocym @Enmmma 你先看看自己gcc大版本号是什么 比如说gcc11.3 大版本号就是11 然后你运行 apt install gcc-11-locales 然后在文件夹下就有 gcc-11.mo 你用这个项目生成的 mo 替换就行了
@Hydrostic 请问安装之后的 gcc-11.mo 也应该在 /usr/share/locale/zh_CN/LC_MESSAGES 下吗,我的wsl里没找到
@Hydrostic 请问安装之后的 gcc-11.mo 也应该在 /usr/share/locale/zh_CN/LC_MESSAGES 下吗,我的wsl里没找到
是的 或者你看看有没有gcc.mo
我在\usr\share\locale\zh_CN\LC_MESSAGES下不能找到gcc.mo文件,将编译好的mo文件放入文件夹再使用export LANG=zh_CN.UTF-8也没有效果,有什么办法吗