Change the language of internal components

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

Change the language of internal components

Heinrich Götzger
Hi,

I'd like to change the language of the components used within orbeon,
i.e. message -box or data-table.

The Data-table has some Text above or below like '<< first< prev next
 >last >>' and it would be nice to have them in german or other
languages as well.
Or the message box has a title 'message' and a button 'close', I'd like
to have them in other languages.

I'd tried to use
<property
       as="xs:string"
       name="oxf.fr.default-language.*.*"
       value="de"/>

But this seems not to work as expected. Even after restarting the webserver.

I tried with '&fr-language=de' adding to the URL without success.

And I tried with
<xhtml:html ....    xml:lang="fr"    lang="fr">

Without success as well.


I'm using:  Orbeon Forms 3.9.0.201105152046-CE

Thanks for some help.

Cheers

Heinrich

--
Before printing this e-mail, think about our environmental responsibility.



--
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: Change the language of internal components

Tambet Matiisen
Hi Heinrich!

Those texts are not translatable at the moment. You will find these
texts and more similar texts in following Javascript files:
WEB-INF/lib/orbeon-resources-public.jar/ops/javascript/xforms[-min].js
WEB-INF/lib/orbeon-resources-public.jar/ops/javascript/orbeon/action/Message[-min].js
WEB-INF/lib/orbeon-resources-public.jar/ops/javascript/orbeon/control/CalendarResources[-min].js
WEB-INF/lib/orbeon-resources-public.jar/ops/javascript/orbeon/control/Upload[-min].js
WEB-INF/lib/orbeon-resources-public.jar/ops/javascript/orbeon/server/AjaxServer[-min].js

We made copy of those files under our own resources directory and
changed the required strings. Of course we have to update javascript
files every time we upgrade Orbeon, but that's just how life is.

   Tambet

On 14.12.2011 13:12, Heinrich Götzger wrote:

> Hi,
>
> I'd like to change the language of the components used within orbeon,
> i.e. message -box or data-table.
>
> The Data-table has some Text above or below like '<< first< prev next
> >last >>' and it would be nice to have them in german or other
> languages as well.
> Or the message box has a title 'message' and a button 'close', I'd
> like to have them in other languages.
>
> I'd tried to use
> <property
>       as="xs:string"
>       name="oxf.fr.default-language.*.*"
>       value="de"/>
>
> But this seems not to work as expected. Even after restarting the
> webserver.
>
> I tried with '&fr-language=de' adding to the URL without success.
>
> And I tried with
> <xhtml:html ....    xml:lang="fr"    lang="fr">
>
> Without success as well.
>
>
> I'm using:  Orbeon Forms 3.9.0.201105152046-CE
>
> Thanks for some help.
>
> Cheers
>
> Heinrich
>


--
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: Re: Change the language of internal components

Heinrich Götzger
Hi Tambet,

thanks for your reply and for the links to the scripts.
I had an apprehension that it will be like that.

Anyway, we'll se how we can handle this, 'cause we would need multiple
languages depending on the users setting using the form.

regards

Heinrich


On 12/18/11 15:47, Tambet Matiisen wrote:

> Hi Heinrich!
>
> Those texts are not translatable at the moment. You will find these
> texts and more similar texts in following Javascript files:
> WEB-INF/lib/orbeon-resources-public.jar/ops/javascript/xforms[-min].js
> WEB-INF/lib/orbeon-resources-public.jar/ops/javascript/orbeon/action/Message[-min].js
>
> WEB-INF/lib/orbeon-resources-public.jar/ops/javascript/orbeon/control/CalendarResources[-min].js
>
> WEB-INF/lib/orbeon-resources-public.jar/ops/javascript/orbeon/control/Upload[-min].js
>
> WEB-INF/lib/orbeon-resources-public.jar/ops/javascript/orbeon/server/AjaxServer[-min].js
>
>
> We made copy of those files under our own resources directory and
> changed the required strings. Of course we have to update javascript
> files every time we upgrade Orbeon, but that's just how life is.
>
>   Tambet
>
> On 14.12.2011 13:12, Heinrich Götzger wrote:
>> Hi,
>>
>> I'd like to change the language of the components used within orbeon,
>> i.e. message -box or data-table.
>>
>> The Data-table has some Text above or below like '<< first< prev next
>> >last >>' and it would be nice to have them in german or other
>> languages as well.
>> Or the message box has a title 'message' and a button 'close', I'd
>> like to have them in other languages.
>>
>> I'd tried to use
>> <property
>>       as="xs:string"
>>       name="oxf.fr.default-language.*.*"
>>       value="de"/>
>>
>> But this seems not to work as expected. Even after restarting the
>> webserver.
>>
>> I tried with '&fr-language=de' adding to the URL without success.
>>
>> And I tried with
>> <xhtml:html ....    xml:lang="fr"    lang="fr">
>>
>> Without success as well.
>>
>>
>> I'm using:  Orbeon Forms 3.9.0.201105152046-CE
>>
>> Thanks for some help.
>>
>> Cheers
>>
>> Heinrich
>>
>

--
Before printing this e-mail, think about our environmental responsibility.



--
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