mint-check-translations emits parsing errors for lone '%' strings and provides no success feedback

オープン
#28 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python

調査の方向性

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
Image
poEdit shows this
Image
The files are loaded successfully though
Image

I have a local reproduction and am currently looking into a possible fix.

主要言語
Python
スター
33
フォーク
19
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

linuxmint/mint-dev-tools のほかの issue

linuxmint/mint-dev-tools の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。