Stalker Translation XML TOOL is a Python-based tool that automatically translates your mod's XML files using “googletrans” or "DeepL".
This translation is automatically generated, It's a help, but may need proofreading and correction.
EXECUTABLE VERSION HERE => Moddb.com <= EXECUTABLE VERSION HERE
EXECUTABLE VERSION HERE => Moddb.com <= EXECUTABLE VERSION HERE
EXECUTABLE VERSION HERE => Moddb.com <= EXECUTABLE VERSION HERE
EXECUTABLE VERSION HERE => Moddb.com <= EXECUTABLE VERSION HERE
A bug? an error? or even a question?
Xml-tool.codsworth.fr
To run, this script requires PYTHON with Googletrans , DeepL, pick, colorama and tqdm.
Place your XML files (from the configs/text/XX/ folder) in the tool's “sources” folder.
Then run the script with the command prompt.
better_translation_for_these_words.txt
In some cases, words can be translated, but do not have to be.
For example, in French, ‘Mutated Corbeau' becomes ‘Corbeau muté'.
But ‘Corbeau mutant' would be more accurate in my opinion :)
Complete this file to avoid that.
never_that_in_my_files.txt
Occasionally, you may have unwanted characters inserted in the translations.
Add them here, so that they can be removed from the translations
never_translate_these_words.txt
In this file, indicate words that should NEVER be translated.
For example, in French ‘Garbage' becomes ‘Ordures'... Yeah, no thanks.
By adding ‘Garbage' to this file, Garbage REMAINS Garbage.
Add your own words :)
API_KEYS.txt
Place your API KEYs in this file.
Acutellemet, only DeepL requires an API key.
UPDATES
. 20 May 2024 [v3.2]
. Fix encoding errors in some cases.
. 20 May 2024 [v3.1]
.fix translation counting
. 20 May 2024 [v3.0]
. First implementation of ChatGPT. Please send us your feedback here : Xml-tool.codsworth.fr
. In the event of a file write error due to the encoding not matching the destination language, the Script will request a new encoding without raising an error.
. 18 May 2024 [v2.3]
. Fixed crash using UnofficialDeepL.
. Fixed link to Support.
. 17 May 2024 [v2.2]
. Your parameters are now saved! No need to reset them each time you launch the software.
. 16 May 204 [v.2.1]
.Corrects the display in the event of a file write error.
. 15 May 2024 [v2.0]
. First AI added: Llama
. 'UnofficialDeepl' added, enabling DeepL to be used without an API KEY. But may be slightly slower :)
. 18 more translation services added. Choose your favourite :)
- (argos, bing, caiyun, elia, hujiang, iciba, itranslate, languageWire, lingvanex,
modernMt, myMemory, papago, qqFanyi, qqTranSmart, reverso, sysTran, translateCom, yandex)
.14 May 2024 (Again) [v1.1]
- Just a quick fix for the ‘Skip existing files' function, sorry ;P
.14 May 2024 [v1.0]
- Rewriting the script.
- Add more encoding options.
- Adding of 3 configuration files to manage the final translation
- (better_translation_for_these_words.txt , never_that_in_my_files.txt ,never_translate_these_words.txt )
- Adding API_KEYS.txt files to enter your API keys (logic)
Эх...
Yes ?
Better to use DeepL, brain, hands & ChatGPT for good variants.
P.S. I still waiting for adding my port/adaptation of Apocalyptic Blowout Overhaul v.3.1 Lite for Old World Addon.
Hi! I'll look into adding DeepL, even if you have to add a credit card to get a key for the free version :') For Brain and Hands, do you have a link I can check?
Cool. I am currently working on a complete translation of the Anomaly XML files. This might help speed up the process.
Hi ! Remember to check to complete the "dont_translate_this.txt" file ;)
Hi! Can I use this tool to translate XML to Spanish?
if the XML files come from a ‘configs/text/xx’ folder, yeah!
Place the XML files in the ‘sources’ folder and run the script in the command prompt. Select ‘Translate’, then type ‘es’ to translate the files into Spanish. Let the script do its work, and when it's finished, retrieve the translated files in ‘results’.
Gracias! I mean, thank you!
With pleasure :)
Modding never ceases to amaze. No ideas, how people can deal with stupid tons of codes.. laziness, no wish etc can ruin this! a yes, again went off topic, sorry, but that tool is really great.
Pingouin is a French vernacular term for two species of auks, the lesser auk and the great auk; it is used colloquially to designate penguins. In English, it may refer to: Just thank you.
Haha, thank you for sharing the new knowledge!
Always a pleasure :P
Please record a video with subtitles on YouTube how it works and what it can do.
I don't think a video is really useful.
Simply run the script (py translate.py) in the command prompt.
Install the requirements (pip install -r requirements.txt)
And set the options from the menu. Place the files to be translated in ‘sources’ then click ‘Translate’, then indicate the destination language, and that's it :)
where to download all this?
To run, this script requires PYTHON with Googletrans , pick, colorama and tqdm.
and yet
DeepL
Download python ( Python.org ) and install.
Tick the boxes "Add python.exe to PATH" and "Use admin privileges".
Then download the tool here. Extract the archive. open the folder where the file ‘translate.py’ is located, open the command prompt here (right-click ‘Open in terminal’) and type ‘pip install -r requirements.txt’ then validate. They should install the required elements for you.
When you have finished, type ' py .\translate.py ' in the console.
And valid. Place your files to be translated in the ‘sources’ folder and choose the ‘translate’ option in the menu.
If you prefer, I'm uploading a version where you don't have to install anything, just run ‘translate.exe’ ( Moddb.com ) I'm just waiting for confirmation from ModDb.
God, I love you
Love you to !
Stylé bravo !
Merci :p. J'essaie de l'améliorer, d'ajouter des options / fonctions petit à petit.
La version exécutable, je pense que c'est le 1er truc que 90% des gens vont vouloir :) 10/10
bon courage pour la suite
Exactement, 110 dl pour l’exécutable yep !
Merci :)
really add TT language for translation?
The TT language is supported by Bing, Lingvanex, ModernMT MyMemory qqTranSmart Iciba Llama ChatGPT
Can someone let me know if this works with the dialogue expanded mods?
Moddb.com
Yes, simply place the text files (U.D.E 1.5.0\gamedata\configs\texteng) in the SOURCES folder, run the translation, and replace the old files with those in the RESULTS folder.