Ren'Py Translator ToolKit

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Message
Author
SileNTViP
Newbie
Posts: 6
Joined: Sat May 23, 2020 4:34 pm
Contact:

Re: Ren'Py Translator ToolKit

#31 Post by SileNTViP » Tue Sep 01, 2020 2:54 pm

Hi.
Sometimes tool can't export text with error:

Code: Select all

  File "game/screens.rpy", line 113, in _execute_python_hide
    os.path.join(outdir, os.path.basename(store.projectpath) + '-' + store.language + '.po'))
Exception: ('Invalid language', u'English')
or if language name "eng"...

User avatar
Beuc
Regular
Posts: 84
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py Translator ToolKit

#32 Post by Beuc » Tue Sep 01, 2020 5:38 pm

Hi,

First:
alpha.png
why are you manipulating languages with invalid names?

> or if language name "eng"...

Can you explain a little more what's wrong with "eng" ?

SileNTViP
Newbie
Posts: 6
Joined: Sat May 23, 2020 4:34 pm
Contact:

Re: Ren'Py Translator ToolKit

#33 Post by SileNTViP » Thu Sep 24, 2020 1:24 pm

Beuc wrote:
Tue Sep 01, 2020 5:38 pm
why are you manipulating languages with invalid names?
It's not me. Games autors make this and some autors of translations ) Game and SDK work with this files normally.

User avatar
Beuc
Regular
Posts: 84
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py Translator ToolKit

#34 Post by Beuc » Sat Oct 10, 2020 5:41 am

v1.7 is out!
It relaxes language name checks, improves error reporting and documentation.

User avatar
Prandygame
Newbie
Posts: 16
Joined: Tue Oct 06, 2020 10:10 pm
Completed: Romance Dimensional
Projects: Romance Dimensional 2
Organization: Prandy Game
itch: prandygame.itch.io
Contact:

Re: Ren'Py Translator ToolKit

#35 Post by Prandygame » Thu Nov 05, 2020 4:27 pm

Beuc wrote:
Sat Oct 10, 2020 5:41 am
v1.7 is out!
It relaxes language name checks, improves error reporting and documentation.
Hello, can I translate from Spanish to English? If so, I would like you to clarify the steps, since I do not understand the translation very well, if it were something more automated and less manual, I would feel more comfortable.
My first game made in Renpy check it out.
https://prandygame.itch.io/visual-novel-romance

User avatar
Beuc
Regular
Posts: 84
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py Translator ToolKit

#36 Post by Beuc » Fri Nov 06, 2020 10:14 am

You can translate from any language to any language :)

This is a converter between the Ren'Py translation system and the PO translation system, so this can't be automated much more.

User avatar
Prandygame
Newbie
Posts: 16
Joined: Tue Oct 06, 2020 10:10 pm
Completed: Romance Dimensional
Projects: Romance Dimensional 2
Organization: Prandy Game
itch: prandygame.itch.io
Contact:

Re: Ren'Py Translator ToolKit

#37 Post by Prandygame » Sun Nov 22, 2020 11:49 pm

Beuc wrote:
Fri Nov 06, 2020 10:14 am
You can translate from any language to any language :)

This is a converter between the Ren'Py translation system and the PO translation system, so this can't be automated much more.
Is there a video tutorial? the steps to follow would be a little clearer.
My first game made in Renpy check it out.
https://prandygame.itch.io/visual-novel-romance

User avatar
Beuc
Regular
Posts: 84
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py Translator ToolKit

#38 Post by Beuc » Mon Nov 23, 2020 11:11 am

I clarified the install instructions a bit in the original post.
Would you like to contribute a video tutorial?

User avatar
Prandygame
Newbie
Posts: 16
Joined: Tue Oct 06, 2020 10:10 pm
Completed: Romance Dimensional
Projects: Romance Dimensional 2
Organization: Prandy Game
itch: prandygame.itch.io
Contact:

Re: Ren'Py Translator ToolKit

#39 Post by Prandygame » Wed Nov 25, 2020 4:04 pm

Beuc wrote:
Mon Nov 23, 2020 11:11 am
I clarified the install instructions a bit in the original post.
Would you like to contribute a video tutorial?
Lo haría si entendiera claramente los pasos a seguir, no hablo ingles, pienso que tal vez el traductor esta haciendo de la suyas en la traducción de la documentación o bien yo mismo me estoy complicando, pero tal vez con un video aprendería muy bien.
My first game made in Renpy check it out.
https://prandygame.itch.io/visual-novel-romance

User avatar
Beuc
Regular
Posts: 84
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py Translator ToolKit

#40 Post by Beuc » Thu Nov 26, 2020 1:00 pm

I see, I'll try to come with a more visual documentation when time permits.

User avatar
Prandygame
Newbie
Posts: 16
Joined: Tue Oct 06, 2020 10:10 pm
Completed: Romance Dimensional
Projects: Romance Dimensional 2
Organization: Prandy Game
itch: prandygame.itch.io
Contact:

Re: Ren'Py Translator ToolKit

#41 Post by Prandygame » Sat Nov 28, 2020 10:53 pm

Beuc wrote:
Thu Nov 26, 2020 1:00 pm
I see, I'll try to come with a more visual documentation when time permits.
It would be great, I look forward to it.
My first game made in Renpy check it out.
https://prandygame.itch.io/visual-novel-romance

User avatar
Beuc
Regular
Posts: 84
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py Translator ToolKit

#42 Post by Beuc » Sat Dec 05, 2020 7:06 am

v1.8 is out!
In addition to a few clean-ups, it improves strings order (so Ren'Py engine strings don't stand in the middle of the catalog), and avoids unexpected gettext catalog info when translating an empty string ("").

User avatar
jesusalva
Regular
Posts: 87
Joined: Mon Jul 22, 2013 5:05 pm
Organization: The Mana World
IRC Nick: jesusalva
Github: pazkero
Location: Brazil
Discord: Jesusalva#4449
Contact:

Re: Ren'Py Translator ToolKit

#43 Post by jesusalva » Tue May 18, 2021 1:28 pm

Just a heads-up if anyone gets an IOError: [Errno 2] No translation file found for domain: 'game'

The toolkit generates languages based on the LANG environment variable, but that is the last variable in the gettext priority.

gettext loads them in this order: LANGUAGE, LC_ALL, LC_MESSAGES, and only then LANG

If the contents of LANG are not in either of the previous, an IOError will show up. Temporarily changing the LANGUAGE environment variable or the LANG can do the trick. As for myself, I removed the ".UTF-8" which was present on LANG but not on LANGUAGE.
Jesusaves/Jesusalva

SileNTViP
Newbie
Posts: 6
Joined: Sat May 23, 2020 4:34 pm
Contact:

Re: Ren'Py Translator ToolKit

#44 Post by SileNTViP » Thu Jul 08, 2021 2:22 pm

Beuc. Hello again )
RTTK don't get "Another student" in .po and .pot file.
Example:

Code: Select all

# game/Scenes/introduction.rpy:110
translate russian introduction_1a64b9a7:

    # "Another student" "I bet he's dreaming about the teacher! Teacher's pet! Teacher's pet!"
    "Another student" "Держу пари, он мечтает о учителе! Учитель питомец! Учитель питомец!"

User avatar
Neyunse
Newbie
Posts: 6
Joined: Fri Aug 17, 2018 7:08 pm
Projects: Roses Of Love
Organization: KagariSoft
Github: Neyunse
itch: KagariSoft
Location: Argentina
Contact:

Re: Ren'Py Translator ToolKit

#45 Post by Neyunse » Mon Oct 25, 2021 1:50 pm

Beuc wrote:
Sun May 19, 2019 9:35 pm
renpy-ttk-1.7.png

The Ren'Py Translation ToolKit is a converter between the Ren'Py native translation format and a PO file, which is usable by editors such as Poedit.

Here's The Question imported in it:
poedit.png

The .po translation file can be easily synchronized whenever you want, including in the middle of game development.
Translations can then be injected back into your Ren'Py "tl" directory as needed.

How to run

Download and unzip renpy-ttk in your Ren'Py games folder, like one of your games, and start it using the Ren'Py Launcher:
renpy-ttk-launcher.png

Or you can run the Python scripts directly for easy automation.

Download: https://renpy.beuc.net/download/renpy-ttk-latest.zip ( v1.8 )

Documentation and source code: https://www.beuc.net/renpy-ttk/
Is it possible to separate the ".po" files from the common, screen files? I mean to translate only the dialogs and not all together.
example:
out/[game folder]/*.po
----------------------------------------------------
My Twitter: @Neyunse
My Discord: ねゆんせ#7916
----------------------------------------------------
KagariSoft Twitter: @KagariSoft
My Discord Server

Post Reply

Who is online

Users browsing this forum: No registered users