From: "Chitharanjan Das" <[EMAIL PROTECTED]>

> Hello,
> I have the latest code from CVS..
> I have a problem with i18:translate element with formatting
> The example (simple.xml [http://localhost:8080/i18n/simple.xml), does
> not work either.

The new location of samples is:
http://localhost:8080/samples/i18n/

The problem is that the syntax has changed in a back incompatible way. Use
'type' attribute instead of 'sub-type', so the example will look like this:

 <i18n:param type="currency" src-locale="en">27.24</i18n:param>
 <i18n:param type="percent" src-locale="en">1.2</i18n:param>

Hope this helps.

--
  Konstantin

>
> The following is an excerpt from the xml file
> <para title="Number formatting (not translated)" name="article"
> i18n:attr="name">
> <i18n:translate>
> Number : {0} | Currency: {1} | Percent: {2}, processed
> on: {3}
> <i18n:param type="number" src-locale="en"
> value="1703.74" />
> <i18n:param type="number" sub-type="currency"
> src-locale="en">27.24</i18n:param>
> <i18n:param type="number" sub-type="percent"
> src-locale="en">1.2</i18n:param>
> <i18n:param type="date-time" pattern="MEDIUM"/>
> </i18n:translate>
> </para>
>
> The display just prints the line
> Number formatting (not translated).
>
> The rest of the information is not printed as well as any other element
> below this (for instance, COPYright informarion)
>
> I think this is a bug or the syntax for <i18n:translate element is
> wrong.
>
> If this works, it's a cool feature...
>
>
> Regds,
> Chiths
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to