You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Chitharanjan Das <cd...@accordiasys.com> on 2002/05/08 01:19:40 UTC
More Problems with i18n (i18n:translate not working with format)
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 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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: More Problems with i18n (i18n:translate not working with format)
Posted by Konstantin Piroumian <kp...@apache.org>.
From: "Chitharanjan Das" <cd...@accordiasys.com>
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>