Skip to content

Uninternationalized UI strings in crash/startup/error paths #5697

@LifetimeVip

Description

@LifetimeVip

SumatraPDF version

  • 3.6.1

Describe the bug
部分 UI 字符串未做国际化处理(未使用 _TRA / _TRN 宏),在非英语环境下仍显示英文。

To Reproduce

  1. 将系统语言切换为非英语(如中文、日语、德语等)
  2. 触发崩溃(如强行结束进程或打开损坏文件),观察崩溃对话框文字
  3. 通过命令行传入无效参数,观察错误提示
  4. 在打印或安装过程中出错,观察错误对话框标题

Expected behavior
所有面向用户的 UI 字符串均应通过 _TRA() 或 _TRN() 宏进行国际化。

Affected locations

文件 行号 硬编码字符串
src/SumatraStartup.cpp 881 "Not a valid installer" / "Error"
src/SumatraPDF.cpp 6677-6681 "SumatraPDF crashed" / crash message
src/SumatraPDF.cpp 5135 "Downloading symbols"
src/Flags.cpp 82, 117 "SumatraPDF - EnumeratePrinters"
src/Installer.cpp 1030 "Error" (caption)
src/Print.cpp 1340 "Error" (caption)
src/utils/WinUtil.cpp 2528 "Not Yet Implemented!" / "NYI"
src/utils/WinUtil.cpp 2522 L"Warning" (default title in MessageBoxWarningSimple)

Screenshots
N/A

Additional context
Found while reviewing the i18n implementation. ~95% of strings are properly internationalized with 73 languages supported, but these ~10 strings in error handling/crash/startup paths are not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions