Solved

Jquery l10n.js

Posted on 2013-01-23
15
475 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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
 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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…
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
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…

808 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