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: PHPSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned 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
  • -unavailable- added by haible (Updated the item)
  • -unavailable- added by patrickrose (Posted a comment)
  • -unavailable- added by patrickrose (Was submitted by me - didn't have account)

    Do you think this task is very important?
    If so, you can click here to 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
    Sun 27 Nov 2016 12:17:36 PM UTChaibleCategoryNone=>PHP
    Wed 10 Aug 2016 11:34:33 AM UTCpatrickroseCarbon-Copy-=>Added patrickrose

    Back to the top

    Powered by Savane 3.1-cleanup1