The WebApp Wizard Web development made magical

24Aug/107

Why I don’t localize my jQuery plugins

That's a question (I know, the title is actually the answer to that question) I've asked to myself yesterday. I mean, why do other people deliver jQuery plugins in a full-featured package, including localizations, and I don't? Take jQueryUI and the datepicker date formats for example.

At the beginning, I chose to deliver only the jQuery plugin file, and from now I will prefer to deliver a little package containing a full example (HTML + JS + CSS + PHP - if needed -). But I don't plan to deliver localizations, more than ever.

Why?

First, I don't pretend to know other languages than French well enough. That's already difficult to find the right words in your own language when it comes to describe really shortly, often in only one or two words. I prefer to let you do this job, you will probably be better than me. :-) I release my plugins in English by default (and not French) only to make sure most people will be able to understand.

Second, I have always found that already localized plugins were difficult to blend in an existent architecture. Mostly, localized plugins provide simple javascript files containing variables corresponding to the different strings, in each language. What if you want to get the data from your server? What if you want a more dynamic way to do that? And even when you're in a simple-javascript-file flavor (which I personally like), you've got work to do by yourself. Maybe you want to get all your localized strings in the same place, or maybe you would have organized that another way. OK, all that is not that difficult, but it's always a little pain anyway.

That's why I only set the basics for internationalization. All the user-displayed strings in my plugins are customizable, so you can simply pass the localized strings in parameters. The way you get these localized strings is your business, even if I do recommend a few ones.

Comments (7) Trackbacks (0)
  1. I enjoy reading through a post that will make people think.
    Also, thanks for permitting me to comment!

  2. Hi there! I know this is kinda off topic
    however , I’d figured I’d ask. Would you be interested in
    exchanging links or maybe guest writing a blog post or vice-versa?

    My website goes over a lot of the same topics as yours and I feel we could greatly benefit from each other.

    If you’re interested feel free to shoot me an email. I look forward to hearing from you! Excellent blog by the way!

  3. We are a group of volunteers and opening a new scheme in our community.
    Your web site provided us with valuable information to work on.
    You have done a formidable job and our whole community will be grateful to you.

  4. Do you have a spam problem on this website; I also am a blogger, and
    I was wanting to know your situation; we have
    created some nice methods and we are looking to trade solutions with others, be
    sure to shoot me an email if interested.

  5. Venus rules Taurus and Libra while Mars rules Aries and Scorpio.
    Topps #311, Mickey Mantle is the most expensive card on the market today.
    Many homeowner loans brokers have also gone to the wall with probably the Uk’s
    leading secured loan broker, Loans.

  6. What’ѕ up, its pleasant piece ⲟf writing cօncerning media print, ԝe all be aware of media is a impressive
    source օf infoгmation.

  7. It’s awesome for me to have a site, which is valuable in favor of my experience.

    thanks admin


Leave a comment

(required)

You can use basic HTML to enlighten your comments. If you want to post some code, please use the <pre> tag. You can also use syntax coloring by adding class="syntax [language]". <pre class="syntax js"> will color your code as if it was JS code for instance.

No trackbacks yet.