Solved

Jquery l10n.js

Posted on 2013-01-23
15
471 Views
Last Modified: 2013-01-28
Hi,

I'd like to learn how to use this jquery lib by examples.

Do know any references?  

Thanks,
XT
0
Comment
Question by:mtran888
  • 10
  • 3
  • 2
15 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 38812321
0
 

Author Comment

by:mtran888
ID: 38812979
Hi,

For the first ref, the jquery lib is obsolete.

And  the second one, the example is not complete (missing the source demo).

Is it possible you can find the uptodate jquery lib sample?

Thanks,
XT
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 38815095
There is this thing called a search engine.  I suggest you learn how to use one.  I can find much more productive things to do besides running queries for you.

Cd&
0
 
LVL 5

Expert Comment

by:Plk_In_EE
ID: 38815378
Hello,
Check out the link and archives for the above requested topic:
http://archive.plugins.jquery.com/project/l10n

Cheers,
Karuppan
0
 

Author Comment

by:mtran888
ID: 38816030
Hi,
page.htm
0
 

Author Comment

by:mtran888
ID: 38816036
0
 

Author Comment

by:mtran888
ID: 38816049
Hi,

I got the reference you gave me, however, these attached files shows i can only pickup "en" English version, how do i pick up like 'fr' for French. Can you help since my knowledge in Jquery is limited. Thanks,

Regards,
XT
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 5

Expert Comment

by:Plk_In_EE
ID: 38816836
Hi,
Check out the code snippet in this page to do localization.
http://keith-wood.name/localisation.html

where you can convert english equivalent to french.

Thanks
Karuppan
0
 

Author Comment

by:mtran888
ID: 38817447
Hi,

I did check Keith-wood's web page; however there is no downloaded code (eg. mypackage.js)  available. If you can help me to finish my page.html (attache before), i can add 400 points to this solution since it is not simple for me.

Thanks,
XT
0
 

Author Comment

by:mtran888
ID: 38817451
Hi,

I checked other web site too with similar question such as "http://blog.getlocalization.com/2010/05/25/dynamic-localization-in-javascript/" but again there is no sample code.

Please help.

Thanks,
XT
0
 
LVL 5

Accepted Solution

by:
Plk_In_EE earned 500 total points
ID: 38819378
$('#defaultLang').val($.localise.defaultLanguage);
         
$('#changeLocale').change(function() {
        var newLang = $(this).val();
        $.localise('js/greeting', {language: newLang, loadBase: true});
        $('#greeting').val(greeting);
        $('#languages').val(newLang);
    }).
    val($.localise.defaultLanguage).
    change();

use the above code snippet and try to convert your HTML page.
0
 

Author Comment

by:mtran888
ID: 38820396
Hi,

Thanks for your help; however, I don't know what to do with this:

   $.localise('js/greeting', {language: newLang, loadBase: true});

where:

js/greeting  ---> replaced with 'l10n.js/value' ??
{language: newLang, loadBase: true} ---> {"language: fr"," loadBase:true"}

Please assist. Thanks.

Regards,
XT
0
 

Author Comment

by:mtran888
ID: 38823271
Hi,

Since this issue is not easy to solve. I'd like to increase the points to 500.

Thanks,
XT
0
 

Author Comment

by:mtran888
ID: 38826975
Hi

Finally i can make it working. Thanks.
0
 

Author Closing Comment

by:mtran888
ID: 38826976
Hi,

Thanks.

XT
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now