I'm part of a small team writing a Ren'Py game where the player can choose the main character's gender. It has become quickly obvious that this will massively impact dialogues, and since we're French, I want to make sure I can write scripts in French while making them easy (for me or others) to translate.
The initial idea to solve this was simple:
Code: Select all
if male:
x "Es-tu prêt ?"
else:
x "Es-tu prête ?"
A bigger issue is that "C'est son sac" (gender neutral) translates either to "it's his bag" or "it's her bag", and I cannot write if statements for every possible language with gender differences.
A solution I saw while browsing the forums was using pronoun variables, like "his_or_her" but that doesn't cover cases like "prêt/prête" (and French has a lot of those), and it tries to replicate language features programmatically, which is bound to fail at some point.
My latest attempt involved using None translations: generating translations for French (our default project language), then moving them to the tl/None folder and keeping only the gendered dialogue, such as:
Code: Select all
translate None chapter_00_xxxx:
# x "Es-tu prêt ?"
if male:
x "Es-tu prêt ?"
else:
x "Es-tu prête ?"
If anyone has successfully implemented gender-specific dialogue in a way that's relatively easy to translate, your advice would be greatly appreciated!
Thanks for taking the time to read me
Zeroji