bugGNU gettext - Bugs: bug #35522, Make msgfmt's --check-accelerators...

 
 

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

bug #35522: Make msgfmt's --check-accelerators test also check for unneeded presence in msgstr's

Submitted by:  Andre Klapper <andreklapper>
Submitted on:  Mon 13 Feb 2012 10:57:03 AM UTC  
 
Category:  Translator tools Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Fri 04 May 2012 01:15:22 PM UTC, comment #2:

Same problem the other way round: A '&' in the msgstr can be a regular character as well, and still it triggers a warning, which is correct as I prefer to have a false positive to no warnings at all.

Andre Klapper <andreklapper>
Fri 04 May 2012 12:28:48 PM UTC, comment #1:

And how would msgfmt know that this is a faulty translation? If there is no '&' in msgid, then this string is not in an menu/hotkey context, and '&' is just a regular character.

Consider this:
msgid "I love Romeo and Juliet!"
msgstr "Eu amo Romeu & Julieta!"

It was a translator's decision to replace "and" for "&", and since there is no hotkey context, it is fine. Not sure if this should warrant a warning.

Rodrigo Silva <mestrelion>
Mon 13 Feb 2012 10:57:03 AM UTC, original submission:

Currently msgfmt --check-accelerators checks for msgstr's that miss a format string that is included in the msgid.
However there are also sometimes msgstr's that include a format string that is not in the msgid, due to faulty translations.
This case could be also covered by --check-accelerators.

Example:
#: ../mail/foo.c:219
msgid "Check for new messages on start"
msgstr "Kontrolovat novou poštu při &startu"

The & in the msgstr currently does not trigger a warning.

Andre Klapper <andreklapper>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Updated the item)
  • -email is unavailable- added by mestrelion (Posted a comment)
  • -email is unavailable- added by andreklapper (Submitted the item)
  • -email is unavailable- added by andreklapper
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-27 haible CategoryNone => Translator tools
    2012-02-13 andreklapper Carbon-Copy- => Added -email is unavailable-

    Back to the top


    Powered by Savane 3.3