Edgewall Software

Ticket #223 (reopened enhancement)

Opened 6 years ago

Last modified 6 years ago

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

Changed 6 years ago by cmlenz

  • milestone 0.5 deleted

Neat idea, but not for 0.5 :P

Changed 6 years ago by anonymous

  • status changed from new to closed
  • resolution set to invalid

Changed 6 years ago by anonymous

  • status changed from closed to reopened
  • resolution invalid deleted

Add/Change #223 (idea to use xpath than extracting i18n messages from genshi templates)

Author


E-mail address and user name can be saved in the Preferences.


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