-
-
Notifications
You must be signed in to change notification settings - Fork 8
Developer Guide
Lord0fTurk edited this page Jan 11, 2026
·
4 revisions
This guide is for developers who want to modify RenLocalizer or build their own extensions.
-
src/core/: The heart of the application.-
translation_pipeline.py: Coordinates the entire process. -
parser.py: The Regex-based extractor. -
rpyc_reader.py: The AST-based binary unpickler.
-
-
src/gui/: PyQt6-based interface components. -
src/utils/: Common helpers, constants, and configuration logic. -
tools/: Independent scripts for testing and debugging specific modules.
Before submitting a PR, use the scripts in the tools/ folder to verify changes:
-
python tools/parser_smoke.py: Tests the regex parser against common patterns. -
python tools/performance_test.py: Benchmark translation speed. -
python tools/system_check.py: Verifies current environment compatibility.
- Inherit from
BaseTranslatorinsrc/core/translator.py. - Implement
translate_singleandtranslate_batch. - Add your engine to the factory in
src/core/translator.py. - Update
src/gui/tl_translate_dialog.pyto include the new option.
We use PyInstaller to create the Windows standalone versions.
pip install pyinstaller
pyinstaller RenLocalizer.specThe .spec file is pre-configured to include all assets, locales, and necessary hidden imports.
To add a new UI language:
- Copy
locales/en.jsontolocales/YOUR_LANG.json. - Translate all strings.
- The app will automatically detect the new file on startup!
- Advanced-Parsing
- RPA-Extraction
- Glossary-Management
- External-Translation-Memory — (NEW) Reuse translations across games
- Technical-Filtering
- Proxy-and-Rate-Limits
- Web-Google-Translate-Guide