Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

Hi, I've come here to bring up an issue regarding the translation function for the captiontool. Whenever you change the language and change it back, the language captions remain the same...

For example, I selected the test language here. The captions change as intended, but when I change it back to English, they stay the same.

I'm on Ren'py 7.4.11.2266

(1 edit)

i think that's an issue with renpy not reinitialising language settings upon load. (you'll find the same issue if you play around with languages and try to load a language with font A from a language with font B, where A and B don't support the same characters.) 

it shouldn't be an issue if you start the game normally after changing the language.

Seems like it's a better idea to tie it to a persistent value and have separate sets of captions for each language, rather than let Renpy's translation function do the work, the captiontool in my game is very buggy regarding the translation function. 

I'm taking a look into this myself and trying to find a way, but I'd like your word on it, thanks :D

textbutton "English" action Language(None), SetField(persistent, "lang", "english")
textbutton "日本語" action  Language("japanese"), SetField(persistent, "lang", "japanese")

i'm honestly not sure why yours is very buggy as i've published games with captions in multiple languages with no big issues, but please feel free to modify the code to fit your use!