Add menu language
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.
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.
Add menu language
Hello, I wanted to translate a game, it was in English and Russian and I want to put it in French, but cannot add the French language in the menu? I enclose you the original screens and the one I added tell me if I made a mistake and where? Thank you
I have this error when launching the game.
"I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/screens.rpy", line 818: Tab characters are not allowed in Ren'Py scripts."
I have this error when launching the game.
"I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/screens.rpy", line 818: Tab characters are not allowed in Ren'Py scripts."
- laure44
- Regular
- Posts: 60
- Joined: Mon Mar 08, 2021 10:55 pm
- Projects: Arkan'sTower, Gemshine Lorelei!
- Location: France
- Contact:
Re: Add menu language
Hey there,
This kind of error happens when you use tab on certain text editors. You can simply remove tab characters from line 818. In your case, I assume those are the spaces at the beginning of this line.
You can replace the tab spaces with real spaces, then it should work.
I've never used Notepad++, but I heard that this editor use tab spaces for indentation when creating new lines. Maybe you can configure the editor to prevent that, or just use another another editor.
This kind of error happens when you use tab on certain text editors. You can simply remove tab characters from line 818. In your case, I assume those are the spaces at the beginning of this line.
You can replace the tab spaces with real spaces, then it should work.
I've never used Notepad++, but I heard that this editor use tab spaces for indentation when creating new lines. Maybe you can configure the editor to prevent that, or just use another another editor.
Re: Add menu language
Hello, thanks its working, but I have another problem as soon as I translate the text of the game, and there are accents é to or î it replaces it with an empty space in the game, do you know what to do ? thank you
- laure44
- Regular
- Posts: 60
- Joined: Mon Mar 08, 2021 10:55 pm
- Projects: Arkan'sTower, Gemshine Lorelei!
- Location: France
- Contact:
Re: Add menu language
Hey there,
This is most likely because the font you're using doesn't support accents.
This is most likely because the font you're using doesn't support accents.
Re: Add menu language
However I use the same font on another game that I translate at the same time and the accents work
- laure44
- Regular
- Posts: 60
- Joined: Mon Mar 08, 2021 10:55 pm
- Projects: Arkan'sTower, Gemshine Lorelei!
- Location: France
- Contact:
Re: Add menu language
Strange. If you temporarily switch your font to the default one, do the special characters show up?
Also, could you put the link to the download page for your font (if there is one) please?
Also, could you put the link to the download page for your font (if there is one) please?
Re: Add menu language
is that right to change the font?
- laure44
- Regular
- Posts: 60
- Joined: Mon Mar 08, 2021 10:55 pm
- Projects: Arkan'sTower, Gemshine Lorelei!
- Location: France
- Contact:
Re: Add menu language
I meant the font you are using for your game, probably a .ttf or .otf file somewhere in your game folder.
You can replace the font in the game in gui.rpy
What happens if you replace this line in gui.rpy :
with a default font, such as "DejaVuSans.ttf"? Do the accents work?
You can replace the font in the game in gui.rpy
What happens if you replace this line in gui.rpy :
Code: Select all
define gui.text_font = ...Re: Add menu language
Thanks or its working, the font was 'cihuy.regular.ttf'
Who is online
Users browsing this forum: Bing [Bot], Google [Bot]