forked from len0rd/rockbox
Convert 'pixels' in the scroll settings menu to a LANG string for translations (bug FS#5027).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9507 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8ae6802697
commit
4ca80ee219
2 changed files with 16 additions and 2 deletions
|
@ -8394,3 +8394,17 @@
|
|||
*: ""
|
||||
</voice>
|
||||
</phrase>
|
||||
<phrase>
|
||||
id: LANG_PIXELS
|
||||
desc: In the settings menu
|
||||
user:
|
||||
<source>
|
||||
*: "pixels"
|
||||
</source>
|
||||
<dest>
|
||||
*: "pixels"
|
||||
</dest>
|
||||
<voice>
|
||||
*: "pixels"
|
||||
</voice>
|
||||
</phrase>
|
||||
|
|
|
@ -860,14 +860,14 @@ static bool screen_scroll(void)
|
|||
|
||||
static bool screen_scroll_step(void)
|
||||
{
|
||||
return set_int(str(LANG_SCREEN_SCROLL_STEP), "pixels", UNIT_PIXEL,
|
||||
return set_int(str(LANG_SCREEN_SCROLL_STEP), str(LANG_PIXELS), UNIT_PIXEL,
|
||||
&global_settings.screen_scroll_step,
|
||||
&gui_list_screen_scroll_step, 1, 1, LCD_WIDTH, NULL );
|
||||
}
|
||||
|
||||
static bool scroll_step(void)
|
||||
{
|
||||
return set_int(str(LANG_SCROLL_STEP_EXAMPLE), "pixels", UNIT_PIXEL,
|
||||
return set_int(str(LANG_SCROLL_STEP_EXAMPLE), str(LANG_PIXELS), UNIT_PIXEL,
|
||||
&global_settings.scroll_step,
|
||||
&lcd_scroll_step, 1, 1, LCD_WIDTH, NULL );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue