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
User avatar
Beuc
Regular
Posts: 85
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py Translator ToolKit

#16 Post by Beuc »

Thanks for letting me know!
I didn't know about say arguments, this is quite tricky.

I believe I just fixed it in the development version of renpy-ttk: https://www.beuc.net/renpy-ttk/zip/trunk/download.zip
Let me know if this works for you!

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

Re: Ren'Py Translator ToolKit

#17 Post by Beuc »

I went ahead and released the fix as v1.4.
https://renpy.beuc.net/download/renpy-ttk-latest.zip

OrsonDeWitt
Regular
Posts: 45
Joined: Thu Dec 06, 2018 3:23 am
Contact:

Re: Ren'Py Translator ToolKit

#18 Post by OrsonDeWitt »

So I ran the tool and it created a folder "pot" in my game\tl directory which I cannot delete now for it says I need administrator rights to do so. It only contains one .rpy file
I cannot reply to messages anymore.
> Your IP has been blocked because it is blacklisted.

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

Re: Ren'Py Translator ToolKit

#19 Post by Beuc »

The tool creates the temporary "pot" work folder to gather the lines, and then removes it.
I'm not sure what happened here, maybe just re-run it.
Or run explorer as Administrator and remove the folder.

OrsonDeWitt
Regular
Posts: 45
Joined: Thu Dec 06, 2018 3:23 am
Contact:

Re: Ren'Py Translator ToolKit

#20 Post by OrsonDeWitt »

Hey, it seems to be working now. It's great! From what I understood it can even find the strings that have changed and update them, which renpy doesn't unless you delete the tile with the changes. Is that right?
Also, I've tried importing this .Po file into memoq, but it didn't allow me to export it as .mo. Is there no way to use this with memoq other than save .po through memoq, open with poedit and export as .mo?
I cannot reply to messages anymore.
> Your IP has been blocked because it is blacklisted.

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

Re: Ren'Py Translator ToolKit

#21 Post by Beuc »

Hi!

Yes the #1 feature is working progressively on an evolving game text.
Technically, when a line changes in Ren'Py, this drops the previous string and creates a new string in .po, and if they are similar, your PO tool will reuse the previous translation and mark it as "fuzzy" for you to check.
(the old string will be marked "OBSOLETE" in the tl/.rpy file if you want to clean-up but you don't have to.)


Currently renpy-ttk requires a .mo, or that the "msgfmt" tool is installed in your system (works on GNU/Linux and probably Mac, but not in stock Windows).
Looking again, I see that there's alternate tooling that could work from Ren'Py and do the .po->.mo conversion for you. I need to test, I'm adding that to my TODO list :)

OrsonDeWitt
Regular
Posts: 45
Joined: Thu Dec 06, 2018 3:23 am
Contact:

Re: Ren'Py Translator ToolKit

#22 Post by OrsonDeWitt »

Beuc wrote: Sat Jun 27, 2020 7:45 am Hi!
Thanks for your reply. Nice to hear you're working on it and that there's ways to improve! Eliminating the step of going through poedit would greatly improve quality of life for us, though the tool itself is already a godsend.
I cannot reply to messages anymore.
> Your IP has been blocked because it is blacklisted.

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

Re: Ren'Py Translator ToolKit

#23 Post by Beuc »

Hi,

Embedding a working .po->.mo converter was more involving than I thought but it's now done!

Would you mind testing the development version at:
https://www.beuc.net/renpy-ttk/zip/trunk/download.zip
give it a PO file and check if things work fine for you?

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

Re: Ren'Py Translator ToolKit

#24 Post by Beuc »

I released v1.5!

- Embed .po->.mo converter
- Fix start-up error when using fresh Ren'Py and/or unconfigured projects list
- Don't mark 'nvl clear' blocks as OBSOLETE

https://renpy.beuc.net/download/renpy-ttk-latest.zip

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

Re: Ren'Py Translator ToolKit

#25 Post by SileNTViP »

Hello again.
I found that some translators use "pass" in tl scripts. Tool can't get text from this files.
Error: TypeError: coercing to Unicode: need string or buffer, NoneType found

Code: Select all

# game/script.rpy:24945
translate russian cathytalkend_fa22b587:

    # a "Hey, there."
    pass

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

Re: Ren'Py Translator ToolKit

#26 Post by Beuc »

Hi.

It works for me.
Full trace and renpy-ttk version please, and PM me the full script.

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

Re: Ren'Py Translator ToolKit

#27 Post by Beuc »

Thanks SileNTViP for the additional info,
I think I tracked down the issue.

Can you test with:
https://www.beuc.net/renpy-ttk/zip/trunk/download.zip
and let me know if this works for you?

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

Re: Ren'Py Translator ToolKit

#28 Post by SileNTViP »

Thank you. It's work now. Also this bug when game autor add empty string in script "". RenPy SDK also generate TL script with empty ""...

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

Re: Ren'Py Translator ToolKit

#29 Post by Beuc »

SileNTViP wrote: Thu Aug 20, 2020 3:23 am Also this bug when game autor add empty string in script "". RenPy SDK also generate TL script with empty ""...
Hi,
Can you precise?
What is the problem, and what would you expect instead?

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

Re: Ren'Py Translator ToolKit

#30 Post by Beuc »

v1.6 is out!
It improves extracting existing game translations (tl2po) with better handling of comments and skipped translations.

Post Reply

Who is online

Users browsing this forum: No registered users