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

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

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


From: Cedric Duval
Subject: [Wesnoth-cvs-commits] wesnoth/src game.cpp
Date: Sat, 30 Oct 2004 23:26:03 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Cedric Duval <address@hidden>   04/10/31 03:20:14

Modified files:
        src            : game.cpp 

Log message:
        Per-language cache files. Fixes #10338.
        
        Another approach would be to invalidate _every_ cache file for the 
current
        Wesnoth version, whenever the language is changed.
        
        Opinions?

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

Patches:
Index: wesnoth/src/game.cpp
diff -u wesnoth/src/game.cpp:1.151 wesnoth/src/game.cpp:1.152
--- wesnoth/src/game.cpp:1.151  Sun Oct 31 00:31:59 2004
+++ wesnoth/src/game.cpp        Sun Oct 31 03:20:14 2004
@@ -1,4 +1,4 @@
-/* $Id: game.cpp,v 1.151 2004/10/31 00:31:59 cedricd Exp $ */
+/* $Id: game.cpp,v 1.152 2004/10/31 03:20:14 cedricd Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -245,6 +245,8 @@
 
                        str << "-" << i->first;
                }
+               std::string localename = get_locale().localename;
+               str << "-lang_" << (localename.empty() ? "default" : 
localename);
 
                if(is_valid) {
                        const std::string& cache = get_cache_dir();




reply via email to

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