Summertime Saga: Translating the game (Guide)

PostingBot

VIP Member
Joined:Apr 9, 2022
Messages:68,135
Reaction score:8,648
Points:113
Credits
0
Hi there,

I've seen people ask for translations for the game for the longest time, and we're on our way to create something more official, using crowdsourced translations. But, in the meantime, if you wish to translate the game, there are several tools at your disposal :

Calling labels, and how the game does it :

The game has a function in the Game class to select different dialogues based on the language class attribute defined there. To change that attribute, it's just a matter of writing this piece of code in a separate ".rpy" file.

Python:
Code:
Please, Log in or Register to view codes content!
The game will then, every time a dialogue is called, look for the label name + the language string at the end. For instance, the label "bank_liu_account_info" has the english version in, to overwrite that dialogue, you'd have "bank_liu_account_info_fr" or "bank_liu_account_info_es" depending on the value of the language string.

This method can be used to translate any normal dialogues in the game.

For cutscenes :

For cutscenes, every cutscene uses the "FilteredText" displayable, which means that you have to set "config.say_menu_text_filter" to a function that will take the original string as an argument, and returned a changed string.
Python:
Code:
Please, Log in or Register to view codes content!
Keep in mind that renpy won't handle dicts that are too large, if so, you can split the dictionnaries in several smallers dicts, and change the function like so :

Python:
Code:
Please, Log in or Register to view codes content!
Happy translating.
 

Personalize

Top Bottom