1
0
Fork 0
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:
Zakk Roberts 2006-04-04 23:19:11 +00:00
parent 8ae6802697
commit 4ca80ee219
2 changed files with 16 additions and 2 deletions

View file

@ -8394,3 +8394,17 @@
*: "" *: ""
</voice> </voice>
</phrase> </phrase>
<phrase>
id: LANG_PIXELS
desc: In the settings menu
user:
<source>
*: "pixels"
</source>
<dest>
*: "pixels"
</dest>
<voice>
*: "pixels"
</voice>
</phrase>

View file

@ -860,14 +860,14 @@ static bool screen_scroll(void)
static bool screen_scroll_step(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, &global_settings.screen_scroll_step,
&gui_list_screen_scroll_step, 1, 1, LCD_WIDTH, NULL ); &gui_list_screen_scroll_step, 1, 1, LCD_WIDTH, NULL );
} }
static bool scroll_step(void) 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, &global_settings.scroll_step,
&lcd_scroll_step, 1, 1, LCD_WIDTH, NULL ); &lcd_scroll_step, 1, 1, LCD_WIDTH, NULL );
} }