Multilanguage Ren'Py Game

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
User avatar
M0ti
Regular
Posts: 66
Joined: Mon Aug 15, 2011 1:06 pm
Contact:

Multilanguage Ren'Py Game

#1 Post by M0ti » Thu Apr 05, 2012 6:25 pm

What is the best way to create a multi-language game?

IE I would choose from more languages on the start (english, german, czech, ...).

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Multilanguage Ren'Py Game

#2 Post by nyaatrap » Thu Apr 05, 2012 8:30 pm

I'm planning to use this action, with a file created with this method. Didn't coded yet though.

User avatar
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

#3 Post by PyTom » Thu Apr 05, 2012 8:32 pm

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
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Multilanguage Ren'Py Game

#4 Post by nyaatrap » Sat Apr 07, 2012 10:29 am

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?

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")]

User avatar
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

#5 Post by PyTom » Sat Apr 07, 2012 11:14 am

What's the error you're getting?

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
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Multilanguage Ren'Py Game

#6 Post by nyaatrap » Sat Apr 07, 2012 7:00 pm

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.

User avatar
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

#7 Post by PyTom » Tue Apr 17, 2012 9:18 pm

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
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: Bing [Bot]