Edgewall Software

Opened 8 years ago

Last modified 8 years ago

#12351 closed defect

extract_message_js command extracts messages from jquery-ui.js — at Initial Version

Reported by: Jun Omae Owned by:
Priority: normal Milestone: 1.0.10
Component: i18n Version:
Severity: normal Keywords: babel
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

make extract with [14511] generates *.pot from jquery-ui.js like this.

#: trac/htdocs/js/jquery-ui.js:8
msgid "'"
msgstr ""

I think we should prevent extractions from bundled javascript files and messages/*.js files.

  • messages-js.cfg

    diff --git a/messages-js.cfg b/messages-js.cfg
    index b8d54c0a0..ce85ff361 100644
    a b  
    11# mapping file for extracting messages from javascript files into
    22# trac/locale/messages-js.pot (see setup.cfg)
    3 [javascript: **.js]
    4 
    53[extractors]
    64javascript_script = trac.dist:extract_javascript_script
     5ignore = babel.messages.extract:extract_nothing
    76
     7[ignore:            **/htdocs/js/jquery.js]
     8[ignore:            **/htdocs/js/jquery-ui.js]
     9[ignore:            **/htdocs/js/jquery-ui-addons.js]
     10[ignore:            **/htdocs/js/babel.js]
     11[ignore:            **/htdocs/js/excanvas.js]
     12[ignore:            **/htdocs/js/messages/*.js]
     13[javascript:        **.js]
    814[javascript_script: **.html]

Change History (0)

Note: See TracTickets for help on using tickets.