发布v2.5.7版本

This commit is contained in:
雨中磐石
2023-05-11 16:19:42 +08:00
parent 8145b2df84
commit 8c2983b577
63 changed files with 1371 additions and 162 deletions

View File

@@ -1180,4 +1180,8 @@ js.sendevent=function(typ,na,d){
d.opttype=typ;
if(!na)na='xinhuhome';
if(api.sendEvent)api.sendEvent({name: na,extra:d});
}
function lang(ky){
return ky;
}

9
js/lang.js Normal file
View File

@@ -0,0 +1,9 @@
var rocklang = '',rocklangxu=0,langdata = {"\u7f16\u8f91":["","\u7de8\u8f2f","edit"],"\u5220\u9664":["","\u522a\u9664","delete"]};
function lang(ky){
if(!rocklang){rocklang = $('html').attr('lang');if(!rocklang)rocklang='zh-CN';if(rocklang=='zh-CN')rocklangxu=0;if(rocklang=='zh-FT')rocklangxu=1;if(rocklang=='en-US')rocklangxu=2;}
var d = langdata[ky];
if(!d)return ky;
var str = d[rocklangxu];
if(!str)str = ky;
return str;
}