(svn r26657) -Add [FS#6047]: Days in dates are not represented by ordinal numbers in all languages

This commit is contained in:
planetmaker
2014-06-20 20:57:32 +00:00
parent 796fcaa9e1
commit 9a64e4b43e
60 changed files with 1837 additions and 21 deletions

View File

@@ -75,7 +75,7 @@ struct SetDateWindow : Window {
case WID_SD_DAY:
for (uint i = 0; i < 31; i++) {
*list->Append() = new DropDownListStringItem(STR_ORDINAL_NUMBER_1ST + i, i + 1, false);
*list->Append() = new DropDownListStringItem(STR_DAY_NUMBER_1ST + i, i + 1, false);
}
selected = this->date.day;
break;
@@ -108,7 +108,7 @@ struct SetDateWindow : Window {
case WID_SD_DAY:
for (uint i = 0; i < 31; i++) {
d = maxdim(d, GetStringBoundingBox(STR_ORDINAL_NUMBER_1ST + i));
d = maxdim(d, GetStringBoundingBox(STR_DAY_NUMBER_1ST + i));
}
break;
@@ -132,7 +132,7 @@ struct SetDateWindow : Window {
virtual void SetStringParameters(int widget) const
{
switch (widget) {
case WID_SD_DAY: SetDParam(0, this->date.day - 1 + STR_ORDINAL_NUMBER_1ST); break;
case WID_SD_DAY: SetDParam(0, this->date.day - 1 + STR_DAY_NUMBER_1ST); break;
case WID_SD_MONTH: SetDParam(0, this->date.month + STR_MONTH_JAN); break;
case WID_SD_YEAR: SetDParam(0, this->date.year); break;
}