Page 1 of 1

My game doesn´t show some dialogs of the translation

Posted: Wed Mar 15, 2017 11:24 am
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)

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

Posted: Wed Mar 15, 2017 11:33 am
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?

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

Posted: Wed Mar 15, 2017 1:08 pm
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.

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

Posted: Wed Mar 15, 2017 1:28 pm
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?

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

Posted: Wed Mar 15, 2017 2:36 pm
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 :(

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

Posted: Wed Mar 15, 2017 2:43 pm
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.

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

Posted: Thu Mar 16, 2017 6:17 am
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 >.<]

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

Posted: Thu Mar 16, 2017 9:28 pm
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 :)

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

Posted: Fri Mar 17, 2017 6:07 am
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...