AdoptOpenJDK / jitwatch

Log analyser / visualiser for Java HotSpot JIT compiler. Inspect inlining decisions, hot methods, bytecode, and assembly. View results in the JavaFX user interface.
Other
3.06k stars 437 forks source link

Any plan about i18n? #307

Open cyberdak opened 5 years ago

cyberdak commented 5 years ago

Now JITWatch only provide English language.

chriswhocodes commented 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

cyberdak commented 5 years ago

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

JCWasmx86 commented 4 years ago

I could do the german translation

grzesuav commented 3 years ago

I can do polish :)

chriswhocodes commented 3 years ago

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 commented 3 years ago

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

SANDBOX=Sandbox
SANDBOX_tt=Experiment with JIT behaviour
chriswhocodes commented 3 years ago

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

lcaron commented 3 years ago

I can work on french translation

chriswhocodes commented 3 years ago

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.

:)

ldebello commented 3 years ago

I can work on spanish translation

chriswhocodes commented 3 years ago

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

ldebello commented 3 years ago

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

chriswhocodes commented 3 years ago

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

ldebello commented 3 years ago

Hi @chriswhocodes sending PR for "configuration" screen

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

chriswhocodes commented 3 years ago

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

ldebello commented 3 years ago

Hi @chriswhocodes sending PR for "triview" screen

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

gvdutra commented 2 years ago

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

chriswhocodes commented 2 years ago

pt_BR translations now merged. Many thanks @gvdutra !

cyberdak commented 2 years ago

Hi @chriswhocodes ,PR for Chinese #359

chriswhocodes commented 2 years ago

Chinese translations merged! Thanks @cyberdak :)