Hi, I want to use DatePicker in Chinese, but it always displays in English.
Code as bellow:
=============================================================================
<script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/jquery-ui.min.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/ig.ui.min.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/i18n/igRegional/ig.ui.regional-i18n.min.js")" type="text/javascript"></script>
@using Infragistics.Web.Mvc; @{ ViewBag.Title = "DatePickerSample"; } <h2> DatePickerSample</h2> @(Html.Infragistics().DatePicker() .ID("datePicker") .ButtonType(TextEditorButtonType.DropDown) .NullText("Please input date") .DateDisplayFormat("yyyy/MM/dd") .DateInputFormat("yyyy/MM/dd") .HideMaskOnFocus(true) .Regional("zh-CN") .Value(DateTime.Now.AddDays(-10)) .Render())
And I have other questions:
1. Can DatePicker support a button bar with "Today" and "Clear".
2. I want to save the language resource in i18n into database, How can I integrate it with ig controls?
Thanks!
Hello Lostonzhang ,
Thank you for posting in our forum.
You need to add also the reference to the script file: “jquery-ui-i18n.js”
I’m going to look into your other questions as well and will let you know what I found out by Monday.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/support
Yes, it work now after I add the reference to “jquery-ui-i18n.js”.
Do I need the reference to “ig.ui.regional-i18n.min.js”? It can work as well after remove it.
I have sent your product idea directly to our product management team. Our product team chooses new features for development based on popular feedback from our customer base.
If your product idea is chosen for development, you will be notified at that time. Your reference number for this product idea is PI12030061.
If you would like to follow up on your product idea at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com .
Let me know if there’s anything else I can help you with.
Linking to another forum thread in case anyone has the same question.
https://es.infragistics.com/community/forums/f/ignite-ui-for-javascript/94603/how-to-localization-datepicker-validation-message
Hello BK,
I noticed your post while browsing this forum. In general, it is best to create a new thread so that a support case can be created for you. Additionally, it will show up as unanswered so our support staff will find it quickly.
I did a search but could not find this error message in our 14.2 product. Is this the version you are using?
For localization of our controls, we support Spanish, French, German, Japanese, Russian, and Bulgarian. For other languages, the validation messages do not have localizations provided with the product. However, you can supply your own. In your product installation folder (or wherever you're referencing the .js files from), there should be a js/modules/i18n folder. In here, you can copy the file that contains the message you'd like to localize. Rename it to [filename]-[culturecode].js. For example, infragistics.ui.validator-tr.js. If you supply the translations in the file, then reference it from your page, this should show the message as localized.
For more information about this process, please read Customizing the Localization of Ignite UI Controls.
Elizabeth AlbertLocalization Engineer
hi maya ,
have a problem aboute this issue, I change datepicker localization on my lanaguage , it work but datepicker required message not changed ??
How to change datepicker validation message ?