mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
voice: LANG_PLUGIN_CANT_OPEN
Change-Id: Icbcbd7ed2dff88065726ce2520fbcc718bc3eba0
This commit is contained in:
parent
f2356303d9
commit
f6cdcc8ca9
2 changed files with 8 additions and 1 deletions
|
@ -7333,7 +7333,7 @@
|
|||
*: "Can't open %s"
|
||||
</dest>
|
||||
<voice>
|
||||
*: ""
|
||||
*: "Can't open plugin"
|
||||
</voice>
|
||||
</phrase>
|
||||
<phrase>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue