Как переводить плагины minecraft на русский

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

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

IT DOESN’T TRANSLATE YOUR SERVER

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

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.

These are the avaible languages:

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.

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:

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.

//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);

  • 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.

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

So this is the thing I add to my plugin project and it translates my plugin text to any language selected, right? Is there a way to put this in other plugins which weren’t made by me?

It would be good if it worked, i put the api key in the config, restated the server and it didnt work

ADD SUPPORT 1.7 PLEASEEEE!
100100100100100100100100100100100100100100100100100100100100100100100100

This is a fake spigot plugin this doesn’t translate anything to spanish and other languages

Read the line at the start of the page pls

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)

1 Звезда2 Звезды3 Звезды4 Звезды5 Звезд (Пока оценок нет)
Загрузка...
Adblock
detector