Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Tue Jun 18, 2013 8:33 pm

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Fri Mar 02, 2012 5:15 am 
Crawling Chaos
User avatar

Joined: Mon Feb 13, 2012 5:37 am
Posts: 1148
Location: Kimashi Tower, Japan
Completed: SMAR,AAA
Projects: DMC
Hi :D
I 'm trying to make a translation file with this way, but sadly I have no clue about the line 2;
Quote:
Set the RENPY_UPDATE_TRANSLATIONS environment variable to a non-empty string.
What does it mean and how to do it? Thanks :)

_________________


Top
 Profile Send private message  
 
PostPosted: Fri Mar 02, 2012 12:14 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10848
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Put the line:

RENPY_UPDATE_TRANSLATIONS="true"

into the environment.txt file in the same directory as renpy.exe.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Fri Mar 02, 2012 12:48 pm 
Crawling Chaos
User avatar

Joined: Mon Feb 13, 2012 5:37 am
Posts: 1148
Location: Kimashi Tower, Japan
Completed: SMAR,AAA
Projects: DMC
Yey It works now.
Thanks PyTom :D

_________________


Top
 Profile Send private message  
 
PostPosted: Sat Mar 03, 2012 1:54 am 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10848
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Note that this hasn't been tested much - so if you hit problems, please let me know.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Mon Mar 12, 2012 6:11 am 
Crawling Chaos
User avatar

Joined: Mon Feb 13, 2012 5:37 am
Posts: 1148
Location: Kimashi Tower, Japan
Completed: SMAR,AAA
Projects: DMC
It's working without any problem so far, but could I ask one thing?
Is it possible to archive/encrypt .rpt files not to be seen by users?

_________________


Top
 Profile Send private message  
 
PostPosted: Tue Mar 13, 2012 2:03 am 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10848
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
You should be able to archive the translation file.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Tue Mar 13, 2012 2:43 am 
Crawling Chaos
User avatar

Joined: Mon Feb 13, 2012 5:37 am
Posts: 1148
Location: Kimashi Tower, Japan
Completed: SMAR,AAA
Projects: DMC
Thank you :) I'll try after the first draft is done.

_________________


Top
 Profile Send private message  
 
PostPosted: Mon Apr 16, 2012 8:58 am 
Crawling Chaos
User avatar

Joined: Mon Feb 13, 2012 5:37 am
Posts: 1148
Location: Kimashi Tower, Japan
Completed: SMAR,AAA
Projects: DMC
It seems Update-Translation couldn't read \n at the end of the dialogue.
Code:
screen test:
    default tt = Tooltip("something\n")
    text tt.value

But on the transltions.rtp, it's written "something" without \n.

_________________


Top
 Profile Send private message  
 
PostPosted: Mon Apr 16, 2012 7:05 pm 
Regular
User avatar

Joined: Fri Apr 13, 2012 2:22 am
Posts: 31
Location: Brasil
Hi.
I can make my translation.rpt.
But... how i select run the original text or the translated? the original file is write in Portuguese.

I tried define the language in options.rpy with Language("en") and create a en.rpt
The English file are not filled, but translations.rpy.

The text loaded, with the Languages("en") or Language(None) is the from translations.rpt, i can't load the original text.

If i can have only one translation file, i can have only two languages?

What i'm doing wrong?


Top
 Profile Send private message  
 
PostPosted: Mon Apr 16, 2012 8:11 pm 
Crawling Chaos
User avatar

Joined: Mon Feb 13, 2012 5:37 am
Posts: 1148
Location: Kimashi Tower, Japan
Completed: SMAR,AAA
Projects: DMC
What I'm doing is; adding this code on the screen.rpy.
Code:
screen preferences:
                frame
                    has vbox
                    label _("Language")
                    textbutton _("English") action Language("en") # it should be en.rpt
                    textbutton _("Japanese") action Language("non") # it doesn't pick any files, therefore the original


The current problem this way has is it couldn't change the font setting. Fixed.

_________________


Last edited by nyaatrap on Sat Apr 21, 2012 7:30 pm, edited 1 time in total.

Top
 Profile Send private message  
 
PostPosted: Mon Apr 16, 2012 8:26 pm 
Regular
User avatar

Joined: Fri Apr 13, 2012 2:22 am
Posts: 31
Location: Brasil
Realy thank you nyaatrap.

It's working perfectly now.


Top
 Profile Send private message  
 
PostPosted: Sat Apr 21, 2012 1:22 pm 
Veteran
User avatar

Joined: Thu Jun 09, 2011 8:14 pm
Posts: 220
Really interesting. Translation is a thing becoming really imortant in the French communhity (they just are opening to the VN thing), and that kind of thing is really better than directly write in the script the translation.

Oh, and, it could be also a voice patch no ?
Like, you replace every sentence by the sentence + the voice line. It will be replaced in the script and everything would work well... I think so...

_________________
Image
Seeking creativity, mostly on the music side of things.
http://soundcloud.com/ziassan


Top
 Profile Send private message  
 
PostPosted: Wed Apr 25, 2012 8:17 pm 
Crawling Chaos
User avatar

Joined: Mon Feb 13, 2012 5:37 am
Posts: 1148
Location: Kimashi Tower, Japan
Completed: SMAR,AAA
Projects: DMC
A new question !
How to change the translation file inside the python block? Like:
Code:
python:
    if persistent.lang == "en":
        Language = "english.rpt" #of course it's a wrong code

_________________


Top
 Profile Send private message  
 
PostPosted: Wed Apr 25, 2012 11:22 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10848
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
An action is just a python function, so call it - like this:

Code:
python:
    Language("english")()


Note that language changing is a relatively violent process. It triggers a quasi-rollback - so it should be the last thing that happens in the python block. Code after it won't run.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Thu Apr 26, 2012 2:15 am 
Crawling Chaos
User avatar

Joined: Mon Feb 13, 2012 5:37 am
Posts: 1148
Location: Kimashi Tower, Japan
Completed: SMAR,AAA
Projects: DMC
Thanks a millions times!

_________________


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: DestinyFailsUs, trooper6


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group