[Tool] renpy translator v2.2.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: 2
Joined: Mon Jan 22, 2024 7:49 am
Contact:

[Tool] renpy translator v2.2.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 ... 5f6d4fedc3

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 ... 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

Post Reply

Who is online

Users browsing this forum: No registered users