Fallback translation at will ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Fallback translation at will ?

Bob LeFou
Hello,
 
I'm using translated xform but I have a strange behavior. Sometime when a translated value cannot be found, default value is displayed and sometimes, Igot the translation key.
 
<msg:write key="{@status}"/>    display always the only one language availiable (here "Completed" as @status=FXX-COMMON-COMPLETED)

but when using

<

xforms:item>

<xforms:label><msg:write key="{.}"/></xforms:label>

<xforms:value><xsl:value-of select="@code"/></xforms:value>

</xforms:item>

the missing translated key is displayed ???FR.FXX-COMMON-LANG-ES??? and not the only one existing

Could this be linked to the englobing <xfoms:item> or <xforms:label> ?

Here is my an extract of the translation file

<FXX-COMMON-COMPLETED><lg id="EN">Completed</lg></FXX-COMMON-COMPLETED>

<

FXX-COMMON-LANG-ES><lg id="ES"
>español (es)</lg></FXX-COMMON-LANG-ES>

Regards,

Bob



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Fallback translation at will ?

Erik Bruchez
Administrator
Bob,

I have no idea. What is this msg:write thing?

-Erik

On Tue, May 10, 2011 at 5:46 AM, Bob LeFou <[hidden email]> wrote:

> Hello,
>
> I'm using translated xform but I have a strange behavior. Sometime when a
> translated value cannot be found, default value is displayed and
> sometimes, Igot the translation key.
>
> <msg:write key="{@status}"/>    display always the only one language
> availiable (here "Completed" as @status=FXX-COMMON-COMPLETED)
>
> but when using
>
> <
>
> xforms:item>
>
> <xforms:label><msg:write key="{.}"/></xforms:label>
>
> <xforms:value><xsl:value-of select="@code"/></xforms:value>
>
> </xforms:item>
>
> the missing translated key is displayed ???FR.FXX-COMMON-LANG-ES??? and not
> the only one existing
>
> Could this be linked to the englobing <xfoms:item> or <xforms:label> ?
>
> Here is my an extract of the translation file
>
> <FXX-COMMON-COMPLETED><lg id="EN">Completed</lg></FXX-COMMON-COMPLETED>
>
> <
>
> FXX-COMMON-LANG-ES><lg id="ES">español (es)</lg></FXX-COMMON-LANG-ES>
>
> Regards,
>
> Bob
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws