cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier Lange" <w...@petit-atelier.ch>
Subject i18n: how to translate document fragments?
Date Tue, 17 Sep 2002 14:02:43 GMT
[Cocoon 2.0.3, JDK 1.3.1_02, Tomcat 4.0.4]

What is the suggested way to translate a document fragment with the
I18nTransformer?

I would like not to chunk the content in smaller i18n:text elements, as the
message catalogue would get harder to understand and translate.

For instance:

  <descript-long>
    <i18n:text>
      some content with specific <dict-entry>tags</dict-entry>,
      which is not a text element, but a <ref xlink:href="...">document
fragment</ref>.
    </i18n:text>
  </descript-long>

I would like to define a document fragment within a message catalogue:

  <message key="doc0018-descript-long">
      some content with specific <dict-entry>tags</dict-entry>,
      which is not a text element, but a <ref xlink:href="...">document
fragment</ref>.
  </message>

As of Cocoon 2.0.3, only the first text element ("some content with
specific") of the fragement document gets thru the I18nTransformer.

Is there a simple solution that I would have overlooked?

Olivier Lange


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message