Translation doesn't work for save_name variable

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Keinart
Regular
Posts: 133
Joined: Sun May 13, 2012 8:28 pm
Completed: One Thousand Lies
Projects: Lotus Reverie
Organization: Keinart Lobre
Tumblr: keinart
itch: keinart
Location: Spain
Contact:

Translation doesn't work for save_name variable

#1 Post by Keinart » Mon Aug 10, 2015 3:51 pm

So I don't know if this may be due a new build of renpy or because I'm doing something wrong, but the game doesn't seem to translate the save_name variable for some reason when I put the name with _()

Example because my explanations sucks. I have this when a new chapter starts.

Code: Select all

$ save_name = _("Prólogo")
[...]
$ save_name = _("Cuento de un inicio")
[...]
Then in my translation script I get...

Code: Select all

    # game/script.rpy:592
    old "Prólogo"
    new "Prologue"

    # game/script.rpy:682
    old "Cuento de un inicio"
    new "Tale of a beginning"
But this won't work when actually saving and looking at the archive name. I guess I can always go and simply use if and else functions, but I don't understand why this particulary doesn't work.

Thanks you for your time!

Post Reply

Who is online

Users browsing this forum: No registered users