-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #22072: Localisation: Separate objective date string from staff tenure date string #22074
base: develop
Are you sure you want to change the base?
Fix #22072: Localisation: Separate objective date string from staff tenure date string #22074
Conversation
I noticed that formatting tests are failing because I added a new enum member for |
Could you elaborate why you chose to introduce a new format token? It seems to me the only difference is an added period at the end, which could just be moved to the format string instead. |
Because according to #22072, we need to differentiate M/Y tokens in sentences and a label-value pair for languages that require this feature. So I thought we would need different tokens for each case. |
02d2b92
to
8cba357
Compare
3c8521a
to
46abaf8
Compare
Thanks, this looks like it would address #22072! What needs to still happen before this can be merged? 🙂 |
7b8fd3d
to
9d9126e
Compare
} | ||
break; | ||
case FormatToken::MonthYearSentence: | ||
if constexpr (std::is_integral<T>()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Note to self:) This check shouldn’t be necessary. Also fold in with previous condition.
Attempts to fix #22072.
I was able to build the game locally and have the issue addressed. I tested the changes by setting
STR_2736 :{MONTH}, Year {COMMA16}
(used for label-value pairs), andSTR_6640 :{MONTH}, Year {COMMA16}
(used in sentences)to different values. I then replaced
{MONTHYEAR}
to{MONTHYEAR_SENTENCE}
inSTR_2836
andSTR_2837
, and the change can be observed in-game.As I am new to contributing to this project, please review carefully for any mistakes I might have made. Thanks!