Django

Code

Ticket #4695 (new)

Opened 11 months ago

Last modified 6 months ago

xgettext skips some translation strings in javascript files

Reported by: voy@voy.cz Assigned to: nobody
Component: Internationalization Version: 0.96
Keywords: Cc:
Triage Stage: Accepted Has patch: 0
Needs documentation: 0 Needs tests: 0
Patch needs improvement: 0

Description (Last modified by mtredinnick)

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.

Attachments

Change History

06/26/07 05:26:49 changed by voy@voy.cz

  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.

Sorry for the broken new lines.

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

06/26/07 07:20:38 changed by mtredinnick

  • description changed.

Fixed description.

12/01/07 19:38:31 changed by Simon G <dev@simon.net.nz>

  • stage changed from Unreviewed to Accepted.

Add/Change #4695 (xgettext skips some translation strings in javascript files)




Change Properties
Action