Howto get localized item/enchantment names?

Discussion in 'Plugin Development' started by Fipil, Mar 25, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Fipil

    Hi all, please is it possible to get the localized item or enchantment names?
    I'm working on a shopping plugin and I'd like to show a localized names in the chat.
    Is it possible without using of some mod or spoutcraft, just with using of the bukkit API?
     
  2. Offline

    Njol

    Bukkit doesn't have any localization features. You might be able to get the official name of something by using Minecraft's language file of the desired language, or you can simply make the names configurable in your plugin's config file.
     
  3. Offline

    Flobi

    I'm writing an auction software, Fipil, and I ran into basically the same problem you're having, getting friendly item names. My solution was this: WhatIsIt. It's currently in beta. Yes, it's a shameless plug for my own plugin which I wrote because it was needed. I'd love someone to beta this who is already developing a plugin.

    I know it isn't exactly what you asked for, but I've searched and searched and I'm pretty certain that there's no way to get reliable, friendly yet adequately descriptive names (adequate meaning: knowing exactly what you're going to be buying) out of Bukkit without effectively writing what I've already written for WhatIsIt into one's own plugin. The closest other thing is OddItem, which has similarities to WhatIsIt but is more meant for shortcutting an item name than generating a friendly name.

    With this, since all the item names are stored in a .yml file, it can be easily customized for the whatever the preferred language of any server. I'm not sure by the wording if you were trying to get an item name based on the client's language preferences or location, but that's not going to happen because the client doesn't pass it's language preference to the server.
     
Thread Status:
Not open for further replies.

Share This Page