Browse Source

提交代码,修正中英文

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.1.1^2
zouap 3 years ago
parent
commit
a318972cf9
1 changed files with 11 additions and 5 deletions
  1. +11
    -5
      public/home/home.js

+ 11
- 5
public/home/home.js View File

@@ -159,12 +159,12 @@ function getTime(UpdatedUnix,currentTime){
var seconds= leave3;

if(hours == 0 && minutes == 0){
return seconds + "秒前"
return seconds + getRepoOrOrg(6,isZh);
}else{
if(hours > 0){
return hours + "小时前";
return hours + getRepoOrOrg(4,isZh);
}else{
return minutes + "分钟前";
return minutes + getRepoOrOrg(5,isZh);
}
}
}
@@ -266,13 +266,19 @@ var actionNameEN={
var repoAndOrgZH={
"1":"项目",
"2":"成员",
"3":"团队"
"3":"团队",
"4":"小时前",
"5":"分钟前",
"6":"秒前"
};

var repoAndOrgEN={
"1":"repository",
"2":"Members ",
"3":"Teams"
"3":"Teams",
"4":"hours ago",
"5":"minutes ago",
"6":"seconds ago"
};




Loading…
Cancel
Save