bug-gettext
[Top][All Lists]
Advanced

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

[bug-gettext] unclear basic functionality


From: Thomas Wolff
Subject: [bug-gettext] unclear basic functionality
Date: Wed, 15 Jun 2016 14:58:18 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0

Hi,
checking to use gettext-formatted I18N in my project,
I ran into a number of basic issues:


For the following source
    gettext("test line 1\ntest line 2")
I would expect
msgid "test line 1\ntest line 2"
but xgettext (0.19.7 on cygwin) generates
msgid ""
"test line 1\n"
"test line 2"

With option --stringtable-output, this works fine.


For the following source
_("test_")
xgettext produces nothing by default; -k_ works, but Google finds
--flag=_:1:pass-c-format which does not work.
Since _() seems to be quite popular, maybe it should be handled by default, or better documented?


Option --omit-header implies failure on non-ASCII characters despite proper option --from-code.


If source messages (msgids) are changed, this will produce inconsistencies with existing translations.
Is there any tool that at least detects such changes, or even updates .po files?


Thanks and kind regards,
Thomas

reply via email to

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