diff options
author | Daiki Ueno <ueno@gnu.org> | 2013-11-14 16:10:03 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2013-11-14 16:10:03 +0900 |
commit | 82dae3e3a124a220dbfe9de6c46d1ddc9cb22498 (patch) | |
tree | d44a9821578da47cc17791e332309a2b840281cb /gettext-tools/tests/xgettext-javascript-3 | |
parent | 64427a17b7d50d509d54f60aa159c7107bd0e5c6 (diff) | |
download | external_gettext-82dae3e3a124a220dbfe9de6c46d1ddc9cb22498.zip external_gettext-82dae3e3a124a220dbfe9de6c46d1ddc9cb22498.tar.gz external_gettext-82dae3e3a124a220dbfe9de6c46d1ddc9cb22498.tar.bz2 |
javascript: fix translator comment extraction in C++-style comments
* src/x-javascript.c (phase3_getc): Make sure to call comment_line_end
after parsing C++ style comment line.
Reported by Illimar Tambek at: <http://savannah.gnu.org/bugs/?40572>.
* tests/xgettext-javascript-1: Add a test to extract translator comments
from C++ style comment lines; only extract comments with
TRANSLATORS: tag.
* tests/xgettext-javascript-3: Only extract comments with TRANSLATORS:
tag.
Diffstat (limited to 'gettext-tools/tests/xgettext-javascript-3')
-rwxr-xr-x | gettext-tools/tests/xgettext-javascript-3 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gettext-tools/tests/xgettext-javascript-3 b/gettext-tools/tests/xgettext-javascript-3 index c7dd956..95ced52 100755 --- a/gettext-tools/tests/xgettext-javascript-3 +++ b/gettext-tools/tests/xgettext-javascript-3 @@ -19,7 +19,7 @@ EOF tmpfiles="$tmpfiles xg-js-3.err xg-js-3.tmp xg-js-3.pot" : ${XGETTEXT=xgettext} -${XGETTEXT} --add-comments --no-location -o xg-js-3.tmp xg-js-3.js 2>xg-js-3.err +${XGETTEXT} --add-comments=TRANSLATORS: --no-location -o xg-js-3.tmp xg-js-3.js 2>xg-js-3.err test $? = 0 || { cat xg-js-3.err; rm -fr $tmpfiles; exit 1; } # Don't simplify this to "grep ... < xg-js-3.tmp", otherwise OpenBSD 4.0 grep # only outputs "Binary file (standard input) matches". |