menu_displaylist: display releasemonth as a string rather than int#19114
menu_displaylist: display releasemonth as a string rather than int#19114Ar4m1s wants to merge 4 commits into
Conversation
|
I just wanted to mention that trying to build master with C89_BUILD=1, returns many errors and warnings. Meaning I can't easily test whether or not my patch uses features beyond C89. |
8ae0580 to
8938163
Compare
|
It might not be sufficient to hard code English only month names. |
|
Is that not what the message hash is for? This is only a fallback afaik. I might be wrong though. |
|
I'd also rather not have month names at all unless they are translated to all languages, and currently lang files do not have month names.. so might as well just use numbers. |
8938163 to
9f014b6
Compare
But does not Crowdin fetch from master? I mean it can't have the translations without the feature being merged first right? |
It will allow you to translate existing MSG_HASH(s), but I don't see any in this PR. |
|
I think I will need an enum value for each month of the year, add it to msg_hash_us.h, and make sure to convert the integer to its enum value. |
|
Should this be something more general, and not specific to this feature? Like should the enum just be MENU_ENUM_LABEL_VALUE_MONTH_JANUARY instead of MENU_ENUM_LABEL_VALUE_RDB_ENTRY_RELEASE_MONTH_JANUARY since translating the month may be useful elsewhere not be needed to be translated multiple times? |
|
I think I added what was necessary for it to be possible to translate. I can squash the commits before merging, but for now the commits serve as useful history. |
I think it's fine to keep the naming scoped to where it will be used. If in the future, someone needs these elsewhere, they can refactor it then.
This looks better to me now, thank you. |
Guidelines
C89_BUILD=1Description
Makes it so that when you view database entry information, the releasemonth is displayed as a string and not integer. Meaning instead of "1", it says "January" and so on.
The extra modified lines are from the .editorconfig removing trailing spaces.