The location in your forum profile is Germany, so I guess you have German as your locale. It works fine in Windows if I select German as the game language. The issue here isn't Linux vs. Windows, it's majority languages vs. minority languages.
It doesn't take a lot of code to localise month names. E.g. in PHP it looks something like this:
- Code: Select all
function formatdatetime($date,$short=false)
{
$result ="";
if(!$short)
{
$format=getproperty("Date Time Format");
$result= @date($format,strtotime($date));
$result= str_replace("January",getlangarray("date_month",1),$result);
$result= str_replace("February",getlangarray("date_month",2),$result);
$result= str_replace("March",getlangarray("date_month",3),$result);
$result= str_replace("April",getlangarray("date_month",4),$result);
$result= str_replace("May",getlangarray("date_month",5),$result);
$result= str_replace("June",getlangarray("date_month",6),$result);
$result= str_replace("July",getlangarray("date_month",7),$result);
$result= str_replace("August",getlangarray("date_month",8),$result);
$result= str_replace("September",getlangarray("date_month",9),$result);
$result= str_replace("October",getlangarray("date_month",10),$result);
$result= str_replace("November",getlangarray("date_month",11),$result);
$result= str_replace("December",getlangarray("date_month",12),$result);
}
else
{
$format=SHORTDATETIMEFORMAT;
$result= @date($format,strtotime($date));
}
return str_replace(" "," ",$result);;
}
Plus you could use the same method for short month names, days of the week etc. This works fine for the Roman calendar at least.
I haven't managed to compile Wesnoth so far, so I can't implement this myself. I also don't speak C++ yet.