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.
I'm looking at doing a bilingual story, and for that reason I'd like to be able to have the history view show the original Japanese text alongside (e.g. just above) the selected language. So kind of like the following:
renpy.translate_string(s, language=<renpy.object.Sentinel object at 0x7f4dff319cd0>)
Returns s immediately translated into language. If language is Default, uses the language set in the preferences. Strings enclosed in this function will not be added to the list of translatable strings. Note that the string may be double-translated, if it matches a string translation when it is displayed.
Just make sure to not translate to None language (the default one set when the project is created), because it will be translated back immideately.
label start:
"Alice" "I want to tell you something."
"Edward" "What?!"
"Alice" "I love you!"
"They were very embarrassed by the awkward situation."
"Alice" "Whhhhaaaaaatttt?!!!" (multiple=2)
"Edward" "Whhhhaaaaaatttt?!!!" (multiple=2)
"The end?"
return
I speak and write in Spanish. I use an English-Spanish translator to express myself in this forum. If I make any mistakes, please forgive me.
I try my best to give an answer according to your question.
label start:
"Alice" "I want to tell you something."
"Edward" "What?!"
"Alice" "I love you!"
"They were very embarrassed by the awkward situation."
"Alice" "Whhhhaaaaaatttt?!!!" (multiple=2)
"Edward" "Whhhhaaaaaatttt?!!!" (multiple=2)
"The end?"
return