open-code-review icon indicating copy to clipboard operation
open-code-review copied to clipboard

chore(idea): translate the Chinese comments in providers/ and HostStrings.kt

Open lizhengfeng101 opened this issue 2 months ago • 4 comments

Part of #1419. Ready to start — no open pull request touches extensions/idea/.

Scope

93 flagged lines across 3 files.

Lines File Note
44 .../idea/providers/CommentService.kt all comments
28 .../idea/providers/CommentAnchor.kt all comments
21 .../idea/model/HostStrings.kt comments only

HostStrings.kt needs care

Its 68 flagged lines are two different things:

  • 21 comment lines — translate these.
  • 47 ZH_CN map entries (lines 81–142) — these are translated UI copy and must stay Chinese. It is the host-side mirror of the webview i18n table, and its ext.* keys and values are meant to match the frontend.

Once the 21 comments are translated, add a narrow exemption for the file so the 47 entries stay covered after #1424 removes the broad one:

{"extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/model/HostStrings.kt", "host-side mirror of the webview i18n table"},

Order matters: translate first, then add the exemption. Adding it first would let the untranslated comments through unnoticed.

Per-line allow-non-english: markers are not appropriate here — 47 of them would be pure noise. The whole-file exemption is honest once the file holds no Chinese comments.

Done when

  • Temporarily dropping the extensions/idea/ exemption reports nothing under providers/, and reports HostStrings.kt only if its narrow exemption is also removed.
  • ./gradlew test -PskipFrontend=true passes.

lizhengfeng101 avatar Sep 18 '26 10:09 lizhengfeng101

I'd like to work on this.

Please do not claim a large number of issues at once.

Qiyuanqiii avatar Sep 18 '26 11:09 Qiyuanqiii

I'd like to work on this.

Please do not claim a large number of issues at once.

Sorry, I withdraw

jimpablo avatar Sep 18 '26 11:09 jimpablo

I'd like to work on this.

Please do not claim a large number of issues at once.

Sorry, I withdraw

No, no, no. What I mean is that you can claim issues, but you should claim the next one only after you finish the current one. Claiming multiple issues at the same time will slow down progress. I don't plan to get involved in #1421 and #1422. You can keep trying.

Qiyuanqiii avatar Sep 18 '26 11:09 Qiyuanqiii

I'd like to work on this.

Please do not claim a large number of issues at once.

Sorry, I withdraw

No, no, no. What I mean is that you can claim issues, but you should claim the next one only after you finish the current one. Claiming multiple issues at the same time will slow down progress. I don't plan to get involved in #1421 and #1422. You can keep trying.

I understand, thank you

jimpablo avatar Sep 18 '26 12:09 jimpablo