[solved] Random content tagged with _("content") still not showing up for translation
Posted: Fri Jul 19, 2019 2:34 am
So I am redoing one of my first games (an educational story game for beginner readers) and adding features and Chinese and Japanese translations (I'd also like to add German later). This section is a quiz to check if they can find the words from the story that they hear (basically checking they can actually recognize the words) but while adding one new feature random content, seemingly identical to other content, is not showing up in the translation scripts.
(formatting is still a work in progress)
Out of about 20 similar screens, I think this is the only one where I am currently getting this error.
For example:
Only Cat is showing up for translation and not bath and yellow. There are many sections with identical code where all words get translated, but perhaps something happened to confuse Renpy, maybe lines got moved or something.
The translated file looks like this:
From what I can see, Cat is on line 51 now, but in the translated file it says 49, lines 52 and 53 have not been translated and won't update (perhaps I need to click a different option in the Generate Translations menu).
Also, the more I check this line, it also seems to give me out of memory errors, especially if I try to screenshot it.
This is an unaffected section of code that translates properly (minus the issues with voice detailed below):
I can't see much of a difference, but I assume it might have been related to line number changes or something.
This method for translating the voice is also not working, although I was able to translate text used as a variable, for some reason it is not working for voice files. They come up in the translation document, but it just plays the English audio. :/
Any ideas, suggestions or feedback would be warmly welcomed. Thank you for taking the time to read this.
(formatting is still a work in progress)
Out of about 20 similar screens, I think this is the only one where I am currently getting this error.
For example:
Code: Select all
L49 $ quiz_voice = _("01.ogg")
L50 # commented text here
L51 $ my_list = [{"txt":_("Cat"), "pos":(1030), "to_find":True},
L52 {"txt":_("bath"), "pos":(830), "to_find":False},
L53 {"txt":_("yellow"), "pos":(630), "to_find":False},
L54 ]
The translated file looks like this:
Code: Select all
# quiz2.rpy:47
old "01.ogg"
new "t01.ogg"
# quiz2.rpy:49
old "Cat"
new "貓咪"
# quiz2.rpy:58
...
Also, the more I check this line, it also seems to give me out of memory errors, especially if I try to screenshot it.
This is an unaffected section of code that translates properly (minus the issues with voice detailed below):
Code: Select all
$ my_list = [{"txt":_("white"), "pos":(1030), "to_find":False},
{"txt":_("slow"), "pos":(830), "to_find":False},
{"txt":_("brown"), "pos":(630), "to_find":True},
]
This method for translating the voice is also not working, although I was able to translate text used as a variable, for some reason it is not working for voice files. They come up in the translation document, but it just plays the English audio. :/
Any ideas, suggestions or feedback would be warmly welcomed. Thank you for taking the time to read this.