Splash error message when loading language from dir browser fails
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23259 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1016ee4e80
commit
bb5078c5ea
2 changed files with 23 additions and 6 deletions
|
@ -545,13 +545,16 @@ int ft_enter(struct tree_context* c)
|
|||
|
||||
case FILE_ATTR_LNG:
|
||||
splash(0, ID2P(LANG_WAIT));
|
||||
if(!lang_core_load(buf)) {
|
||||
set_file(buf, (char *)global_settings.lang_file,
|
||||
MAX_FILENAME);
|
||||
talk_init(); /* use voice of same language */
|
||||
viewportmanager_theme_changed(THEME_LANGUAGE);
|
||||
splash(HZ, ID2P(LANG_LANGUAGE_LOADED));
|
||||
if (lang_core_load(buf))
|
||||
{
|
||||
splash(HZ, ID2P(LANG_LANGUAGE_LOAD_FAILED));
|
||||
break;
|
||||
}
|
||||
set_file(buf, (char *)global_settings.lang_file,
|
||||
MAX_FILENAME);
|
||||
talk_init(); /* use voice of same language */
|
||||
viewportmanager_theme_changed(THEME_LANGUAGE);
|
||||
splash(HZ, ID2P(LANG_LANGUAGE_LOADED));
|
||||
break;
|
||||
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
|
|
|
@ -4951,6 +4951,20 @@
|
|||
*: "New Language"
|
||||
</voice>
|
||||
</phrase>
|
||||
<phrase>
|
||||
id: LANG_LANGUAGE_LOAD_FAILED
|
||||
desc: shown when a language has failed to be loaded from the dir browser
|
||||
user: core
|
||||
<source>
|
||||
*: "Language Load Failed"
|
||||
</source>
|
||||
<dest>
|
||||
*: "Language Load Failed"
|
||||
</dest>
|
||||
<voice>
|
||||
*: "Language Load Failed"
|
||||
</voice>
|
||||
</phrase>
|
||||
<phrase>
|
||||
id: LANG_VOICE
|
||||
desc: root of voice menu
|
||||
|
|
Loading…
Reference in a new issue