此功能不太适合汉化
说的太不具体xwx,重来
最好是新建一个rpy文件
init python:
config.translations[u'xxxxxxxxx(英文)'] = u'xxxxxxx(中文)‘
其中英文部分的xxxx填写内容为renpy/00gui.rpy之中的内容,
[RenPy] 纯文本查看 复制代码 ARE_YOU_SURE = _("Are you sure?")
DELETE_SAVE = _("Are you sure you want to delete this save?")
OVERWRITE_SAVE = _("Are you sure you want to overwrite your save?")
LOADING = _("Loading will lose unsaved progress.\nAre you sure you want to do this?")
QUIT = _("Are you sure you want to quit?")
MAIN_MENU = _("Are you sure you want to return to the main menu?\nThis will lose unsaved progress.")
END_REPLAY = _("Are you sure you want to end the replay?")
SLOW_SKIP = _("Are you sure you want to begin skipping?")
FAST_SKIP_SEEN = _("Are you sure you want to skip to the next choice?")
FAST_SKIP_UNSEEN = _("Are you sure you want to skip unseen dialogue to the next choice?")
位置大概是在370行左右,其他的字符串类型应该也能这么翻译.
但是这个并不适合用于汉化,因为汉化会生成tl文件,其中的common.rpy就带有这个功能了,更多还是用在想自己做中文游戏,但是引擎生成默认是英文的情况下才使用的.而最简单粗暴的方法就是想办法生成中文工程,然后把自己写的东西粘贴到新工程里面就好
这个方法我最早见到是来自林雪凡大佬的翻译文件. 因为把别人的成果拿出来发不太好,就总结一下使用方法,也可以用这个框架搞点事情
|