Hello
We use Telerik UI to ASP.NET Core to build the Razor Page app.
After connecting Hebrew Localization
<script src="~/kendo/js/jquery.min.js" asp-append-version="true"></script>
<script src="~/kendo/js/kendo.all.min.js" asp-append-version="true"></script>
<script src="~/kendo/js/kendo.aspnetmvc.min.js" asp-append-version="true"></script>
<script src="~/kendo/js/kendo.culture.he-IL.min.js" asp-append-version="true"></script>
<script src="~/kendo/js/kendo.messages.he-IL.min.js" asp-append-version="true"></script>
<script src="~/kendo/js/jszip.min.js" asp-append-version="true"></script>
<script>kendo.culture("he-IL");</script>
We get the following picture
The script file kendo.messages.he-il.js contains the following overrides
/* Grid messages */
if (kendo.ui.Grid) {
kendo.ui.Grid.prototype.options.messages =
$.extend(true, kendo.ui.Grid.prototype.options.messages, {
"commands": {
"cancel": "בטל",
"canceledit": "בטל עריכה",
"create": "צור חדש",
"destroy": "מחק",
"edit": "עריכה",
"save": "שמור",
"select": "בחר",
"update": "עדכן"
},
"editable": {
"cancelDelete": "בטל מחיקה",
"confirmation": "האם הנך בטוח שברונך לבצע זאת?",
"confirmDelete": "אשר מחיקה"
}
});
}
/* Pager messages */
if (kendo.ui.Pager) {
kendo.ui.Pager.prototype.options.messages =
$.extend(true, kendo.ui.Pager.prototype.options.messages, {
"allPages": "All",
"page": "עמוד",
"display": "{0} - {1} מתוך {2} פריטים",
"of": "מתוך {0}",
"empty": "אין פריטים להצגה",
"refresh": "רענן",
"first": "לעמוד הראשון",
"itemsPerPage": "פריטים בעמוד",
"last": "לעמוד האחרון",
"next": "לעמוד הבא",
"previous": "לעמוד הקודם",
"morePages": "עמודים נוספים"
});
}
What we need to do to get localization at least within what is in the script?
Best regards
The user edits dates in a grid in D M Y format .. BUT when saved we see an error that indicates it is expecting M D Y format.
Please see attached files.
I use Grids with both popup and inline editing. My application is in English and I have not configured any localization at all. I have the problem of unwanted localization when editing, buttons (inline and popup) and Window header (popup, see image) are getting localized. In my case with Swedish translations. It seems to be the same as the server Windows setting. If I use a client with English OS and settings, the popup is still in server localization. If I install on a English OS, the buttons and headers are in English.
This always shows "en-US" as result, whatever combination of Swedish/english server/client browser I use.
var culture = kendo.culture();
console.log(culture.name);
How do I turn off this "default" OS unwanted localization and make everything in English regardless of OS language?
having a grid, with a search panel, the text in the search panel "Search..." is not translated, but another toolbars are translated
.ToolBar(
toolbar => {
toolbar.Create(); // translated to french
toolbar.Save(); // translated to french
toolbar.Excel(); // translated to french
toolbar.Search().Text("Recherche..."); // NOT translated to french
}
)
I should hardcode translation, but shouldn't it be already translated in JS localization files?
Please add this to translation files :
$(function () {
/* Grid messages */
if (kendo.ui.Grid) {
kendo.ui.Grid.prototype.options.messages =
$.extend(true, kendo.ui.Grid.prototype.options.messages, {
commands: { search: "Rechercher..." }
});
};
});