Page 3 of 4
Re: Ren'Py Translator ToolKit
Posted: Tue Sep 01, 2020 2:54 pm
by SileNTViP
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"...
Re: Ren'Py Translator ToolKit
Posted: Tue Sep 01, 2020 5:38 pm
by Beuc
Hi,
First:
why are you manipulating languages with invalid names?
> or if language name "eng"...
Can you explain a little more what's wrong with "eng" ?
Re: Ren'Py Translator ToolKit
Posted: Thu Sep 24, 2020 1:24 pm
by SileNTViP
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.
Re: Ren'Py Translator ToolKit
Posted: Sat Oct 10, 2020 5:41 am
by Beuc
v1.7 is out!
It relaxes language name checks, improves error reporting and documentation.
Re: Ren'Py Translator ToolKit
Posted: Thu Nov 05, 2020 4:27 pm
by Prandygame
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.
Re: Ren'Py Translator ToolKit
Posted: Fri Nov 06, 2020 10:14 am
by Beuc
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.
Re: Ren'Py Translator ToolKit
Posted: Sun Nov 22, 2020 11:49 pm
by Prandygame
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.
Re: Ren'Py Translator ToolKit
Posted: Mon Nov 23, 2020 11:11 am
by Beuc
I clarified the install instructions a bit in the original post.
Would you like to contribute a video tutorial?
Re: Ren'Py Translator ToolKit
Posted: Wed Nov 25, 2020 4:04 pm
by Prandygame
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.
Re: Ren'Py Translator ToolKit
Posted: Thu Nov 26, 2020 1:00 pm
by Beuc
I see, I'll try to come with a more visual documentation when time permits.
Re: Ren'Py Translator ToolKit
Posted: Sat Nov 28, 2020 10:53 pm
by Prandygame
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.
Re: Ren'Py Translator ToolKit
Posted: Sat Dec 05, 2020 7:06 am
by Beuc
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 ("").
Re: Ren'Py Translator ToolKit
Posted: Tue May 18, 2021 1:28 pm
by jesusalva
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.
Re: Ren'Py Translator ToolKit
Posted: Thu Jul 08, 2021 2:22 pm
by SileNTViP
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" "Держу пари, он мечтает о учителе! Учитель питомец! Учитель питомец!"
Re: Ren'Py Translator ToolKit
Posted: Mon Oct 25, 2021 1:50 pm
by Neyunse
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