the translation for some text in menu doesn't display

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
xin da ya
Newbie
Posts: 5
Joined: Mon Oct 31, 2022 11:15 am
Contact:

the translation for some text in menu doesn't display

#1 Post by xin da ya »

the source code:
menu:
extend ""
"Oh, yeah that'd be helpful!":
$displaymenu = False
call playerStatQuestions from _call_playerStatQuestions

"I have a pretty good idea of who I am. (choose a preset)":
$displaymenu = False

$Atticus_State["eye"] = 7

$displaymenu = True
voice atticus_whatkindofperson
Atticus "I see, what kind of person are you?{nw}"


menu:
extend ""

"I'm pretty active with a strong personality. (Brawn & Hustle)":
#Mountain
python:
......
"I'll just wing it. (randomize stats & appearance)":
$displaymenu = False
python:

Robyn_State["hair"] = persistent.RobynSettings[0] = random.randint(0,1)
......


the translation: Englisht to SimplifiedChinese
# game/scripts/Game Script/Robyn Creation.rpy:231
old "Oh, yeah that'd be helpful!"
new "噢,不错,这一定能帮上忙!"

# game/scripts/Game Script/Robyn Creation.rpy:237
old "I have a pretty good idea of who I am. (choose a preset)"
new "对于自己是谁我有很清楚的认知。(选择一个预设)"

# game/scripts/Game Script/Robyn Creation.rpy:370
old "I'll just wing it. (randomize stats & appearance)"
new "我其实不太确定。(获得随机数值与外观)"


The last two translations code don't work. When I play game, the sentences are still English.
Attachments
Robyn Creation_wip_cn.rpy
(23.13 KiB) Downloaded 15 times
screenshot.png
Robyn Creation.rpy
(34.74 KiB) Downloaded 15 times

Post Reply

Who is online

Users browsing this forum: No registered users