Translator
Easily translate text for players who speak a different language! Translate grabs a player's language from their client settings (requires ProtocolLib!) or through a command and uses that to determine what language they see chats, server messages, and inventory GUI items in (1.9+. On 1.8, disable in config). When a player chats, it automatically translates it to the languages of the other players.
This plugin uses Microsoft's Translator API and needs API key(s) (requires a Microsoft account) to work. You can get an API key by following this (2,000,000 characters a month for free) and add it to the config, but Translate will automatically download a list of keys that I've provided and will be updating.
Configuration
default language: 'en' # The default language bypass prefix: '>' translate: chat: true server: true inventory: true messages: change: '&aLanguage successfully changed to %name%.' reset: '&aLanguage reset to %default%.' invalid: '&cInvalid language. Possible choices:'
blacklist: # Uses regular expressions. You can test expressions or get help from http://regexr.com/
- '\/\w+' # Matches a forward slash (escaped with a back slash) followed by 1 or more alphanumeric characters
- '("|'').*\1' # Matches any character except line breaks within either double or single quotes (including the quotes, the quotes have to match)
debug: false # keys: #Custom keys (only necessary if you want to use your own, it will automatically download a list of keys to use) # '0': # id: 'Tharsen' # secret: '6mutEwVfEVk3S9nIdolEc9EdVVHANwNyW69H15ssB7c=' # '1': # id: 'Rell1936' # secret: 'ZiE7WrcOTj0QYuJsgan0PhQDRv2A34ZVIQKBWL7wS9o=' # '2': # id: 'Faber1974' # secret: 'So3rU12SPzo2xjIICgyTPEoYxSIkAIKgopS1NOO/3jA='
Use
Simply set your language in Minecraft's language settings and chat in your language! To bypass the translation, prefix your message with a ">".
Commands
/language Base command, opens language GUI menu when run without arguments /language reset Resets to default language (set in config) /language set <lang> Sets a player's language
Install
Simply drop this plugin (and ProtocolLib if you don't have it already) into your plugins folder and restart your server!
Optional: Translate works out of the box, but you can configure it to how you like it.
Please Update to 1.10.2 this Plugin is in red bei /plugins
@maxlehot1234
It only translates players chat.
@Phosphorus15
ProtocolLib is for detecting the language setting in the minecraft client, but I might be able to do without it. How would the editing work (when would the player edit it, and should that be saved)?
Nice idea!This amazing plugin can makes players from different country communicate together in easier way. But..I don't think it's a good idea to depends on external API. What's more , I think the translation by machine is not always exact. So you can try to provide a method to let players edit their translation result by themselves.(Yes , it's hard to done) :)
NICE :)
This plugin translate all things in the chat? From any plugin?
Or just waht players chat?