1
0
Fork 0
forked from len0rd/rockbox

First simple steps using possibly translated strings for the main menu.

The lang.h file in CVS is meant to contain the default english strings.
Generate your favourite local one using the proper language file.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2306 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-09-17 06:44:10 +00:00
parent 99e3b2d186
commit 0bc588cddc
2 changed files with 15 additions and 3 deletions

10
apps/lang.h Normal file
View file

@ -0,0 +1,10 @@
/* This file was automaticly generated using genlan */
/*
* The str() macro/functions is how to access strings that might be
* translated. Use it like str(MACRO) and except a string to be
* returned!
*/
#define str(x) x
#define LANG_SOUND_SETTINGS "Sound Settings"
#define LANG_GENERAL_SETTINGS "General Settings"
#define LANG_GAMES "Games"

View file

@ -38,6 +38,8 @@
#include "powermgmt.h"
#include "sound_menu.h"
#include "lang.h"
#ifdef HAVE_LCD_BITMAP
#include "bmp.h"
#include "icons.h"
@ -206,11 +208,11 @@ Menu main_menu(void)
/* main menu */
struct menu_items items[] = {
{ "Sound Settings", sound_menu },
{ "General Settings", settings_menu },
{ str(LANG_SOUND_SETTINGS), sound_menu },
{ str(LANG_GENERAL_SETTINGS), settings_menu },
#ifdef HAVE_LCD_BITMAP
#ifdef USE_GAMES
{ "Games", games_menu },
{ str(LANG_GAMES), games_menu },
#endif
#ifdef USE_DEMOS
{ "Demos", demo_menu },