Multilingual plugins

Discussion in 'Bukkit Discussion' started by crysis992, Apr 15, 2014.

?

Would you use an API like this?

  1. No, I'll stick to global language for my plugins.

    0 vote(s)
    0.0%
  2. Yes, i would use it in my plugins.

    2 vote(s)
    100.0%
Thread Status:
Not open for further replies.
  1. Offline

    crysis992

    Hey Community,

    I've just got an idea for a plugin/api whatever, now i want to ask the developers if you would like to see/use such a feature?.
    The basic idea is to create a API/plugin or just even a class to support multilingual messages to your plugins without having a global language/localization options.

    Players would receive messages(strings) in their own language.
    German players would receive a German string, English players a English string etc.
    You could translate your plugins in any "Minecraft" supported language you like, and it will send the correct language/string based on the players Language setting in their Options menu.

    I'm quite unsure why none on Bukkit has made something like that. That would make plugins so much more user friendly, especially for multilingual communities/servers.

    I would like to hear your feedback :)
     
  2. Offline

    sfxworks

    That would be a great idea.

    But it might take long for popular plugins to use your api.

    Why not make a plugin that catches help messages thrown at the players, translates them using this, and throws the translation at the user?
     
  3. Offline

    Necrodoom

    The problem is not the API, its the fact that you have to find people to translate hundreds of messages to many different languages.

    See essentials, it has its own locale setting, all locale messages other than english depend on volunteers to contribute, and its extremely hard to find someone to translate all the messages, especially keep them up to date. Now, how would you find someone to do the same for dozens of plugins?
     
  4. Offline

    obnoxint

    Because it takes a smile to implement localized Strings. Long live the ResourceBundle class!
     
  5. Offline

    crysis992


    Isn't this just using the system language? I'm talking about the player's language setting in their Minecraft game options.

    There are already tons of plugins with multiple languages. This API wouldnt force any developer to update/translate it themselfs.
    I'm using this already for my private plugins. And each plugin has a "messages" folder with the language files in there.
    de_DE.yml , en_US.yml etc. If one language isnt translated, its reading the default string from the en_US.yml

    If a player has the language setting in their game on "German" -> The plugin send the strings from de_DE.yml, every other (not translated) language receives the en_US strings.
     
  6. Offline

    obnoxint

    Oh, that's what you mean. This requires a client mod to communicate with the server.
     
  7. Offline

    crysis992

    No, it doesn't. It's possible to access the setting via reflections.
     
  8. Offline

    obnoxint

    Yes, it does. Unless you know some kind of magic chant to make the client send its settings to the server.
     
  9. Offline

    crysis992


    I already said im using it on my server, so why shouldnt it work?
    http://pastebin.com/QquV8E9S - magic?
     
    obnoxint likes this.
  10. Offline

    obnoxint

    Probably.

    Neat, I wonder when this was added.

    Stop asking and go here.
     
Thread Status:
Not open for further replies.

Share This Page