Page 1 of 1

How to set language for "date picker" form control

Posted: Mon Dec 11, 2023 3:23 pm
by ArthurP
Hi,

how can I set the language for "date picker" form control in a web application ? For instance, french.
Our document have

Code: Select all

xml:lang="fr_FR"
set on the root and the user interface is also set to "french" but the date is write in english. I tried to set language in URL with lang=fr without success too. Maybe, this is something to be set on java level ? or when the webapp is starting ?

I have no problem with desktop version of these framework.

Our CSS looks like

Code: Select all

  content: 
  oxy_datePicker(
edit, '#text', 
columns, 16, validateInput, 'true', 
format, 'dd MMMMMMMM yyyy', fontInherit, 'true', color, 'darkblue');
  visibility: -oxy-collapse-text;
}
Thanks !

Re: How to set language for "date picker" form control

Posted: Mon Dec 11, 2023 4:08 pm
by cosminef
Hello,

In order for the oxy_datePicker to display a specific date format, it is necessary to check the following aspects:

1. The way the date format is displayed depends on the default system locale settings.
On Windows, you can find this option in Control Panel: Click Start > Settings > Control Panel. Double-click Regional Settings (or Regional Options) and select your desired format. in order for it to take effect in Web Author, you need to close and reopen the browser.

2. The language in the browser also needs to be changed:
For example, in Google Chrome, follow this steps:

- At the top-right of the address bar, click the three dots, and click Settings.
- From the left side of Chrome, click Languages.
- Click Add languages: English (United Kingdom) for dd/mm/yyyy format. ...
- Click the three dots against the chosen language. ...
- Restart the Chrome browser for the changes to reflect.

Best Regards,
Cosmin

Re: How to set language for "date picker" form control

Posted: Mon Dec 11, 2023 4:37 pm
by ArthurP
Hi Cosmin,

Thanks for answering. My locale is set to "French" on my system (MacOs) and in Firefox also. But the data picker still uses an english date (ex: "November" instead of "novembre").
Is there an other way to set this parameter ? Maybe it's something related to webauthor configuration on server ?

Re: How to set language for "date picker" form control

Posted: Mon Dec 11, 2023 5:48 pm
by cosminef
Hello,

Can you modify your format in CSS code, like this:

Code: Select all

format, 'dd MMMM yyyy'
and see if with this change,it works.

Best,
Cosmin

Re: How to set language for "date picker" form control

Posted: Tue Dec 12, 2023 5:37 pm
by ArthurP
Hi Cosmin,

unfortunatly, changing it to

Code: Select all

format, 'dd MMMM yyyy'
does nothing

Re: How to set language for "date picker" form control

Posted: Tue Dec 12, 2023 6:00 pm
by cosminef
Hello,
After you have made the changes discussed above, have you stopped and restarted the Web Author application?

Best,
Cosmin

Re: How to set language for "date picker" form control

Posted: Wed Dec 13, 2023 10:57 am
by ArthurP
Hello,

yes the Webapp was restarted.
does date picker language depend on client side or server side ?

Re: How to set language for "date picker" form control

Posted: Wed Dec 13, 2023 2:51 pm
by cosminef
Hello,
We managed to reproduce the issue you reported, and we have recorded an issue (WA-6939) on this matter.
Normally, for the language change to take effect for datePicker, you just need to have xml:lang set (which you have already confirmed in your case), and the desired language should be selected from the Web Author application interface.
Once we have a solution in this regard, we will notify you here on the forum.

Best Regards,
Cosmin

Re: How to set language for "date picker" form control

Posted: Wed Dec 13, 2023 4:06 pm
by ArthurP
Hello,
thanks for looking into it!

have a nice day

Re: How to set language for "date picker" form control

Posted: Thu May 02, 2024 4:01 pm
by ArthurP
cosminef wrote: Wed Dec 13, 2023 2:51 pm Hello,
We managed to reproduce the issue you reported, and we have recorded an issue (WA-6939) on this matter.
Normally, for the language change to take effect for datePicker, you just need to have xml:lang set (which you have already confirmed in your case), and the desired language should be selected from the Web Author application interface.
Once we have a solution in this regard, we will notify you here on the forum.

Best Regards,
Cosmin
Hello Cosmin,
do you have any update about this issue ?

Re: How to set language for "date picker" form control

Posted: Thu May 02, 2024 4:23 pm
by cosminef
Hello,

Unfortunately, there's no update on this matter; we've noted your return to it to prioritize accordingly.
We will definitely notify you when we have a response/solution in this regard.
Thank you for your understanding.

Best,
Cosmin

Re: How to set language for "date picker" form control

Posted: Thu May 02, 2024 4:49 pm
by ArthurP
Thanks! Yes, it's really an issue for our writers

Re: How to set language for "date picker" form control

Posted: Wed Oct 09, 2024 3:18 pm
by ArthurP
cosminef wrote: Thu May 02, 2024 4:23 pm Hello,

Unfortunately, there's no update on this matter; we've noted your return to it to prioritize accordingly.
We will definitely notify you when we have a response/solution in this regard.
Thank you for your understanding.

Best,
Cosmin
Hi Cosmin, do you have any update about this issue ? It's really annoying for our users, and it slow off the adoption of oxygen webauthor for them.
A fix or a workaround would be great.
Thanks!

Re: How to set language for "date picker" form control

Posted: Thu Oct 10, 2024 5:43 pm
by cosminef
Hello,

We sincerely apologize for the inconvenience this issue is causing for your users.
Unfortunately, we have to inform you that this issue hasn’t been scheduled for development yet. However, I’m actively pushing for it to be prioritized as soon as possible, and I’ll keep you updated on any progress.

Best,
Cosmin

Re: How to set language for "date picker" form control

Posted: Mon Oct 14, 2024 3:07 pm
by ArthurP
cosminef wrote: Thu Oct 10, 2024 5:43 pm Hello,

We sincerely apologize for the inconvenience this issue is causing for your users.
Unfortunately, we have to inform you that this issue hasn’t been scheduled for development yet. However, I’m actively pushing for it to be prioritized as soon as possible, and I’ll keep you updated on any progress.

Best,
Cosmin
Hi Cosmin, thanks you. Yes, it would be nice if this could be fix as soon as possible.
Have a nice day