What is the meaning of localizing a plugin? - javascript

I was reading the manual of a plugin here and at one point it was written:
External plugins like the jQuery UI datepicker have to be localized separately in their own way
What does that mean?

Localization is a broad topic and covers many areas such as writing direction, character encoding, currency, time zones and many many more. But here the sentence is referring to the date picker feature of jQuery and it means if you are developing an app for Chinese audiences or any other culture that uses different kind of calendar you have to change the datepicker yourself and this plugin doesn't do it automatically.

Localization involves taking source content and making it relavant for a local market - this includes translation, number formatting (1,000 vs 1.000), date formatting (03/18/2014 vs 18/03/2014), calendar display (Sunday - Saturday vs. Monday - Sunday), currency, and really anything that would make the content most applicable to a local market.

Related

What is the most straightforward way to reformat all dates on my website?

I'm building a WordPress based site and the plugin that delivers the core-functionality doesn't allow changing the date format via the translation files.
All dates are giving out in an American format ("03-24-2017") and I would like to display them in a European format instead ("24.03.2017").
What would be the most straightforward and efficient way to do this? I googled the problem and found several JS-based libraries, but many of them seem to be to expansive (i.e. they also transform things like temperature, etc.). What I'm looking for is a straightforward solution that just formats the date and doesn't come with too much other technical hangover.
The straight forward way id, Go to Admin Panel, Open Settings, you can check Time Format
Choose Custom and add m.d.Y format.

Date and time dependant client server web apps

I read some articles regarding web applications which depend on the date and time and geographical position.
I am interested in finding here a few best practices and even solutions for java web applications which client side happens to be on Angular.
I am looking for the best way to store the dates and times in my database so that I can determine their values based on user's location. We have some help here from the Javascript side which can determine the user's timezone.
Any advices, best practices and solution would be great.
I want to know from your experience what is the best way to do this thing because each article I read had a slightly different solution and that small diference caused iasuea later.
You may want to check out Moment.js, and specifically the Timezone add-on if you haven't already... it will take ISO 8601 datetime formatted string by default, the industry standard on any platform.
The Timezone is useful in dealing with timezones and converting between them etc.
This format encodes the UTC time with a timezone part, with high precision.

datejs vs Jquery/globalize

Could someone list the pros and cons of using one over the other. (www.datejs.com vs. https://github.com/jquery/globalize). All I knew is Jquery/globalize supports more culture than datejs.
You can use both of them together. DateJS makes it much more convenient to do math on date objects, and also provides some functionality for displaying dates. Globalize provides functionality for displaying dates for different cultures.
If you need to do math on dates and to display internationalized dates, use both. Have Globalize display dates that are calculated with DateJS.
If you just need to do math on dates and display dates in a format readable by most Internet users, use DateJS.
If you don't need to do math on dates (it might be that the server and APIs take care of it), but need to display internationalized dates, use Globalize.
Globalize supports more than just Date/Time formatting and Parsing (different Calendar systems with automatic conversion in the related field, number, currency, percentage formatting, translating strings, checking if given language is written Right-To-Left). It is fairly well-written and supports more than 350 culture. The project is quite active.
DateJS supports less cultures and only Date/Time formatting, parsing and manipulating as well as time zones conversion (unsupported by Globalize). The project is less active and the last snapshot is rather old (and marked as Alpha version). It seems like Joda Time equivalent for JavaScript and it really seems nice, but...
Fortunately, as Ben said you can combine them together.

JavaScript library for Time and Date Fields

What's the best, free JavaScript library to work with time and date fields in a JSP project?
Here are my needs:
Formatting should be customizable.
For a date field, a date picker popup would be a plus.
Does not allow the user to enter invalid characters, much like the time field in Windows clock.
Does not depend on jQuery. Nothing against jQuery, but my project isn't ready to commit to it yet.
If there's one from Apache or SourceForge, that would be great!
Or should I make one myself? :(
Thanks!
Date.js is a very good library, and has validation functions too... but it doesn't offer UI support, so it should be matched with some additional components.
http://www.datejs.com/
jquery datepicker
http://jqueryui.com/demos/datepicker/

Javascript Month, Week, Day View Calendars

I'm yet to find a Javascript Library that offers a plugin which can output Events in a Calendar which supports:
Month View
Week View
Day View
There is only one so far which supports all views but thought it would be good to see if anyone else knows of any other Javascript Libraries (Plugins) which can support this.
Thanks!
You can pay for one: http://demos.telerik.com/aspnet-ajax/scheduler/examples/outlook2007/defaultcs.aspx
I can't vouch for it, and you'd need to be using the .NET stack, but it does support Day, Week, and Monthly views.
Check out Ext Scheduler, super interactive scheduling component with support for any type of time resolution.
http://www.ext-scheduler.com/

Categories