Dear OPS users,
I want to use the dynamic language switching as introduced in the XForms Tips. The reference live example is very sophisticated because of 2 forms. My form for 3 languages works with the exception that I can not load diff language files. How can I achieve the loading of the diff language files ? This is not very clear written in the XForms Tip ? What I am doing wrong here ? <xforms:model> <xforms:instance id="language-instance"> <language xmlns="">en</language> </xforms:instance> <xforms:instance id="resources-instance" src="oxf:/apps/ecooker/ee195_en.xml" xxforms:readonly="false"/> <xforms:submission id="update-language-submission" ref="instance('language-instance')" action="/forms/service/resources/{{.}}" validate="false" method="get" replace="instance" instance="resources-instance"/> </xforms:model> <xforms:select1 ref="instance('language-instance')"> <xforms:label ref="instance('resources-instance')/labels/language-choice"/> <xforms:item> <xforms:label>en</xforms:label> <xforms:value>en</xforms:value> </xforms:item> <xforms:item> <xforms:label>de</xforms:label> <xforms:value>de</xforms:value> </xforms:item> <xforms:item> <xforms:label>ru</xforms:label> <xforms:value>ru</xforms:value> </xforms:item> <xforms:send ev:event="xforms-value-changed" submission="update-language-submission"/> </xforms:select1> Best regards Peter -- 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 |
Administrator
|
Right, in practice there are several questions to answer:
* Where are the resources stored? * What format do they have? * How do you switch them? Can you just use Form Runner? It includes support for multiple languages, so you wouldn't have to think about it. -Erik On Oct 17, 2008, at 10:56 AM, Peter Teichert wrote: > Dear OPS users, > > I want to use the dynamic language switching as introduced in the > XForms Tips. > > The reference live example is very sophisticated because of 2 forms. > > My form for 3 languages works with the exception that I can not load > diff language files. > How can I achieve the loading of the diff language files ? This is > not very clear written in the XForms Tip ? > > What I am doing wrong here ? > > <xforms:model> > > <xforms:instance id="language-instance"> > <language xmlns="">en</language> > </xforms:instance> > > <xforms:instance id="resources-instance" src="oxf:/apps/ecooker/ > ee195_en.xml" xxforms:readonly="false"/> > > <xforms:submission id="update-language-submission" > ref="instance('language-instance')" > action="/forms/service/resources/{{.}}" validate="false" > method="get" replace="instance" instance="resources- > instance"/> > > </xforms:model> > > <xforms:select1 ref="instance('language-instance')"> > <xforms:label ref="instance('resources-instance')/labels/ > language-choice"/> > <xforms:item> > <xforms:label>en</xforms:label> > <xforms:value>en</xforms:value> > </xforms:item> > <xforms:item> > <xforms:label>de</xforms:label> > <xforms:value>de</xforms:value> > </xforms:item> > <xforms:item> > <xforms:label>ru</xforms:label> > <xforms:value>ru</xforms:value> > </xforms:item> > <xforms:send ev:event="xforms-value-changed" submission="update- > language-submission"/> > </xforms:select1> > > Best regards > > Peter > > -- > 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 Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 |
Free forum by Nabble | Edit this page |