Can't Translate Povname Character

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
Dito K P
Newbie
Posts: 3
Joined: Thu Jul 04, 2019 4:51 am
Github: ditokp
Contact:

Can't Translate Povname Character

#1 Post by Dito K P »

Hello, I'm Dito. I'm making small VN, when player can write their name or using default name. Default name for my VN is "Aku" and then I translate the VN and I want the default name become "Me". But, when I play the game and change the language, the "Aku" character is not change to "Me". Other characters and dialogue is changing normally. I don't have any error message or traceback and I don't know why the character is not translated.

Screenshot:
My script:
Image

My translated script:
Image

Thank you for reading my problem and I'm sorry if my English is not good.

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Can't Translate Povname Character

#2 Post by PyTom »

You can use double underscore for this:

Code: Select all

if not povname:
     povname = __("Aku")
The double underscore function translates the string it's given as an argument.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Dito K P
Newbie
Posts: 3
Joined: Thu Jul 04, 2019 4:51 am
Github: ditokp
Contact:

Re: Can't Translate Povname Character

#3 Post by Dito K P »

PyTom wrote: Thu Jul 04, 2019 3:54 pm You can use double underscore for this:

Code: Select all

if not povname:
     povname = __("Aku")
The double underscore function translates the string it's given as an argument.
Thank you, but still same, not translated.

Dito K P
Newbie
Posts: 3
Joined: Thu Jul 04, 2019 4:51 am
Github: ditokp
Contact:

Re: Can't Translate Povname Character

#4 Post by Dito K P »

Hello, I don't know why, but today I test again, and it works. But when in the middle of the game and I change the language, the character name is not change. How to fix this?

Post Reply

Who is online

Users browsing this forum: No registered users