Fix Windows crash after using "Replace all with 3D files" (#15102)

Fix Windows crash in Replace all with 3D file

Keep the replacement result message as wxString and substitute the volume
name directly.

On Windows, wxString::ToStdString() cannot encode the Unicode status icon
through the active ANSI code page and returns an empty string. Passing that
empty string to boost::format with a volume-name argument throws
boost::too_many_args and exits OrcaSlicer.
This commit is contained in:
Kiss Lorand
2026-08-07 17:13:25 +08:00
committed by GitHub
parent a684c6daf6
commit f444176df8
25 changed files with 281 additions and 281 deletions
+12 -12
View File
@@ -8028,21 +8028,21 @@ msgstr "未选择替换目录"
msgid "Replaced with 3D files from directory:\n"
msgstr "替换为目录中的 3D 文件:\n"
#, boost-format
msgid "✖ Skipped %1%: same file.\n"
msgstr "✖ 跳过 %1%:同一文件。\n"
#, c-format
msgid "✖ Skipped %s: same file.\n"
msgstr "✖ 跳过 %s:同一文件。\n"
#, boost-format
msgid "✖ Skipped %1%: file does not exist.\n"
msgstr "✖ 跳过%1%:文件不存在。\n"
#, c-format
msgid "✖ Skipped %s: file does not exist.\n"
msgstr "✖ 跳过%s:文件不存在。\n"
#, boost-format
msgid "✖ Skipped %1%: failed to replace.\n"
msgstr "✖ 跳过%1%:替换失败。\n"
#, c-format
msgid "✖ Skipped %s: failed to replace.\n"
msgstr "✖ 跳过%s:替换失败。\n"
#, boost-format
msgid "✔ Replaced %1%.\n"
msgstr "✔ 替换了 %1%。\n"
#, c-format
msgid "✔ Replaced %s.\n"
msgstr "✔ 替换了 %s。\n"
msgid "Replaced volumes"
msgstr "替换的卷"