| author | Yves-Marie Haussonne <ymh.work+github@gmail.com> |
| Fri, 09 May 2014 18:35:26 +0200 | |
| changeset 656 | a84519031134 |
| parent 525 | 89ef5ed3c48b |
| permissions | -rw-r--r-- |
| 525 | 1 |
/* |
2 |
YUI 3.10.3 (build 2fb5187) |
|
3 |
Copyright 2013 Yahoo! Inc. All rights reserved. |
|
4 |
Licensed under the BSD License. |
|
5 |
http://yuilibrary.com/license/ |
|
6 |
*/ |
|
7 |
||
8 |
YUI.add("intl-base",function(e,t){var n=/[, ]/;e.mix(e.namespace("Intl"),{lookupBestLang:function(t,r){function a(e){var t;for(t=0;t<r.length;t+=1)if(e.toLowerCase()===r[t].toLowerCase())return r[t]}var i,s,o,u;e.Lang.isString(t)&&(t=t.split(n));for(i=0;i<t.length;i+=1){s=t[i];if(!s||s==="*")continue;while(s.length>0){o=a(s);if(o)return o;u=s.lastIndexOf("-");if(!(u>=0))break;s=s.substring(0,u),u>=2&&s.charAt(u-2)==="-"&&(s=s.substring(0,u-2))}}return""}})},"3.10.3",{requires:["yui-base"]}); |