[Petal] Petal, internationalisation and translations

Chris Croome chris@webarchitects.co.uk
Wed, 31 Jul 2002 15:56:15 +0100


Hi

This is very interesting:

  For example:

    <span i18n:translate=''>
      <span tal:replace='here/name' i18n:name='name' /> was born in
      <span tal:replace='here/country_of_birth' i18n:name='country' />.
    </span>

  would cause this text to be passed to the translation service:

    "${name} was born in ${country}."

  http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/ZPTInternationalizationSupport

It seems to solve the issue of having to send markup to translators and allows
the order of things to be changed, for example some languages might need the
above to be written as:

  "${country} was the birthplace of ${name}"

Thought about this for Petal anyone?

Chris

-- 
Chris Croome                               <chris@webarchitects.co.uk>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/   
everything else                               http://chris.croome.net/