HomeJavaModszTranslator
zTranslator
zTranslator will allow to translate the name of an item into another language

The plugin can only be used with the API
More informations here: https://github.com/Maxlego08/zTranslator
Plugin using zTranslator:
- zAuctionHouse
- zShop
- zItemStacker
- zAuctionHouse Discord

[​IMG]

The plugin will allow you to translate the names of minecraft items with your language. You just have to add the lang file of minecraft in the zTranslator/langs folder and reload the plugin. The file bind.json will make the link between the item and the translation. Don't hesitate to create an exit if an item is not translated.

Maven
Code (XML):

<repositories>
  <repository>
      <id>jitpack.io </id>
      <url>https://jitpack.io </url>
  </repository>
</repositories>

<dependency>
    <groupId>com.github.Maxlego08 </groupId>
    <artifactId>zTranslator </artifactId>
    <version>1.0.0.0 </version>
</dependency>
 
Gradle
Code (gradle (Unknown Language)):

allprojects {
  repositories {
    maven { url 'https://jitpack.io' }
  }
}
dependencies {
  implementation 'com.github.Maxlego08:zTranslator:1.0.0.0'
}
 
How to translate an ItemStack

You need to get the Translator class using the spigot service provider.
Here is an example:

Code (Java):

public void example ( ) {
    Translator translator = this. getProvider (Translator. class ) ;
    translator. translate ( new ItemStack (Material. STONE ) ) ;
}

public <T > T getProvider (Class <T > classz ) {
  RegisteredServiceProvider <T > provider = getServer ( ). getServicesManager ( ). getRegistration (classz ) ;
  if (provider == null ) {
    this. getLogger ( ). warning ( "Unable to retrieve the provider " + classz. toString ( ) ) ;
    return null ;
  }
  return provider. getProvider ( ) != null ? (T ) provider. getProvider ( ) : null ;
}
 

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.

zTranslator is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 1,232 times (via Spigot). Download it and open it directly in the game.

Explore more