[Tool] renpy translator v2.4.1 (open-source , support one key translate, local glossary and generate translation mod)

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
anonymousException
Newbie
Posts: 4
Joined: Mon Jan 22, 2024 7:49 am
Contact:

[Tool] renpy translator v2.4.1 (open-source , support one key translate, local glossary and generate translation mod)

#1 Post by anonymousException »

Introduce:

A translator for renpy based on multi tranlation engine supports extract untranslated words and translate

Image

Image

Image

One Key Translate

Support one key translate , just select the target language and the font file and the game will be translated automatically

https://github.com/anonymousException/r ... e19efa3c32

Pack Game(Generate Translation Mod)

Support pack game package based on [rpatool](https://github.com/shizmob/rpatool) , you can make a translation mod now

https://github.com/anonymousException/r ... 50cf03eedb

Translate with brower

https://github.com/anonymousException/r ... 9309fdfaad

https://github.com/anonymousException/r ... 78733dbd7d

https://github.com/anonymousException/r ... 6d7b8ae293

https://github.com/anonymousException/r ... 0f44907bbd

https://github.com/anonymousException/r ... a002e37d34

Convert To Html

https://github.com/anonymousException/r ... 5bc18b0549

Add Entrance

https://github.com/anonymousException/r ... 9307764d08

Runtime Extract (can extract only dialogues without unpacking the game and the format is block like official)

https://github.com/anonymousException/r ... 8fac8fe8bf

Unpack Game(through runtime hook which can bypass most encryption):

https://github.com/anonymousException/r ... 7d9305efc5

Editor Mode:

https://github.com/anonymousException/r ... df07d1bb6d

Local Glossary:

For advanced edit , it is recommended to use professional software such as EXCEL

This tool only supports loading and simple modifications

https://github.com/anonymousException/r ... 05644daa74

Imported Glossary format:
You should offer 2 columns :

Original : the words before replaced

Current(Replaced) : the words replaced

The first row should be the header (just for show you can rename them)
Image

Translate Files:

https://github.com/anonymousException/r ... 602fb3dc0a

Translate Directory:

https://github.com/anonymousException/r ... de62423367

Replace fonts:

https://github.com/anonymousException/r ... 47d923bef0

Extract File(s):

https://github.com/anonymousException/r ... 3a98538f02

Extract Directory(s)

https://github.com/anonymousException/r ... a6b181081c

Extract all extractable contents to tl directory and rename(if tl name is empty will just extracted to the tl directory):

https://github.com/anonymousException/r ... d219b55893

Supported Translation Engine:
Image

Target:
As you see the above translated contents. The original contents will be remained after translation.
If the contents are short of the original contents(behind the "#" as comment) , translation will not take effect on them
The reason why I made this tool is not to replace the real translator's work , but to help.
The translated contents will be not accurate enough due to auto google translation.
So the original contents will do the effect. You can re-translate the translated contents according to the original contents. And what you modified will not be replaced during next translation.
This tool also take care of the special symbols like "{}" "[]" and "<>" in untranslated contents

Features:
  • Completely free and open-source
  • Support Editor Mode to edit file
  • Supoort local glossary to improve translation
  • Support special symbols in untranslated contents like "{}" "[]" and "<>" , the contents in special symbols will not be translated.
Example:

Code: Select all

# untranslated contents:
# "Your name is [povname], right?"

# Chinese translated:
"你的名字是 [povname] ,对吗?"

# Japanese translated:
"あなたの名前は [povname] ですよね?"
  • Support extract the untranslated words ren'py engine has not discovered
  • Support input,brower and drag the file(s) and directory
  • Support translate/extract for single rpy file
  • Support translate/extract for all rpy files under directory
  • Support replace the fonts used by translated language
  • Support be compatible with the translated game that not translated by this translator. The translated contents before will be remained and just translate the untranslated contents
  • Support skip extract the extracted contents , need not to be worried about repeat extraction
For example , if the translation contents already exist in tl folder like :

Code: Select all

old "Hello"
new "こんにちは"
or :

Code: Select all

# game/xxx.rpy:1352
translate japanese role_lose_7489b947:

# "Hello"
"こんにちは"
Then "Hello" will not be extracted again
  • Support 108 kinds of language(Default Google Translation) , you can view the google support source and the google support target
  • Support remain the original words as comments after translation
  • Support real-time log output , you can check the progress about the translation
  • Support local proxy
  • Support multi translation engine : Google Translation from pygtrans , YouDao Translation , DeepL Translation,OpenAI Translation
Detail Tutorial:

https://github.com/anonymousException/r ... /tree/main

Translate Result:
Image
Image

Download:

https://github.com/anonymousException/r ... ses/latest
Attachments
supported_langauges.png
(154.28 KiB) Not downloaded yet
interface_v2.1.8.png
(160.73 KiB) Not downloaded yet
interface_editor.png
(164.12 KiB) Not downloaded yet
imported_local_glossary.png
(56.28 KiB) Not downloaded yet
supported_translation.png
(139.79 KiB) Not downloaded yet
game_language_translated.png
(195.95 KiB) Not downloaded yet
renpy_translator_translate_over.png
(139.93 KiB) Not downloaded yet

filvalente
Newbie
Posts: 2
Joined: Wed May 10, 2023 10:26 am
Contact:

Re: [Tool] renpy translator v2.4.1 (open-source , support one key translate, local glossary and generate translation mod

#2 Post by filvalente »

great tool, I will try it out and see what happens

Fynmorph
Newbie
Posts: 5
Joined: Fri May 14, 2021 5:54 pm
Contact:

Re: [Tool] renpy translator v2.4.1 (open-source , support one key translate, local glossary and generate translation mod

#3 Post by Fynmorph »

Looks interesting (though the formating of the post could be better lol).

It requires an .exe to work? So when we're developping, we need to build a windows distribution and then apply the program to it?

Also, what's YouDao? Are their translations better than google when the target language is Chinese?

anonymousException
Newbie
Posts: 4
Joined: Mon Jan 22, 2024 7:49 am
Contact:

Re: [Tool] renpy translator v2.4.1 (open-source , support one key translate, local glossary and generate translation mod

#4 Post by anonymousException »

Fynmorph wrote: Sat Jun 29, 2024 11:12 am Looks interesting (though the formating of the post could be better lol).

It requires an .exe to work? So when we're developping, we need to build a windows distribution and then apply the program to it?

Also, what's YouDao? Are their translations better than google when the target language is Chinese?
Unfortunately, it seems like that markdown format is not supported, a better view of the document locates on the readme in github
Release version can be found on github, it is not required to build the exe yourself
YouDao is a translation engine from china, it is also depends on the source language
Limited by document format, you can refer to https://github.com/anonymousException/renpy-translator to get the detailed information

AH13
Newbie
Posts: 2
Joined: Mon Sep 02, 2024 12:51 pm
Contact:

Re: [Tool] renpy translator v2.4.1 (open-source , support one key translate, local glossary and generate translation mod

#5 Post by AH13 »

Hello, I am new here, I would appreciate it if you could help me
My problem is that after the translation of the game from English to Persian, the language of the game was confused and incomprehensible. Is there a way to fix it? Thank you.
https://ibb.co/CJzJk2h

anonymousException
Newbie
Posts: 4
Joined: Mon Jan 22, 2024 7:49 am
Contact:

Re: [Tool] renpy translator v2.4.1 (open-source , support one key translate, local glossary and generate translation mod

#6 Post by anonymousException »

AH13 wrote: Mon Sep 02, 2024 12:56 pm Hello, I am new here, I would appreciate it if you could help me
My problem is that after the translation of the game from English to Persian, the language of the game was confused and incomprehensible. Is there a way to fix it? Thank you.
https://ibb.co/CJzJk2h
You need to offer a font file which support your target language (persian)
In One Key Translation Form, change the path of the default font
For persian, you can try the font file I offered :
Vazirmatn-Bold.zip
(65.72 KiB) Downloaded 13 times
which is extracted from https://github.com/rastikerdar/vazirmat ... ag/v33.003
Besides persian is a RTL language, do not forget to tick the RTL option

Image
Image
Attachments
1725336096752.png
(35.3 KiB) Not downloaded yet
1725335994804.png
(53.23 KiB) Not downloaded yet

AH13
Newbie
Posts: 2
Joined: Mon Sep 02, 2024 12:51 pm
Contact:

Re: [Tool] renpy translator v2.4.1 (open-source , support one key translate, local glossary and generate translation mod

#7 Post by AH13 »

anonymousException wrote: Tue Sep 03, 2024 3:06 am
AH13 wrote: Mon Sep 02, 2024 12:56 pm Hello, I am new here, I would appreciate it if you could help me
My problem is that after the translation of the game from English to Persian, the language of the game was confused and incomprehensible. Is there a way to fix it? Thank you.
https://ibb.co/CJzJk2h
You need to offer a font file which support your target language (persian)
In One Key Translation Form, change the path of the default font
For persian, you can try the font file I offered : Vazirmatn-Bold.zip
which is extracted from https://github.com/rastikerdar/vazirmat ... ag/v33.003
Besides persian is a RTL language, do not forget to tick the RTL option

Image
Image
Thank you very much for starting my work
I mentioned this problem in another forum and I think you answered me there

Post Reply

Who is online

Users browsing this forum: No registered users