Multilanguage Ren'Py Game
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.
Multilanguage Ren'Py Game
What is the best way to create a multi-language game?
IE I would choose from more languages on the start (english, german, czech, ...).
IE I would choose from more languages on the start (english, german, czech, ...).
- nyaatrap
- Crawling Chaos
- Posts: 1824
- Joined: Mon Feb 13, 2012 5:37 am
- Location: Kimashi Tower, Japan
- Contact:
Re: Multilanguage Ren'Py Game
I'm planning to use this action, with a file created with this method. Didn't coded yet though.
- PyTom
- Ren'Py Creator
- Posts: 15893
- 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: Multilanguage Ren'Py Game
Tool support is coming eventually. I'd really like it to be in the june release, even if it's hard to use.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- nyaatrap
- Crawling Chaos
- Posts: 1824
- Joined: Mon Feb 13, 2012 5:37 am
- Location: Kimashi Tower, Japan
- Contact:
Re: Multilanguage Ren'Py Game
Pardon me.
I got a trouble while I was coding translations.
When I try to use a list of action which have both StylePreference() and Language() in the screen language, StylePreference() couldn't work (without Language(), it works though).
Is there another way to change both fonts and languages at the same time? or do I miss something?
I got a trouble while I was coding translations.
When I try to use a list of action which have both StylePreference() and Language() in the screen language, StylePreference() couldn't work (without Language(), it works though).
Is there another way to change both fonts and languages at the same time? or do I miss something?
Code: Select all
init python:
renpy.register_style_preference("text", "en", style.default, "font", "english.ttf")
renpy.register_style_preference("text", "jp", style.default, "font", "japanese.ttf")
screen preferences:
label _("{b}{color=#fff}Language {/color}{/b}")
textbutton _("English") action [StylePreference("text", "en"), Language("none")]
textbutton _("Japanese") action [StylePreference("text", "jp"), Language("translations")]- PyTom
- Ren'Py Creator
- Posts: 15893
- 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: Multilanguage Ren'Py Game
What's the error you're getting?
I think problems are very possible here - this stuff hasn't been used very often.
I think problems are very possible here - this stuff hasn't been used very often.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- nyaatrap
- Crawling Chaos
- Posts: 1824
- Joined: Mon Feb 13, 2012 5:37 am
- Location: Kimashi Tower, Japan
- Contact:
Re: Multilanguage Ren'Py Game
There is no error.
When I use [StylePreference("text", "en"), Language("none")], it seems only Language("none") is activated. StylePreference("text","en") is completely ignored as if it only has just [Language("none")].
I confirmed [StylePreference("text","en")] itself can be activated stand alone.
When I use [StylePreference("text", "en"), Language("none")], it seems only Language("none") is activated. StylePreference("text","en") is completely ignored as if it only has just [Language("none")].
I confirmed [StylePreference("text","en")] itself can be activated stand alone.
- PyTom
- Ren'Py Creator
- Posts: 15893
- 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: Multilanguage Ren'Py Game
A fix for this will be in 6.13.12, due out shortly.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
Who is online
Users browsing this forum: Bing [Bot]

