jitwatch icon indicating copy to clipboard operation
jitwatch copied to clipboard

Any plan about i18n?

Open cyberdak opened this issue 6 years ago • 22 comments

Now JITWatch only provide English language.

cyberdak avatar Jul 08 '19 03:07 cyberdak

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

chriswhocodes avatar Jul 08 '19 19:07 chriswhocodes

I am Chinese , I can do translate when we hava properites files to do this.

cyberdak avatar Jul 09 '19 02:07 cyberdak

I could do the german translation

JCWasmx86 avatar Jun 11 '20 14:06 JCWasmx86

I can do polish :)

grzesuav avatar Apr 09 '21 15:04 grzesuav

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

chriswhocodes avatar Apr 14 '21 21:04 chriswhocodes

For each translation you can add a tooltip if you think it is helpful:

SANDBOX=Sandbox
SANDBOX_tt=Experiment with JIT behaviour

chriswhocodes avatar Apr 14 '21 21:04 chriswhocodes

The properties files for translations live in ui/src/main/resources/i18n/

chriswhocodes avatar Apr 14 '21 22:04 chriswhocodes

I can work on french translation

lcaron avatar Apr 16 '21 09:04 lcaron

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.

:)

chriswhocodes avatar Apr 16 '21 18:04 chriswhocodes

I can work on spanish translation

ldebello avatar Apr 16 '21 20:04 ldebello

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 :)

chriswhocodes avatar Apr 16 '21 20:04 chriswhocodes

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

ldebello avatar Apr 19 '21 13:04 ldebello

POM file updated with translation contributors :) "Configuration" screen ready for translations. Added a createLabel() method to UserInterfaceUtil.

chriswhocodes avatar Apr 26 '21 20:04 chriswhocodes

Hi @chriswhocodes sending PR for "configuration" screen

https://github.com/AdoptOpenJDK/jitwatch/pull/346

ldebello avatar Apr 26 '21 21:04 ldebello

Added i18n constants for the "TriView" screen. Thanks for all your hard work translators!

chriswhocodes avatar May 03 '21 15:05 chriswhocodes

Hi @chriswhocodes sending PR for "triview" screen

https://github.com/AdoptOpenJDK/jitwatch/pull/349

ldebello avatar May 03 '21 16:05 ldebello

Hello, can I PR translation for portuguese? Thank you :)

gvdutra avatar Nov 24 '21 19:11 gvdutra

pt_BR translations now merged. Many thanks @gvdutra !

chriswhocodes avatar Dec 05 '21 19:12 chriswhocodes

Hi @chriswhocodes ,PR for Chinese #359

cyberdak avatar Jan 05 '22 06:01 cyberdak

Chinese translations merged! Thanks @cyberdak :)

chriswhocodes avatar Jan 05 '22 08:01 chriswhocodes