Skip to content

fix: localize OCR service notifications | 修复 "无法获取OCR服务" 提示的本地化#711

Merged
ZGGSONG merged 1 commit into
STranslate:mainfrom
sean908:fix/localize-ocr-notifications
Jun 1, 2026
Merged

fix: localize OCR service notifications | 修复 "无法获取OCR服务" 提示的本地化#711
ZGGSONG merged 1 commit into
STranslate:mainfrom
sean908:fix/localize-ocr-notifications

Conversation

@sean908

@sean908 sean908 commented May 30, 2026

Copy link
Copy Markdown
Contributor

This PR localizes OCR, image translation, and image translation OCR service-missing notifications.
将 OCR 服务缺失时的提示文案改为国际化资源,不再在 MainWindowViewModel 中硬编码中文。

Changes

  • Replaced hardcoded Chinese notification titles/messages with _i18n.GetTranslation(...).
    将硬编码中文通知标题和正文替换为 _i18n.GetTranslation(...)
  • Added localized resource keys for en, zh-cn, zh-tw, ja, and ko.
    为英文、简体中文、繁体中文、日文、韩文补充对应资源 key
  • Kept existing navigation behavior unchanged:
    保持原有跳转逻辑不变
    • image translation service missing -> TranslatePage
    • OCR service missing -> OcrPage
    • image translation OCR service missing -> OcrPage

修复后

FIXed_2026-05-30_21-42-54

@ZGGSONG
ZGGSONG merged commit f698797 into STranslate:main Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants