source:
sandbox/expresso2.2/phpgwapi/expressoAjax/lang.js
@
1661
Revision 1661, 289 bytes checked in by amuller, 15 years ago (diff) |
---|
Rev | Line | |
---|---|---|
[1661] | 1 | function get_lang(_key){ |
2 | var key = _key.toLowerCase(); | |
3 | if(array_lang[key]) | |
4 | var _value = array_lang[key]; | |
5 | else | |
6 | var _value = _key+"*"; | |
7 | ||
8 | if(arguments.length > 1) | |
9 | for(j = 1; typeof(arguments[j]) != 'undefined'; j++) | |
10 | _value = _value.replace("%"+j,arguments[j]); | |
11 | return _value; | |
12 | ||
13 | } |
Note: See TracBrowser
for help on using the repository browser.