Edgewall Software

Opened 8 years ago

Last modified 8 years ago

#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:


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]| 

see also http://groups.google.co.ve/group/posterity/browse_thread/thread/3bcaf795a67800e7

Attachments (0)

Change History (3)

comment:1 Changed 8 years ago by cmlenz

  • Milestone 0.5 deleted

Neat idea, but not for 0.5 :P

comment:2 Changed 8 years ago by anonymous

  • Resolution set to invalid
  • Status changed from new to closed

comment:3 Changed 8 years ago by anonymous

  • Resolution invalid deleted
  • Status changed from closed to reopened

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
as reopened The owner will remain cmlenz.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from cmlenz to the specified user. Next status will be 'new'.

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

Note: See TracTickets for help on using tickets.