Closed Loreinator closed 8 years ago
Hi. :)
I think I can work on this. I have forked Shuffle Move and gave it a try to see how it works.
Can you check this commit and tell me if that is how it is supposed to be done ? Of course, I'll have to add the i18n keys for all the languages, which I forgot to do at first. For the non-English languages, do I keep the English text until the translations are available ?
Here's a screenshot of the added tooltip (the mouse is over the checkbox)
Yup, that's the general process of how to use i18n in the Shuffle Move.
Just a note though: The process I usually follow for introducing new i18n is:
One other note about the code side: Some of the more 'live' components might update the i18n on the fly, you should probably check that you're able to retrieve the tooltiptext from the GUI Component directly or there will need to be separate tracking to handle that. One good example is the Entry Mode Panel - swapping the language will make it change text, so if the language is swapped the tooltips should also be updated.
See here for how to implement in java
This needs to be added to all GUI buttons, labels, and fields in the program (not images, icons, or menu items).
The tooltips need to use i18n keys to obtain their text, allowing full localization of their helpfulness.
There are a LOT of gui components to put this on, so it will be a large amount of code additions as well as a lot of translation work for our translators.