From 32796ba03ce953337c5fea58a3850d827542e041 Mon Sep 17 00:00:00 2001 From: icarus Date: Sat, 23 Aug 2025 23:57:45 +0800 Subject: [PATCH] =?UTF-8?q?feat(i18n):=20=E6=B7=BB=E5=8A=A0OCR=E6=8F=90?= =?UTF-8?q?=E4=BE=9B=E5=95=86=E7=9B=B8=E5=85=B3=E9=94=99=E8=AF=AF=E5=92=8C?= =?UTF-8?q?=E8=AD=A6=E5=91=8A=E7=9A=84=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/i18n/locales/en-us.json | 17 ++++++++++++++++- src/renderer/src/i18n/locales/ja-jp.json | 17 ++++++++++++++++- src/renderer/src/i18n/locales/ru-ru.json | 17 ++++++++++++++++- src/renderer/src/i18n/locales/zh-cn.json | 19 +++++++++++++++++-- src/renderer/src/i18n/locales/zh-tw.json | 17 ++++++++++++++++- src/renderer/src/i18n/translate/el-gr.json | 20 +++++++++++++++++++- src/renderer/src/i18n/translate/es-es.json | 20 +++++++++++++++++++- src/renderer/src/i18n/translate/fr-fr.json | 20 +++++++++++++++++++- src/renderer/src/i18n/translate/pt-pt.json | 20 +++++++++++++++++++- 9 files changed, 157 insertions(+), 10 deletions(-) diff --git a/src/renderer/src/i18n/locales/en-us.json b/src/renderer/src/i18n/locales/en-us.json index 035c906d9b..c370148ae5 100644 --- a/src/renderer/src/i18n/locales/en-us.json +++ b/src/renderer/src/i18n/locales/en-us.json @@ -1566,12 +1566,23 @@ }, "ocr": { "error": { + "provider": { + "cannot_remove_builtin": "Cannot delete built-in provider", + "existing": "The provider already exists", + "not_found": "OCR provider does not exist", + "update_failed": "Failed to update configuration" + }, "unknown": "An error occurred during the OCR process" }, "file": { "not_supported": "Unsupported file type {{type}}" }, - "processing": "OCR processing..." + "processing": "OCR processing...", + "warning": { + "provider": { + "fallback": "Reverted to {{name}}, which may cause issues" + } + } }, "ollama": { "keep_alive_time": { @@ -3498,6 +3509,10 @@ "error": { "provider_not_found": "The provider does not exist" }, + "tesseract": { + "langs": "Supported languages", + "temp_tooltip": "Currently only Chinese and English are supported" + }, "title": "Image" }, "image_provider": "OCR service provider", diff --git a/src/renderer/src/i18n/locales/ja-jp.json b/src/renderer/src/i18n/locales/ja-jp.json index 3361adafe7..f9bc8b3381 100644 --- a/src/renderer/src/i18n/locales/ja-jp.json +++ b/src/renderer/src/i18n/locales/ja-jp.json @@ -1566,12 +1566,23 @@ }, "ocr": { "error": { + "provider": { + "cannot_remove_builtin": "組み込みプロバイダーは削除できません", + "existing": "プロバイダーはすでに存在します", + "not_found": "OCRプロバイダーが存在しません", + "update_failed": "更新構成に失敗しました" + }, "unknown": "OCR処理中にエラーが発生しました" }, "file": { "not_supported": "サポートされていないファイルタイプ {{type}}" }, - "processing": "OCR処理中..." + "processing": "OCR処理中...", + "warning": { + "provider": { + "fallback": "{{name}} に戻されました。これにより問題が発生する可能性があります。" + } + } }, "ollama": { "keep_alive_time": { @@ -3498,6 +3509,10 @@ "error": { "provider_not_found": "該提供者は存在しません" }, + "tesseract": { + "langs": "サポートされている言語", + "temp_tooltip": "現在のところ、中国語と英語のみをサポートしています" + }, "title": "画像" }, "image_provider": "OCRサービスプロバイダー", diff --git a/src/renderer/src/i18n/locales/ru-ru.json b/src/renderer/src/i18n/locales/ru-ru.json index 22ce9cfce8..e86d9914be 100644 --- a/src/renderer/src/i18n/locales/ru-ru.json +++ b/src/renderer/src/i18n/locales/ru-ru.json @@ -1566,12 +1566,23 @@ }, "ocr": { "error": { + "provider": { + "cannot_remove_builtin": "Не удается удалить встроенного поставщика", + "existing": "Поставщик уже существует", + "not_found": "Поставщик OCR отсутствует", + "update_failed": "Обновление конфигурации не удалось" + }, "unknown": "Произошла ошибка в процессе распознавания текста" }, "file": { "not_supported": "Неподдерживаемый тип файла {{type}}" }, - "processing": "Обработка OCR..." + "processing": "Обработка OCR...", + "warning": { + "provider": { + "fallback": "Возвращено к {{name}}, это может вызвать проблемы" + } + } }, "ollama": { "keep_alive_time": { @@ -3498,6 +3509,10 @@ "error": { "provider_not_found": "Поставщик не существует" }, + "tesseract": { + "langs": "Поддерживаемые языки", + "temp_tooltip": "На данный момент поддерживаются только китайский и английский языки" + }, "title": "Изображение" }, "image_provider": "Поставщик услуг OCR", diff --git a/src/renderer/src/i18n/locales/zh-cn.json b/src/renderer/src/i18n/locales/zh-cn.json index 3b3d763f8b..5473e00d7c 100644 --- a/src/renderer/src/i18n/locales/zh-cn.json +++ b/src/renderer/src/i18n/locales/zh-cn.json @@ -1566,12 +1566,23 @@ }, "ocr": { "error": { - "unknown": "OCR过程发生错误" + "provider": { + "cannot_remove_builtin": "不能删除内置提供商", + "existing": "提供商已存在", + "not_found": "OCR 提供商不存在", + "update_failed": "更新配置失败" + }, + "unknown": "OCR 过程发生错误" }, "file": { "not_supported": "不支持的文件类型 {{type}}" }, - "processing": "OCR 处理中..." + "processing": "OCR 处理中...", + "warning": { + "provider": { + "fallback": "已回退到 {{name}},这可能导致问题" + } + } }, "ollama": { "keep_alive_time": { @@ -3498,6 +3509,10 @@ "error": { "provider_not_found": "该提供商不存在" }, + "tesseract": { + "langs": "支持的语言", + "temp_tooltip": "目前暂时只支持中文和英文" + }, "title": "图片" }, "image_provider": "OCR 服务提供商", diff --git a/src/renderer/src/i18n/locales/zh-tw.json b/src/renderer/src/i18n/locales/zh-tw.json index d86862508f..4ca0a23f76 100644 --- a/src/renderer/src/i18n/locales/zh-tw.json +++ b/src/renderer/src/i18n/locales/zh-tw.json @@ -1566,12 +1566,23 @@ }, "ocr": { "error": { + "provider": { + "cannot_remove_builtin": "不能刪除內建提供者", + "existing": "提供商已存在", + "not_found": "OCR 提供商不存在", + "update_failed": "更新配置失敗" + }, "unknown": "OCR過程發生錯誤" }, "file": { "not_supported": "不支持的文件類型 {{type}}" }, - "processing": "OCR 處理中..." + "processing": "OCR 處理中...", + "warning": { + "provider": { + "fallback": "已回退到 {{name}},這可能導致問題" + } + } }, "ollama": { "keep_alive_time": { @@ -3498,6 +3509,10 @@ "error": { "provider_not_found": "該提供商不存在" }, + "tesseract": { + "langs": "支援的語言", + "temp_tooltip": "目前暫時只支援中文和英文" + }, "title": "圖片" }, "image_provider": "OCR 服務提供商", diff --git a/src/renderer/src/i18n/translate/el-gr.json b/src/renderer/src/i18n/translate/el-gr.json index 0b7cf845b0..9fbe27d488 100644 --- a/src/renderer/src/i18n/translate/el-gr.json +++ b/src/renderer/src/i18n/translate/el-gr.json @@ -888,6 +888,9 @@ }, "history": { "continue_chat": "Συνεχίστε το συνομιλημένο", + "error": { + "topic_not_found": "Το θέμα δεν υπάρχει" + }, "locate": { "message": "Εφαρμογή στο μήνυμα" }, @@ -1563,12 +1566,23 @@ }, "ocr": { "error": { + "provider": { + "cannot_remove_builtin": "Δεν είναι δυνατή η διαγραφή του ενσωματωμένου παρόχου", + "existing": "Ο πάροχος υπηρεσιών υπάρχει ήδη", + "not_found": "Ο πάροχος OCR δεν υπάρχει", + "update_failed": "Αποτυχία ενημέρωσης της διαμόρφωσης" + }, "unknown": "Η διαδικασία OCR εμφάνισε σφάλμα" }, "file": { "not_supported": "Μη υποστηριζόμενος τύπος αρχείου {{type}}" }, - "processing": "Η επεξεργασία OCR βρίσκεται σε εξέλιξη..." + "processing": "Η επεξεργασία OCR βρίσκεται σε εξέλιξη...", + "warning": { + "provider": { + "fallback": "Επαναφέρθηκε στο {{name}}, το οποίο μπορεί να προκαλέσει προβλήματα" + } + } }, "ollama": { "keep_alive_time": { @@ -3495,6 +3509,10 @@ "error": { "provider_not_found": "Ο πάροχος δεν υπάρχει" }, + "tesseract": { + "langs": "Υποστηριζόμενες γλώσσες", + "temp_tooltip": "Προς το παρόν υποστηρίζονται μόνο η κινεζική και η αγγλική γλώσσα" + }, "title": "Εικόνα" }, "image_provider": "Πάροχοι υπηρεσιών OCR", diff --git a/src/renderer/src/i18n/translate/es-es.json b/src/renderer/src/i18n/translate/es-es.json index e592e00cea..6160ebe194 100644 --- a/src/renderer/src/i18n/translate/es-es.json +++ b/src/renderer/src/i18n/translate/es-es.json @@ -888,6 +888,9 @@ }, "history": { "continue_chat": "Continuar chat", + "error": { + "topic_not_found": "El tema no existe" + }, "locate": { "message": "Localizar mensaje" }, @@ -1563,12 +1566,23 @@ }, "ocr": { "error": { + "provider": { + "cannot_remove_builtin": "No se puede eliminar el proveedor integrado", + "existing": "El proveedor ya existe", + "not_found": "El proveedor de OCR no existe", + "update_failed": "Actualización de la configuración fallida" + }, "unknown": "El proceso OCR ha fallado" }, "file": { "not_supported": "Tipo de archivo no compatible {{type}}" }, - "processing": "Procesando OCR..." + "processing": "Procesando OCR...", + "warning": { + "provider": { + "fallback": "Se ha revertido a {{name}}, lo que podría causar problemas" + } + } }, "ollama": { "keep_alive_time": { @@ -3495,6 +3509,10 @@ "error": { "provider_not_found": "El proveedor no existe" }, + "tesseract": { + "langs": "Idiomas compatibles", + "temp_tooltip": "Actualmente solo se admiten chino e inglés." + }, "title": "Imagen" }, "image_provider": "Proveedor de servicios OCR", diff --git a/src/renderer/src/i18n/translate/fr-fr.json b/src/renderer/src/i18n/translate/fr-fr.json index 01b46cc95d..8ce28e34d8 100644 --- a/src/renderer/src/i18n/translate/fr-fr.json +++ b/src/renderer/src/i18n/translate/fr-fr.json @@ -888,6 +888,9 @@ }, "history": { "continue_chat": "Continuer la conversation", + "error": { + "topic_not_found": "Le sujet n'existe pas" + }, "locate": { "message": "Localiser le message" }, @@ -1563,12 +1566,23 @@ }, "ocr": { "error": { + "provider": { + "cannot_remove_builtin": "Impossible de supprimer le fournisseur intégré", + "existing": "Le fournisseur existe déjà", + "not_found": "Le fournisseur OCR n'existe pas", + "update_failed": "Échec de la mise à jour de la configuration" + }, "unknown": "Une erreur s'est produite lors du processus OCR" }, "file": { "not_supported": "Type de fichier non pris en charge {{type}}" }, - "processing": "Traitement OCR en cours..." + "processing": "Traitement OCR en cours...", + "warning": { + "provider": { + "fallback": "Revenu à {{name}}, ce qui pourrait entraîner des problèmes" + } + } }, "ollama": { "keep_alive_time": { @@ -3495,6 +3509,10 @@ "error": { "provider_not_found": "Ce fournisseur n'existe pas" }, + "tesseract": { + "langs": "Langues prises en charge", + "temp_tooltip": "Pour le moment, seuls le chinois et l'anglais sont pris en charge." + }, "title": "Image" }, "image_provider": "Fournisseur de service OCR", diff --git a/src/renderer/src/i18n/translate/pt-pt.json b/src/renderer/src/i18n/translate/pt-pt.json index 900585d154..9b227bf473 100644 --- a/src/renderer/src/i18n/translate/pt-pt.json +++ b/src/renderer/src/i18n/translate/pt-pt.json @@ -888,6 +888,9 @@ }, "history": { "continue_chat": "Continuar conversando", + "error": { + "topic_not_found": "Tópico inexistente" + }, "locate": { "message": "Localizar mensagem" }, @@ -1563,12 +1566,23 @@ }, "ocr": { "error": { + "provider": { + "cannot_remove_builtin": "Não é possível excluir o provedor integrado", + "existing": "O provedor já existe", + "not_found": "O provedor OCR não existe", + "update_failed": "Falha ao atualizar a configuração" + }, "unknown": "O processo OCR apresentou um erro" }, "file": { "not_supported": "Tipo de arquivo não suportado {{type}}" }, - "processing": "Processamento OCR em andamento..." + "processing": "Processamento OCR em andamento...", + "warning": { + "provider": { + "fallback": "Revertido para {{name}}, o que pode causar problemas" + } + } }, "ollama": { "keep_alive_time": { @@ -3495,6 +3509,10 @@ "error": { "provider_not_found": "O provedor não existe" }, + "tesseract": { + "langs": "Idiomas suportados", + "temp_tooltip": "No momento, apenas chinês e inglês são suportados." + }, "title": "Imagem" }, "image_provider": "Provedor de serviços OCR",