Home›Java›Mods›[API] TAPI - The TranslatorAPI
[API] TAPI - The TranslatorAPI
ModsJava

[API] TAPI - The TranslatorAPI

Java mod listed for Minecraft 1.8–1.9. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
Here will be the description page soon.

This plugin is necessary for several (coming) plugins!

Important: This Plugin is only for developers!
Important: This Plugin does not translate plugins, which does not use this API.


general functions:
Spoiler: Start
To use the TranslatorAPI, you should declare an Translator Object first and register the plugin. Its recommended to save a copy of the default translations File.
e.g: the file is named: "translations.yml"
Code (Java):
Translator t ;

onEnabled ( )
{
  t = Translator. getTranslator ( ) ;
  t. register ( this, YamlConfiguration. loadConfiguration ( new InputStreamReader ( this. getResource ( "translations.yml" ) ) ) ) ;
  // ....
}
Information: The register function could be called at every start, it will be ignored, if the plugin is already registered.
Spoiler: getting translation
To get a saved translation for a keyword in the registered file, you should use this:
Code (Text):
String translation = t.getTranslation(this, "the_keyword");
Spoiler: all functions without description
  • static Translator getTranslator()
  • void register(Plugin p, Properties translations)
  • void register(Plugin p, YamlConfiguration translations)
  • String getTranslation(Plugin p, String key)
  • String getTranslation(Plugin p, int ID)
  • boolean hasTranslation(Plugin p, String key)
  • boolean hasTranslation(Plugin p, int ID)
  • int translations(Plugin p)
  • List<String> translationKeys(Plugin p)

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

[API] TAPI - The TranslatorAPI is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9. Downloaded 148 times (via Spigot). Download it and open it directly in the game.

Explore more