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 ">". preview

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.


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    97732
  • Created
    Feb 9, 2016
  • Last Released File
    Dec 10, 2016
  • Total Downloads
    801
  • License

Categories

Members

Recent Files

Bukkit

  • 1.7
    Dec 10, 2016