RenPy: Python .format translate

254 Views Asked by At

I'm creating a translation for a visual novel, and I can't translate the text with string formatting, does anyone know how to do this?

Code to translate:

$ gil_likes = "Teasing {0}, Basketball".format(Main)

The translation must be something like this:

old "Teasing Walter, Basketball" new "Дразнить Уолтера, Баскетбол"

I try to replace {0} with a specific name, but then the translation works only for that specific name, the problem is that the player can enter any name

0

There are 0 best solutions below