[Top][All Lists]
[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();
- [Wesnoth-cvs-commits] wesnoth/src game.cpp, David White, 2004/10/03
- [Wesnoth-cvs-commits] wesnoth/src game.cpp, Guillaume Melquiond, 2004/10/07
- [Wesnoth-cvs-commits] wesnoth/src game.cpp, Guillaume Melquiond, 2004/10/07
- [Wesnoth-cvs-commits] wesnoth/src game.cpp, Cedric Duval, 2004/10/07
- [Wesnoth-cvs-commits] wesnoth/src game.cpp, Yann Dirson, 2004/10/21
- [Wesnoth-cvs-commits] wesnoth/src game.cpp,
Cedric Duval <=
- [Wesnoth-cvs-commits] wesnoth/src game.cpp, Cedric Duval, 2004/10/31