Edgewall Software

Ticket #6353 (new enhancement)

Opened 12 months ago

Last modified 13 days ago

Translation Interfaces for javascript

Reported by: trac-ja@… Owned by: jonas
Priority: normal Milestone: 0.12
Component: i18n Version: devel
Severity: normal Keywords:
Cc: trac-ja@…

Description

There are some message strings in javascript:

I'd like to translate these strings, but there are no interfaces for I18N.

Do you have any ideas?

Attachments

trac-jsi18n.patch (5.1 KB) - added by jonas 13 days ago.
A first prototype for i18n support for javascript

Change History

Changed 12 months ago by trac-ja@…

  • cc trac-ja@… added
  • milestone set to 0.12

I tried to write a patch to use Genshi text template in javascript. But it conflicts with $ between jQuery and Genshi.

Changed 5 months ago by trac-ja@…

Changed 5 months ago by cboos

  • component changed from general to i18n
  • milestone changed from 0.13 to 0.12

Changed 13 days ago by jonas

A first prototype for i18n support for javascript

Changed 13 days ago by jonas

I just attached a first attempt at i18n support for javascript.

Most of it is pretty straight forward and the babel javascript extractor works perfectly.

One problem that is still unsolved is how to reduce the size of the js message catalog. The current implementation includes the entire message catalog which isn't very practical. One option would be to store the js strings in a separate domain but I'm not sure the babel extractor currently can extract messages into more than one domain.

Add/Change #6353 (Translation Interfaces for javascript)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from jonas. Next status will be 'new'
The owner will change from jonas to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.