From 0dca0b92d1146b8bcad4a73ded39e7a446cbbaeb Mon Sep 17 00:00:00 2001 From: Hissy Date: Wed, 21 Oct 2020 22:39:41 +0800 Subject: [PATCH] chore: update zh-cn and zh-tw (#1121) --- frontend/src/i18n/en.json | 2 +- frontend/src/i18n/zh-cn.json | 51 ++++++++++++++++++++------------- frontend/src/i18n/zh-tw.json | 55 +++++++++++++++++++++--------------- 3 files changed, 65 insertions(+), 43 deletions(-) diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index 7617caaf..31ecc905 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -179,7 +179,7 @@ "userDefaults": "User default settings", "defaultUserDescription": "This are the default settings for new users.", "executeOnShell": "Execute on shell", - "executeOnShellDescription": "By default, File Browser executes the commands by calling their binaries directly. If you want to run them on a shell instead (such as Bash or PowerShell), you can define it here with the required arguments and flags. If set, the command you execute will be appended as an argument. This apply to both user commands and event hooks.", + "executeOnShellDescription": "By default, File Browser executes the commands by calling their binaries directly. If you want to run them on a shell instead (such as Bash or PowerShell), you can define it here with the required arguments and flags. If set, the command you execute will be appended as an argument. This apply to both user commands and event hooks.", "perm": { "create": "Create files and directories", "delete": "Delete files and directories", diff --git a/frontend/src/i18n/zh-cn.json b/frontend/src/i18n/zh-cn.json index 861a8601..67564253 100644 --- a/frontend/src/i18n/zh-cn.json +++ b/frontend/src/i18n/zh-cn.json @@ -90,8 +90,8 @@ "copy": "复制", "copyMessage": "请选择欲复制至的目录:", "currentlyNavigating": "当前目录:", - "deleteMessageMultiple": "你确定要删除这 {count} 个文件吗?", - "deleteMessageSingle": "你确定要删除这个文件/文件夹吗?", + "deleteMessageMultiple": "你确定要删除这 {count} 个文件吗?", + "deleteMessageSingle": "你确定要删除这个文件/文件夹吗?", "deleteTitle": "删除文件", "displayName": "名称:", "download": "下载文件", @@ -112,31 +112,38 @@ "replaceMessage": "您尝试上传的文件中有一个与现有文件的名称存在冲突。是否替换现有的同名文件?", "rename": "重命名", "renameMessage": "请输入新名称,旧名称为:", - "show": "揭示", + "show": "点击以显示", "size": "大小", "schedule": "计划", "scheduleMessage": "请选择发布这篇帖子的日期。", - "newArchetype": "创建一个基于原型的新帖子。您的文件将会创建在内容文件夹中。" + "newArchetype": "创建一个基于原型的新帖子。您的文件将会创建在内容文件夹中。", + "upload": "上传", + "uploadMessage": "选择上传项。" }, "settings": { - "instanceName": "Instance name", + "themes": { + "title": "主题", + "light": "浅色", + "dark": "深色" + }, + "instanceName": "实例名称", "brandingDirectoryPath": "品牌信息文件夹路径", "documentation": "帮助文档", "branding": "品牌", "disableExternalLinks": "禁止外部链接(帮助文档除外)", - "brandingHelp": "您可以通过改变名称,更换商标,加入自定义样式,甚至禁用外部链接来自定义File Browser的外观和给人的感觉。\n想获得更多信息,请查看 {0} 。", + "brandingHelp": "您可以通过改变实例名称,更换Logo,加入自定义样式,甚至禁用到Github的外部链接来自定义File Browser的外观和给人的感觉。\n想获得更多信息,请查看 {0} 。", "admin": "管理员", "administrator": "管理员", - "allowCommands": "执行命令(Linux 代码)", + "allowCommands": "执行命令(shell 命令)", "allowEdit": "编辑、重命名或删除文件/目录", "allowNew": "创建新文件和目录", "allowPublish": "发布新的帖子与页面", - "avoidChanges": "(留空以避免更改)", + "avoidChanges": "(留空以避免更改)", "changePassword": "更改密码", "commandRunner": "命令执行器", - "commandRunnerHelp": "Here you can set commands that are executed in the named events. You must write one per line. The environment variables {0} and {1} will be available, being {0} relative to {1}. For more information about this feature and the available environment variables, please read the {2}.", + "commandRunnerHelp": "在这里你可以设置在下面的事件中执行的命令。每行必须写一条命令。可以在命令中使用环境变量 {0} 和 {1}。关于此功能和可用环境变量的更多信息,请阅读{2}.", "commandsUpdated": "命令已更新!", - "customStylesheet": "自定义样式表", + "customStylesheet": "自定义样式表(CSS)", "examples": "例子", "globalSettings": "全局设置", "language": "语言", @@ -149,15 +156,15 @@ "permissions": "权限", "permissionsHelp": "您可以将该用户设置为管理员,也可以单独选择各项权限。如果选择了“管理员”,则其他的选项会被自动勾上,同时该用户可以管理其他用户。", "profileSettings": "个人设置", - "ruleExample1": "阻止用户访问所有文件夹下任何以 . 开头的文件(隐藏文件, 例如: .git, .gitignore)。", + "ruleExample1": "阻止用户访问所有文件夹下任何以 . 开头的文件(隐藏文件, 例如: .git, .gitignore)。", "ruleExample2": "阻止用户访问其目录范围的根目录下名为 Caddyfile 的文件。", "rules": "规则", "rulesHelp": "您可以为该用户制定一组黑名单或白名单式的规则,被屏蔽的文件将不会显示在列表中,用户也无权限访问,支持相对于目录范围的路径。", "scope": "目录范围", "settingsUpdated": "设置已更新!", "user": "用户", - "userCommands": "用户命令(Linux 代码)", - "userCommandsHelp": "指定该用户可以执行的命令(Linux 代码),用空格分隔。例如:", + "userCommands": "用户命令(shell 命令)", + "userCommandsHelp": "指定该用户可以执行的命令(shell 代码),用空格分隔。例如:", "userCreated": "用户已创建!", "userDeleted": "用户已删除!", "userManagement": "用户管理", @@ -167,12 +174,12 @@ "allowSignup": "允许用户注册", "createUserDir": "在添加新用户的同时自动创建用户的个人目录", "insertRegex": "插入正则表达式", - "insertPath": "Insert the path", + "insertPath": "插入路径", "userUpdated": "用户已更新!", "userDefaults": "用户默认设置", - "defaultUserDescription": "这些是新用户的默认设置", + "defaultUserDescription": "这些是新用户的默认设置。", "executeOnShell": "在Shell中执行", - "executeOnShellDescription": "By default, File Browser executes the commands by calling their binaries directly. If you want to run them on a shell instead (such as Bash or PowerShell), you can define it here with the required arguments and flags. If set, the command you execute will be appended as an argument. This apply to both user commands and event hooks.", + "executeOnShellDescription": "默认情况下,File Browser通过直接调用命令的二进制包来执行命令,如果想在shell中执行(如Bash、PowerShell),你可以在这里定义所使用的shell和参数。如果设置了这个选项,所执行的命令会作为参数追加在后面。本选项对用户命令和事件钩子都生效。", "perm": { "create": "创建文件和文件夹", "delete": "删除文件和文件夹", @@ -209,18 +216,22 @@ "languages": { "ar": "العربية", "en": "English", + "is": "Icelandic", "it": "Italiano", "fr": "Français", "pt": "Português", - "ptBR": "Português (Brasil)", + "ptBR": "Português(Brasil)", "ja": "日本語", - "zhCN": "中文 (简体)", - "zhTW": "中文 (繁體)", + "zhCN": "中文(简体)", + "zhTW": "中文(繁體)", "es": "Español", "de": "Deutsch", "ru": "Русский", "pl": "Polski", - "ko": "한국어" + "ko": "한국어", + "nlBE": "Dutch(Belgium)", + "ro": "Romanian", + "svSE": "Swedish(Sweden)" }, "time": { "unit": "时间单位", diff --git a/frontend/src/i18n/zh-tw.json b/frontend/src/i18n/zh-tw.json index 279af4fb..87ed0145 100644 --- a/frontend/src/i18n/zh-tw.json +++ b/frontend/src/i18n/zh-tw.json @@ -116,15 +116,22 @@ "size": "大小", "schedule": "計畫", "scheduleMessage": "請選擇發佈這篇貼文的日期。", - "newArchetype": "建立一個基於原型的新貼文。您的檔案將會建立在內容資料夾中。" + "newArchetype": "建立一個基於原型的新貼文。您的檔案將會建立在內容資料夾中。", + "upload": "上傳", + "uploadMessage": "選擇上傳項。" }, "settings": { - "instanceName": "Instance name", - "brandingDirectoryPath": "Branding directory path", - "documentation": "documentation", - "branding": "Branding", - "disableExternalLinks": "Disable external links (except documentation)", - "brandingHelp": "You can costumize how your File Browser instance looks and feels by changing its name, replacing the logo, adding custom styles and even disable external links to GitHub.\nFor more information about custom branding, please check out the {0}.", + "themes": { + "title": "主題", + "light": "淺色", + "dark": "深色" + }, + "instanceName": "例項名稱", + "brandingDirectoryPath": "品牌資訊資料夾路徑", + "documentation": "幫助文件", + "branding": "品牌", + "disableExternalLinks": "禁止外部連結(幫助文件除外)", + "brandingHelp": "您可以通過改變例項名稱,更換Logo,加入自定義樣式,甚至禁用到Github的外部連結來自定義File Browser的外觀和給人的感覺。\n想獲得更多資訊,請檢視 {0} 。", "admin": "管理員", "administrator": "管理員", "allowCommands": "執行命令", @@ -133,8 +140,8 @@ "allowPublish": "發佈新的貼文與頁面", "avoidChanges": "(留空以避免更改)", "changePassword": "更改密碼", - "commandRunner": "Command runner", - "commandRunnerHelp": "Here you can set commands that are executed in the named events. You must write one per line. The environment variables {0} and {1} will be available, being {0} relative to {1}. For more information about this feature and the available environment variables, please read the {2}.", + "commandRunner": "命令執行器", + "commandRunnerHelp": "在這裡你可以設定在下面的事件中執行的命令。每行必須寫一條命令。可以在命令中使用環境變數 {0} 和 {1}。關於此功能和可用環境變數的更多資訊,請閱讀{2}.", "commandsUpdated": "命令已更新!", "customStylesheet": "自定義樣式表", "examples": "範例", @@ -163,22 +170,22 @@ "userManagement": "使用者管理", "username": "使用者名稱", "users": "使用者", - "globalRules": "This is a global set of allow and disallow rules. They apply to every user. You can define specific rules on each user's settings to override this ones.", - "allowSignup": "Allow users to signup", - "createUserDir": "Auto create user home dir while adding new user", - "insertRegex": "Insert regex expression", - "insertPath": "Insert the path", + "globalRules": "這是全局允許與禁止規則。它們作用於所有使用者。您可以給每個使用者定義單獨的特殊規則來覆蓋全局規則。", + "allowSignup": "允許使用者註冊", + "createUserDir": "在新增新使用者的同時自動建立使用者的個人目錄", + "insertRegex": "插入正規表示式", + "insertPath": "插入路徑", "userUpdated": "使用者已更新!", - "userDefaults": "User default settings", - "defaultUserDescription": "This are the default settings for new users.", - "executeOnShell": "Execute on shell", - "executeOnShellDescription": "By default, File Browser executes the commands by calling their binaries directly. If you want to run them on a shell instead (such as Bash or PowerShell), you can define it here with the required arguments and flags. If set, the command you execute will be appended as an argument. This apply to both user commands and event hooks.", + "userDefaults": "使用者預設選項", + "defaultUserDescription": "這些是新使用者的預設設定。", + "executeOnShell": "在Shell中執行", + "executeOnShellDescription": "預設情況下,File Browser通過直接呼叫命令的二進位制包來執行命令,如果想在shell中執行(如Bash、PowerShell),你可以在這裡定義所使用的shell和參數。如果設定了這個選項,所執行的命令會作為參數追加在後面。本選項對使用者命令和事件鉤子都生效。", "perm": { "create": "建立檔案和資料夾", "delete": "刪除檔案和資料夾", "download": "下載", "modify": "編輯檔案", - "execute": "Execute commands", + "execute": "執行命令", "rename": "重命名或移動檔案/資料夾", "share": "分享檔案" } @@ -203,12 +210,13 @@ "types": "類型", "video": "影片", "search": "搜尋...", - "typeToSearch": "Type to search...", - "pressToSearch": "Press enter to search..." + "typeToSearch": "輸入以搜尋...", + "pressToSearch": "按確認鍵搜尋..." }, "languages": { "ar": "العربية", "en": "English", + "is": "Icelandic", "it": "Italiano", "fr": "Français", "pt": "Português", @@ -220,7 +228,10 @@ "de": "Deutsch", "ru": "Русский", "pl": "Polski", - "ko": "한국어" + "ko": "한국어", + "nlBE": "Dutch(Belgium)", + "ro": "Romanian", + "svSE": "Swedish(Sweden)" }, "time": { "unit": "時間單位",