#include "sector.h"
#include "tilemap.h"
#include "resources.h"
+#include "gettext.h"
static Surface* bkg_title;
static Surface* logo;
static std::vector<LevelSubset*> contrib_subsets;
static LevelSubset* current_contrib_subset = 0;
+static LevelEditor* leveleditor;
+
void free_contrib_menu()
{
for(std::vector<LevelSubset*>::iterator i = contrib_subsets.begin();
free_contrib_menu();
- contrib_menu->additem(MN_LABEL,"Contrib Levels",0,0);
+ contrib_menu->additem(MN_LABEL,_("Contrib Levels"),0,0);
contrib_menu->additem(MN_HL,"",0,0);
for (int i = 0; i < level_subsets.num_items; ++i)
}
contrib_menu->additem(MN_HL,"",0,0);
- contrib_menu->additem(MN_BACK,"Back",0,0);
+ contrib_menu->additem(MN_BACK,_("Back"),0,0);
string_list_free(&level_subsets);
}
}
contrib_subset_menu->additem(MN_HL,"",0,0);
- contrib_subset_menu->additem(MN_BACK, "Back", 0, 0);
+ contrib_subset_menu->additem(MN_BACK, _("Back"), 0, 0);
titlesession->get_current_sector()->activate();
titlesession->set_current();
LAYER_FOREGROUND1+1);
context.draw_text(white_small_text,
- " SuperTux " VERSION "\n"
+ _(" SuperTux " VERSION "\n"
"Copyright (c) 2003 SuperTux Devel Team\n"
"This game comes with ABSOLUTELY NO WARRANTY. This is free software, and you\n"
"are welcome to redistribute it under certain conditions; see the file COPYING\n"
- "for details.\n", Vector(0, screen->h - 70), LAYER_FOREGROUND1);
+ "for details.\n"), Vector(0, screen->h - 70), LAYER_FOREGROUND1);
/* Don't draw menu, if quit is true */
Menu* menu = Menu::current();
generate_contrib_menu();
break;
case MNID_LEVELEDITOR:
- leveleditor();
+ leveleditor = new LevelEditor();
+ leveleditor->run();
+ delete leveleditor;
Menu::set_current(main_menu);
break;
case MNID_CREDITS:
{
int slot = menu->get_active_item_id();
char str[1024];
- sprintf(str,"Are you sure you want to delete slot %d?", slot);
+ sprintf(str,_("Are you sure you want to delete slot %d?"), slot);
if(confirm_dialog(bkg_title, str))
{