This is a migrated thread and some comments may be shown as answers.
Localization not working
1 Answer 16 Views
This is a migrated thread and some comments may be shown as answers.
Itai
Top achievements
Rank 1
Itai asked on 22 Aug 2019, 08:37 PM

Hello,

I'm using telerik xamarin scheduler and I would like to translate the day and months showed up in the scheduler to my language.

Maybe I didn't understand that right but I followed this link and the localization didn't work for me:

https://docs.telerik.com/devtools/xamarin/localization-and-globalization#localization-using-custom-localization-manager

 

what I did is :

1. I created 'CustomTelerikLocalizationManager' class and translated the day and months names to my language,like following :

public override string GetString(string key)
        {
            if (key == "January")
            {
                return "ינואר";
            }

            if (key == "February")
            {
                return "פברואר";
            }

            if (key == "March")
            {
                return "מרץ";
            }

            if (key == "April")
            {
                return "אפריל";
            }

            if (key == "May")
            {
                return "מאי";
            }

            if (key == "June")
            {
                return "יוני";
            }

            if (key == "July")
            {
                return "יולי";
            }

            if (key == "August")
            {
                return "אוגוסט";
            }

            if (key == "September")
            {
                return "ספטמבר";
            }

            if (key == "FilterUISectionText")
            {
                return "filtre par";
            }

            if (key == "Contains")
            {
                return "contient";
            }

            return base.GetString(key);
        }

 

 

2.I added    

TelerikLocalizationManager.Manager = new Classes.CustomTelerikLocalizationManager();

to my app.xaml.cs file 

before

InitializeComponent();

 

that didn't work so I did the same to the file that contains the scheduler and that didn't work either.

 

Thanks :).

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 23 Aug 2019, 12:03 PM

Hi Itai,

The localization refers to some some strings used inside the Calendar such as the text of the Add and Delete appointment buttons.   Numbers and date/times formats depend on the target device culture (that's the globalization feature actually).

We do not have resources with the months names as they are set according to the culture of the target device. In this case would you like to change explicitly the Culture of the Calendar ( you could take a look at this thread for more details)? 

I look forward to your reply.

Regards, Yana
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
Itai
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or