HomeJavaModsTranslator [Plugin-API]
Translator [Plugin-API]
[​IMG]

Join my Telegram Channel to receive news about my plugins: @GioStuff


IT DOESN'T TRANSLATE YOUR SERVER :p

[​IMG]

Magic? No! This API uses the Translate API by Yandex.
It's a web service, so you don't need to add that.



[​IMG]

Server owners need a special key to enable this plugin.
Login to the Yandex website and then obtain this key here, then put it in the API's config.
Please note that the free key supports "only" 10,000,000 characters every month, but you can create how many keys you want.



[​IMG]

These are the avaible languages:
Spoiler
AZERBAIJAN
ALBANIAN
ENGLISH
ARABIC
AFRIKAANS
BASQUE
BELARUSIAN
BULGARIAN
BOSNIAN
WELSH
HUNGARIAN
VIETNAMESE
HAITIAN
GALICIAN
DUTCH
GREEK
GEORGIAN
DANISH
INDONESIAN
IRISH
ITALIAN
ICELANDIC
SPANISH
KANNADA
CHINESE
KOREAN
LATIN
LITHUANIAN
MACEDONIAN
MONGOLIAN
GERMAN
NEPALI
NORWEGIAN
PERSIAN
POLISH
PORTUGUESE
ROMANIAN
RUSSIAN
SERBIAN
SLOVAKIAN
SLOVENIAN
SUNDANESE
TURKISH
UZBEK
UKRAINIAN
FINNISH
FRENCH
HINDI
CROATIAN
CZECH
SWEDISH
SCOTTISH
ESTONIAN
JAPANESE



[​IMG]

When you join the server, your language is the server language.
To change it, just type /lang (permission: translator.lang) and select your language from the menu.



[​IMG]

If you don't know how to add dependencies, read here.

Developer
Be sure you are using Java >= 8.
Add the JAR to your build path. Then set the "Manual Manifest" setting and create your MANIFEST.MF to the project. Write:
Code (Text):
Main-Class: your.package.Class
Class-Path: ..\lib\Translator.jar

 
Server owners
Be sure you are using Java >= 8.
Create a folder named lib in the main server root, and put here the JAR.
Also, you need to put it in your plugins folder.



[​IMG]

Code (Text):
//Sending a message translated automatically to the player language
p.sendMessage("§a" + Translator.translate("Hello!", p));

//Sending a message translated manually
p.sendMessage("§a" + Translator.translate("Hello!", Language.ENGLISH, Language.ITALIAN));

//Getting the server language
Language serverLang = Translator.getServerLanguge();

//Getting player's language
Language playerLang = Translator.getPlayerLanguage(p);


[​IMG]



If you have any problem, write a post in the discussion or contact me via private messages. I will not reply to bug reports on the reviews section.



[​IMG]

Currently there are not plugins that are using this API. If you are using it, tell me it and I will add it here :)

Commands

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.

Translator [Plugin-API] is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10. Downloaded 1,216 times (via Spigot). Download it and open it directly in the game.

Explore more