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: 84
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py Translator ToolKit

#16 Post by Beuc » Sun May 24, 2020 10:01 am

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: 84
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py Translator ToolKit

#17 Post by Beuc » Sat May 30, 2020 6:47 am

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

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

Re: Ren'Py Translator ToolKit

#18 Post by OrsonDeWitt » Thu Jun 25, 2020 12:28 pm

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

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

Re: Ren'Py Translator ToolKit

#19 Post by Beuc » Thu Jun 25, 2020 12:45 pm

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: 31
Joined: Thu Dec 06, 2018 3:23 am
Contact:

Re: Ren'Py Translator ToolKit

#20 Post by OrsonDeWitt » Sat Jun 27, 2020 6:47 am

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?

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

Re: Ren'Py Translator ToolKit

#21 Post by Beuc » Sat Jun 27, 2020 7:45 am

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: 31
Joined: Thu Dec 06, 2018 3:23 am
Contact:

Re: Ren'Py Translator ToolKit

#22 Post by OrsonDeWitt » Sun Jun 28, 2020 4:52 pm

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.

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

Re: Ren'Py Translator ToolKit

#23 Post by Beuc » Fri Jul 10, 2020 8:22 am

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: 84
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py Translator ToolKit

#24 Post by Beuc » Sat Jul 25, 2020 12:29 pm

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: 5
Joined: Sat May 23, 2020 4:34 pm
Contact:

Re: Ren'Py Translator ToolKit

#25 Post by SileNTViP » Mon Aug 17, 2020 8:24 am

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: 84
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py Translator ToolKit

#26 Post by Beuc » Tue Aug 18, 2020 6:25 am

Hi.

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

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

Re: Ren'Py Translator ToolKit

#27 Post by Beuc » Wed Aug 19, 2020 7:16 pm

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: 5
Joined: Sat May 23, 2020 4:34 pm
Contact:

Re: Ren'Py Translator ToolKit

#28 Post by SileNTViP » Thu Aug 20, 2020 3:23 am

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: 84
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py Translator ToolKit

#29 Post by Beuc » Thu Aug 20, 2020 4:49 am

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: 84
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py Translator ToolKit

#30 Post by Beuc » Sat Aug 22, 2020 5:51 am

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