i18n issues

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

i18n issues

Håvard Nesvold2

Hi everyone!

 

I’m trying to change some of the resource texts on a form being run by the form runner.

I successfully change the text on the Submit button by setting the

 

<property as="xs:string" name="oxf.fr.resource.*.*.en.detail.labels.submit-document" value="Send" />

 

property in my properties-local.xml file.

 

However, when operating with an additional language (Norwegian) in my form and overriding the same label to something else e.g.

 

<property as="xs:string" name="oxf.fr.resource.*.*.no.detail.labels.submit-document" value="Send inn" />

 

, it is still the English version of my form thats being shown. Moreover, viewing the submitted form on the summary page for that form lists the submission as being done in English (Language: en) even though I’ve selected norwegian in the form (and even set the oxf.fr.default-language.*.* property to ‘no’).

 

Summarized – i18n does not seem to work for me! I’ve read that this is a feature for the professional edition of the software, and that is in fact the editon I’ve using (although on a trial licence), perhaps something else has to be configured in order to get this feature to work properly? Does it work for you guys?

 

Thanks for helping me out.

 

Regards,

Håvard

 

 

 



Denne e-posten og eventuelle vedlegg er fortrolige og kan inneholde opplysninger underlagt rettslig taushetsplikt. E-posten er utelukkende beregnet for den institusjonen
eller personen den er sendt til eller ment sendt til. Dersom e-posten er sendt feil, bes du informere Gjensidige pr e-post eller telefon, dessuten slette e-posten og
eventuelle vedlegg, uten å ta kopier eller videresende e-posten. Enhver bruk av informasjonen er i tilfelle ulovlig.
Selv om denne e-posten og eventuelle vedlegg etter Gjensidiges overbevisning er fri for virus og andre feil som kan påvirke PC eller it-systemer, åpnes e-posten
på mottakers ansvar. Gjensidige påtar seg intet ansvar for skade eller økonomisk tap grunnet skade, som følge av å motta, åpne eller bruke denne e-posten.



--
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: i18n issues

Alessandro  Vernet
Administrator
Håvard,

Most likely, this is because you need to restart the application
server after changing the resources. The resources in FR are generated
by calling a service, which we want to avoid doing every time the form
is loaded. For that reason, right now FR caches very aggressively the
resources, which means that after changing the resources file or
overriding resources with properties, you need to restart Orbeon
Forms. This is something that we'd like to improve so you can change
resources more easily during development.

Alex

On Fri, Jul 30, 2010 at 5:47 AM, Håvard Nesvold
<[hidden email]> wrote:

> Hi everyone!
>
>
>
> I’m trying to change some of the resource texts on a form being run by the
> form runner.
>
> I successfully change the text on the Submit button by setting the
>
>
>
> <property as="xs:string"
> name="oxf.fr.resource.*.*.en.detail.labels.submit-document" value="Send" />
>
>
>
> property in my properties-local.xml file.
>
>
>
> However, when operating with an additional language (Norwegian) in my form
> and overriding the same label to something else e.g.
>
>
>
> <property as="xs:string"
> name="oxf.fr.resource.*.*.no.detail.labels.submit-document" value="Send inn"
> />
>
>
>
> , it is still the English version of my form thats being shown. Moreover,
> viewing the submitted form on the summary page for that form lists the
> submission as being done in English (Language: en) even though I’ve selected
> norwegian in the form (and even set the oxf.fr.default-language.*.* property
> to ‘no’).
>
>
>
> Summarized – i18n does not seem to work for me! I’ve read that this is a
> feature for the professional edition of the software, and that is in fact
> the editon I’ve using (although on a trial licence), perhaps something else
> has to be configured in order to get this feature to work properly? Does it
> work for you guys?
>
>
>
> Thanks for helping me out.
>
>
>
> Regards,
>
> Håvard
>
>
>
>
>
>
>
> ________________________________
> Denne e-posten og eventuelle vedlegg er fortrolige og kan inneholde
> opplysninger underlagt rettslig taushetsplikt. E-posten er utelukkende
> beregnet for den institusjonen
> eller personen den er sendt til eller ment sendt til. Dersom e-posten er
> sendt feil, bes du informere Gjensidige pr e-post eller telefon, dessuten
> slette e-posten og
> eventuelle vedlegg, uten å ta kopier eller videresende e-posten. Enhver bruk
> av informasjonen er i tilfelle ulovlig.
> Selv om denne e-posten og eventuelle vedlegg etter Gjensidiges overbevisning
> er fri for virus og andre feil som kan påvirke PC eller it-systemer, åpnes
> e-posten
> på mottakers ansvar. Gjensidige påtar seg intet ansvar for skade eller
> økonomisk tap grunnet skade, som følge av å motta, åpne eller bruke denne
> e-posten.
>
>
>
> --
> 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, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: i18n issues

Håvard Nesvold
Hm, I really recall doing just that for every change I made in my properties/resources, and I understood that it was needed to get the changed values loaded. Nevertheless, the language in use was still 'en' even though it should have been 'no' as was set as the default language (and also the only language defined for the form).

I will verify it when I get back to work in a couple of weeks and report back. However, I am pretty confident that I did indeed restart the server properly.

Thanks for your help Alessandro

2010/8/4 Alessandro Vernet <[hidden email]>
Håvard,

Most likely, this is because you need to restart the application
server after changing the resources. The resources in FR are generated
by calling a service, which we want to avoid doing every time the form
is loaded. For that reason, right now FR caches very aggressively the
resources, which means that after changing the resources file or
overriding resources with properties, you need to restart Orbeon
Forms. This is something that we'd like to improve so you can change
resources more easily during development.

Alex

On Fri, Jul 30, 2010 at 5:47 AM, Håvard Nesvold
<[hidden email]> wrote:
> Hi everyone!
>
>
>
> I’m trying to change some of the resource texts on a form being run by the
> form runner.
>
> I successfully change the text on the Submit button by setting the
>
>
>
> <property as="xs:string"
> name="oxf.fr.resource.*.*.en.detail.labels.submit-document" value="Send" />
>
>
>
> property in my properties-local.xml file.
>
>
>
> However, when operating with an additional language (Norwegian) in my form
> and overriding the same label to something else e.g.
>
>
>
> <property as="xs:string"
> name="oxf.fr.resource.*.*.no.detail.labels.submit-document" value="Send inn"
> />
>
>
>
> , it is still the English version of my form thats being shown. Moreover,
> viewing the submitted form on the summary page for that form lists the
> submission as being done in English (Language: en) even though I’ve selected
> norwegian in the form (and even set the oxf.fr.default-language.*.* property
> to ‘no’).
>
>
>
> Summarized – i18n does not seem to work for me! I’ve read that this is a
> feature for the professional edition of the software, and that is in fact
> the editon I’ve using (although on a trial licence), perhaps something else
> has to be configured in order to get this feature to work properly? Does it
> work for you guys?
>
>
>
> Thanks for helping me out.
>
>
>
> Regards,
>
> Håvard
>
>
>
>
>
>
>
> ________________________________
> Denne e-posten og eventuelle vedlegg er fortrolige og kan inneholde
> opplysninger underlagt rettslig taushetsplikt. E-posten er utelukkende
> beregnet for den institusjonen
> eller personen den er sendt til eller ment sendt til. Dersom e-posten er
> sendt feil, bes du informere Gjensidige pr e-post eller telefon, dessuten
> slette e-posten og
> eventuelle vedlegg, uten å ta kopier eller videresende e-posten. Enhver bruk
> av informasjonen er i tilfelle ulovlig.
> Selv om denne e-posten og eventuelle vedlegg etter Gjensidiges overbevisning
> er fri for virus og andre feil som kan påvirke PC eller it-systemer, åpnes
> e-posten
> på mottakers ansvar. Gjensidige påtar seg intet ansvar for skade eller
> økonomisk tap grunnet skade, som følge av å motta, åpne eller bruke denne
> e-posten.
>
>
>
> --
> 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, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
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
Reply | Threaded
Open this post in threaded view
|

Re: i18n issues

Alessandro  Vernet
Administrator
Håvard,

Sounds good; just let us know if you can reproduce this, and if you
can, please include detailed instructions on how we can reproduce this
here.

Alex

On Wednesday, August 4, 2010, Håvard Nesvold <[hidden email]> wrote:

> Hm, I really recall doing just that for every change I made in my properties/resources, and I understood that it was needed to get the changed values loaded. Nevertheless, the language in use was still 'en' even though it should have been 'no' as was set as the default language (and also the only language defined for the form).
>
> I will verify it when I get back to work in a couple of weeks and report back. However, I am pretty confident that I did indeed restart the server properly.
> Thanks for your help Alessandro
>
> 2010/8/4 Alessandro Vernet <[hidden email]>
>
> Håvard,
>
> Most likely, this is because you need to restart the application
> server after changing the resources. The resources in FR are generated
> by calling a service, which we want to avoid doing every time the form
> is loaded. For that reason, right now FR caches very aggressively the
> resources, which means that after changing the resources file or
> overriding resources with properties, you need to restart Orbeon
> Forms. This is something that we'd like to improve so you can change
> resources more easily during development.
>
> Alex
>
> On Fri, Jul 30, 2010 at 5:47 AM, Håvard Nesvold
> <[hidden email]> wrote:
>> Hi everyone!
>>
>>
>>
>> I’m trying to change some of the resource texts on a form being run by the
>> form runner.
>>
>> I successfully change the text on the Submit button by setting the
>>
>>
>>
>> <property as="xs:string"
>> name="oxf.fr.resource.*.*.en.detail.labels.submit-document" value="Send" />
>>
>>
>>
>> property in my properties-local.xml file.
>>
>>
>>
>> However, when operating with an additional language (Norwegian) in my form
>> and overriding the same label to something else e.g.
>>
>>
>>
>> <property as="xs:string"
>> name="oxf.fr.resource.*.*.no.detail.labels.submit-document" value="Send inn"
>> />
>>
>>
>>
>> , it is still the English version of my form thats being shown. Moreover,
>> viewing the submitted form on the summary page for that form lists the
>> submission as being done in English (Language: en) even though I’ve selected
>> norwegian in the form (and even set the oxf.fr.default-language.*.* property
>> to ‘no’).
>>
>>
>>
>> Summarized – i18n does not seem to work for me! I’ve read that this is a
>> feature for the professional edition of the software, and that is in fact
>> the editon I’ve using (although on a trial licence), perhaps something else
>> has to be configured in order to get this feature to work properly? Does it
>> work for you guys?
>>
>>
>>
>> Thanks for helping me out.
>>
>>
>>
>> Regards,
>>
>> Håvard
>>
>>
>>
>>
>>
>>
>>
>> ________________________________
>> Denne e-posten og eventuelle vedlegg er fortrolige og kan inneholde
>> opplysninger underlagt rettslig taushetsplikt. E-posten er utelukkende
>> beregnet for den institusjonen
>> eller personen den er sendt til eller ment sendt til. Dersom e-posten er
>> sendt feil, bes du informere Gjensidige pr e-post eller telefon, dessuten
>> slette e-posten og
>> eventuelle vedlegg, uten å ta kopier eller videresende e-posten. Enhver bruk
>> av informasjonen er i tilfelle ulovlig.
>> Selv om denne e-posten og eventuelle vedlegg etter Gjensidiges overbevisning
>> er fri for virus og andre feil som kan påvirke PC eller it-systemer, åpnes
>> e-posten
>> på mottakers ansvar. Gjensidige påtar seg intet ansvar for skade eller
>> økonomisk tap grunnet skade, som følge av å motta, åpne eller bruke denne
>> e-posten.
>>
>>
>>
>> --
>> 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, open-source, for the Enterprise -
> http://www.orbeon.com/
> My Twitter: http://twitter.com/avernet
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:
>
>
--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: i18n issues

Alessandro  Vernet
Administrator
In reply to this post by Håvard Nesvold
Håvard,

Sounds good; just let us know if you can reproduce this, and if you
can, please include detailed instructions on how we can reproduce this
here.

Alex

On Wednesday, August 4, 2010, Håvard Nesvold <[hidden email]> wrote:

> Hm, I really recall doing just that for every change I made in my properties/resources, and I understood that it was needed to get the changed values loaded. Nevertheless, the language in use was still 'en' even though it should have been 'no' as was set as the default language (and also the only language defined for the form).
>
> I will verify it when I get back to work in a couple of weeks and report back. However, I am pretty confident that I did indeed restart the server properly.
> Thanks for your help Alessandro
>
> 2010/8/4 Alessandro Vernet <[hidden email]>
>
> Håvard,
>
> Most likely, this is because you need to restart the application
> server after changing the resources. The resources in FR are generated
> by calling a service, which we want to avoid doing every time the form
> is loaded. For that reason, right now FR caches very aggressively the
> resources, which means that after changing the resources file or
> overriding resources with properties, you need to restart Orbeon
> Forms. This is something that we'd like to improve so you can change
> resources more easily during development.
>
> Alex
>
> On Fri, Jul 30, 2010 at 5:47 AM, Håvard Nesvold
> <[hidden email]> wrote:
>> Hi everyone!
>>
>>
>>
>> I’m trying to change some of the resource texts on a form being run by the
>> form runner.
>>
>> I successfully change the text on the Submit button by setting the
>>
>>
>>
>> <property as="xs:string"
>> name="oxf.fr.resource.*.*.en.detail.labels.submit-document" value="Send" />
>>
>>
>>
>> property in my properties-local.xml file.
>>
>>
>>
>> However, when operating with an additional language (Norwegian) in my form
>> and overriding the same label to something else e.g.
>>
>>
>>
>> <property as="xs:string"
>> name="oxf.fr.resource.*.*.no.detail.labels.submit-document" value="Send inn"
>> />
>>
>>
>>
>> , it is still the English version of my form thats being shown. Moreover,
>> viewing the submitted form on the summary page for that form lists the
>> submission as being done in English (Language: en) even though I’ve selected
>> norwegian in the form (and even set the oxf.fr.default-language.*.* property
>> to ‘no’).
>>
>>
>>
>> Summarized – i18n does not seem to work for me! I’ve read that this is a
>> feature for the professional edition of the software, and that is in fact
>> the editon I’ve using (although on a trial licence), perhaps something else
>> has to be configured in order to get this feature to work properly? Does it
>> work for you guys?
>>
>>
>>
>> Thanks for helping me out.
>>
>>
>>
>> Regards,
>>
>> Håvard
>>
>>
>>
>>
>>
>>
>>
>> ________________________________
>> Denne e-posten og eventuelle vedlegg er fortrolige og kan inneholde
>> opplysninger underlagt rettslig taushetsplikt. E-posten er utelukkende
>> beregnet for den institusjonen
>> eller personen den er sendt til eller ment sendt til. Dersom e-posten er
>> sendt feil, bes du informere Gjensidige pr e-post eller telefon, dessuten
>> slette e-posten og
>> eventuelle vedlegg, uten å ta kopier eller videresende e-posten. Enhver bruk
>> av informasjonen er i tilfelle ulovlig.
>> Selv om denne e-posten og eventuelle vedlegg etter Gjensidiges overbevisning
>> er fri for virus og andre feil som kan påvirke PC eller it-systemer, åpnes
>> e-posten
>> på mottakers ansvar. Gjensidige påtar seg intet ansvar for skade eller
>> økonomisk tap grunnet skade, som følge av å motta, åpne eller bruke denne
>> e-posten.
>>
>>
>>
>> --
>> 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, open-source, for the Enterprise -
> http://www.orbeon.com/
> My Twitter: http://twitter.com/avernet
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:
>
>
--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: i18n issues

Håvard Nesvold
Ok, do the following to reproduce what I'm facing;

1) First create a new form library; application name 'test', form name 'library'.
2) Still with the default language 'English', name the first section 'Contact information', and the initial text field in this section 'First name'.
3) Add another language - 'Norsk (Norwegian)'.
4) With norwegian now being selected, rename the section 'Kontaktinformasjon', and the text field 'Fornavn'.
5) Save, publish and close the library form.
6) Create a new form; application name 'test', form name 'testform'.
7) Add language 'Norsk (Norwegian)' to the new form.
8) Add the "Contact information" section template to the form.

Now observe that although norwegian is the selected language; the added section is displayed in english.
This can also be seen when testing the form - the norwegian version of the section is never used.
This procedure also demonstrates that the language texts entered in the resources file (se initial post in this thread) is never used; the english text is always shown.

I hope this helps demonstrate my problems and i look forward to hearing from you!

-Håvard




Reply | Threaded
Open this post in threaded view
|

Re: Re: i18n issues

Erik Bruchez
Administrator
Håvard & all,

This bug is now fixed:

Bug:
http://forge.ow2.org/tracker/index.php?func=detail&aid=315425&group_id=168&atid=350207

Commit:
http://github.com/orbeon/orbeon-forms/commit/4d91d7ab86e9a2d405e0e6e343f34d78dab19787

-Erik

On Fri, Aug 13, 2010 at 9:28 AM, Håvard Nesvold <[hidden email]> wrote:

>
> Ok, do the following to reproduce what I'm facing;
>
> 1) First create a new form library; application name 'test', form name
> 'library'.
> 2) Still with the default language 'English', name the first section
> 'Contact information', and the initial text field in this section 'First
> name'.
> 3) Add another language - 'Norsk (Norwegian)'.
> 4) With norwegian now being selected, rename the section
> 'Kontaktinformasjon', and the text field 'Fornavn'.
> 5) Save, publish and close the library form.
> 6) Create a new form; application name 'test', form name 'testform'.
> 7) Add language 'Norsk (Norwegian)' to the new form.
> 8) Add the "Contact information" section template to the form.
>
> Now observe that although norwegian is the selected language; the added
> section is displayed in english.
> This can also be seen when testing the form - the norwegian version of the
> section is never used.
> This procedure also demonstrates that the language texts entered in the
> resources file (se initial post in this thread) is never used; the english
> text is always shown.
>
> I hope this helps demonstrate my problems and i look forward to hearing from
> you!
>
> -Håvard
>
>
>
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/i18n-issues-tp2307927p2324458.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
>
>


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