This is a migrated thread and some comments may be shown as answers.
Localization is not Being Honored
3 Answers 29 Views
This is a migrated thread and some comments may be shown as answers.
Adam Hill
Top achievements
Rank 1
Adam Hill asked on 21 Jun 2018, 09:48 PM

We are setting the localization of our app via:

CultureInfo.DefaultThreadCurrentCulture = ...               CultureInfo.DefaultThreadCurrentUICulture = ...

 

But the RadCalendar is not translating the DayNames nor the Title, (see attached) it remains in English. We also use Humanizer to globalize and it does translate the month name and the ordinal identifiers for languages other than English. (see attached)

Is there another property RadCalendar is looking at that I need to set? Is there a property of RC I can set to force it? (since we do language switching inside our app)

 

Thanks,

 

 


3 Answers, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 25 Jun 2018, 01:41 PM
Hi Adam,

Thank you for the provided image. As I see from it the issue is oбserved on the iOS platform. The RadCalendar control doesn't detect the device language if the language is not explicitly added in the application info.plist file (the file is located in the iOS project). In order to achieve this please add the following code in the info.plist file: 
<key>CFBundleLocalizations</key>
    <array>
        <string>English</string>
        <string>Russian</string>
        <string>Spanish</string>
    </array>

Please take a look at the provided sample example. 

Regards,
Didi
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Adam Hill
Top achievements
Rank 1
answered on 26 Jun 2018, 04:18 PM

Ok. That fixed iOS, thanks!

But another issue popped up - the calendar seems to only honor the locale when the app is restarted. So if we change the Culture and UICulture manually *in* the app, the Calendar does not pick up on it until we restart the app.

Is there a way to for the Calendar to pick up a new culture? I did not see an obvious attribute in XF to bind to.

Thanks.

0
Didi
Telerik team
answered on 28 Jun 2018, 02:07 PM
Hi Adam,

I will need more details on how you set the Culture manually in the app. It could be really helpful if you could send us a sample project where the issue is reproduced. Please open a support ticket and attach it there, as in the forum only image attachments are allowed. An alternative is to share the code you use here, however, having an actual sample will be very useful for us.

Also, please note that by default the Calendar control uses the device culture. If you want to set another culture manually, you need to create a custom renderer and use the following code:

CalendarView.Locale = new NSLocale ("ru_RU");
For more details how to achieve this, please refer to the link below: 
https://docs.telerik.com/devtools/xamarin/nativecontrols/ios/calendar/localization

Regards,
Didi
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Asked by
Adam Hill
Top achievements
Rank 1
Answers by
Didi
Telerik team
Adam Hill
Top achievements
Rank 1
Share this question
or