[Super-tux-commit] supertux/src gameloop.cpp,1.146,1.147 setup.cpp,1.95,1.96 worldmap.cpp,1.83,1.84
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-06-03 22:09:40
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29660/src Modified Files: gameloop.cpp setup.cpp worldmap.cpp Log Message: More strings set as translatable. Didn't made level editor translatable. Would be just waste of time for translators, since it will have to be submitted for a few clean-ups. Index: worldmap.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/worldmap.cpp,v retrieving revision 1.83 retrieving revision 1.84 diff -u -d -r1.83 -r1.84 --- worldmap.cpp 3 Jun 2004 17:49:54 -0000 1.83 +++ worldmap.cpp 3 Jun 2004 22:09:31 -0000 1.84 @@ -856,9 +856,6 @@ context.draw_text(gold_text, str, Vector(screen->w/2 + (16*5)/2, 0), LAYER_FOREGROUND1); - context.draw_text(white_text, _("LIVES"), - Vector(screen->w - white_text->get_text_width(_("LIVES"))*2, 0), - LAYER_FOREGROUND1); if (player_status.lives >= 5) { sprintf(str, "%dx", player_status.lives); @@ -875,6 +872,9 @@ Vector(screen->w - tux_life->w*4 + (tux_life->w*i), 0), LAYER_FOREGROUND1); } + context.draw_text(white_text, _("LIVES"), + Vector(screen->w - white_text->get_text_width(_("LIVES")) - white_text->get_text_width(" 99"), 0), + LAYER_FOREGROUND1); if (!tux->is_moving()) { @@ -888,7 +888,7 @@ context.draw_text(white_text, i->title, Vector(screen->w/2 - white_text->get_text_width(i->title)/2, - screen->h - white_text->get_height() - 50), + screen->h - white_text->get_height() - 30), LAYER_FOREGROUND1); break; } Index: gameloop.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameloop.cpp,v retrieving revision 1.146 retrieving revision 1.147 diff -u -d -r1.146 -r1.147 --- gameloop.cpp 3 Jun 2004 17:49:54 -0000 1.146 +++ gameloop.cpp 3 Jun 2004 22:09:31 -0000 1.147 @@ -698,7 +698,7 @@ { char str[60]; - snprintf(str, 60, "%d", player_status.score); + snprintf(str, 60, " %d", player_status.score); context.draw_text(white_text, _("SCORE"), Vector(0, 0), LAYER_FOREGROUND1); context.draw_text(gold_text, str, Vector(96, 0), LAYER_FOREGROUND1); Index: setup.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/setup.cpp,v retrieving revision 1.95 retrieving revision 1.96 diff -u -d -r1.95 -r1.96 --- setup.cpp 3 Jun 2004 17:41:22 -0000 1.95 +++ setup.cpp 3 Jun 2004 22:09:31 -0000 1.96 @@ -395,7 +395,7 @@ options_menu->additem(MN_LABEL,_("Options"),0,0); options_menu->additem(MN_HL,"",0,0); #ifndef NOOPENGL - options_menu->additem(MN_TOGGLE,"OpenGL",use_gl,0, MNID_OPENGL); + options_menu->additem(MN_TOGGLE,_("OpenGL "),use_gl,0, MNID_OPENGL); #else options_menu->additem(MN_DEACTIVE,_("OpenGL (not supported)"),use_gl, 0, MNID_OPENGL); #endif @@ -411,15 +411,15 @@ options_menu->additem(MN_DEACTIVE,_("Music "), false,0, MNID_MUSIC); } options_menu->additem(MN_TOGGLE,_("Show FPS "),show_fps,0, MNID_SHOWFPS); - options_menu->additem(MN_GOTO,_("Keyboard Setup"),0,options_keys_menu); + options_menu->additem(MN_GOTO,_("Setup Keys"),0,options_keys_menu); if(use_joystick) - options_menu->additem(MN_GOTO,_("Joystick Setup"),0,options_joystick_menu); + options_menu->additem(MN_GOTO,_("Setup Joystick"),0,options_joystick_menu); options_menu->additem(MN_HL,"",0,0); options_menu->additem(MN_BACK,_("Back"),0,0); - options_keys_menu->additem(MN_LABEL,_("Key Setup"),0,0); + options_keys_menu->additem(MN_LABEL,_("Keyboard Setup"),0,0); options_keys_menu->additem(MN_HL,"",0,0); options_keys_menu->additem(MN_CONTROLFIELD_KB,_("Left move"), 0,0, 0,&keymap.left); options_keys_menu->additem(MN_CONTROLFIELD_KB,_("Right move"), 0,0, 0,&keymap.right); @@ -1033,14 +1033,14 @@ } else if (strcmp(argv[i], "--help") == 0) { /* Show help: */ - puts("Super Tux " VERSION "\n" - " Please see the file \"README.txt\" for more details.\n"); - printf("Usage: %s [OPTIONS] FILENAME\n\n", argv[0]); - puts("Display Options:\n" + puts(_(" SuperTux " VERSION "\n" + " Please see the file \"README.txt\" for more details.\n")); + printf(_("Usage: %s [OPTIONS] FILENAME\n\n"), argv[0]); + puts(_("Display Options:\n" " --fullscreen Run in fullscreen mode.\n" - " --opengl If opengl support was compiled in, this will enable\n" - " the EXPERIMENTAL OpenGL mode.\n" - " --sdl Use non-opengl renderer\n" + " --opengl If OpenGL support was compiled in, this will tell\n" + " SuperTux to make use of it.\n" + " --sdl Use the SDL software graphical renderer\n" "\n" "Sound Options:\n" " --disable-sound If sound support was compiled in, this will\n" @@ -1058,7 +1058,7 @@ " options, license and game controls.\n" " --usage Display a brief message summarizing command-line options.\n" " --version Display the version of SuperTux you're running.\n\n" - ); + )); exit(0); } else if (argv[i][0] != '-') @@ -1092,7 +1092,7 @@ /* Display the usage message: */ - fprintf(fi, "Usage: %s [--fullscreen] [--opengl] [--disable-sound] [--disable-music] [--debug-mode] | [--usage | --help | --version] [--leveleditor] FILENAME\n", + fprintf(fi, _("Usage: %s [--fullscreen] [--opengl] [--disable-sound] [--disable-music] [--debug-mode] | [--usage | --help | --version] [--leveleditor] FILENAME\n"), prog); |