This is a migrated thread and some comments may be shown as answers.

Incorrect abbreviation for days in pt-PT

6 Answers 103 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Murilo
Top achievements
Rank 1
Veteran
Murilo asked on 29 Jul 2020, 02:50 PM

Hi, 

The calendar show incorrect abbreviation for days in "pt-PT", but in "pt" is correct. See the comparison in the print.

 

Murilo Alves.

6 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 31 Jul 2020, 09:02 AM

Hi Murilo,

Thank you for the provided screenshot.

Changing the locale to pt-PT should switch to Portuguese with day names abbreviated as the following example demonstrates:

https://stackblitz.com/edit/angular-dcnepw-8pdhst?file=app%2Fapp.component.ts

The Calendar resolves the short name representation of the day names from the localization service, and it's likely that they have been changed somewhere throughout your application. Please check the following demo for details.

https://stackblitz.com/edit/angular-ky89dv-7kd7nf?file=app%2Fapp.module.ts

To fix this, restore the original names (e.g. don't overwrite them).

If that's not the issue, I'd have to ask you to send a StackBlitz example or a zipped project demonstrating the issue, as I'm not sure how else to reproduce this. Thank you in advance.

Regards,
Martin
Progress Telerik

0
Murilo
Top achievements
Rank 1
Veteran
answered on 31 Jul 2020, 04:42 PM

Hi Martin,

I change your StackBlitz example. I add kendo-numerictextbox to differentiate between "pt" (default is Brazil) and "pt-PT" (Portugal) by currency.

Example:

https://stackblitz.com/edit/angular-dcnepw-cxasbu?file=app%2Fapp.component.ts

See the new screenshot.

0
Martin
Telerik team
answered on 04 Aug 2020, 09:33 AM

Hi Murilo,

Thank you for the provided example.

After some research, I found that the short day names for the pt-PT locale are no longer abbreviated by CLDR. Please check the following resources:

https://unicode-org.atlassian.net/browse/CLDR-13851

https://github.com/unicode-cldr/cldr-dates-modern/blob/master/main/pt-PT/ca-gregorian.json#L124

Accept my apologies for the caused confusion.

We will provide a temporary fix until the short names are avaialble built-in in CLDR.

Regards,
Martin
Progress Telerik

0
Murilo
Top achievements
Rank 1
Veteran
answered on 04 Aug 2020, 04:55 PM

Hi Martin,

Thank you so much. What is the deadline for this temporary fix?

 

0
Accepted
Martin
Telerik team
answered on 05 Aug 2020, 06:30 AM

Hi Murilo,

It is already in dev channel of the Internationalization package (v2.0.3 dev):

https://www.telerik.com/kendo-angular-ui-develop/components/globalization/internationalization/changelog/

Please check the following article from our documentation for more info on how to obtain the development builds:

https://www.telerik.com/kendo-angular-ui/components/installation/development-builds/

I hope this helps.

Regards,
Martin
Progress Telerik

0
Murilo
Top achievements
Rank 1
Veteran
answered on 05 Aug 2020, 12:53 PM

Hi Martin,

Worked perfectly. Thank you so much.

Tags
Calendar
Asked by
Murilo
Top achievements
Rank 1
Veteran
Answers by
Martin
Telerik team
Murilo
Top achievements
Rank 1
Veteran
Share this question
or