CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Cedric Duval <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
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();