Created
June 10, 2011 11:43
-
-
Save feedhenry-gists/1018675 to your computer and use it in GitHub Desktop.
Multilingual Support Building Language Example Complete
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function updateLanguage(l){ | |
var newLanguage = lang[l]; // Look up the required language in our global | |
for (id in newLanguage){ // Iterate over key and value pairs | |
if (newLanguage.hasOwnProperty(id)){ | |
$("#" + id).html(newLanguage[id]); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment