Solved

Jquery l10n.js

Posted on 2013-01-23
15
482 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 10
  • 3
  • 2
15 Comments
 

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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

I had to do a bit of research to find the answer to this question so I thought I'd share my results.  Due to our outdated mainframe systems, we need to downgrade IE9 to IE8 in order to stay compatible.  We also needed to downgrade Java.  In order to…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

691 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