bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xgettext: Extracting comment blocks from YCP files


From: Karl Eichwalder
Subject: xgettext: Extracting comment blocks from YCP files
Date: Mon, 11 Jun 2007 17:39:00 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

xgettext --version
xgettext (GNU gettext-tools) 0.16

Extracting comment blocks from YCP files does not work if the function
body is longer than one line:

echo '// Translators: limit to 2x 50 chars
string nccc_top = _(
"xxx"
);' \
  | xgettext --language=YCP --add-comments=Translators --omit-header -o - -
#: standard input:3
msgid "xxx"
msgstr ""

If the function occupies just one line, that is '_("xxx");', it works as
expected:

echo '// Translators: limit to 2x 50 chars
string nccc_top = _("xxx");' \
  | xgettext --language=YCP --add-comments=Translators --omit-header -o - -
#. Translators: limit to 2x 50 chars
#: standard input:2
msgid "xxx"
msgstr ""

This issue is also tracked as
https://bugzilla.novell.com/show_bug.cgi?id=230388

-- 
Karl Eichwalder
R&D / Documentation

SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]