- Home
- Forum
- ASP.NET MVC - EJ 2
- Localization of standard element messages
Localization of standard element messages
How to connect ru-RU localization for all project controls. If you can step by step guide to connect to an existing project without syncfusion.
SIGN IN To post a reply.
4 Replies
VK
Vinoth Kumar Sundara Moorthy
Syncfusion Team
July 26, 2019 01:31 PM UTC
Hi Dima,
Thank you for contacting Syncfusion support.
Please refer the below documentation link for about localization in Syncfusion components,
Could you please check the above link and get back to us if you need any further assistance on Syncfusion components?
Regards,
Vinoth Kumar S
DI
Dima
July 26, 2019 02:37 PM UTC
Error: L10n.load is not a function
ej.base.enableRipple(true);
var L10n = new ej.base.L10n();
var setCulture = new ej.base.setCulture();
L10n.load({
'ru-RU': {
'dropdowns': {
'noRecordsTemplate': 'Записей не найдено',
'actionFailureTemplate': 'Ошибка запроса',
'overflowCountTemplate': '+ $ {count} больше ..',
'selectAllText': 'Выбрать все',
'unSelectAllText': 'Снять все',
'totalCountTemplate': '$ {count} выбран'
},
'drop-down-list': {
'noRecordsTemplate': 'Записей не найдено',
'actionFailureTemplate': 'Ошибка запроса'
},
'combo-box': {
'noRecordsTemplate': 'Записей не найдено',
'actionFailureTemplate': 'Ошибка запроса'
},
'auto-complete': {
'noRecordsTemplate': 'Записей не найдено',
'actionFailureTemplate': 'Ошибка запроса'
},
'multi-select': {
'noRecordsTemplate': 'Записей не найдено',
'actionFailureTemplate': 'Ошибка запроса',
'overflowCountTemplate': '+ $ {count} больше ..',
'selectAllText': 'Выбрать все',
'unSelectAllText': 'Снять все'
},
}
});
<script src="~/Scripts/jquery-3.3.1.js"></script>
<script src="~/Scripts/jquery-ui-1.12.1.js"></script>
<script src="~/Scripts/jquery.validate.js"></script>
<script src="~/Scripts/popper.min.js"></script>
<script src="~/Scripts/bootstrap.min.js" type="text/javascript"></script>
<script src="~/Scripts/inputmask/inputmask.js" type="text/javascript"></script>
<script src="~/Scripts/inputmask/jquery.inputmask.js" type="text/javascript"></script>
<script src="~/Scripts/inputmask/inputmask.extensions.js" type="text/javascript"></script>
<script src="~/Scripts/inputmask/inputmask.date.extensions.js" type="text/javascript"></script>
<script src="~/Scripts/inputmask/inputmask.numeric.extensions.js" type="text/javascript"></script>
<script src="https://cdn.syncfusion.com/ej2/dist/ej2.min.js" type="text/javascript"></script>
<script src="~/Scripts/app.js" type="text/javascript"></script>
DI
Dima
July 26, 2019 02:45 PM UTC
VK
Vinoth Kumar Sundara Moorthy
Syncfusion Team
July 29, 2019 11:37 AM UTC
Hi Dima,
Good day to you.
We have checked the reported issue with code snippet shared and we found that you have assigned the L10 as a method to the variable. So, we suggest you assign the L10 as mentioned in the below code example to resolve the reported issue.
|
var L10n = ej.base.L10n;
var setCulture = new ej.base.setCulture("ru-RU");
L10n.load({
'ru-RU': {
'dropdowns': {
'noRecordsTemplate': 'Записей не найдено',
'actionFailureTemplate': 'Ошибка запроса',
'overflowCountTemplate': '+ $ {count} больше ..',
'selectAllText': 'Выбрать все',
'unSelectAllText': 'Снять все',
'totalCountTemplate': '$ {count} выбран'
},
'drop-down-list': {
'noRecordsTemplate': 'Записей не найдено',
'actionFailureTemplate': 'Ошибка запроса'
},
'combo-box': {
'noRecordsTemplate': 'Записей не найдено',
'actionFailureTemplate': 'Ошибка запроса'
},
'auto-complete': {
'noRecordsTemplate': 'Записей не найдено',
'actionFailureTemplate': 'Ошибка запроса'
},
'multi-select': {
'noRecordsTemplate': 'Записей не найдено',
'actionFailureTemplate': 'Ошибка запроса',
'overflowCountTemplate': '+ $ {count} больше ..',
'selectAllText': 'Выбрать все',
'unSelectAllText': 'Снять все'
},
}
}); |
For your convenience, we have prepared the sample for DropDownList with “ru-RU” culture. Please check the below link,
Please refer the below UG documentation link to know more details about localization,
Could you please check the above details and get back to us if you need any further assistance on this?
Regards,
Vinoth Kumar S
SIGN IN To post a reply.
- 4 Replies
- 2 Participants
-
DI Dima
- Jul 25, 2019 08:37 AM UTC
- Jul 29, 2019 11:37 AM UTC