Modify ↓
#12351 closed defect (fixed)
extract_message_js command extracts messages from jquery-ui.js
Reported by: | Jun Omae | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Milestone: | 1.0.10 |
Component: | i18n | Version: | |
Severity: | normal | Keywords: | babel |
Cc: | Branch: | ||
Release Notes: |
Prevent extraction from bundled javascript libraries and |
||
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 1 1 # mapping file for extracting messages from javascript files into 2 2 # trac/locale/messages-js.pot (see setup.cfg) 3 [javascript: **.js]4 5 3 [extractors] 6 4 javascript_script = trac.dist:extract_javascript_script 5 ignore = babel.messages.extract:extract_nothing 7 6 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] 8 14 [javascript_script: **.html]
Attachments (0)
Change History (4)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:3 by , 9 years ago
Owner: | set to |
---|
comment:4 by , 9 years ago
Release Notes: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.
Right, I also noticed recently that the generated htdocs/js/messages/*.js files were actually scanned!