From e4b7c0720797e0941469eef4d86abaabc2e1da77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Thu, 31 Oct 2024 16:42:38 +0800 Subject: [PATCH] fix --- docs/en/guochandamoxing.md | 10 +++---- docs/en/useapis/tsapi.md | 4 ++- docs/ru/guochandamoxing.md | 10 +++---- docs/ru/useapis/tsapi.md | 4 ++- docs/zh/guochandamoxing.md | 11 +++---- docs/zh/useapis/tsapi.md | 4 ++- src/files/defaultconfig/ocrsetting.json | 9 ++++-- .../defaultconfig/translatorsetting.json | 30 ++++++++++++++++--- src/files/lang/ar.json | 4 ++- src/files/lang/cht.json | 4 ++- src/files/lang/cs.json | 4 ++- src/files/lang/de.json | 4 ++- src/files/lang/en.json | 4 ++- src/files/lang/es.json | 4 ++- src/files/lang/fr.json | 4 ++- src/files/lang/it.json | 4 ++- src/files/lang/ja.json | 4 ++- src/files/lang/ko.json | 4 ++- src/files/lang/nl.json | 4 ++- src/files/lang/pl.json | 4 ++- src/files/lang/pt.json | 4 ++- src/files/lang/ru.json | 4 ++- src/files/lang/sv.json | 4 ++- src/files/lang/th.json | 4 ++- src/files/lang/tr.json | 4 ++- src/files/lang/uk.json | 4 ++- src/files/lang/vi.json | 4 ++- src/files/lang/zh.json | 4 ++- src/plugins/CMakeLists.txt | 2 +- 29 files changed, 118 insertions(+), 46 deletions(-) diff --git a/docs/en/guochandamoxing.md b/docs/en/guochandamoxing.md index 57ce2253..0e183530 100644 --- a/docs/en/guochandamoxing.md +++ b/docs/en/guochandamoxing.md @@ -171,17 +171,17 @@ Replace `{endpoint}` and `{deployName}` with your endpoint and deployName. -**BASE_URL** `https://generativelanguage.googleapis.com` - -**model** https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models +**API Interface Address** `https://generativelanguage.googleapis.com` **API Key** https://aistudio.google.com/app/apikey +**model** https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models + ### **claude** -**BASE_URL** `https://api.anthropic.com` +**API Interface Address** `https://api.anthropic.com` -**API_KEY** https://console.anthropic.com/ +**API Key** https://console.anthropic.com/ **model** https://docs.anthropic.com/en/docs/about-claude/models diff --git a/docs/en/useapis/tsapi.md b/docs/en/useapis/tsapi.md index 9cf22206..88c2c12a 100644 --- a/docs/en/useapis/tsapi.md +++ b/docs/en/useapis/tsapi.md @@ -73,7 +73,9 @@ https://ai.youdao.com/doc.s#guide #### **Alibaba** -https://www.aliyun.com/product/ai/alimt +**Activate service** https://www.aliyun.com/product/ai/alimt + +**Create Key** https://help.aliyun.com/zh/ram/user-guide/create-an-accesskey-pair #### **Caiyun** diff --git a/docs/ru/guochandamoxing.md b/docs/ru/guochandamoxing.md index a065b436..39d01de6 100644 --- a/docs/ru/guochandamoxing.md +++ b/docs/ru/guochandamoxing.md @@ -171,17 +171,17 @@ -**BASE_URL** `https://generativelanguage.googleapis.com` - -**model** https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models +**Адрес API** `https://generativelanguage.googleapis.com` **API Key** https://aistudio.google.com/app/apikey +**model** https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models + ### **claude** -**BASE_URL** `https://api.anthropic.com` +**Адрес API** `https://api.anthropic.com` -**API_KEY** https://console.anthropic.com/ +**API Key** https://console.anthropic.com/ **model** https://docs.anthropic.com/en/docs/about-claude/models diff --git a/docs/ru/useapis/tsapi.md b/docs/ru/useapis/tsapi.md index f95dd7ac..2cad1571 100644 --- a/docs/ru/useapis/tsapi.md +++ b/docs/ru/useapis/tsapi.md @@ -73,7 +73,9 @@ https://ai.youdao.com/doc.s#guide #### **Ali** -https://www.aliyun.com/product/ai/alimt +**Открытие обслуживания** https://www.aliyun.com/product/ai/alimt + +**Создать ключ** https://help.aliyun.com/zh/ram/user-guide/create-an-accesskey-pair #### **Caiyun** diff --git a/docs/zh/guochandamoxing.md b/docs/zh/guochandamoxing.md index f21efd9e..e0db56d4 100644 --- a/docs/zh/guochandamoxing.md +++ b/docs/zh/guochandamoxing.md @@ -177,17 +177,18 @@ -**BASE_URL** `https://generativelanguage.googleapis.com` - -**model** https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models +**API接口地址** `https://generativelanguage.googleapis.com` **API Key** https://aistudio.google.com/app/apikey +**model** https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models + + ### **claude** -**BASE_URL** `https://api.anthropic.com` +**API接口地址** `https://api.anthropic.com` -**API_KEY** https://console.anthropic.com/ +**API Key** https://console.anthropic.com/ **model** https://docs.anthropic.com/en/docs/about-claude/models diff --git a/docs/zh/useapis/tsapi.md b/docs/zh/useapis/tsapi.md index b1522a12..20f20211 100644 --- a/docs/zh/useapis/tsapi.md +++ b/docs/zh/useapis/tsapi.md @@ -73,7 +73,9 @@ https://ai.youdao.com/doc.s#guide #### **阿里** -https://www.aliyun.com/product/ai/alimt +**开通服务** https://www.aliyun.com/product/ai/alimt + +**创建密钥** https://help.aliyun.com/zh/ram/user-guide/create-an-accesskey-pair #### **彩云** diff --git a/src/files/defaultconfig/ocrsetting.json b/src/files/defaultconfig/ocrsetting.json index 1e56f4d4..a436dcba 100644 --- a/src/files/defaultconfig/ocrsetting.json +++ b/src/files/defaultconfig/ocrsetting.json @@ -134,6 +134,7 @@ }, "argstype": { "APP_SECRET": { + "name": "应用密钥", "refcombo": "interface", "refcombo_l": [ 0, @@ -141,6 +142,7 @@ ] }, "APP_KEY": { + "name": "应用ID", "refcombo": "interface", "refcombo_l": [ 0, @@ -218,9 +220,10 @@ "custom_prompt": "" }, "argstype": { - "BASE_URL": { - "rank": 0 - }, + "BASE_URL": { + "name": "API接口地址", + "rank": 0 + }, "key": { "rank": 2, "name": "API Key" diff --git a/src/files/defaultconfig/translatorsetting.json b/src/files/defaultconfig/translatorsetting.json index d8c217f4..bfb234aa 100644 --- a/src/files/defaultconfig/translatorsetting.json +++ b/src/files/defaultconfig/translatorsetting.json @@ -90,11 +90,15 @@ "argstype": { "DeepL-Auth-Key": { "rank": 1, - "name": "DeepL-Auth-Key Free" + "name": "Auth Key", + "refcombo": "usewhich", + "refcombo_i": 0 }, "DeepL-Auth-Key-2": { "rank": 2, - "name": "DeepL-Auth-Key Pro" + "name": "Auth Key", + "refcombo": "usewhich", + "refcombo_i": 1 }, "usewhich": { "rank": 0, @@ -175,6 +179,14 @@ "args": { "APP_KEY": "", "APP_SECRET": "" + }, + "argstype": { + "APP_KEY": { + "name": "应用ID" + }, + "APP_SECRET": { + "name": "应用密钥" + } } }, "hwcloud": { @@ -326,6 +338,7 @@ "rank": 5.12 }, "BASE_URL": { + "name": "API接口地址", "rank": 0 }, "model": { @@ -345,6 +358,7 @@ ] }, "API_KEY": { + "name": "API Key", "rank": 0.5 }, "流式输出": { @@ -524,8 +538,7 @@ "rank": 0 }, "SECRET_KEY": { - "rank": 1, - "name": "API Key" + "rank": 1 }, "model": { "rank": 2, @@ -784,6 +797,14 @@ "args": { "Access_Key": "", "SECRET_KEY": "" + }, + "argstype": { + "Access_Key": { + "name": "AccessKey ID" + }, + "SECRET_KEY": { + "name": "AccessKey Secret" + } } }, "dev_chatgpt": { @@ -1004,6 +1025,7 @@ "name": "其他参数" }, "BASE_URL": { + "name": "API接口地址", "rank": 0 }, "usingstream": { diff --git a/src/files/lang/ar.json b/src/files/lang/ar.json index ab8f0d90..4175123f 100644 --- a/src/files/lang/ar.json +++ b/src/files/lang/ar.json @@ -808,5 +808,7 @@ "字符串地址偏移": "سلسلة عنوان الإزاحة", "无效": "باطل", "清除OCR范围": "مسح نطاق التعرف الضوئي على الحروف", - "重命名": "إعادة تسمية" + "重命名": "إعادة تسمية", + "应用ID": "معرف التطبيق", + "应用密钥": "مفتاح التطبيق" } \ No newline at end of file diff --git a/src/files/lang/cht.json b/src/files/lang/cht.json index a4dbcbba..6a247de2 100644 --- a/src/files/lang/cht.json +++ b/src/files/lang/cht.json @@ -808,5 +808,7 @@ "字符串地址偏移": "字串地址偏移", "无效": "無效", "清除OCR范围": "清除OCR範圍", - "重命名": "重命名" + "重命名": "重命名", + "应用ID": "應用ID", + "应用密钥": "應用金鑰" } \ No newline at end of file diff --git a/src/files/lang/cs.json b/src/files/lang/cs.json index 4edf8414..c8c1fd74 100644 --- a/src/files/lang/cs.json +++ b/src/files/lang/cs.json @@ -808,5 +808,7 @@ "字符串地址偏移": "Posun adresy řetězce", "无效": "neplatné", "清除OCR范围": "Vymazat rozsah OCR", - "重命名": "přejmenovat" + "重命名": "přejmenovat", + "应用ID": "ID aplikace", + "应用密钥": "Klíč aplikace" } \ No newline at end of file diff --git a/src/files/lang/de.json b/src/files/lang/de.json index 10779b77..b8450d53 100644 --- a/src/files/lang/de.json +++ b/src/files/lang/de.json @@ -808,5 +808,7 @@ "字符串地址偏移": "String Adresse Offset", "无效": "ungültig", "清除OCR范围": "OCR-Bereich löschen", - "重命名": "umbenennen" + "重命名": "umbenennen", + "应用ID": "Anwendungs-ID", + "应用密钥": "Anwendungsschlüssel" } \ No newline at end of file diff --git a/src/files/lang/en.json b/src/files/lang/en.json index 61567311..fb40b203 100644 --- a/src/files/lang/en.json +++ b/src/files/lang/en.json @@ -808,5 +808,7 @@ "字符串地址偏移": "String address offset", "无效": "invalid", "清除OCR范围": "Clear OCR range", - "重命名": "rename" + "重命名": "rename", + "应用ID": "Application ID", + "应用密钥": "Application key" } \ No newline at end of file diff --git a/src/files/lang/es.json b/src/files/lang/es.json index 03f6d1d5..ff2d4ed2 100644 --- a/src/files/lang/es.json +++ b/src/files/lang/es.json @@ -808,5 +808,7 @@ "字符串地址偏移": "Desplazamiento de la dirección de la cadena", "无效": "Inválido", "清除OCR范围": "Eliminar el rango OCR", - "重命名": "Cambiar el nombre" + "重命名": "Cambiar el nombre", + "应用ID": "ID de la aplicación", + "应用密钥": "Clave de aplicación" } \ No newline at end of file diff --git a/src/files/lang/fr.json b/src/files/lang/fr.json index 32748e50..f53ace16 100644 --- a/src/files/lang/fr.json +++ b/src/files/lang/fr.json @@ -808,5 +808,7 @@ "字符串地址偏移": "Décalage d'adresse de chaîne", "无效": "Invalide", "清除OCR范围": "Effacer la plage ocr", - "重命名": "Renommer" + "重命名": "Renommer", + "应用ID": "Id de l'application", + "应用密钥": "Appliquer la clé" } \ No newline at end of file diff --git a/src/files/lang/it.json b/src/files/lang/it.json index 36eaeb06..e1e94d61 100644 --- a/src/files/lang/it.json +++ b/src/files/lang/it.json @@ -808,5 +808,7 @@ "字符串地址偏移": "Spostamento indirizzo stringa", "无效": "non valido", "清除OCR范围": "Cancella intervallo OCR", - "重命名": "rinomina" + "重命名": "rinomina", + "应用ID": "ID dell'applicazione", + "应用密钥": "Chiave dell'applicazione" } \ No newline at end of file diff --git a/src/files/lang/ja.json b/src/files/lang/ja.json index df765a65..f9b81275 100644 --- a/src/files/lang/ja.json +++ b/src/files/lang/ja.json @@ -808,5 +808,7 @@ "字符串地址偏移": "文字列アドレスオフセット", "无效": "無効です", "清除OCR范围": "OCR範囲のクリア", - "重命名": "名前を変更" + "重命名": "名前を変更", + "应用ID": "アプリケーションID", + "应用密钥": "キーの適用" } \ No newline at end of file diff --git a/src/files/lang/ko.json b/src/files/lang/ko.json index cadd6f1c..b6427725 100644 --- a/src/files/lang/ko.json +++ b/src/files/lang/ko.json @@ -808,5 +808,7 @@ "字符串地址偏移": "문자열 주소 오프셋", "无效": "유효하지 않음", "清除OCR范围": "OCR 범위 지우기", - "重命名": "이름 바꾸기" + "重命名": "이름 바꾸기", + "应用ID": "적용 ID", + "应用密钥": "키 적용" } \ No newline at end of file diff --git a/src/files/lang/nl.json b/src/files/lang/nl.json index 37db753c..2bd4f11e 100644 --- a/src/files/lang/nl.json +++ b/src/files/lang/nl.json @@ -808,5 +808,7 @@ "字符串地址偏移": "Tekenadres offset", "无效": "ongeldig", "清除OCR范围": "OCR-bereik wissen", - "重命名": "hernoemen" + "重命名": "hernoemen", + "应用ID": "Applicatie-ID", + "应用密钥": "Toepassingssleutel" } \ No newline at end of file diff --git a/src/files/lang/pl.json b/src/files/lang/pl.json index 9a77201b..a63a5605 100644 --- a/src/files/lang/pl.json +++ b/src/files/lang/pl.json @@ -808,5 +808,7 @@ "字符串地址偏移": "Przesunięcie adresu ciągu", "无效": "nieprawidłowe", "清除OCR范围": "Wyczyść zakres OCR", - "重命名": "zmień nazwę" + "重命名": "zmień nazwę", + "应用ID": "Identyfikator aplikacji", + "应用密钥": "Klucz aplikacji" } \ No newline at end of file diff --git a/src/files/lang/pt.json b/src/files/lang/pt.json index 63480b73..2c1db8f0 100644 --- a/src/files/lang/pt.json +++ b/src/files/lang/pt.json @@ -808,5 +808,7 @@ "字符串地址偏移": "Deslocamento do endereço do string", "无效": "inválido", "清除OCR范围": "Limpar o intervalo de OCR", - "重命名": "renomear" + "重命名": "renomear", + "应用ID": "ID da Aplicação", + "应用密钥": "Chave da aplicação" } \ No newline at end of file diff --git a/src/files/lang/ru.json b/src/files/lang/ru.json index 75a60738..ef5aefe3 100644 --- a/src/files/lang/ru.json +++ b/src/files/lang/ru.json @@ -808,5 +808,7 @@ "字符串地址偏移": "Смещение адреса строки", "无效": "Неверный", "清除OCR范围": "Очистить диапазон OCR", - "重命名": "Переименовать" + "重命名": "Переименовать", + "应用ID": "Использовать ID", + "应用密钥": "Применить ключ" } \ No newline at end of file diff --git a/src/files/lang/sv.json b/src/files/lang/sv.json index 613f0c5e..86be488b 100644 --- a/src/files/lang/sv.json +++ b/src/files/lang/sv.json @@ -808,5 +808,7 @@ "字符串地址偏移": "Strängadressförskjutning", "无效": "ogiltig", "清除OCR范围": "Rensa OCR-område", - "重命名": "Byt namn" + "重命名": "Byt namn", + "应用ID": "Program- ID", + "应用密钥": "Programnyckel" } \ No newline at end of file diff --git a/src/files/lang/th.json b/src/files/lang/th.json index 180fea15..a273da50 100644 --- a/src/files/lang/th.json +++ b/src/files/lang/th.json @@ -808,5 +808,7 @@ "字符串地址偏移": "การชดเชยที่อยู่สตริง", "无效": "ไม่ถูกต้อง", "清除OCR范围": "ล้างช่วง OCR", - "重命名": "เปลี่ยนชื่อ" + "重命名": "เปลี่ยนชื่อ", + "应用ID": "สมัคร ID", + "应用密钥": "ใช้คีย์" } \ No newline at end of file diff --git a/src/files/lang/tr.json b/src/files/lang/tr.json index a6db6227..7c57ad4c 100644 --- a/src/files/lang/tr.json +++ b/src/files/lang/tr.json @@ -808,5 +808,7 @@ "字符串地址偏移": "Kelime adresi", "无效": "Keçersiz", "清除OCR范围": "OCR aralığını temizle", - "重命名": "Yeniden Adlandır" + "重命名": "Yeniden Adlandır", + "应用ID": "Uygulama Kimliği", + "应用密钥": "Uygulama anahtarı" } \ No newline at end of file diff --git a/src/files/lang/uk.json b/src/files/lang/uk.json index bea2b529..b7e0d926 100644 --- a/src/files/lang/uk.json +++ b/src/files/lang/uk.json @@ -808,5 +808,7 @@ "字符串地址偏移": "Вирівнювання адреси рядків", "无效": "некоректний", "清除OCR范围": "Очистити діапазон OCR", - "重命名": "перейменувати" + "重命名": "перейменувати", + "应用ID": "ІД програми", + "应用密钥": "Ключ програми" } \ No newline at end of file diff --git a/src/files/lang/vi.json b/src/files/lang/vi.json index c9e114f9..97df44c9 100644 --- a/src/files/lang/vi.json +++ b/src/files/lang/vi.json @@ -808,5 +808,7 @@ "字符串地址偏移": "Thay đổi địa chỉ chuỗi", "无效": "Không hợp lệ", "清除OCR范围": "Xóa dải OCR", - "重命名": "Thay tên" + "重命名": "Thay tên", + "应用ID": "Ứng dụng ID", + "应用密钥": "Khóa ứng dụng" } \ No newline at end of file diff --git a/src/files/lang/zh.json b/src/files/lang/zh.json index cf353c3b..5d43cc29 100644 --- a/src/files/lang/zh.json +++ b/src/files/lang/zh.json @@ -808,5 +808,7 @@ "字符串地址偏移": "", "无效": "", "清除OCR范围": "", - "重命名": "" + "重命名": "", + "应用ID": "", + "应用密钥": "" } \ No newline at end of file diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index cb6d0e1a..918ce14d 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -29,7 +29,7 @@ include(generate_product_version) set(VERSION_MAJOR 5) set(VERSION_MINOR 53) -set(VERSION_PATCH 3) +set(VERSION_PATCH 4) add_library(pch pch.cpp) target_precompile_headers(pch PUBLIC pch.h)