-
-
Notifications
You must be signed in to change notification settings - Fork 328
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
wxGUI/history: Fix date formatting #3732
wxGUI/history: Fix date formatting #3732
Conversation
Implemented based on this comment (#3726 (comment)). Just to be sure, I tested it again on Windows and it is allright now.. |
059619a
to
40b44ae
Compare
I was just wondering what the minus d in the old format strings meant. As from what I read, I would expect the B specifier to work on windows. |
Yes, the B specifier works on Windows and I am using it in |
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.
{0} {1}
makes it difficult to translate and it is not a good practice overall. If you are using the individual date components separately, use {month_name} {day_number}
or something like that and then keyword arguments with the format call.
Ok, now it is more readable. |
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.
Thanks! Just consider if preparing {month_name} {day_number}
ahead of time and then using it later would make the code shorter and any changes easier (in translation or in the code itself).
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.
All of this needs to be wrapped in _()
and the suffix makes it confusing and less flexible for the translator. The previous commit had all that right, just with duplication.
c799389
to
cfed601
Compare
I thought that this PR already gone through, I was set up to test the nightly again.. But it now has a different stack trace message (in windows sandbox), even if this fix isn't in there |
Thanks for reporting. That is strange that nobody has reported that earlier... It has nothing to do with the History tab. I am not near the computer now, but it looks like a problem in the main statusbar class which I implemented about one year ago... so we can calmly merge this PR, this issue should be solved separately. |
I agree, that's why I filed another issue for it. We're only waiting for Vaclav that previously requested changes, to change his review that unlocks it (or we can dismiss it if ever it gets stuck for too long, but we can still wait). |
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.
It lost some of the good part from the previous version. Hopefully, now I'm clear enough on what I think should happen. Let me know if not.
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.
I meant to request changes.
Fixes #3726 by removing -d (it's linux only).