var lc = function(id){
if(!lc.base[id] || !lc.base[id][lc.is[lc.cur]]) return id;
return lc.base[id][lc.is[lc.cur]];
};
lc.is = {
'ru':0,
'en':1
};
lc.cur = 'en';
lc.init = function(){
var lc = navigator.browserLanguage;
if(!lc) lc = navigator.language;
lc = lc.substring(0,2).toLowerCase();
if(typeof(lc.is[lc]) != 'undefined') this.cur = lc;
};
lc.base = {
'ru':['Русский','Russian'],
'en':['Английский','English'],
...
}