增加繁体中文

pull/14/head
minxiwan 2 weeks ago
parent af50d78f78
commit 0404e665c1

@ -282,6 +282,76 @@ object LanguageManager {
"status_hint.reconnect_countdown" to "%d초 후 자동 재연결 (시도 %d회)", "status_hint.reconnect_countdown" to "%d초 후 자동 재연결 (시도 %d회)",
"status_hint.reconnect_failed_invalid_url" to "재연결 실패: 서버 주소가 유효하지 않음", "status_hint.reconnect_failed_invalid_url" to "재연결 실패: 서버 주소가 유효하지 않음",
"status_hint.hello_timeout" to "핸드셰이크 시간 초과, 서버 경로와 리버스 프록시를 확인하세요" "status_hint.hello_timeout" to "핸드셰이크 시간 초과, 서버 경로와 리버스 프록시를 확인하세요"
),
// 新增繁体中文
"zh-Hant" to mapOf(
"tab.chat" to "聊天",
"tab.settings" to "設定",
"settings.personal" to "個人設定",
"settings.display_name" to "顯示名稱",
"settings.chat_data" to "聊天資料",
"settings.server" to "伺服器",
"settings.server_url" to "伺服器位址",
"settings.save_server" to "儲存位址",
"settings.remove_current" to "刪除目前",
"settings.saved_servers" to "已儲存位址",
"settings.identity" to "身份與安全",
"settings.reveal_key" to "檢視/產生公鑰",
"settings.copy_key" to "複製公鑰",
"settings.my_key" to "我的公鑰",
"settings.theme" to "主題",
"settings.preset_themes" to "預設主題",
"settings.language" to "語言",
"settings.diagnostics" to "診斷",
"settings.status_hint" to "連線提示",
"settings.current_status" to "目前狀態",
"settings.cert_fingerprint" to "憑證指紋",
"settings.show_system" to "顯示系統訊息",
"settings.clear_msg" to "清空訊息",
"settings.dynamic_color" to "使用動態顏色",
"chat.broadcast" to "廣播",
"chat.private" to "私訊",
"chat.target_key" to "目標公鑰",
"chat.input_placeholder" to "輸入訊息",
"chat.send" to "傳送",
"chat.sending" to "傳送中",
"chat.empty_hint" to "連線後即可聊天。預設為廣播,切換到私訊後可填寫目標公鑰。",
"common.copied" to "已複製",
"common.unknown" to "未知",
"theme.blue" to "蔚藍",
"theme.gray" to "商務灰",
"theme.green" to "翠綠",
"theme.red" to "緋紅",
"theme.warm" to "溫暖",
"status.idle" to "連線中斷",
"status.connecting" to "連線中",
"status.ready" to "已連線",
"status.error" to "異常中斷",
"status_hint.ready" to "已連線,可以開始聊天",
"status_hint.click_to_connect" to "點擊連線開始聊天",
"status_hint.handshaking" to "已連線,正在準備聊天...",
"status_hint.received_binary_handshake" to "收到二進位握手幀,正在嘗試解析...",
"status_hint.connection_error_retrying" to "連線異常,正在重試",
"status_hint.invalid_server_url" to "請填寫有效伺服器位址",
"status_hint.connecting" to "正在連線伺服器...",
"status_hint.disconnected" to "連線已關閉",
"status_hint.server_saved" to "伺服器位址已儲存",
"status_hint.server_removed_default" to "已恢復預設伺服器位址",
"status_hint.server_removed" to "已移除目前伺服器位址",
"status_hint.target_key_required" to "請先填寫目標公鑰,再傳送私訊",
"status_hint.hello_received" to "已收到握手資料,正在解析...",
"status_hint.handshake_failed_incomplete" to "握手失敗:伺服器回應不完整",
"status_hint.handshake_failed_unexpected" to "握手失敗:收到非預期訊息",
"status_hint.handshake_failed_parse" to "握手失敗:首包解析失敗",
"status_hint.authenticating" to "正在完成身份驗證...",
"status_hint.auth_timeout" to "連線超時,請重試",
"status_hint.auth_failed" to "認證失敗",
"status_hint.reconnecting" to "正在自動重試連線...",
"status_hint.connection_interrupted_retrying" to "連線已中斷,正在重試",
"status_hint.reconnect_countdown" to "%d秒後自動重連第 %d 次)",
"status_hint.reconnect_failed_invalid_url" to "重連失敗:伺服器位址無效",
"status_hint.hello_timeout" to "握手超時,請檢查位址路徑與反向代理"
) )
) )
@ -290,11 +360,12 @@ object LanguageManager {
} }
val supportedLanguages = listOf( val supportedLanguages = listOf(
LanguageOption("zh", "中文"), LanguageOption("zh", "中文简体"),
LanguageOption("zh-Hant", "繁體中文"),
LanguageOption("en", "English"), LanguageOption("en", "English"),
LanguageOption("ja", "日本语"), LanguageOption("ja", "日本语"),
LanguageOption("ko", "한국어") LanguageOption("ko", "한국어")
) )
} }
data class LanguageOption(val code: String, val name: String) data class LanguageOption(val code: String, val name: String)
Loading…
Cancel
Save