Ticket #223 (reopened enhancement)
idea to use xpath than extracting i18n messages from genshi templates
| Reported by: | vsafronovich@… | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Internationalization | Version: | devel |
| Keywords: | i18n xpath | Cc: |
Description
may be better use xpath in ignore_tags and inclide_attrs parameters for example
[genshi: **/templates/**.html] ignore_tags = script style include_attrs = alt title summary
transform to
[genshi: **/templates/**.html]
#may be mistakes in XPath sentences
#name 'exclude' and 'include' is used for backward compatibility.
exclude = //script|//style
include = /html/body/*[@alt]|/html/body/*[@title]|/html/body/*[@summary]|
/html/body/*/input[@type="submit"][@value]
see also http://groups.google.co.ve/group/posterity/browse_thread/thread/3bcaf795a67800e7
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
