diff --git a/web/app/locale/basic/en.php b/web/app/locale/basic/en.php index 18ac3e4..4142075 100644 --- a/web/app/locale/basic/en.php +++ b/web/app/locale/basic/en.php @@ -98,16 +98,6 @@ return [ 'friend links' => 'Frequently Used Links', 'server time' => 'Server Time', 'opensource project' => 'OpenSource Project, modified by S2OJ', - 'admin' => 'Admin', - 'student' => 'Student', - 'teacher' => 'Teacher', - 'problem uploader' => 'Problem Uploader', - 'problem manager' => 'Problem Manager', - 'contest judger' => 'Contest Judger', - 'contest only' => 'Contest Only', - 'last active at' => 'Last active at', - 'online' => 'Online', - 'offline' => 'Offline', 'apps' => 'Apps', 'image hosting' => 'Image Hosting', 'html to markdown' => 'HTML to Markdown', diff --git a/web/app/locale/basic/zh-cn.php b/web/app/locale/basic/zh-cn.php index b33496a..bbc1c5d 100644 --- a/web/app/locale/basic/zh-cn.php +++ b/web/app/locale/basic/zh-cn.php @@ -98,16 +98,6 @@ return [ 'friend links' => '常用链接', 'server time' => '服务器时间', 'opensource project' => '开源项目,S2OJ 魔改版', - 'admin' => '管理员', - 'student' => '学生', - 'teacher' => '老师', - 'problem uploader' => '题目上传者', - 'problem manager' => '题目管理员', - 'contest judger' => '比赛评测员', - 'contest only' => '仅比赛用户', - 'online' => '在线', - 'offline' => '离线', - 'last active at' => '最后活动于', 'apps' => '应用', 'image hosting' => '图床', 'html to markdown' => 'HTML 转 Markdown', diff --git a/web/app/locale/user/en.php b/web/app/locale/user/en.php new file mode 100644 index 0000000..d4e3f0d --- /dev/null +++ b/web/app/locale/user/en.php @@ -0,0 +1,13 @@ + 'Admin', + 'student' => 'Student', + 'teacher' => 'Teacher', + 'problem uploader' => 'Problem Uploader', + 'problem manager' => 'Problem Manager', + 'contest judger' => 'Contest Judger', + 'contest only' => 'Contest Only', + 'last active at' => 'Last active at', + 'online' => 'Online', + 'offline' => 'Offline', +]; diff --git a/web/app/locale/user/zh-cn.php b/web/app/locale/user/zh-cn.php new file mode 100644 index 0000000..f7fe5c5 --- /dev/null +++ b/web/app/locale/user/zh-cn.php @@ -0,0 +1,13 @@ + '管理员', + 'student' => '学生', + 'teacher' => '老师', + 'problem uploader' => '题目上传者', + 'problem manager' => '题目管理员', + 'contest judger' => '比赛评测员', + 'contest only' => '仅比赛用户', + 'online' => '在线', + 'offline' => '离线', + 'last active at' => '最后活动于', +]; diff --git a/web/app/models/UOJLocale.php b/web/app/models/UOJLocale.php index 4c5509f..a986ef3 100644 --- a/web/app/models/UOJLocale.php +++ b/web/app/models/UOJLocale.php @@ -2,7 +2,7 @@ class UOJLocale { public static $supported_locales = array('zh-cn', 'en'); - public static $supported_modules = array('basic', 'contests', 'problems', 'time'); + public static $supported_modules = array('basic', 'contests', 'problems', 'time', 'user'); public static $data = array(); public static $required = array(); diff --git a/web/app/views/user-info.php b/web/app/views/user-info.php index bc22b8f..3caf4f4 100644 --- a/web/app/views/user-info.php +++ b/web/app/views/user-info.php @@ -68,7 +68,7 @@ function fTime($time, $gran = -1) {
- +

@@ -102,35 +102,99 @@ function fTime($time, $gran = -1) {
  • $type): ?> - , - - - - - - - - - - - - - - - + , +
  • +
  • +
  • - + + + +
  • + + +
  • + + + + +
  • + + +
  • +
    Codeforces 
    +
    + + + +
    +
    +
  • @@ -139,16 +203,16 @@ function fTime($time, $gran = -1) { - + - + 0): ?> - , + , @@ -182,7 +246,7 @@ function fTime($time, $gran = -1) { - 赛后总结 +
    @@ -215,7 +279,7 @@ while ($row = DB::fetch($_result)) {

    -
    +

    @@ -233,7 +297,7 @@ while ($row = DB::fetch($_result)) { -

    +