Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加:繁体中文文本 #74

Merged
merged 1 commit into from
Dec 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions app/Languages/zh_CHT/admin.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

declare(strict_types=1);
return [
'setting' => [
'language' => '站點默認語言',
'Whether to enable rendering of twemoji' => '是否開啟渲染twemoji',
'twemoji static resource library' => 'twemoji靜態資源庫',
'twemoji image width' => 'twemoji圖片寬度',
'twemoji image height' => 'twemoji圖片高度',
'Whether to enable rendering of owo expressions' => '是否開啟渲染owo表情',
],
'wealth' => [
'exchange rate' => '兑換比例',
'money unit name' => ':name 單位名',
'money name' => '餘額名稱',
'credit name' => '積分名稱',
'golds name' => '金幣名稱',
'exp name' => '經驗名稱',
'how many' => ':number :first 等於多少 :last',
'close redemption' => '關閉 :first 兑換 :last',
'exchange alert' => '兑換比例保存後不建議修改,可能會造成財富數據錯亂!!! 兑換比例不建議過高 ,建議1-100',
],
'turn on' => '開啟',
'turn off' => '關閉',
'default' => '默認: :default',
'current' => '當前: :current',
'user' => [
'pm' => [
'msg maxlength' => '消息最大長度',
'msg reserve' => '消息保留時長',
],
],
'is reserved forever' => ':reserve 為永久保留',
'Unit:day' => '單位:天',
];
76 changes: 76 additions & 0 deletions app/Languages/zh_CHT/app.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?php

return [
'welcome' => '歡迎',
'default' => '默認',
'home' => '首頁',
'tag' => '板塊',
'user' => '用户',
'latest' => '最新',
'essence' => '精華',
'hot' => '熱門',
'best' => '最贊',
'reply' => '回覆',
'Published on' => '發表',
'Updated on' => '更新',
'Error using short tags' => '短代碼使用出錯',
'login' => '登陸',
'register' => '註冊',
'follow' => '關注',
'fans'=> '粉絲',
'topic' => '主題',
'last' => '最後',
'title' => '標題',
'updated' => '更新',
'top' => '置頂',
'update' => '更新',
'create' => '創建',
'created' => '創建',
'updated_at' => '更新時間',
'created_at' => '創建時間',
'bio' => '個人簽名',
'Join time' => '加入時間: :time',
'search' => 'Search',
'Creator' => '創建者',
'Summary' => '摘要',
'notice' => '通知',
'no description' => '暫無描述',
'description' => '描述',
'IP attribution' => ':province',
'comment' => '評論',
'set to essence' => '設為精華',
'set to top' => '設為置頂',
'delete' => '刪除',
'revise' => '修改',
'pageviews' => '瀏覽量',
'created at' => '創建於: :time',
'report created at' => '舉報於: :time',
'report center' => '舉報中心',
'week' => '周',
'ago' => '前',
'year' => '年',
'month' => '月',
'day' => '日',
'hour' => '小時',
'minute' => '分鐘',
'second' => '秒',
'last update time' => '最後更新時間: :time',
'permission value' => '權限值',
'No more results' => '沒有更多結果',
'quote' => '引用',
'edit' => '編輯',
'report' => '舉報',
'collections' => '收藏',
'preview markdown' => '預覽Markdown',
'none' => '暫無',
'search result' => ':search 的搜索結果',
'submit' => '提交',
'name' => "名稱",
'color' => '顏色',
'icon' => '圖標',
'watch' => "查看",
'wechat' => '微信',
'email' => '郵箱',
'approval' => '批准',
'reject' => '駁回'
];
1 change: 1 addition & 0 deletions app/Languages/zh_CHT/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"繁體中文"}
11 changes: 11 additions & 0 deletions app/Languages/zh_CHT/tag.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php


return [
'list' => '板塊列表',
'create' => '創建板塊',
'Which user group can use this label' => '哪個用户組可以使用此板塊?',
'If not selected, this label is available to all user groups' => '不選擇則所有用户組都可用此板塊',
'edit tag' => '編輯板塊',
'create tag' => '創建板塊'
];
29 changes: 29 additions & 0 deletions app/Languages/zh_CHT/topic.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php


return [
'list' => '主題列表',
'automatically captured'=>'如果為空,則會自動從文本中抓取',
'floor' => ':floor 樓',
'title' => '帖子標題',
'create' => '發帖',
'publish' => "發佈",
"comment" => [
'adoption' => '採納',
'cancel' => '取消',
'adopted comment' => ':name 採納了你的評論',
'best reply' => '最佳回覆',
'comment content' => '評論內容',
'operate' => '操作',
],
'likes' => '點贊',
'previous' => '上一篇',
'next' => '下一篇',
'edit topic' => '編輯帖子',
'Please enter a title' => '請輸入標題',
'Reply is visible' => '回覆可見',
'toggle edit mode' => '切換編輯模式',
'Quoted Post' => '引用帖子',
'Add attachments' => '添加附件',
'summary' => '帖子摘要',
];
41 changes: 41 additions & 0 deletions app/Languages/zh_CHT/user.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php


return [
'list' => '用户列表',
'st member' => '本站第 :member 位會員',
'members in total' => '共有 :total 位會員',
'List of members under this user group' => '本用户組下的會員列表',
'registration date' => '註冊日期',
'user group info' => '用户組的信息',
'notice list' => '通知列表',
'clean notice' => '清空通知',
'read all' => '全部已讀',
'no bio' => '這個人沒有簽名',
'personal website' => '個人網站',
'other information' => '其他信息',
'register time' => '註冊時間',
'comment count' => '評論數量',
'topic count' => '主題數量',
'collection count' => '收藏數量',
'fans count' => '粉絲數量',
'topic tag count' => '板塊數量',
'QQ' => 'QQ',
'wechat' => '微信',
'email' => '郵箱',
'website' => '網站',
'wealth' => '財富',
'location' => '位置信息',
'topic num' => '文章數量',
'comment num' => '評論數量',
'fans num' => '粉絲數量',
'last login time' => '最後登陸',
'data' => '數據',
'already_checkin_tips' => '你今天已經簽到過了',
'not_checkin_tips' => '你今天還沒有簽到',
'task' => [
'checkin' => '簽到',
'set_avatar_done' => '已設置頭像',
'set_avatar_undone' => '還未設置頭像',
]
];
177 changes: 177 additions & 0 deletions app/Languages/zh_CHT/validation.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
<?php

declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
*/

'accepted' => ':attribute 必須接受',
'active_url' => ':attribute 必須是一個合法的 URL',
'after' => ':attribute 必須是 :date 之後的一個日期',
'after_or_equal' => ':attribute 必須是 :date 之後或相同的一個日期',
'alpha' => ':attribute 只能包含字母',
'alpha_dash' => ':attribute 只能包含字母、數字、中劃線或下劃線',
'alpha_num' => ':attribute 只能包含字母和數字',
'array' => ':attribute 必須是一個數組',
'before' => ':attribute 必須是 :date 之前的一個日期',
'before_or_equal' => ':attribute 必須是 :date 之前或相同的一個日期',
'between' => [
'numeric' => ':attribute 必須在 :min 到 :max 之間',
'file' => ':attribute 必須在 :min 到 :max kb 之間',
'string' => ':attribute 必須在 :min 到 :max 個字符之間',
'array' => ':attribute 必須在 :min 到 :max 項之間',
],
'boolean' => ':attribute 字符必須是 true 或 false, 1 或 0',
'confirmed' => ':attribute 二次確認不匹配',
'date' => ':attribute 必須是一個合法的日期',
'date_format' => ':attribute 與給定的格式 :format 不符合',
'different' => ':attribute 必須不同於 :other',
'digits' => ':attribute 必須是 :digits 位',
'digits_between' => ':attribute 必須在 :min 和 :max 位之間',
'dimensions' => ':attribute 具有無效的圖片尺寸',
'distinct' => ':attribute 字段具有重複值',
'email' => ':attribute 必須是一個合法的電子郵件地址',
'exists' => '選定的 :attribute 是無效的',
'file' => ':attribute 必須是一個文件',
'filled' => ':attribute 的字段是必填的',
'gt' => [
'numeric' => ':attribute 必須大於 :value',
'file' => ':attribute 必須大於 :value kb',
'string' => ':attribute 必須大於 :value 個字符',
'array' => ':attribute 必須大於 :value 項',
],
'gte' => [
'numeric' => ':attribute 必須大於等於 :value',
'file' => ':attribute 必須大於等於 :value kb',
'string' => ':attribute 必須大於等於 :value 個字符',
'array' => ':attribute 必須大於等於 :value 項',
],
'image' => ':attribute 必須是 jpg, jpeg, png, bmp 或者 gif 格式的圖片',
'in' => '選定的 :attribute 是無效的',
'in_array' => ':attribute 字段不存在於 :other',
'integer' => ':attribute 必須是個整數',
'ip' => ':attribute 必須是一個合法的 IP 地址',
'ipv4' => ':attribute 必須是一個合法的 IPv4 地址',
'ipv6' => ':attribute 必須是一個合法的 IPv6 地址',
'json' => ':attribute 必須是一個合法的 JSON 字符串',
'lt' => [
'numeric' => ':attribute 必須小於 :value',
'file' => ':attribute 必須小於 :value kb',
'string' => ':attribute 必須小於 :value 個字符',
'array' => ':attribute 必須小於 :value 項',
],
'lte' => [
'numeric' => ':attribute 必須小於等於 :value',
'file' => ':attribute 必須小於等於 :value kb',
'string' => ':attribute 必須小於等於 :value 個字符',
'array' => ':attribute 必須小於等於 :value 項',
],
'max' => [
'numeric' => ':attribute 的最大值為 :max',
'file' => ':attribute 的最大為 :max kb',
'string' => ':attribute 的最大長度為 :max 字符',
'array' => ':attribute 至多有 :max 項',
],
'mimes' => ':attribute 的文件類型必須是 :values',
'mimetypes' => ':attribute 的文件MIME必須是 :values',
'min' => [
'numeric' => ':attribute 的最小值為 :min',
'file' => ':attribute 大小至少為 :min kb',
'string' => ':attribute 的最小長度為 :min 字符',
'array' => ':attribute 至少有 :min 項',
],
'not_in' => '選定的 :attribute 是無效的',
'not_regex' => ':attribute 不能匹配給定的正則',
'numeric' => ':attribute 必須是數字',
'present' => ':attribute 字段必須存在',
'regex' => ':attribute 格式是無效的',
'required' => ':attribute 字段是必須的',
'required_if' => ':attribute 字段是必須的當 :other 是 :value',
'required_unless' => ':attribute 字段是必須的,除非 :other 是在 :values 中',
'required_with' => ':attribute 字段是必須的當 :values 是存在的',
'required_with_all' => ':attribute 字段是必須的當 :values 是存在的',
'required_without' => ':attribute 字段是必須的當 :values 是不存在的',
'required_without_all' => ':attribute 字段是必須的當 沒有一個 :values 是存在的',
'same' => ':attribute 和 :other 必須匹配',
'size' => [
'numeric' => ':attribute 必須是 :size',
'file' => ':attribute 必須是 :size kb',
'string' => ':attribute 必須是 :size 個字符',
'array' => ':attribute 必須包括 :size 項',
],
'starts_with' => ':attribute 必須以 :values 為開頭',
'string' => ':attribute 必須是一個字符串',
'timezone' => ':attribute 必須是個有效的時區',
'unique' => ':attribute 已存在',
'uploaded' => ':attribute 上傳失敗',
'url' => ':attribute 無效的格式',
'uuid' => ':attribute 無效的UUID格式',
'max_if' => [
'numeric' => '當 :other 為 :value 時 :attribute 不能大於 :max',
'file' => '當 :other 為 :value 時 :attribute 不能大於 :max kb',
'string' => '當 :other 為 :value 時 :attribute 不能大於 :max 個字符',
'array' => '當 :other 為 :value 時 :attribute 最多隻有 :max 個單元',
],
'min_if' => [
'numeric' => '當 :other 為 :value 時 :attribute 必須大於等於 :min',
'file' => '當 :other 為 :value 時 :attribute 大小不能小於 :min kb',
'string' => '當 :other 為 :value 時 :attribute 至少為 :min 個字符',
'array' => '當 :other 為 :value 時 :attribute 至少有 :min 個單元',
],
'between_if' => [
'numeric' => '當 :other 為 :value 時 :attribute 必須介於 :min - :max 之間',
'file' => '當 :other 為 :value 時 :attribute 必須介於 :min - :max kb 之間',
'string' => '當 :other 為 :value 時 :attribute 必須介於 :min - :max 個字符之間',
'array' => '當 :other 為 :value 時 :attribute 必須只有 :min - :max 個單元',
],
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/

'custom' => [
'attribute-name' => [
'rule-name' => 'custom-message',
],
],

/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap attribute place-holders
| with something more reader friendly such as E-Mail Address instead
| of "email". This simply helps us make messages a little cleaner.
|
*/

'attributes' => [],
'phone_number' => ':attribute 必須為一個有效的電話號碼',
'telephone_number' => ':attribute 必須為一個有效的手機號碼',

'chinese_word' => ':attribute 必須包含以下有效字符 (中文/英文,數字, 下劃線)',
'sequential_array' => ':attribute 必須是一個有序數組',
];
Loading