Skip to content

Commit fd907c6

Browse files
committed
more friendly message
Close #27.
1 parent 0eaff01 commit fd907c6

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

src/c/error_gcmz.c

+5-2
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,11 @@ static NODISCARD error get_gcmz_message(int const type, int const code, struct N
9494
case err_gcmz_lua:
9595
return to_wstr(&str_unmanaged_const(gettext("An error occurred while executing a Lua script.")), dest);
9696
case err_gcmz_invalid_char:
97-
return to_wstr(&str_unmanaged_const(gettext("The filename contains characters that cannot be used in AviUtl.")),
98-
dest);
97+
return ssprintf(dest,
98+
NULL,
99+
L"%1$s\n%2$s",
100+
gettext("The filename contains characters that cannot be used in AviUtl."),
101+
gettext("To load this file, you need to change the ? part."));
99102
}
100103
return to_wstr(&str_unmanaged_const(gettext("Unknown error code.")), dest);
101104
}

src/i18n/ja.po.DO_NOT_EDIT

+3
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,9 @@ msgstr "字幕アシストプラグイン extext.auf とは互換性がありま
307307
msgid "This plug-in is not compatible with oledd.auf, which is an older version of GCMZDrops."
308308
msgstr "ごちゃまぜドロップスの古いバージョンである oledd.auf とは互換性がありません。"
309309

310+
msgid "To load this file, you need to change the ? part."
311+
msgstr "このファイルを読み込むには、? の場所を変更する必要があります。"
312+
310313
msgid "Unexpected API version."
311314
msgstr "未知の API バージョンです。"
312315

src/i18n/zh_CN.po.DO_NOT_EDIT

+3
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@ msgstr "此插件不兼容extext.auf。"
306306
msgid "This plug-in is not compatible with oledd.auf, which is an older version of GCMZDrops."
307307
msgstr "此插件不兼容oledd.auf(旧版GCMZDrops)。"
308308

309+
msgid "To load this file, you need to change the ? part."
310+
msgstr "要加载此文件,您需要更改 ? 部分。"
311+
309312
msgid "Unexpected API version."
310313
msgstr "未知的API版本。"
311314

0 commit comments

Comments
 (0)