bugGNU gettext - Bugs: bug #48747, Muitiline invocation of *gettext...


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

bug #48747: Muitiline invocation of *gettext has confusing translation comments syntax

Submitted by:  None
Submitted on:  Wed 10 Aug 2016 11:29:45 AM UTC  
Category:  PHP Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Wed 10 Aug 2016 11:36:20 AM UTC, comment #1:

Apologies, forgot to add the output of xgettext -V

Patrick Rose <patrickrose>
Wed 10 Aug 2016 11:29:45 AM UTC, original submission:

Running xgettext on the following PHP code does not add the translation comments to the generated .po file:

Generated .po file:

Playing about with comments, I found that I had to put the translation comment immediately above the "Some text" line instead of above the function invocation which makes the code confusing to read for future developers.



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 patrickrose (Posted a comment)
  • -email is unavailable- added by patrickrose (Was submitted by me - didn't have account)

    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.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-27 haible CategoryNone => PHP
    2016-08-10 patrickrose Carbon-Copy- => Added patrickrose

    Back to the top

    Powered by Savane 3.4