Configurable chat and GUI messages (messages.yml)
pgmann opened this issue ยท 5 comments
--- Imported from dev.bukkit.org: original issue reported by CrostoShinobi ---
Add a config file to specify custom messages and custom GUI titles, etc.
I have now an I18n API bundled with zLib, for this.
I think we should use Gettext PO files. It is maybe less intuitive, but it's far more powerful, standard (can be used for collaborative translation websites, as example), and it supports plural forms :) .
Also, it's easier to use in the code, as you write plain english in the source code and the translations are extracted using xgettext
in ready-to-fill templates of translation files (.pot
): doc & code example.
Your opinion, @pgmann?
Apologies for the delay in replying...
It looks straightforward enough so go ahead ;)
Would be really handy to be able to almost fully automate this process.
TheBrost on SpigotMC:
Could You tell me how can i translate all messages into my mother language?
I rlly need it.
@AmauryCarrade: do you have time to implement this? Or should I try? You have more experience at this than me.
Maybe it will be faster when u add Language API?
For exmaple, I use InClassTrans but not everything i can translate. It will be better when all messages will be in one txt.
You can use this class for that. If you want.