这种格式的该怎么翻译啊
renpy吧
全部回复
仅看楼主
level 2
fugbitn 楼主
直接改源代码可以翻译,但是会导致切换的英语语言也会变成中文[喷]
2025年10月25日 09点10分 1
level 4
heydontcryspirothebaldeaglefailingatcatchingacrab是变量,需要翻译的文本是变量的值。你需要在翻译文件中给变量名加上!t,以告诉renpy这个变量的值需要被翻译。
我搜了一下你这个游戏,有处选项使用了该变量,那么你需要
old "[heydontcryspirothebaldeaglefailingatcatchingacrab]"
new "[heydontcryspirothebaldeaglefailingatcatchingacrab!t]"
另外有处对话使用了该变量,那么你需要翻译这一句时
translate chinese xxx...:
mc "[heydontcryspirothebaldeaglefailingatcatchingacrab].. okay?"
mc "[heydontcryspirothebaldeaglefailingatcatchingacrab!t]……好吗?"
都需要这样在翻译语句中给变量名末尾加上!t。
类似的,主角名[mcname]也是变量,假如玩家想使用默认的英文名,但你要让默认名显示为译名,那你需要给[mcname]加上!t。
l "How could you do that to me, [mcname]?"
l "你怎么能那样对我,[mcname!t]?"
这样只要你翻译了默认名Aster,那么玩家使用默认名时就会显示为你翻译的译名。
2025年10月25日 13点10分 0
图中这段话以及更详细的解释可见https://www.bilibili.com/opus/854508671548260393
2025年10月25日 13点10分
@-玄朱- 顺利解决了[乖],感谢大佬[真棒][真棒][真棒]
2025年10月25日 14点10分
1