Request: Showing two languages in one interaction.

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Request: Showing two languages in one interaction.

#1 Post by nyaatrap »

Clipboard 1.png
Recently there are some games in steam which showing more than two language in one screen. Like Nekopara or Tokyo school life.
I think this is a good feature. I can implement it with my poor program, but it's not efficient and I wish it's implemented by default ren'py translation function.
I don't know how can it be in current ren'py. If there's a way, I want know. If not, I wish it's implemented in the future.

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Request: Showing two languages in one interaction.

#2 Post by PyTom »

This isn't doable with the way Ren'Py's translation system works. Ren'Py's translations entirely replace the text - to the point where you could split a text block in half, or remove it entirely. So there isn't a 1:1 mapping between game script and text.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Request: Showing two languages in one interaction.

#3 Post by nyaatrap »

Ouu that's too bad. So a possible way is directly coding both scripts. Thanks for the answer.

Ryue
Miko-Class Veteran
Posts: 745
Joined: Fri Nov 02, 2012 8:41 am
Projects: Red eyes in the darkness
Contact:

Re: Request: Showing two languages in one interaction.

#4 Post by Ryue »

Didnt use the translation feature so far but is it possible to have for example even the english text in the japanese version? (thus the first row is the translation into japanese for that text)?

User avatar
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Request: Showing two languages in one interaction.

#5 Post by gas »

Ryue wrote:Didnt use the translation feature so far but is it possible to have for example even the english text in the japanese version? (thus the first row is the translation into japanese for that text)?
You translate the text by changing the actual text with other tenses, so, technically speaking, yes you can.

You can change somethin like this

e "My words"

into that

e "Le mie parole\nMy words"

Altough the lines appear one after another in case of slow cps.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

Post Reply

Who is online

Users browsing this forum: No registered users