bugGNU gettext - Bugs: bug #51547, PO mode does not properly count...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #51547: PO mode does not properly count untranslated messages

Submitter:  Lele Gaifax <lele>
Submitted:  Sun 23 Jul 2017 12:33:48 PM UTC
 
Category:  PO mode Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

Tue 07 Dec 2021 05:31:10 PM UTC, comment #1: 

Amazingly, I must be the only one facing this issue, and it's still present in current master.

I rebased my customizations on top of current master, and the following commit contains the mentioned fix:

https://github.com/lelit/po-mode/commit/861130801a3eca94704c03e60d6660ec3518956c

Lele Gaifax <lele>
Sun 23 Jul 2017 12:33:48 PM UTC, original submission:  

When a catalog contains a plural form untranslated message, it fails to recognize it in `po-compute-counters`, and although it correctly sees it when doing `po-next-untranslated-entry`, the information in the mode-line is wrong.

I think it's due to the `po-untranslated-regexp` that is matched while the point is on the first "msgstr[0]" line.

See the attached file for a made-up example.

Lele Gaifax <lele>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #44704:  gettext.diff added by lele (953B - text/x-patch - The attached diff fixed the issue for me: feel free to suggest a better way to submit it.)
file #41299:  sample.po added by lele (621B - text/x-gettext-translation)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lele (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-08-04 lele Attached File- Added gettext.diff, #44704
    2017-07-23 lele Attached File- Added sample.po, #41299

    Back to the top


    Powered by Savane 3.9