mint-check-translations emits parsing errors for lone '%' strings and provides no success feedback
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- python
- 領域
- cli, localization, tooling
調査の方向性
msgid "%" と msgstr "%" を含む Hindi の .po ファイルに対して mint-check-translations を実行して問題を再現し、その後パーサーの出力と完了時の動作を追跡します。ターミナルと GUI で検証の成功がどのように報告されるかを確認します。パーセント記号だけのエントリでパースエラーが発生せず、問題が見つからなかった場合に成功した実行が明示的なフィードバックを返せば完了です。
索引モデルが issue の本文から書いたものです。
説明
While validating Hindi translations with mint-check-translations, I noticed that translation entries consisting solely of a percent sign (%) trigger parsing errors in the terminal:
Error parsing msgid at index 0: string index out of range
Error parsing msgstr at index 0: string index out of range
The entry that triggers this is:
msgid "%"
msgstr "%"
Investigation
I added temporary debug output and confirmed that:
- The checker continues processing after these errors.
- Translation loading and validation complete successfully.
- The progress bar reaches completion.
- The GUI remains open and responsive.
So the issue does not appear to stop validation, but it produces confusing terminal output for what seems to be a valid translation entry.
Additional Observation
When validation completes with no translation issues found, the GUI remains empty and does not provide any explicit success message.
Since the documented workflow involves running the checker from a terminal, the combination of:
- terminal parsing errors, and
- an empty GUI with no success confirmation
can make it difficult to determine whether validation completed successfully or encountered a problem.
(While discussing this with Hindi and Tamil translators, it initially appeared that the translation file contained an error, but further investigation showed that validation completed successfully and the message was only emitted by the parser.)
Expected Behavior
Entries consisting solely of '%' appear to be valid translation entries and could be handled without emitting parser errors.
When validation completes successfully and no issues are found, the tool could provide explicit feedback (for example, a "No issues found" message or similar indication).
Environment
Linux Mint (mint-dev-tools)
Observed while validating Hindi .po translations.
Issue comes from the lone '%' that has come in the translation file
poEdit shows this
The files are loaded successfully though
I have a local reproduction and am currently looking into a possible fix.
- 主要言語
- Python
- スター
- 33
- フォーク
- 19
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
linuxmint/mint-dev-tools のほかの issue
-
linuxmint/mint-dev-tools#27 · 担当者 1 名 ·
linuxmint/mint-dev-tools の issue をすべて見る
似ている issue
-
triage/confirmed
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
agentscope-ai/agentscope#2775 ·
-
comp/desktop P3 type/bug
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
NousResearch/hermes-agent#118866 ·
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
apache/cloudstack#14222 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100