From 68a53d9cd3c6e334ccaf45dd0e208649e804762e Mon Sep 17 00:00:00 2001 From: ttop32 Date: Sat, 30 Nov 2024 18:49:29 +0900 Subject: [PATCH] change locale --- doc/insertLocale.py | 12 ++++++------ public/_locales/zh_CN/messages.json | 2 +- public/_locales/zh_TW/messages.json | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/insertLocale.py b/doc/insertLocale.py index dbbf03f6..532d7d4e 100644 --- a/doc/insertLocale.py +++ b/doc/insertLocale.py @@ -173,14 +173,14 @@ def translate(text, lang): def addBasicDescription(jsonDict, locale): - jsonDict["appName"] = {"message": appName} + # jsonDict["appName"] = {"message": appName} - if "appDesc" not in jsonDict: - jsonDict["appDesc"] = {"message": translate(appDesc, locale)} - - if "appDesc" in jsonDict: - jsonDict["appDesc"] = {"message": jsonDict["appDesc"]["message"][:130]} + # if "appDesc" not in jsonDict: + # jsonDict["appDesc"] = {"message": translate(appDesc, locale)} + # if "appDesc" in jsonDict: + # jsonDict["appDesc"] = {"message": jsonDict["appDesc"]["message"][:130]} + pass def getI18IdList(): return [getI18Id(i18) for i18 in i18List] diff --git a/public/_locales/zh_CN/messages.json b/public/_locales/zh_CN/messages.json index 4265420c..9ae49bcb 100644 --- a/public/_locales/zh_CN/messages.json +++ b/public/_locales/zh_CN/messages.json @@ -270,7 +270,7 @@ "message": "标题 " }, "appName": { - "message": "Mouse Tooltip Translator - PDF & Youtube dual subs" + "message": "鼠标工具提示翻译器 - PDF 和 YouTube 双字幕" }, "appDesc": { "message": "鼠标工具提示转换器使用谷歌翻译翻译鼠标悬停文本。支持 OCR、TTS、漫画翻译和 PDF 翻译。" diff --git a/public/_locales/zh_TW/messages.json b/public/_locales/zh_TW/messages.json index 2004f3db..4271ca06 100644 --- a/public/_locales/zh_TW/messages.json +++ b/public/_locales/zh_TW/messages.json @@ -270,7 +270,7 @@ "message": "標題 " }, "appName": { - "message": "Mouse Tooltip Translator - PDF & Youtube dual subs" + "message": "滑鼠工具提示翻譯器 - PDF 和 YouTube 雙字幕" }, "appDesc": { "message": "滑鼠工具提示轉換器使用谷歌翻譯翻譯滑鼠懸停文本。支持 OCR、TTS、漫畫翻譯和 PDF 翻譯。"