* Added English as a static entry into the language menu. (We don't have an en.po.)
[supertux.git] / src / options_menu.cpp
index a87676e..c4c7ac9 100644 (file)
@@ -42,6 +42,7 @@ public:
     add_label(_("Language"));
     add_hl();
     add_entry(0, std::string("(")+_("auto-detect language")+")");
+    add_entry(1, "English");
 
     int mnid = 10;    
     std::set<std::string> languages = dictionary_manager.get_languages();
@@ -66,6 +67,12 @@ public:
       config->save();
       Menu::set_current(0);
     }
+    else if (item->id == 1) {
+      config->locale = "en";
+      dictionary_manager.set_language(config->locale);
+      config->save();
+      Menu::set_current(0);
+    }
     int mnid = 10;    
     std::set<std::string> languages = dictionary_manager.get_languages();
     for (std::set<std::string>::iterator i = languages.begin(); i != languages.end(); i++) {