voice: LANG_PLUGIN_CANT_OPEN

Change-Id: Icbcbd7ed2dff88065726ce2520fbcc718bc3eba0
This commit is contained in:
Christian Soffke 2025-06-01 00:50:19 +02:00 committed by Solomon Peachy
parent f2356303d9
commit f6cdcc8ca9
2 changed files with 8 additions and 1 deletions

View file

@ -7333,7 +7333,7 @@
*: "Can't open %s"
</dest>
<voice>
*: ""
*: "Can't open plugin"
</voice>
</phrase>
<phrase>

View file

@ -902,6 +902,13 @@ int plugin_load(const char* plugin, const void* parameter)
strcpy(current_plugin, plugin);
current_plugin_handle = lc_open(plugin, pluginbuf, PLUGIN_BUFFER_SIZE);
if (current_plugin_handle == NULL) {
if (global_settings.talk_menu)
{
talk_id(LANG_PLUGIN_CANT_OPEN, false);
talk_spell(plugin, true);
talk_force_enqueue_next();
}
/* (voiced above) */
splashf(HZ*2, str(LANG_PLUGIN_CANT_OPEN), plugin);
return -1;
}