diff options
author | planetmaker <planetmaker@openttd.org> | 2014-06-20 20:57:32 +0000 |
---|---|---|
committer | planetmaker <planetmaker@openttd.org> | 2014-06-20 20:57:32 +0000 |
commit | 42bc994cce5b74467bf66b45d437163bd7c558cc (patch) | |
tree | f91194fb97f37af0f58d0dede8d5dc99bf93539e /src/date_gui.cpp | |
parent | 73bfec0fc8930ca47e8f5c7ff524312681fa0736 (diff) | |
download | openttd-42bc994cce5b74467bf66b45d437163bd7c558cc.tar.xz |
(svn r26657) -Add [FS#6047]: Days in dates are not represented by ordinal numbers in all languages
Diffstat (limited to 'src/date_gui.cpp')
-rw-r--r-- | src/date_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/date_gui.cpp b/src/date_gui.cpp index 520b3e7f9..468a74db9 100644 --- a/src/date_gui.cpp +++ b/src/date_gui.cpp @@ -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; } |