|
7 éve | |
---|---|---|
libs | 7 éve | |
src | 7 éve | |
.gitattributes | 7 éve | |
.gitignore | 7 éve | |
CHANGELOG.md | 7 éve | |
LICENSE | 7 éve | |
README.md | 7 éve | |
XUnity.AutoTranslator.sln | 7 éve |
This is an auto translation mod that hooks into the unity game engine and attempts to provide translations for the following text frameworks for Unity:
It does go to the internet, in order to provide the translation, so if you are not comfortable with that, dont use it.
The mod can be installed into the following Plugin Managers:
Installations instructions for both methods can be found below.
The default configuration file, looks as such:
[AutoTranslator]
Endpoint=GoogleTranslate ;the endpoint to use to translate
Language=en ;the language to translate into
FromLanguage=ja ;the language to translate fromm
Delay=0 ;a delay to be applied before attempting to translate a text, if the text framework supports it. Measured in seconds
Directory=Translation ;the directory that the plugin will look for cached translations in
OutputFile=Translation\_AutoGeneratedTranslations.{lang}.txt ;the file that the plugin will write auto translated texts to
MaxCharactersPerTranslation=150 ;the max number of characters that a text may contain in order to be translated
EnableIMGUI=True ;specify if IMGUI should be translated
EnableUGUI=True ;specify if UGUI should be translated
EnableNGUI=True ;specify if NGUI should be translated
EnableTextMeshPro=True ;specify if TextMeshPro should be translated
AllowPluginHookOverride=True ;specify whether to allow other plugins to override this plugins code hooks
The following key inputs are mapped:
The plugin can be installed in following ways:
REQUIRES: BepInEx plugin manager (follow its installation instructions first!).
The file structure should likke like this:
{GameDirectory}/BepInEx/XUnity.AutoTranslator.Plugin.Core.dll
{GameDirectory}/BepInEx/XUnity.AutoTranslator.Plugin.Core.BepInEx.dll
{GameDirectory}/BepInEx/ExIni.dll
{GameDirectory}/BepInEx/Translation/AnyTranslationFile.txt (this files will be auto generated by plugin!)
REQUIRES: IPA plugin manager (follow its installation instructions first!).
The file structure should likke like this
{GameDirectory}/Plugins/XUnity.AutoTranslator.Plugin.Core.dll
{GameDirectory}/Plugins/XUnity.AutoTranslator.Plugin.Core.IPA.dll
{GameDirectory}/Plugins/0Harmony.dll
{GameDirectory}/Plugins/ExIni.dll
{GameDirectory}/Plugins/Translation/AnyTranslationFile.txt (this files will be auto generated by plugin!)
I have implemented a system that allows other dedicated translation mods to integrate with XUnity AutoTranslator.
Basically, as a mod author, you are able to, if you cannot find a translation to a string, simply delegate it to this mod, and you can do it without taking any references to this plugin.
Here's how it works, and what is required: