Translation problem with the imagebuttons.

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
DrBreath
Newbie
Posts: 9
Joined: Fri Apr 01, 2022 4:12 pm
Contact:

Translation problem with the imagebuttons.

#1 Post by DrBreath »

Hello!

As the topic says, the problem I have is that inside the game there are some imagebuttons that when you hover the cursor over them a text appears, and well, the problem with that is that for it to be translated I have to hover the cursor in the original language to see the original text and then I have to change the language and only then the translation is shown. And what I want to achieve is that this does not happen and that the text that appears after hovering the cursor is translated simply by changing the language in the menu.

To put it more simply, to see the translation I first have to see the text in its original language and then change the language and this only happens to me with the texts that appear when hovering over the imagebuttons (or text over an image).

Pd: I don't know much English so I used a translator (I apologize if you can't understand it).

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2402
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Translation problem with the imagebuttons.

#2 Post by Ocelot »

It seems that imagebutton code is not translation-friendly. Show code for imagenuttons and text that appears, and we will try to fix it.
< < insert Rick Cook quote here > >

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Translation problem with the imagebuttons.

#3 Post by Imperf3kt »

By the wording, it sounds like tooltips are being used
Have you made sure to wrap your tool top definitions so they can be translated?
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: No registered users