wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src multiplayer.cpp multiplayer_lobby.cpp


From: Guillaume Melquiond
Subject: [Wesnoth-cvs-commits] wesnoth/src multiplayer.cpp multiplayer_lobby.cpp
Date: Sun, 19 Dec 2004 16:35:27 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <address@hidden>    04/12/19 21:24:16

Modified files:
        src            : multiplayer.cpp multiplayer_lobby.cpp 

Log message:
        Fix untranslatable strings.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/multiplayer.cpp.diff?tr1=1.132&tr2=1.133&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/multiplayer_lobby.cpp.diff?tr1=1.53&tr2=1.54&r1=text&r2=text

Patches:
Index: wesnoth/src/multiplayer.cpp
diff -u wesnoth/src/multiplayer.cpp:1.132 wesnoth/src/multiplayer.cpp:1.133
--- wesnoth/src/multiplayer.cpp:1.132   Sun Dec 19 16:07:23 2004
+++ wesnoth/src/multiplayer.cpp Sun Dec 19 21:24:16 2004
@@ -1,4 +1,4 @@
-/* $Id: multiplayer.cpp,v 1.132 2004/12/19 16:07:23 isaaccp Exp $ */
+/* $Id: multiplayer.cpp,v 1.133 2004/12/19 21:24:16 silene Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -337,11 +337,10 @@
                return lobby::QUIT;
 
        if(launch_game_->pressed() || maps_menu_->double_clicked()) {
-               if(name_entry_->text() != "") {
+               if (!name_entry_->text().empty())
                        return lobby::CREATE;
-               } else {
-                       gui::show_dialog(disp_,NULL,"","You must enter a 
name.",gui::OK_ONLY);
-               }
+               else
+                       gui::show_dialog(disp_, NULL, "", _("You must enter a 
name."), gui::OK_ONLY);
        }
 
        events::raise_process_event();
Index: wesnoth/src/multiplayer_lobby.cpp
diff -u wesnoth/src/multiplayer_lobby.cpp:1.53 
wesnoth/src/multiplayer_lobby.cpp:1.54
--- wesnoth/src/multiplayer_lobby.cpp:1.53      Fri Dec 10 20:03:12 2004
+++ wesnoth/src/multiplayer_lobby.cpp   Sun Dec 19 21:24:16 2004
@@ -156,7 +156,7 @@
 
                const bool games_available = dlg == NULL && options.empty() == 
false;
                if(!games_available) {
-                       options.push_back("<no games open>");
+                       options.push_back(_("<no games open>"));
                }
 
                gui::menu games_menu(disp,options);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]