My game doesn´t show some dialogs of the translation

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
charliesan763
Regular
Posts: 25
Joined: Mon Jan 23, 2017 8:16 am
Completed: Disencounters, 20 Seconds
Projects: Hunters In The Night, Paradise in the Heart
Organization: Primate Dogma
itch: Primate Dogma
Location: Argentina
Contact:

My game doesn´t show some dialogs of the translation

#1 Post by charliesan763 »

Hi, so I ended my first game with renpy! :D so I started to work in the esnglish translation but I´m having an issue when I test it because some dialogs are visible and some are not :( I have no idea why this is happening. This is what I did after ending the game:

First, I added

init -3 python:
if persistent.lang is None:
persistent.lang = "spanish"

lang = persistent.lang

in the options.rpy because the primary language is in spanish. Then I made a language button in the game menu

frame:
style_group "pref"
has vbox

label _("Language")
textbutton "Español" action Language(None)
textbutton "English" action Language("english")

in the screens.rpy. I translated the common and screens files in the game>tl folder and started to translate the script.rpy to english
until I noticed this problem so what did I miss? :P (btw: I´m using Editra v0.6.99 idk if that has something to do with the problem)
Attachments
script Editra v0.6.99.jpg

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2401
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: My game doesn´t show some dialogs of the translation

#2 Post by Ocelot »

Which dialogs are missing? Can you show a part of script containing skipped dialogues?

Also, what is the point of those 'lang' variables?
< < insert Rick Cook quote here > >

User avatar
charliesan763
Regular
Posts: 25
Joined: Mon Jan 23, 2017 8:16 am
Completed: Disencounters, 20 Seconds
Projects: Hunters In The Night, Paradise in the Heart
Organization: Primate Dogma
itch: Primate Dogma
Location: Argentina
Contact:

Re: My game doesn´t show some dialogs of the translation

#3 Post by charliesan763 »

Ocelot wrote:Which dialogs are missing? Can you show a part of script containing skipped dialogues?
You can see it in the screenshot. The fist line "I have 30 y...", "my second play was the same...", "what comes up..."
Ocelot wrote:Also, what is the point of those 'lang' variables?
I don´t know what language variable you are saying, the first one? I believe that´s how you tell renpy there´re more than one language. I´m new at this so I use all I found seaching.

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2401
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: My game doesn´t show some dialogs of the translation

#4 Post by Ocelot »

I believe that´s how you tell renpy there´re more than one language
You do not have to do that. Those variables do nothing at all.

So, just to be clear. You start your game, click on 'english' button, start your game, and those dialogues are still in Spanish, am I right?
< < insert Rick Cook quote here > >

User avatar
charliesan763
Regular
Posts: 25
Joined: Mon Jan 23, 2017 8:16 am
Completed: Disencounters, 20 Seconds
Projects: Hunters In The Night, Paradise in the Heart
Organization: Primate Dogma
itch: Primate Dogma
Location: Argentina
Contact:

Re: My game doesn´t show some dialogs of the translation

#5 Post by charliesan763 »

Ocelot wrote:
I believe that´s how you tell renpy there´re more than one language
You do not have to do that. Those variables do nothing at all.

So, just to be clear. You start your game, click on 'english' button, start your game, and those dialogues are still in Spanish, am I right?
No, the dialogues are showed in english (when the english language is selected), it just that some of them are visible and some are not :(

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2401
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: My game doesn´t show some dialogs of the translation

#6 Post by Ocelot »

This is certainly strange. Try to reproduce it on a fresh project. Or just try to create a small, self-contained example (cut everything aside from the problem parts) and post it there.
< < insert Rick Cook quote here > >

User avatar
korova
Veteran
Posts: 217
Joined: Sat Jun 27, 2009 5:15 pm
Completed: Ivy, Chocolate, Time, Clair Obscur
Projects: Writing exercises, The House [Nano18]
Tumblr: korova08
itch: korova
Location: Normandie, France
Contact:

Re: My game doesn´t show some dialogs of the translation

#7 Post by korova »

Have you modified some of your spanish text after you translated it into english ?
If yes, you'll have to generate translation again, and your modified spanish text will appear at the end of the file.

You should do your translations at the very end of developping process, when you're sure your text won't be modified.

[edit:tons of typos >.<]
Last edited by korova on Fri Mar 17, 2017 6:02 am, edited 1 time in total.

User avatar
charliesan763
Regular
Posts: 25
Joined: Mon Jan 23, 2017 8:16 am
Completed: Disencounters, 20 Seconds
Projects: Hunters In The Night, Paradise in the Heart
Organization: Primate Dogma
itch: Primate Dogma
Location: Argentina
Contact:

Re: My game doesn´t show some dialogs of the translation

#8 Post by charliesan763 »

Thanks for the suggestions :) The mistake was that, like korova mentioned, I modified some of the spanish text after I translated it into english :P I just delete the old english translation folder and created a new one and it´s seems to be working now :)
Last edited by charliesan763 on Fri Mar 17, 2017 1:28 pm, edited 1 time in total.

User avatar
korova
Veteran
Posts: 217
Joined: Sat Jun 27, 2009 5:15 pm
Completed: Ivy, Chocolate, Time, Clair Obscur
Projects: Writing exercises, The House [Nano18]
Tumblr: korova08
itch: korova
Location: Normandie, France
Contact:

Re: My game doesn´t show some dialogs of the translation

#9 Post by korova »

Happy to be of some help.
I usually write in french and translate into english afterwards, so I experienced this issue many times...

Post Reply

Who is online

Users browsing this forum: Google [Bot]