0verEngineer / InlineProblems

Plugin to show problems inside the text editor for IDEs based on the IntelliJ Platform
GNU General Public License v3.0
61 stars 7 forks source link

Update settings UI with i18n support,The settings UI supports Chinese. #39

Closed kuweiguge closed 1 year ago

kuweiguge commented 1 year ago

Title:Added Chinese localization to the settings interface

Description: I immensely enjoy using this plugin. However, as a non-native English speaker, I have experienced difficulties in understanding the English text in the settings interface. I am positive that there are other Chinese speaking users who love this plugin as much as I do and might face the same language challenges. So, to eliminate this difficulty, I have added Chinese localization support to enhance the user experience for Chinese users. Looking forward to your feedback and hope this inclusion will be beneficial.

Settings UI:

CleanShot 2023-08-16 at 11 00 06@2x

Below is the commit description generated by Idea AI Assistant:

This commit refactors hardcoded strings in SettingsComponent.java into resource bundles. The strings are now extracted into two properties files, SettingsBundle_en.properties and SettingsBundle_zh_CN.properties. This is intended to provide support for internationalization (i18n) and improve code maintainability. Also, a new class, SettingsBundle.java is created to manage these resource bundles dynamically using the path 'messages.SettingsBundle', which has been added to the plugin.xml file. This refactor creates a reusable and extensible mechanism for localizing the settings UI in the future.

0verEngineer commented 1 year ago

@kuweiguge Hey, thanks for the PR :)

How did you translate the text? I have checked it with deepL and it looks good. One thing that i found is this one: "High Red Question Label", that should say Bold, is that an error with deepL? Screenshot_20230816-102807

kuweiguge commented 1 year ago

@0verEngineer Hey During my previous submission, I utilized the AI assistant from IntelliJ IDEA for Chinese translation, and subsequently noted several inaccuracies. With an aim to enhance translation quality and ensure the validity of the content, I conducted a meticulous examination and made minor adjustments to the translation. I place significant importance on ensuring the translated text isn't just accurate, but also complies with Chinese grammatical norms and context. I am confident that these modifications will make the Chinese context more natural and easier to comprehend. Thank you for considering these further submissions. CleanShot 2023-08-16 at 17 47 31@2x

0verEngineer commented 1 year ago

@kuweiguge If you have time and interest, it would be cool if you would translate the new strings added here: https://github.com/0verEngineer/InlineProblems/pull/40

kuweiguge commented 1 year ago

@kuweiguge If you have time and interest, it would be cool if you would translate the new strings added here: #40

I'm not quite sure what I should do. Can you guide me? Should I checkout the dev branch, add Chinese translations, and then submit a PR?

0verEngineer commented 1 year ago

Yea submit a PR into dev or main, does not matter. :)