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

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

[Wesnoth-cvs-commits] wesnoth/src language.cpp


From: Guillaume Melquiond
Subject: [Wesnoth-cvs-commits] wesnoth/src language.cpp
Date: Tue, 19 Oct 2004 02:30:16 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <address@hidden>    04/10/19 06:11:21

Modified files:
        src            : language.cpp 

Log message:
        Make it so that everybody suffers a painful death when a word is 
untranstABLE (emphasize on the 'able'). Non-english players should only suffer 
when a term is untranslatED. Hopefully it will be an incentive to fix the 
code/data.

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

Patches:
Index: wesnoth/src/language.cpp
diff -u wesnoth/src/language.cpp:1.53 wesnoth/src/language.cpp:1.54
--- wesnoth/src/language.cpp:1.53       Thu Oct  7 01:47:33 2004
+++ wesnoth/src/language.cpp    Tue Oct 19 06:11:21 2004
@@ -1,4 +1,4 @@
-/* $Id: language.cpp,v 1.53 2004/10/07 01:47:33 Sirp Exp $ */
+/* $Id: language.cpp,v 1.54 2004/10/19 06:11:21 silene Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -77,6 +77,11 @@
                return i->second;
        } else {
                static std::string empty_string;
+               // Let's do it the painful way (untlb means untranslatABLE).
+               // It will cause problem if somebody stores more than one 
reference at once
+               // but I don't really care since this path is an error path and 
it should
+               // not have been taken in the first place. -- silene
+               empty_string = "UNTLB " + key;
                return empty_string;
        }
 }




reply via email to

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