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 :).