Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
605
Picker Button tips not show according to current region.
posted

I use infragistics.loader.js to load igDatePicker, and set the regional to zh-CN. But the tips always show in English.

==code ===

<script type="text/javascript">
$.ig.loader({
scriptPath: '../../Scripts/',
cssPath: '../../Content/',
resources: 'igEditors',
regional: 'zh-CN'
});

$.ig.loader(function () {
$('#datepicker1').igDatePicker({
width: 230,
dateInputFormat: 'yyyy/MM/dd hh:mm',
dateTimePattern: "yyyy/MM/dd hh:mm",
regional: 'zh-CN'
});
});
</script>

===========================

I've add a new file named infragistics.ui.editors-zh-CN.js in folder  \Scripts\modules\i18n\infragistics.ui.editors-zh-CN.js.

I uesed chrome to trace the request, I found this file not been loaded.

Parents
No Data
Reply
  • 24497
    posted

    Hi Lostonzhang,

    The localization by a culture-name-string was supported in early versions of igEditor, but that was removed in order to make "localization" architecture similar to igGrid.

    In order to customize tooltips, application has few choices:
    1. Include in page a script with link to the file similar to infragistics.ui.editors-ja.js (currently installation provides only 4 cultures: en, bg, ru and ja)

    2. Create an object which contains localized tool tips and set it to the locale option of igEditor/igDatePicker.

    3. Set tooltip options explicitly (that is basically the same as #2, but with higher priority).

    Oh I tried to paste my codes, but all not English characters were removed by editor-filter. I will give example with custom English strings.


    var cnCulture = { spinUpperTitle: 'up', spinLowerTitle: 'down', clearTitle: 'clear', buttonTitle: 'calendar' };

    $('#dp1').igDatePicker({
     
    locale: cnCulture,
     regional: 'zh-CN'
    });

    $('#dp2').igDatePicker({
     
    clearTitle: 'clear',
     
    buttonTitle: 'calendar',
     
    regional: 'zh-CN'
    });

Children