Translator [Plugin-API] 1.0

A powerful Plugin-API to translate your strings in 50+ languages

  1. iAmGio
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    [​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:
    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 reload the API while a plugin that uses it is enabled, it will crash. To fix manually, unload the plugin, reload the API and load the plugin
    • Color codes are not supported. To use them see the examples above
    • Little lag (the API needs to translate the original text and receive JSON)


    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 :)




    [​IMG]

Recent Reviews

  1. KyTDK
    KyTDK
    3/5,
    Version: 1.0
    It would be good if it worked, i put the api key in the config, restated the server and it didnt work
  2. BrandonMacedo
    BrandonMacedo
    5/5,
    Version: 1.0
    ADD SUPPORT 1.7 PLEASEEEE!
    100100100100100100100100100100100100100100100100100100100100100100100100
  3. superprocrack
    superprocrack
    1/5,
    Version: 1.0
    This is a fake spigot plugin this doesn't translate anything to spanish and other languages
    1. iAmGio
      Author's Response
      Read the line at the start of the page pls
  4. TheGamer190
    TheGamer190
    4/5,
    Version: 1.0
    Grande frate! Ho letto Powered by Gamehosting, quindi penso tu sia italiano? se si: sai perché da questo errore all' avvio?

    P.s (ho letto impossibile trovare il percorso specificato, ma la cartella ci sta)

    [10:53:24 WARN]: java.io.IOException: Impossibile trovare il percorso specificato
    [10:53:24 WARN]: at java.io.WinNTFileSystem.createFileExclusively(Native Method)
    [10:53:24 WARN]: at java.io.File.createNewFile(Unknown Source)
    [10:53:24 WARN]: at eu.iamgio.translator.UsersFileLoader.loadRegisterFile(UsersFileLoader.java:21)
    [10:53:24 WARN]: at eu.iamgio.translator.Translator.onEnable(Translator.java:35)
    [10:53:24 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321)
    [10:53:24 WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340)
    [10:53:24 WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405)
    [10:53:24 WARN]: at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357)
    [10:53:24 WARN]: at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317)
    [10:53:24 WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:414)
    [10:53:24 WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:378)
    [10:53:24 WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:333)
    [10:53:24 WARN]: at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:263)
    [10:53:24 WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525)
    [10:53:24 WARN]: at java.lang.Thread.run(Unknown Source)
  5. AppleCraft12345
    AppleCraft12345
    5/5,
    Version: 1.0
    An very good plugin! I recommend it to any multi-language server... (like mineplex or hypixel xD)
    =======================================================================