Open cyberdak opened 5 years ago
Hi @cyberdak What language(s) were you thinking about? There aren't too many Strings in the UI so I guess I could move them to properties files but someone else would have to do the translations into other languages! Are you volunteering to do the translations? Cheers, Chris
I am Chinese , I can do translate when we hava properites files to do this.
I could do the german translation
I can do polish :)
Hi all, I have just pushed a commit to start the i18n of JITWatch https://github.com/AdoptOpenJDK/jitwatch/commit/4b22da3e4d821fa4b001e2206bc8bd4530591e34 If you're happy to help then please send PRs with translations in the properties files :) I'm happy to take care of the code side, replacing English String literals with calls to the property keys. Thanks! Chris
For each translation you can add a tooltip if you think it is helpful:
SANDBOX=Sandbox
SANDBOX_tt=Experiment with JIT behaviour
The properties files for translations live in ui/src/main/resources/i18n/
I can work on french translation
Thank you @lcaron I've created an empty file for French translations: ui/src/main/resources/i18n/lang_fr.properties
I will continue replacing literals with i18n constants in the base properties file.
:)
I can work on spanish translation
Thank you @ldebello I've created an empty file for Spanish translations: ui/src/main/resources/i18n/lang_fr.properties The language constants to complete can be copied from lang.properties For each translation there is a tooltip translation named with _tt suffix e.g.
SANDBOX=Sandbox
SANDBOX_tt=Experiment with JIT behaviour
Thanks to all the translators, if you need to ask me about the meaning of a button please feel free :)
PR sent for spanish: https://github.com/AdoptOpenJDK/jitwatch/pull/344
Proposal [WIP] to add combobox for languages: https://github.com/AdoptOpenJDK/jitwatch/pull/345
POM file updated with translation contributors :) "Configuration" screen ready for translations. Added a createLabel() method to UserInterfaceUtil.
Hi @chriswhocodes sending PR for "configuration" screen
Added i18n constants for the "TriView" screen. Thanks for all your hard work translators!
Hi @chriswhocodes sending PR for "triview" screen
Hello, can I PR translation for portuguese? Thank you :)
pt_BR translations now merged. Many thanks @gvdutra !
Hi @chriswhocodes ,PR for Chinese #359
Chinese translations merged! Thanks @cyberdak :)
Now JITWatch only provide English language.