english_Hints.rpy
spanish_Hints.rpy
I ask this because I have already tried with
Code: Select all
_(" ")Code: Select all
__(" ")Thank you in advance
Code: Select all
_(" ")Code: Select all
__(" ")You can separate code in files however you like, but all files will be loaded by RenPy at startup. You will have to use translation framework to differentiate them.
Then you are using it wrong, because it works for me.DrBreath wrote: ↑Wed May 11, 2022 9:00 pmI ask this because I have already tried withandCode: Select all
_(" ")(which by the way I know how to use, it just doesn't work).Code: Select all
__(" ")
Yeah, what happens is that ifOcelot wrote: ↑Thu May 12, 2022 4:37 amYou can separate code in files however you like, but all files will be loaded by RenPy at startup. You will have to use translation framework to differentiate them.
Then you are using it wrong, because it works for me.DrBreath wrote: ↑Wed May 11, 2022 9:00 pmI ask this because I have already tried withandCode: Select all
_(" ")(which by the way I know how to use, it just doesn't work).Code: Select all
__(" ")
Code: Select all
_(" ")Code: Select all
__(" ")Sorry if it was not understood Dx, what I meant is that translations are generated but when testing the game it does not translate so what I want to do is to create a code for each language instead of generating translation files.m_from_space wrote: ↑Thu May 12, 2022 1:01 pmI would recommend reading all of this for making translations:
https://www.renpy.org/doc/html/translation.html
(I'm not sure I get the question, because Renpy will create separate translation files for other languages than the original game language you write the code in.)
What exactly is not working? Dialogue getting translated or other stuff like menus and strings that are not dialogue? If nothing works, then how exactly did you tell Renpy to activate the other language? Can you show some code?
What I can't translate is a menu, the translation is generated but it doesn't work inside the game and as for "how I told" renpy to activate the other language I used the classic one:m_from_space wrote: ↑Thu May 12, 2022 2:40 pmWhat exactly is not working? Dialogue getting translated or other stuff like menus and strings that are not dialogue? If nothing works, then how exactly did you tell Renpy to activate the other language? Can you show some code?
Code: Select all
vbox:
style_prefix "radio"
label _("Language")
textbutton _("English") action Language(None)
textbutton _("Spanish") action Language("spanish")Code: Select all
screen choice(items):
for i in items:
textbutton "» "+ i.caption + " «" action i.action
Code: Select all
screen choice(items):
for i in items:
textbutton "» [i.caption!t] «" action i.action
I will try it thank youm_from_space wrote: ↑Fri May 13, 2022 6:59 amI assume that your menu items are not translated, because you fiddled with the "choice" screen in screens.rpy? Because I did too and had to realize that whenever you add something to your menu entries (like quotation marks or some formatting) and want translation to work, you cannot just do:
But you have to write:Code: Select all
screen choice(items): for i in items: textbutton "» "+ i.caption + " «" action i.action
Code: Select all
screen choice(items): for i in items: textbutton "» [i.caption!t] «" action i.action
Users browsing this forum: Bing [Bot], Google [Bot], minyan