mail[Wesnoth-commits] r44283 - in /trunk/src: game.cpp gui/dialogs/language_selection.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by guillaume . melquiond on July 18, 2010 - 11:50:
Author: silene
Date: Sun Jul 18 11:50:36 2010
New Revision: 44283

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44283&view=rev
Log:
Flushed image cache when changing language. (Fix for bug #15934.)

Modified:
    trunk/src/game.cpp
    trunk/src/gui/dialogs/language_selection.cpp

Modified: trunk/src/game.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game.cpp?rev=44283&r1=44282&r2=44283&view=diff
==============================================================================
--- trunk/src/game.cpp (original)
+++ trunk/src/game.cpp Sun Jul 18 11:50:36 2010
@@ -2237,6 +2237,9 @@
                } else if(res == gui::CHANGE_LANGUAGE) {
                        if(game.change_language() == true) {
                                tips_of_day.clear();
+                               t_string::reset_translations();
+                               image::flush_cache();
+                               gui::set_background_dirty();
                        }
                        continue;
                } else if(res == gui::EDIT_PREFERENCES) {

Modified: trunk/src/gui/dialogs/language_selection.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/dialogs/language_selection.cpp?rev=44283&r1=44282&r2=44283&view=diff
==============================================================================
--- trunk/src/gui/dialogs/language_selection.cpp (original)
+++ trunk/src/gui/dialogs/language_selection.cpp Sun Jul 18 11:50:36 2010
@@ -77,8 +77,6 @@
                const std::vector<language_def>& languages = get_languages();
                ::set_language(languages[res]);
                preferences::set_language(languages[res].localename);
-
-               t_string::reset_translations();
        }
 }
 




Related Messages


Powered by MHonArc, Updated Sun Jul 18 12:20:14 2010