ANN: jQuery-i18n An internationalization plugin for jQuery and jQuery plugins
jquery-i18n is a simple plugin I have created that helps you internationalize your web application. You can also use it to extend other jQuery plugins to support internationalization. I have already used it for applying internationalization to jQuery UI plugins. I think it has a lot of relevance to plugins like Datepicker. jQuery-i18n copies a lot of the GNU C Library's internationalization API but differs in significant ways I would very much appreciate comments on this plugin. I have to support
Bug in datetime regional settings: 'en' is missing !!!
Why regional ['it'] is here, but ['en'] not ? there are some ['en-<some thing>'] but not a base 'en'. So from PHP i cannot use en or it AND i cannot user en-US and it-IT and it-CH ... why ?!?! It's a big inconsistence (imho) ... and sorry for my bad english see the file jquery-ui-i18n.js
Where are the i18n files on code.jquery.com
I have revised my code to use code.jquery.com for jQuery, jQuery-ui, and jQuery-mobile files. A particular set of pages require i18n files but I cannot locate them on code.jquery.com. Where are those files? <link href="//code.jquery.com/ui/1.10.4/themes/ui-darkness/jquery-ui.min.css" rel="stylesheet"> <script src="//code.jquery.com/jquery-1.10.2.min.js"></script> <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/i18n/jquery-ui-i18n.min.js"></script>
Should I choose JQuery UI (i18n, RTL, responsive web design)?
Hi, I am doing a website project now. I need to choose a web UI framework. I have hard time to choose one. My requirements about the UI framework and its components (such as menus, buttons, etc.) include: 1. strong support of i18n 2. support of RTL (right-to-left language) 3. responsive web design Could someone out there tell me where the latest JQuery UI stands on these three requirements? Thanks for any help! Cheers.
dialog buttons questions
Dear all! i just need to localize the button labels for a dialog. but how to do it? as in: $dialog.dialog({ buttons: { 'Ok': function(){ // ok }, 'Cancel': function(){ // cancel } } // 1000 more options });the labels will be always literals. so the only way i see is to have a copy of the whole options object for each locale (or at least the buttons with the callbacks, that i will have to merge every time with the rest of the options).
Using datepicker
hi, I'm using datepicker and can't find how to set the language to french. I do the following: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ libs/jquery/1.4/jquery.min.js" ></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ libs/jqueryui/1.8.1/jquery-ui.min.js"></script> <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/ jqueryui/1.8.1/themes/base/jquery-ui.css" type="text/css" /> <script type="text/javascript"> $(function() {
Datepicker Issue
I recently started playing with datepicker and the multi-month display. Yesterday it was displaying just fine, but today, without any changes to my code the months and days of the week are displaying in either chinese or japanese characters. Here's my jQuery link code (in my header): <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js" type="text/javascript"></script>
Corruption in jquery-ui-i18n.js
I believe there's something wrong in jquery-ui-i18n.js (current version). On lines 410-429, the Swiss French localization is garbled. It should be very similar to the French localization which is immediately below (only the date format is different) The individual file, jquery.ui.datepicker-fr-CH.js, seems correct.
Datepicker Localization by Translation or Conversion?
JQuery datepicker is great but some localization is none sense! Talking about date, localization is not only translation of month and day names, or providing local date formats which is available in localization modules. Localization is supporting local date systems. To be more exact, when you localize to a Persian calendar, you have to consider that a Persian year starts at the beginning of spring (Nowrouz) rather than winter (Christmas). Although Persian calendar is much older than the Gregorian
Datepicker localisation
Hi, I need to set value attribute in my language (spanish) using datepicker functions, but jquery is setting the date in english. Here is my code: $("selector").datepicker($.datepicker.regional['es']).val($.datepicker.formatDate('D,dd M yy', date)); Output: Sat,20 Mar 2010 Output needed: Sab,20 Mar 2010 I have no problems with the calendar language but the attribute value is not in the correct language Can you help me? Thanks
Localize dialog button names
I want to use the UI dialog but I need to localize the button names I use. Is there a way to do this? Another option would be to use icons instead of labels.
How was the format of the Datepicker localization determined?
When selecting different locations and using the datepicker the format being entered into the input field may change to use periods "03.03.2010", dashes "03-03-2010", ISO or not ect... I am curious how it was determined which location got which format? Can you point me to a resource/s ?
[Datepicker] Region: fo
I find this forum software quite unintuitive to use, so I hope I am in the right place! If not then I am sorry. Using the datepicker demo I noticed it did not have a Faroese (FO) region. I know, Faroese is not exactly a major language, but since I am fluent in it and because I use jQuery almost every day I thought I should contribute what I can, if you will have it. So, here it is: /* Faroese initialisation for the jQuery UI date picker plugin */ /* Written by Sverri Mohr Olsen, sverrimo@gmail.com
Locale information should be separated from plugins
I feel that the current way that jQuery UI plugins handle internationalization is rather messy and not maintainable in the longer term. The current mechanism, afaict, is to fork your plugin code with a version for each locale you want to support, as datepicker does. I recommend instead that locale information be separated from plugins and loaded separately. Since code size is important to web devs, you would only load those locales that your application needs on-demand. I have written a simple jQuery
A Strategy for localizing jQuery UI plugins
I have to support several locales for the jQuery UI plugins I am creating and am trying to think of a consistent way to support localization of numeral characters and any strings that may be embedded in the plugin. I think the mechanism I have in mind may be useful to the larger jQuery UI set of plugins. To clarify, this proposal is mean to support localization of numeral characters and strings embedded in a plugin, not dates or currency formats ($ 1.000,00 vs. 1,000.00) but it could conceivable
Internationalization strategy for strings?
Doe jQuery UI have an internationalization strategy? As far as I can tell there isn't a comprehensive i18n strategy for jQuery UI. The datepicker widget supports i18n, but having a separate i18n implementation for each widget seems to be a bit wasteful and redundant The first step would be to emulate basic GNU gettext, where you could set the locale globally for your jQuery UI widgets $.ui.locale = "ne"; for Nepal and have a global jquery.ui.strings.json file where plugins could query for matching