forked from len0rd/rockbox
skin engine - fail gracefully when %Sx is used on non lang id string
CheckWPS doesn't catch errors involving translated strings Instead of breaking old themes when the langids no long exist return "<ERR>" Change-Id: I0d744cd48bb5a27e735fce3f6f740450d1f6a55a
This commit is contained in:
parent
e0468074fe
commit
6fb942d8ff
2 changed files with 3 additions and 2 deletions
|
|
@ -768,7 +768,7 @@ static int parse_setting_and_lang(struct skin_element *element,
|
|||
#ifndef __PCTOOL__
|
||||
i = lang_english_to_id(temp);
|
||||
if (i < 0)
|
||||
return WPS_ERROR_INVALID_PARAM;
|
||||
i = LANG_LAST_INDEX_IN_ARRAY;
|
||||
#endif
|
||||
}
|
||||
else if (element->params_count > 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue