Translating plugins into finnish

Discussion in 'Bukkit Discussion' started by TheRealEk, Mar 11, 2012.

  1. Offline

    TheRealEk

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Heey, I got this idea that if you would be interested, i could translate your plugin into finnish. I've noticed that there is many plugins with translations without finnish included and this would be a nice favor for the them who speak it . My mother tongue is finnish and i talk pretty nice english for a finn so i would be a good translator. Interested?

    This post has been edited 2 times. It was last edited by TheRealEk Mar 11, 2012.
  2. Offline

    obnoxint BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Well, that's a very nice offer. But there are hundreds of languages not supported by this and those plugins. I think it would make more sense if you contact the developers of the plugins you like to have translated and ask him nicely if he/she is willing to translate the plugin with your help. Or even better: make all texts configurable.
    Tanite likes this.
  3. Offline

    desht

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  4. Offline

    Tanite

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    As obnox suggested, I would start by contacting the developers of plugins you use, starting with those that already have some translations. There's really no global way to do this though, unfortunately.

    This post has been edited 1 time. It was last edited by Tanite Mar 12, 2012.
  5. Offline

    TheRealEk

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yeah that's right, just thought to advertise myself as much as possible :D You got any plugins u'd want to be translated?

    I start looking at that right tomorrow. :)

    N
    Yeah well, i thought about starting with this. I mean it's a beginning of something, right?
  6. Offline

    deltahat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Interesting you should mention a global translation system. The next major project I was thinking of attacking in the bukkit-bleeding branch is applying localization to plugins and bukkit itself. Localization would be based on the existing java localization API using .properties files and would allow a plugin to detect a player's preferred language. Would this interest anybody?
    Don Redhorse and desht like this.
  7. Offline

    TheRealEk

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hmm.. That would take a lot of time wouldn't it? I mean if u get a lot of requests and all that.. Though then u could get more translators and suddenly there would be languages everywhere.. :confused:

    This post has been edited 1 time. It was last edited by TheRealEk Mar 12, 2012.
  8. Offline

    TheRealEk

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  9. Offline

    desht

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  10. Offline

    Don Redhorse

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    for sure... btw... I battleing atm with the issue to store the languages in yaml... it doesn't work with some languages as yaml freaks out as it seems..

    there is a thread in the developer forum about this.

    Concerning the translation system I would prefer a system where you could use enums to display messages etc.. btw: you also need to implement that into the help system :D
  11. Offline

    deltahat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    What do you mean by using enums to display messages?
  12. Offline

    Don Redhorse

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    well a good practice is to use enums instead of strings in the code afaik..

    so instead of player.sendmessage("well what should i say"); I use an enum atm which holds that information so it is SIMILAR like this player.sendmessage(WHAT_SHOULD);

    so for a translation framework I would like to see

    player.sendtranslatedmessage(WHAT_SHOULD); instead of of player.sendtranslatedmessage("what_should");

    I know my code could probably use a lot of better design.. but take a look here.. https://github.com/dredhorse/TheMon...ukkit/TheMonkeyPack/events/CSPlayerEvent.java which I try to improve here https://github.com/dredhorse/HelperClasses

    I guess for a more general approach the method should just use an enum as a "node" in the translation instead of a string, like I wrote in the beginning, as my approach requires the developers to copy at least a stub enum class.

    as you would probably make this possible everywhere I would think that you probably need to use some static methods like:

    player.sendmessage(translateMethod(WHAT_SHOULD));

    so that you could use it everywhere, instead of changing all the methods everywhere
  13. Offline

    deltahat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  14. Offline

    Don Redhorse

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I know... but the keys are strings.. I know where the problem is though..

    hmm.. on the other side enum's can implement interfaces, probably to complicated though or you can just use the toString method in your code to dump the enum to a string to get the correct key in the file.
  15. Offline

    TheRealEk

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Heey guys, really sorry that i haven't sent u the translations yet, something has been going on on my life now for a while and yeah.. I will do them ASAP.
  16. Offline

    MargaretP

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

Share This Page