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.
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'});
Choices 2 or 3 is a bad dream for our developers. All DatePickers are same in our system, but I must set the locale information once I use it.
And please thinking about others controls such as igGrid with many regional words?
I used the latest version, it's NetAdvantage 2012.1. The directory architecture led me thinking that if I added a regional file it would be OK.
I've read a part code of infragistics.loader.js, It seems that the loader should load the correct regional file automatically.
{ widget: 'igEditors', dependency: [{ name: 'igUtil'}], scripts: ['$path$/modules/infragistics.ui.editors.js'], locale: ['$localePath$/infragistics.ui.editors-$locale$.js'], css: ['$path$/structure/modules/infragistics.ui.shared.css', '$path$/structure/modules/infragistics.ui.editors.css'], regional: ['$localePath$/regional/infragistics.ui.regional-$regional$.js'] },
Otherwise, our system will support English(en-US), Simplified Chinese(zh-CN), Traditional Chinese(zh-TW). But Currently installation provides only 3 cultures: bg, ru and ja, the English version has been hard code into js file. I cannot get an English version to translate into Chinese version. How can I do?
Hello Lostonzhang,
The -en.js files are removed from the English installer because they are included in the control files. However, they are included in the Japanese installer. For more information about this, please refer to our help topic on localization.
I have copied the -en.js files from the Japanese installer zip and attached them for you.
Please let me know if you have any other questions about this.
Elizabeth AlbertLocalization Engineer
Thank you, and would you provide official Chinese localization file in the future?
I have logged a feature request regarding “Chinese Localization files for jQuery controls.” in our system on your behalf. I have sent your feature request directly to our product management team. Our product team chooses new feature requests for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your feature is chosen for development, you will be notified at that time. Your reference number for this feature request is PI12080181.
If you would like to follow up on your feature request at a later point, you may contact Developer Support management via email. Please include the reference number of your feature request in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com.
Thank you for this request.
Another question? When I use infragistics.loader.js to load controls. Can make it treat the [ja-JP] as same to [ja]? In my application, all culture code are 5 code, such as en-US, zh-CN, zh-TW, ja-JP....
And can make infragistics.loader.js to load my own extended resource file? It seems that only ["en", "ja", "ru", "bg"] can be supported.
This is a good suggestion, thank you for that! In order to modify the loader to understand extended locale codes, a few changes would need to be made in the code. I am going to make this changes and it will be available in the next service release for 12.1 and in 12.2 RTM.
One request from our side, could you please share your Chinese translation? We will make it available for all other customers if you do not mind that. Thank you in advance!
Hello,
I have attached the issue with our developers in our tracking system, with an issue ID of # 120418. This development issue will be assigned to a developer to research for a fix, workaround, or other resolution. If some other resolution is reached, I will contact you with this information.
You can view the status of all development issues connected to this case from the "Development Issues" tab, when viewing this case on the "support-activity" page of our website.
<https://es.infragistics.com/my-account/support-activity>
I hope this helps.