In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
-
SileNTViP
- Newbie
- Posts: 7
- Joined: Sat May 23, 2020 4:34 pm
-
Contact:
#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"...
-
Beuc
- Regular
- Posts: 85
- Joined: Sat Sep 29, 2018 3:38 pm
-
Contact:
#32
Post
by Beuc » Tue Sep 01, 2020 5:38 pm
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" ?
-
SileNTViP
- Newbie
- Posts: 7
- Joined: Sat May 23, 2020 4:34 pm
-
Contact:
#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.
-
Beuc
- Regular
- Posts: 85
- Joined: Sat Sep 29, 2018 3:38 pm
-
Contact:
#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.
-
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:
#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.
-
Beuc
- Regular
- Posts: 85
- Joined: Sat Sep 29, 2018 3:38 pm
-
Contact:
#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.
-
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:
#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.
-
Beuc
- Regular
- Posts: 85
- Joined: Sat Sep 29, 2018 3:38 pm
-
Contact:
#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?
-
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:
#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.
-
Beuc
- Regular
- Posts: 85
- Joined: Sat Sep 29, 2018 3:38 pm
-
Contact:
#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.
-
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:
#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.
-
Beuc
- Regular
- Posts: 85
- Joined: Sat Sep 29, 2018 3:38 pm
-
Contact:
#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 ("").
-
jesusalva
- Regular
- Posts: 88
- Joined: Mon Jul 22, 2013 5:05 pm
- Organization: Software in Public Interest, Inc.
- IRC Nick: jesusalva
- Github: pazkero
- itch: tmw2
- Location: Brazil
- Discord: Jesusalva#4449
-
Contact:
#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: 7
- Joined: Sat May 23, 2020 4:34 pm
-
Contact:
#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" "Держу пари, он мечтает о учителе! Учитель питомец! Учитель питомец!"
-
Neyunse
- Newbie
- Posts: 7
- Joined: Fri Aug 17, 2018 7:08 pm
- Projects: Roses Of Love
- Organization: KagariSoft
- Github: Neyunse
- itch: KagariSoft
- Location: Argentina
-
Contact:
#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
Users browsing this forum: No registered users