Opened 17 years ago

Last modified 13 years ago

#4695 closed

xgettext skips some translation strings in javascript files — at Version 2

Reported by: voy@… Owned by: nobody
Component: Internationalization Version: dev
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Malcolm Tredinnick)

For a simple Javascript source file like this:

// '
gettext("foo");
// '
gettext("bar");

results of make-messages.py run will exclude the "foo" string. Apparently this is related to the presence of apostrophes in the preceding comment. I am using gettext 0.14.4 under win32. I suspect this might be some quirk in relation to xgettext being called with Perl in the language parameter.

Change History (2)

comment:1 by voy@…, 17 years ago

Sorry for the broken new lines.

// '
gettext("foo");
// '
gettext("bar");

comment:2 by Malcolm Tredinnick, 17 years ago

Description: modified (diff)

Fixed description.

Note: See TracTickets for help on using tickets.
Back to Top