forked from len0rd/rockbox
Try to translate items when using the STRINGCHOICE_SETTING() macro (fixes FS#7603)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14353 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
cb53e3cef4
commit
022173195f
1 changed files with 10 additions and 2 deletions
|
|
@ -99,8 +99,16 @@ char *option_get_valuestring(struct settings_list *setting,
|
|||
if (setting->flags & F_CHOICETALKS)
|
||||
{
|
||||
int setting_id;
|
||||
find_setting(setting->setting, &setting_id);
|
||||
cfg_int_to_string(setting_id, (int)temp_var, buffer, buf_len);
|
||||
struct choice_setting *info = setting->choice_setting;
|
||||
if (info->talks[(int)temp_var] < LANG_LAST_INDEX_IN_ARRAY)
|
||||
{
|
||||
snprintf(buffer, buf_len, "%s", str(info->talks[(int)temp_var]));
|
||||
}
|
||||
else
|
||||
{
|
||||
find_setting(setting->setting, &setting_id);
|
||||
cfg_int_to_string(setting_id, (int)temp_var, buffer, buf_len);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue