~launchpad-pqm/lazr-js/toolchain

« back to all changes in this revision

Viewing changes to src-js/lazrjs/yui/intl/intl-min.js

  • Committer: Sidnei da Silva
  • Date: 2009-11-16 00:51:29 UTC
  • mto: This revision was merged to the branch mainline in revision 154.
  • Revision ID: sidnei.da.silva@canonical.com-20091116005129-8ibwjlboa38glaw5
- Improved generation of skin modules and revamped combo service to make it more twisty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3
 
Code licensed under the BSD License:
4
 
http://developer.yahoo.com/yui/license.html
5
 
version: 3.2.0
6
 
build: 2676
7
 
*/
8
 
YUI.add("intl",function(C){var B={},A="yuiRootLang",D="yuiActiveLang";C.mix(C.namespace("Intl"),{_mod:function(E){if(!B[E]){B[E]={};}return B[E];},setLang:function(F,I){var H=this._mod(F),E=H[D],G=!!H[I];if(G&&I!==E){H[D]=I;this.fire("intl:langChange",{module:F,prevVal:E,newVal:(I===A)?"":I});}return G;},getLang:function(E){var F=this._mod(E)[D];return(F===A)?"":F;},add:function(F,G,E){G=G||A;this._mod(F)[G]=E;this.setLang(F,G);},get:function(G,F,I){var E=this._mod(G),H;I=I||E[D];H=E[I]||{};return(F)?H[F]:C.merge(H);},getAvailableLangs:function(F){var E=[],H=C.Env&&C.Env.lang,G;if(H){for(G in H){if(G&&H.hasOwnProperty(G)){if(H[G][F]){E[E.length]=G;}}}}return E;}});C.augment(C.Intl,C.EventTarget);C.Intl.publish("intl:langChange",{emitFacade:true});},"3.2.0",{requires:["event-custom"]});
 
 
b'\\ No newline at end of file'