Edgewall Software

Opened 16 years ago

Last modified 16 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:

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

Change History (3)

comment:1 Changed 16 years ago by cmlenz

  • Milestone 0.5 deleted

Neat idea, but not for 0.5 :P

comment:2 Changed 16 years ago by anonymous

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

comment:3 Changed 16 years ago by anonymous

  • Resolution invalid deleted
  • Status changed from closed to reopened
Note: See TracTickets for help on using tickets.