diff --git a/languages/en/LC_MESSAGES/version b/languages/en/LC_MESSAGES/version index 455eb55..4803a37 100644 --- a/languages/en/LC_MESSAGES/version +++ b/languages/en/LC_MESSAGES/version @@ -1 +1 @@ -1745576314 \ No newline at end of file +1745644009 \ No newline at end of file diff --git a/languages/en/LC_MESSAGES/xray_install.mo b/languages/en/LC_MESSAGES/xray_install.mo index fce708a..e9ba754 100644 Binary files a/languages/en/LC_MESSAGES/xray_install.mo and b/languages/en/LC_MESSAGES/xray_install.mo differ diff --git a/languages/fa/LC_MESSAGES/version b/languages/fa/LC_MESSAGES/version index 6c9c461..db04bb1 100644 --- a/languages/fa/LC_MESSAGES/version +++ b/languages/fa/LC_MESSAGES/version @@ -1 +1 @@ -1745576328 \ No newline at end of file +1745644014 \ No newline at end of file diff --git a/languages/fa/LC_MESSAGES/xray_install.mo b/languages/fa/LC_MESSAGES/xray_install.mo index 32c0182..d718e78 100644 Binary files a/languages/fa/LC_MESSAGES/xray_install.mo and b/languages/fa/LC_MESSAGES/xray_install.mo differ diff --git a/languages/ko/LC_MESSAGES/version b/languages/ko/LC_MESSAGES/version index 3b786a8..7a61fe2 100644 --- a/languages/ko/LC_MESSAGES/version +++ b/languages/ko/LC_MESSAGES/version @@ -1 +1 @@ -1745576359 \ No newline at end of file +1745644023 \ No newline at end of file diff --git a/languages/ko/LC_MESSAGES/xray_install.mo b/languages/ko/LC_MESSAGES/xray_install.mo index ba35b35..30853ea 100644 Binary files a/languages/ko/LC_MESSAGES/xray_install.mo and b/languages/ko/LC_MESSAGES/xray_install.mo differ diff --git a/languages/ru/LC_MESSAGES/version b/languages/ru/LC_MESSAGES/version index ebe67db..b3a3f9b 100644 --- a/languages/ru/LC_MESSAGES/version +++ b/languages/ru/LC_MESSAGES/version @@ -1 +1 @@ -1745576344 \ No newline at end of file +1745644018 \ No newline at end of file diff --git a/languages/ru/LC_MESSAGES/xray_install.mo b/languages/ru/LC_MESSAGES/xray_install.mo index 88580f8..a15dfa3 100644 Binary files a/languages/ru/LC_MESSAGES/xray_install.mo and b/languages/ru/LC_MESSAGES/xray_install.mo differ diff --git a/po/cache_English.json b/po/cache_English.json index f28de76..d04825d 100644 --- a/po/cache_English.json +++ b/po/cache_English.json @@ -474,5 +474,6 @@ "是否要启用": "do you want to enable it", "规则": "rule", "跳过启用": "skip to enable", - "已启用": "enabled" + "已启用": "enabled", + "不支持的系统架构": "unsupported system architecture" } \ No newline at end of file diff --git a/po/cache_Korean.json b/po/cache_Korean.json index 9a1833f..dbcee94 100644 --- a/po/cache_Korean.json +++ b/po/cache_Korean.json @@ -474,5 +474,6 @@ "是否要启用": "사용 하시겠습니까", "规则": "규칙", "跳过启用": "사용 활성화 건너뛰기", - "已启用": "활성화 되었습니다" + "已启用": "활성화 되었습니다", + "不支持的系统架构": "지원되지 않는 시스템 아키텍처" } \ No newline at end of file diff --git a/po/cache_Persian.json b/po/cache_Persian.json index 4ff9b01..cf3af0b 100644 --- a/po/cache_Persian.json +++ b/po/cache_Persian.json @@ -474,5 +474,6 @@ "是否要启用": "آیا می‌خواهید فعال شود", "规则": "قاعده", "跳过启用": "پرش کنید به فعال سازی", - "已启用": "فعال شده است" + "已启用": "فعال شده است", + "不支持的系统架构": "معماری سیستم پشتیبانی نشده" } \ No newline at end of file diff --git a/po/cache_Russian.json b/po/cache_Russian.json index 9399f6a..6f23820 100644 --- a/po/cache_Russian.json +++ b/po/cache_Russian.json @@ -474,5 +474,6 @@ "是否要启用": "включить ли", "规则": "правило", "跳过启用": "пропустить включение", - "已启用": "включен" + "已启用": "включен", + "不支持的系统架构": "неподдерживаемая архитектура системы" } \ No newline at end of file diff --git a/po/en.po b/po/en.po index 6755623..602d524 100644 --- a/po/en.po +++ b/po/en.po @@ -8,8 +8,8 @@ msgstr "" "Project-Id-Version: xray_install 1.0\n" "Report-Msgid-Bugs-To: https://github.com/hello-yunshu/Xray_bash_onekey/" "issues\n" -"POT-Creation-Date: 2025-04-25 10:18+0000\n" -"PO-Revision-Date: 2025-04-25 10:18+0000\n" +"POT-Creation-Date: 2025-04-26 05:06+0000\n" +"PO-Revision-Date: 2025-04-26 05:06+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: en\n" @@ -540,7 +540,7 @@ msgstr "compiled ones will be downloaded soon" #: install.sh:1267 msgid "不支持的系统架构" -msgstr "compiled ones will be downloaded soon" +msgstr "unsupported system architecture" #: install.sh:1317 install.sh:1318 install.sh:1325 install.sh:1326 msgid "配置文件不完整, 退出升级" diff --git a/po/fa.po b/po/fa.po index 5dd4518..b1e44d5 100644 --- a/po/fa.po +++ b/po/fa.po @@ -8,8 +8,8 @@ msgstr "" "Project-Id-Version: xray_install 1.0\n" "Report-Msgid-Bugs-To: https://github.com/hello-yunshu/Xray_bash_onekey/" "issues\n" -"POT-Creation-Date: 2025-04-25 10:18+0000\n" -"PO-Revision-Date: 2025-04-25 10:18+0000\n" +"POT-Creation-Date: 2025-04-26 05:06+0000\n" +"PO-Revision-Date: 2025-04-26 05:06+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: fa\n" @@ -539,7 +539,7 @@ msgstr "در حال دانلود کردن کد شده" #: install.sh:1267 msgid "不支持的系统架构" -msgstr "در حال دانلود کردن کد شده" +msgstr "معماری سیستم پشتیبانی نشده" #: install.sh:1317 install.sh:1318 install.sh:1325 install.sh:1326 msgid "配置文件不完整, 退出升级" diff --git a/po/ko.po b/po/ko.po index 0ba1d69..d671527 100644 --- a/po/ko.po +++ b/po/ko.po @@ -8,8 +8,8 @@ msgstr "" "Project-Id-Version: xray_install 1.0\n" "Report-Msgid-Bugs-To: https://github.com/hello-yunshu/Xray_bash_onekey/" "issues\n" -"POT-Creation-Date: 2025-04-25 10:18+0000\n" -"PO-Revision-Date: 2025-04-25 10:18+0000\n" +"POT-Creation-Date: 2025-04-26 05:06+0000\n" +"PO-Revision-Date: 2025-04-26 05:06+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: ko\n" @@ -540,7 +540,7 @@ msgstr "즉시 다운로드할 컴파일된 것을" #: install.sh:1267 msgid "不支持的系统架构" -msgstr "즉시 다운로드할 컴파일된 것을" +msgstr "지원되지 않는 시스템 아키텍처" #: install.sh:1317 install.sh:1318 install.sh:1325 install.sh:1326 msgid "配置文件不完整, 退出升级" diff --git a/po/ru.po b/po/ru.po index 6bd6837..1c86ad1 100644 --- a/po/ru.po +++ b/po/ru.po @@ -8,8 +8,8 @@ msgstr "" "Project-Id-Version: xray_install 1.0\n" "Report-Msgid-Bugs-To: https://github.com/hello-yunshu/Xray_bash_onekey/" "issues\n" -"POT-Creation-Date: 2025-04-25 10:18+0000\n" -"PO-Revision-Date: 2025-04-25 10:18+0000\n" +"POT-Creation-Date: 2025-04-26 05:06+0000\n" +"PO-Revision-Date: 2025-04-26 05:06+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: ru\n" @@ -541,7 +541,7 @@ msgstr "скоро будет загружен скомпилированный" #: install.sh:1267 msgid "不支持的系统架构" -msgstr "скоро будет загружен скомпилированный" +msgstr "неподдерживаемая архитектура системы" #: install.sh:1317 install.sh:1318 install.sh:1325 install.sh:1326 msgid "配置文件不完整, 退出升级" diff --git a/po/xray_install.pot b/po/xray_install.pot index 8e43b79..5ccd962 100644 --- a/po/xray_install.pot +++ b/po/xray_install.pot @@ -9,7 +9,7 @@ msgstr "" "Project-Id-Version: xray_install 1.0\n" "Report-Msgid-Bugs-To: https://github.com/hello-yunshu/Xray_bash_onekey/" "issues\n" -"POT-Creation-Date: 2025-04-25 10:18+0000\n" +"POT-Creation-Date: 2025-04-26 05:06+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/po/zh_CN.po b/po/zh_CN.po index c8124c9..c1fb279 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -8,8 +8,8 @@ msgstr "" "Project-Id-Version: xray_install 1.0\n" "Report-Msgid-Bugs-To: https://github.com/hello-yunshu/Xray_bash_onekey/" "issues\n" -"POT-Creation-Date: 2025-04-25 10:18+0000\n" -"PO-Revision-Date: 2025-04-25 10:18+0000\n" +"POT-Creation-Date: 2025-04-26 05:06+0000\n" +"PO-Revision-Date: 2025-04-26 05:06+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: zh_CN\n" diff --git a/translate.py b/translate.py index a0f7d8e..e0304bf 100644 --- a/translate.py +++ b/translate.py @@ -60,7 +60,7 @@ def contains_target_language_characters(text, target_lang): def translate_text_deepseek(text, target_lang): client = OpenAI( api_key=os.getenv("AI_API_KEY"), - base_url="https://api.deepseek.com/v1", + base_url="https://api.deepseek.com", ) completion = client.chat.completions.create( model="deepseek-chat", @@ -68,7 +68,7 @@ def translate_text_deepseek(text, target_lang): {'role': 'system', 'content': 'You are a professional text translation assistant, focused on translating short Chinese texts into voice content in the specified target language. Your task is to translate only the Chinese parts of the text into the corresponding target language, leaving English portions as they are. The translation process should not consider context between sentences; ensure each individual sentence is translated accurately. Avoid adding any punctuation at the end of the translated sentences. The goal is to assist in the internationalization of scripts while ensuring translations are concise and accurate.Translation does not need to be bound by grammar, the simpler the better.'}, {'role': 'user', 'content': f'Translate the following text to {target_lang}: {text}'} ], - stream=False + stream=True ) full_content = "" for chunk in completion: