From 10f66681fb912791fe5a10a79a298aa957dea039 Mon Sep 17 00:00:00 2001 From: Ben Stone Date: Wed, 31 Mar 2021 17:36:52 +0800 Subject: [PATCH] fix bug, update i18n --- conf/lang/en-us.ini | 11 ++++++----- conf/lang/zh-cn.ini | 1 + views/book/index.tpl | 6 +++--- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/conf/lang/en-us.ini b/conf/lang/en-us.ini index 597c6640..fd24e960 100644 --- a/conf/lang/en-us.ini +++ b/conf/lang/en-us.ini @@ -30,6 +30,7 @@ save = Save cancel = Cancel create = Create confirm_delete = Confirm Delete +upload_lang = en [message] keyword_placeholder = input keyword please... @@ -74,15 +75,15 @@ item_not_exist = Item does not exist or has been deleted doc_not_exist = Document does not exist or has been deleted unknown_exception = Unknown Exception no_data = No Data -project_must_belong_space = Project must belong to a project space, and the super administrator can manage and maintain it +project_must_belong_space = Project must belong to a project space, and the administrator can manage it project_title_placeholder = Title (limit in 30 words) project_title_tips = Project name cannot exceed 100 characters -project_id_placeholder = Project ID(limit in 30 characters) -project_id_tips = The document logo can only contain lowercase letters, numbers, and "-", "." and "_" symbols. -project_decs_placeholder = Project description cannot exceed 500 characters +project_id_placeholder = Project ID (limit in 30 characters) +project_id_tips = The ID can only contain lowercase letters, numbers, and "-", "." and "_" symbols. +project_desc_placeholder = Project description cannot exceed 500 characters project_public_desc = (Anyone can access) project_private_desc = (Only participants or use tokens can access) -project_cover_desc = The project cover can be modified in the project settings +project_cover_desc = The Cover can be edit in the settings confirm_delete_project = Are you sure you want to delete the project? warning_delete_project = Remove items will not be retrieved. project_space_empty = Please select project space diff --git a/conf/lang/zh-cn.ini b/conf/lang/zh-cn.ini index 4e1bdc42..bf48d127 100644 --- a/conf/lang/zh-cn.ini +++ b/conf/lang/zh-cn.ini @@ -30,6 +30,7 @@ save = 保存 cancel = 取消 create = 创建 confirm_delete = 确定删除 +upload_lang = zh [message] keyword_placeholder = 请输入关键词... diff --git a/views/book/index.tpl b/views/book/index.tpl index 234a0151..be4005bb 100644 --- a/views/book/index.tpl +++ b/views/book/index.tpl @@ -220,12 +220,12 @@
- +

{{i18n $.Lang "blog.project_title_tips"}}

- +

{{i18n $.Lang "blog.project_id_tips"}}

@@ -464,7 +464,7 @@ 'showUpload' : false, 'required': true, 'validateInitialCount': true, - "language" : "zh", + "language" : "{{i18n $.Lang "common.upload_lang"}}", 'allowedFileExtensions': ['zip'], 'msgPlaceholder' : '{{i18n $.Lang "message.file_type_placeholder"}}', 'elErrorContainer' : "#import-book-form-error-message",