Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8831343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:17:18+00:00 2026-06-14T08:17:18+00:00

Hi has any one used google’s Closure Library https://developers.google.com/closure/ in building Phonegap applications on

  • 0

Hi has any one used google’s Closure Library https://developers.google.com/closure/ in building Phonegap applications on Android. I have read that Closure has good support for internationalization of applications. So if anyone could provide material they referred or sample snippets to get an idea of how to implement it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T08:17:19+00:00Added an answer on June 14, 2026 at 8:17 am

    There is no difference as to how you use PhoneGap. Framing a web view inside a native app background, doesn’t change.

    The Closure Library, unlike any other library, will compile your javascript to raw heavily minified code with semantic features.
    otherwise yes, use it as you please, PhoneGap included.

    When you build something with Closure, you can render the DOM in JavaScript. It is super fast and much much better than the conventional way.

    so you create your pages with goog.dom.createDom. Below you will find an example.

    var menuButton = goog.dom.createDom('a', {
        'class': 'menu-button',
        'otherAttributes': 'otherValues etc'
    }, myproject.translations.menuButton.currentLanguage);
    
    //Now you have a file like this:
    goog.provide('myproject.translations');
    
    // Language variations corresponding to that element.
    myproject.translations.menuButton = {
        'EN': 'go',
        'FR': 'aller',
        'DE': 'gehen'//etc...
    
    };
    

    Do the above wherever translations are needed. Then simply set the current language on load with something very easy like.

    myproject.boot = function(parameters) {
        myproject.translations.currentLanguage = parameters['currentLanguage'];
    };
    goog.exportSymbol('myproject.boot', myproject.boot);
    

    and then call the boot method inside the index.php or whatever on window.load and echo a JSON string with the boot parameters from the server. Beware, everything that comes from the server must be encapsulated within quotes when referenced. Otherwise the compiler will flatten the property name in ADVANCED_OPTIMIZATIONS mode.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has any one used Google Finance API in .Net 4.0? If not 4.0 any
Has anyone used Robotium or Calculon for testing Android apps? Are they useful? Any
Has anyone used both Joone and Encog in production applications? Is there something you
Has anyone used a Java based library for generating excel documents? Preferably support for
Has anyone ever used the hidden class PackageParser in Android source code with java
Has anyone run perl script given at http://oreilly.com/pub/h/974#code ? This is a famous one,
Auto suggest/complete fields are used all over the web. Google has appeared to master
I was reading the documentation for the range object on developers.google.com. For the function
Has anyone used Hazelcast (preferably 2.1) with play framework 2.0/2.1 (not 1.2+)? I am
Has anyone used this plugin? I don't know if my setup is right, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.