bugGNU gettext - Bugs: bug #33451, xgettext ignores translation hints...

 
 

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

bug #33451: xgettext ignores translation hints when source contains two line breaks

Submitter:  None
Submitted:  Wed 01 Jun 2011 10:07:53 AM UTC
   
 
Category:  PHP Severity:  3 - Normal
Item Group:  None Status:  Duplicate
Privacy:  Public Assigned to:  ueno
Open/Closed:  Closed

Mon 01 Dec 2014 07:52:01 AM UTC, comment #1: 
Daiki Ueno <ueno>
Group administrator
Wed 01 Jun 2011 10:07:53 AM UTC, original submission:  

$ xgettext --version
xgettext (GNU gettext-tools) 0.18.1
[snip]

Note the line breaks in the following source code
1) after _(
2) before _(
3) before and after _(

$ cat bug.php
<?php

echo /* I18N: hint one */ _(
'text one');

echo /* I18N: hint two */
_('text two');

echo /* I18N: hint three */
_(
'text three');

?>


$ xgettext --language=PHP bug.php --add-comments=I18N --output=-
[snip]

#. I18N: hint one
#: bug.php:4
msgid "text one"
msgstr ""

#. I18N: hint two
#: bug.php:7
msgid "text two"
msgstr ""

#: bug.php:11
msgid "text three"
msgstr ""

It seems that xgettext correctly matches the translation hints in the first two cases, but not the third. 

Greg Roach
-email is unavailable-

Anonymous

 

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

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 ueno (Posted a comment)
  •  

    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.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-27 haible CategoryNone PHP
        Assigned toNone ueno
    2014-12-01 ueno StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code