发新话题
打印

通过编译源码安装游戏时能不能选择只使用哪些语言?

通过编译源码安装游戏时能不能选择只使用哪些语言?

没有找到编译选项可以调整需要支持的语言。
比如,我只需要中英文就好了,编译其它的又看不懂,既浪费硬盘,又浪费时间。

---------------------------------
移除不需要的语言对应的文件夹自然是可以的,但是没有更好的办法吗?

TOP

嗯,应该似乎是没有..所以我一直以为编译没太多选项

俺只编译过 wesnoth pidgin 和 wine

TOP

我在官网论坛问了。
http://www.wesnoth.org/forum/viewtopic.php?t=19322

解决方法如下:
The cleanest solution I've found is modifying m4/po.m4 which appears to handle which translations are compiled and installed. You can specify which translations you would like to build by modifying the ALL_LINGUAS_ variable (around line 125).

For example, I would change:
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
to
ALL_LINGUAS_="en_GB"
to enable only British English. Additional translations should be separated by a space.

After modifying, run ./autogen.sh and use your usual build sequence.

Hope that helps.

TOP

用./configure --help查一下,该有就有,没就没。写程序的人大概不会BT到没写参数帮助吧

TOP

发新话题