Solved

Jquery l10n.js

Posted on 2013-01-23
15
461 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
Comment Utility
0
 

Author Comment

by:mtran888
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Hi,
page.htm
0
 

Author Comment

by:mtran888
Comment Utility
0
 

Author Comment

by:mtran888
Comment Utility
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 5

Expert Comment

by:Plk_In_EE
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
$('#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
Comment Utility
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
Comment Utility
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
Comment Utility
Hi

Finally i can make it working. Thanks.
0
 

Author Closing Comment

by:mtran888
Comment Utility
Hi,

Thanks.

XT
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
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…
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…
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

744 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

13 Experts available now in Live!

Get 1:1 Help Now