Skip to content

piplarsson/FS25_Language_Translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒ FS25 Language Translator

GitHub GitHub release GitHub stars GitHub issues License Python Platform

A professional translation tool for Farming Simulator 25 XML language files. Automatically translate your mod's language files to 26 different languages using DeepL and Google Translate.

๐Ÿ“ธ Screenshot

FS25 Language Translator

โœจ Features

  • ๐Ÿš€ Dual Translation Engines: Uses DeepL for high-quality translations with Google Translate as automatic fallback
  • ๐ŸŒ 26 Languages Supported: All official Farming Simulator 25 languages
  • ๐Ÿ”’ Secure API Storage: API keys stored securely in your system's credential manager
  • ๐ŸŽจ Modern Dark UI: Professional interface with real-time progress tracking
  • ๐Ÿ“ Smart File Handling: Drag & drop support with automatic source language detection
  • โšก Batch Processing: Translate to multiple languages simultaneously
  • ๐Ÿ›ก๏ธ Placeholder Protection: Preserves XML placeholders and format strings
  • ๐Ÿ“Š Live Progress: Real-time translation status and detailed logging

๐Ÿ“‹ Supported Languages

All official FS25 languages are supported:

Language Code Language Code
๐Ÿ‡ง๐Ÿ‡ท Portuguese (Brazil) l10n_br ๐Ÿ‡ณ๐Ÿ‡ฑ Dutch l10n_nl
๐Ÿ‡จ๐Ÿ‡ฟ Czech l10n_cs ๐Ÿ‡ณ๐Ÿ‡ด Norwegian l10n_no
๐Ÿ‡ฆ๐Ÿ‡ฉ Catalan l10n_ct ๐Ÿ‡ต๐Ÿ‡ฑ Polish l10n_pl
๐Ÿ‡ฉ๐Ÿ‡ฐ Danish l10n_da ๐Ÿ‡ต๐Ÿ‡น Portuguese (Portugal) l10n_pt
๐Ÿ‡ฉ๐Ÿ‡ช German l10n_de ๐Ÿ‡ท๐Ÿ‡ด Romanian l10n_ro
๐Ÿ‡ฒ๐Ÿ‡ฝ Spanish (Latin America) l10n_ea ๐Ÿ‡ท๐Ÿ‡บ Russian l10n_ru
๐Ÿ‡บ๐Ÿ‡ธ English l10n_en ๐Ÿ‡ธ๐Ÿ‡ช Swedish l10n_sv
๐Ÿ‡ช๐Ÿ‡ธ Spanish (Spain) l10n_es ๐Ÿ‡น๐Ÿ‡ท Turkish l10n_tr
๐Ÿ‡จ๐Ÿ‡ฆ French (Canada) l10n_fc ๐Ÿ‡บ๐Ÿ‡ฆ Ukrainian l10n_uk
๐Ÿ‡ซ๐Ÿ‡ฎ Finnish l10n_fi ๐Ÿ‡ป๐Ÿ‡ณ Vietnamese l10n_vi
๐Ÿ‡ซ๐Ÿ‡ท French (France) l10n_fr ๐Ÿ‡ญ๐Ÿ‡บ Hungarian l10n_hu
๐Ÿ‡ฎ๐Ÿ‡ฉ Indonesian l10n_id ๐Ÿ‡ฎ๐Ÿ‡น Italian l10n_it
๐Ÿ‡ฏ๐Ÿ‡ต Japanese l10n_jp ๐Ÿ‡ฐ๐Ÿ‡ท Korean l10n_kr

๐Ÿš€ Quick Start

Prerequisites

  • Python 3.9 or higher
  • Windows, macOS, or Linux

Installation

1. Clone the repository:

git clone https://github.com/piplarsson/FS25_Language_Translator.git
cd FS25_Language_Translator

2. Install dependencies:

pip install -r requirements.txt

3. Run the application:

python fs25_translator.py

๐Ÿ“– How to Use First Time Setup

Launch the application You'll be prompted to enter your DeepL API key (optional but recommended) The key is securely saved to your system's credential manager

Translating Files

Load your source file:

Drag & drop your l10n_*.xml file onto the application, or Click "Browse Files" to select your XML file

Select target languages:

Click "Select All" to translate to all languages, or Choose specific languages by checking their boxes

Start translation:

Click "โ–ถ Start Translation" Monitor progress in real-time Translations are saved to the l10n folder

Source Language The tool automatically detects the source language from your filename (e.g., l10n_en.xml โ†’ English). You can manually override this using the dropdown menu.

๐Ÿ”‘ API Keys

DeepL API (Recommended) For best translation quality, get a free DeepL API key:

Visit DeepL Pro API Sign up for a free account (500,000 characters/month) Copy your API key Enter it when prompted by the application

Google Translate Google Translate works automatically as a fallback - no API key required! Security Your API keys are stored securely using:

Windows: Windows Credential Manager macOS: macOS Keychain Linux: Secret Service API

See README_SECURITY.md for detailed security information.

๐Ÿ“ Project Structure

FS25_Language_Translator/
โ”œโ”€โ”€ fs25_translator.py       # Main application
โ”œโ”€โ”€ api_key_dialog.py        # API key input dialog
โ”œโ”€โ”€ api_key_manager.py       # Standalone key management tool
โ”œโ”€โ”€ requirements.txt         # Python dependencies
โ”œโ”€โ”€ README.md               # This file
โ”œโ”€โ”€ README_SECURITY.md      # Security documentation
โ””โ”€โ”€ icons/                  # Application icons
    โ”œโ”€โ”€ icon.ico           # Main icon
    โ””โ”€โ”€ flags/             # Country flag icons

๐Ÿ› ๏ธ Building Executable (Optional)

To create a standalone executable:

pip install pyinstaller
pyinstaller --onefile --windowed --icon=icons/icon.ico fs25_translator.py

The executable will be created in the dist folder.

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Fork the repository Create your feature branch (git checkout -b feature/AmazingFeature) Commit your changes (git commit -m 'Add some AmazingFeature') Push to the branch (git push origin feature/AmazingFeature) Open a Pull Request

๐Ÿ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

DeepL for excellent translation API Google Translate for fallback translations GIANTS Software for Farming Simulator 25 The modding community for inspiration and support

๐Ÿ› Troubleshooting

Common Issues "Failed to access secure storage"

Ensure your system's credential manager service is running On Windows: Check that Windows Credential Manager is enabled On macOS: Ensure Keychain Access is unlocked

"Translation failed" errors

Check your internet connection Verify your DeepL API key is valid Ensure you haven't exceeded API limits

XML parsing errors

Ensure your source XML file is valid Check for proper UTF-8 encoding Verify XML structure matches FS25 format

Getting Help

Create an Issue for bugs Check existing issues for solutions Read README_SECURITY.md for API key issues

๐Ÿ“Š Performance

Translates approximately 100-200 strings per minute DeepL provides higher quality for European languages Google Translate offers broader language support Batch processing reduces API calls

๐Ÿ”„ Updates

Check the Releases page for updates.

Made with โค๏ธ for the Farming Simulator modding community

Not affiliated with GIANTS Software GmbH

๐Ÿ‘จโ€๐Ÿ’ป Author

Created by Piplarsson

About

Professional translation tool for FS25 mods - Supports all 26 official FS25 languages - DeepL + Google Translate integration - Modern PyQt6 dark theme interface - Secure API key storage - Batch translation with progress tracking - Automatic source language detection

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors