← Back to team overview

widelands-dev team mailing list archive

[Merge] lp:~widelands-dev/widelands/bug1203337 into lp:widelands

 

cghislai has proposed merging lp:~widelands-dev/widelands/bug1203337 into lp:widelands.

Requested reviews:
  Widelands Developers (widelands-dev)
Related bugs:
  Bug #1203337 in widelands: "Map name appears untranslated in save dialog, even when translation exists"
  https://bugs.launchpad.net/widelands/+bug/1203337

For more details, see:
https://code.launchpad.net/~widelands-dev/widelands/bug1203337/+merge/176409

Translate the current game map name as well
-- 
https://code.launchpad.net/~widelands-dev/widelands/bug1203337/+merge/176409
Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/bug1203337 into lp:widelands.
=== modified file 'src/wui/game_main_menu_save_game.cc'
--- src/wui/game_main_menu_save_game.cc	2013-07-21 09:05:50 +0000
+++ src/wui/game_main_menu_save_game.cc	2013-07-23 15:31:30 +0000
@@ -127,7 +127,11 @@
 		select_by_name(cur_filename);
 	} else {
 		// Display current game infos
-		m_mapname.set_text(parent.game().get_map()->get_name());
+		{
+			//Try to translate the map name.
+			i18n::Textdomain td("maps");
+			m_mapname.set_text(_(parent.game().get_map()->get_name()));
+		}
 		uint32_t gametime = parent.game().get_gametime();
 		m_gametime.set_text(gametimestring(gametime));
 


Follow ups