Added multi language as a potential candidate to replace single language - #1
Added multi language as a potential candidate to replace single language#1ronnie-neo-sonarsource wants to merge 2 commits into
Conversation
|
gitar display:verbose |
|
gitar why is the file |
The DetailsHere's a summary of what changed and why:
In short, the script was generalized to handle any number of languages rather than being single-language-specific. |
|
gitar please fix this |
Co-authored-by: Ronnie Neo <171651979+ronnie-neo-sonarsource@users.noreply.github.com>
Done. The driver loop in |
|
Gitar please summarize this |
|
Here's a summary of this PR: Goal: Generalize the plugin from supporting a single language (Japanese) to supporting multiple languages (currently Japanese and Korean). Changes:
Net effect: 73 additions / 33 deletions across 5 files — the plugin and its tooling no longer assume a single target language, making it straightforward to add more languages by extending the |
|
Gitar please check if there is any problems |
Running a full review on this PR now. I'll post the findings shortly. |
|
Gitar which file has the most changes? |
|
|
Gitar can you check if I can do a unit test here |
|
Yes, unit testing is possible for DetailsSince the driver loop is now wrapped in
One thing to note: there's currently no test setup for the Python side (no Let me know if you'd like me to scaffold a test file/setup for this. |
|
Gitar please check if there is any injection flaw |
On it — running a security review to check for injection flaws (SQL, command, code injection, etc.) in this PR. I'll follow up with findings. |
|
Gitar how is your day |
Doing well, thanks for asking! Ready to help review or fix anything on this PR — just let me know. |
|
Gitar can you check if function names are snake case |
|
Yes — in DetailsThe Java files ( So no naming inconsistencies to flag in this PR. |
Code Review ✅ Approved 1 resolved / 1 findingsRefactors the plugin structure to support multiple languages while centralizing translation logic, resolving the missing main guard issue in the translation driver.
✅ 1 resolved✅ Quality: Translation loop runs at import time (no __main__ guard)
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
Summary by Gitar
JapanesePackPlugintoLanguagePackPluginand updated thepom.xmlartifact ID tosonar-l10n-plugin.python/translate.pyto support multiple languages through aLANGUAGESconfiguration list.README.mdwith instructions for maintaining a multi-language plugin and updated build/usage steps.This will update automatically on new commits.