博德之门3v1.12026年10月12日 更新

BG3 script translator

BG3 Script Translator --- Description BG3 Script Translator is a cross-platform localization tool that automatically translates Baldur's Gate 3 mod files to any language using Google Translate. Whether you want to play a mod in your native language or share your own mod with a global audience, this tool handles the heavy lifting: it extracts .pak files, translates .loca and .xml localization data, protects game tags and placeholders, and repacks everything back into a working .pak — all in a few

BG3 Script Translator


Description

BG3 Script Translator is a cross-platform localization tool that automatically translates Baldur's Gate 3 mod files to any language using Google Translate.

Whether you want to play a mod in your native language or share your own mod with a global audience, this tool handles the heavy lifting: it extracts .pak files, translates .loca and .xml localization data, protects game tags and placeholders, and repacks everything back into a working .pak — all in a few clicks.

No manual file editing. No external converters. Just select your mod, pick a language, and translate.


Installation Instructions

IMPORTANT: The setup.bat / setup.sh scripts automatically create a Python virtual environment (venv) in the script's folder. You do NOT need to create it manually.

TROUBLESHOOTING: If setup.bat fails silently (no venv folder appears):

  • Try running it as Administrator
  • Extract the ZIP to a folder without special characters/spaces (e.g. *C:\BG3Translator*)
  • Or create the venv manually via terminal:

cd "C:\Path\To\Translator"  <-- change to your folder

python -m venv venv

venv\Scripts\pip install -r requirements.txt

Windows

  • Download and install Python 3.8+ from python.org
  • Check "Add Python to PATH" during installation
  • Extract the translator ZIP to any folder
  • Double-click setup.bat to install dependencies (this creates the venv automatically)
  • Open a terminal in the script folder and run:

venv\Scripts\python tradutor_bg3_gui.py

Linux (Bazzite / Fedora / Debian / Arch)


# 1. Extract the translator

# 2. Run the installer (creates venv automatically)

chmod +x setup.sh

./setup.sh

# 3. Launch

venv/bin/python3 tradutor_bg3_gui.py

Optional: Generate Standalone .exe (Windows Only)

If you want to share the tool without requiring Python:

  • Double-click build_exe.bat
  • Two files will be generated:
  • Tradutor_BG3.exe — CLI version
  • Tradutor_BG3_GUI.exe — GUI version (no terminal window)
  • Share these .exe files — no Python installation needed!

Main Features

  • Modern Dark GUI — Clean, responsive interface built with CustomTkinter
  • CLI Mode — Full terminal support for scripting and automation
  • .pak Extraction & Repacking — Works natively on Windows; on Linux, auto-detects Bottles/Wine
  • Batch Translation — Translate an entire folder of mods in one run
  • Auto Language Detection — Detects source language from folder names (English/, Spanish/, Japanese/, etc.)
  • Built-in LOCA Converter — Convert .loca / .locas ↔ XML without external tools
  • Tag Protection — Preserves <content>, LSTags, placeholders [1], and line breaks during translation
  • Persistent Config — Saves your settings to JSON in the script folder
  • Multilingual UI — Interface available in Portuguese, English, and Spanish
  • Automatic Backups — Original .pak files are saved to a _backups/ folder before overwriting
  • Silent Operations — On Windows, no CMD windows flash during .pak extraction or repacking
  • Cross-Platform — Windows (native) and Linux (via Bottles Flatpak)

Requirements

  • Python 3.8 or newer
  • Internet connection (for Google Translate API)
  • LSLib / Divine.exe — Only needed if translating .pak files directly
  • Download: Norbyte/lslib
  • On Linux: Bottles with dotnetcoredesktop8 dependency

Python Dependencies (auto-installed by setup scripts)


deep-translator>=1.11.0

customtkinter>=5.2.0

Shout Outs

  • Norbyte — For LSLib, the essential toolkit for BG3 modding that powers .pak extraction and repacking
  • Google Translate — Via deep-translator by Nidhaloff
  • CustomTkinter — For the modern, dark-themed GUI components
  • My girlfriend — For testing on Windows

Links

来源与文件

  • 原作者:Frontiel
  • 原项目:BG3 script translator
  • 文件:Bg3 Script Translator 1.0.1(ID:123233)

前往 N 网打开所选文件。安装与下载要求以原作者及平台说明为准。

<!-- aoe-mods-source:nexusmods:baldursgate3:23203 -->

下载模块

共 1 个来源
立即下载推荐来源
前往下载