[Home]Wesnoth/DateImage

Amatubu_Wiki | Wesnoth | RecentChanges | Preferences

日付表示の変更案?

Mac OS X でのテスト結果

パッチなしあり
言語システム日本語システム日本語
Mac OS X[英-英] (1 回め)
[英-英] (2 回め)
[日-英] (1 回め)
[日-日] (2 回め)
[英-英][日-日]

パッチの内容

*** wesnoth-1.1.8.orig/src/dialogs.cpp	2006-07-26 15:10:23.000000000 +0900
--- wesnoth-1.1.8/src/dialogs.cpp	2006-08-15 21:42:22.000000000 +0900
***************
*** 497,502 ****
--- 497,504 ----
  	heading << HEADING_PREFIX << _("Name") << COLUMN_SEPARATOR << _("Date");
  	items.push_back(heading.str());
  
+ 	char* old_locale= setlocale(LC_TIME, get_locale().localename.c_str());
+ 
  	for(i = games.begin(); i != games.end(); ++i) {
  		std::string name = i->name;
  		name.resize(minimum<size_t>(name.size(),40));
***************
*** 507,512 ****
--- 509,518 ----
  		items.push_back(str.str());
  	}
  
+ 	if(old_locale) {
+ 		setlocale(LC_TIME, old_locale);
+ 	}
+ 
  	gui::menu::basic_sorter sorter;
  	sorter.set_alpha_sort(0).set_id_sort(1);

Amatubu_Wiki | Wesnoth | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited March 24, 2007 23:58 by Amatubu (diff)
Search:

Copyright (c) 1996-2006 naoki iimura e-mail