Xunity



Text Frameworks

Xunity Eclipse goes further as it promises to replace your satellite dihj or aerial TV with the ability to stream live TV, watch movies or TV shows thanks to their Stream platform which they integrated into XBMC. Here are the hardware specifications of the device. Version 4.13.0 (Auto Translator). FEATURE - API that allows external plugins to take some degree of control of how a game is translated. FEATURE - Can now output text that exceeds the maximum length if configured through 'OutputTooLongText'. MISC - Increased max value of 'MaxCharactersPerTranslation' from 1000 to 2500. MISC - Allow fallback to reflection when dynamic code generation fails.

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:

Reipatcher
  • UGUI
  • IMGUI
  • NGUI
  • TextMeshPro

It does go to the internet, in order to provide the translation, so if you are not comfortable with that, dont use it.

Plugin Frameworks

The mod can be installed into the following Plugin Managers:

Installations instructions for both methods can be found below.

Reipatcher Download

Configuration

The default configuration file, looks as such:

Key Mapping

The following key inputs are mapped:

Xunit Theory

  • ALT + T: Alternate between translated and untranslated versions of all texts provided by this plugin.
  • ALT + D: Dump untranslated texts (if no endpoint is configured)
  • ALT + R: Reload translation files. Useful if you change the text files on the fly.

Installation

The plugin can be installed in following ways:

Xunity autotranslator guide

BepInEx Plugin

REQUIRES: BepInEx plugin manager (follow its installation instructions first!).

  1. Download XUnity.AutoTranslator-BepIn-{VERSION}.zip from releases.
  2. Extract directly into the game directory, such that the plugin dlls are placed in BepInEx folder.

The file structure should likke like this:

IPA Plugin

REQUIRES: IPA plugin manager (follow its installation instructions first!).

  1. Download XUnity.AutoTranslator-IPA-{VERSION}.zip from releases.
  2. Extract directly into the game directory, such that the plugin dlls are placed in Plugins folder.

The file structure should likke like this

Integrating with Auto Translator

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:

Xunity Autotranslator Guide

  • You must implement a Component (MonoBehaviour for instance) that this plugin is able to locate by simply traversing all objects during startup.
  • On this component you must add an event for the text hooks you want to override from XUnity AutoTranslator. This is done on a per text framework basis. The signature of these events must be: Func<object, string, string>. The arguments are, in order:
    1. The component that represents the text in the UI. (The one that probably has a property called 'text').
    2. The untranslated text
    3. This is the return value and will be the translated text IF an immediate translation took place. Otherwise it will simply be null.
  • The signature for each framework looks like:
    1. UGUI: public static event Func<object, string, string> OnUnableToTranslateUGUI
    2. TextMeshPro: public static event Func<object, string, string> OnUnableToTranslateTextMeshPro
    3. NGUI: public static event Func<object, string, string> OnUnableToTranslateNGUI
  • Also, the events can be either instance based or static.

Main development dependency for XUnity Auto Translator.

Xunity Repository

For projects that support PackageReference, copy this XML node into the project file to reference the package.
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Dependencies

  • .NETFramework 3.5

    • XUnity.AutoTranslator.Plugin.ExtProtocol(>= 1.0.0)
    • XUnity.Common(>= 1.0.0)
    • XUnity.ResourceRedirector(>= 1.1.0)

Used By

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

VersionDownloadsLast updated
4.7.0 429 11/24/2019




Comments are closed.