-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Implement 12hr am-pm style option for time display #5235
Conversation
As bparker pointed out, this commit relies on gnu extensions to the standard, which wouldn't work in many of the ports. A more portable solution should probably replace this. |
I know we discussed these already, but leaving notes here for others for reference. It seems some manpages list it as "gnu" and some don't. One I read also states that %p is not guaranteed to even contain a string in all locales. Also not all languages use "PM" nor put their equivalent word after the time. The man page seemed to say it would replace "PM" with the locale-appropriate string, but when I tried this on a Japanese locale machine (Windows 10, tried both mingw and msvc2010), it still used PM when it should have been 午後 (and should be in front of the time)... not sure how we would accommodate that off the top of my head. This also would need to be a configurable menu setting that does not become the new default. |
It seems we need to use wcsftime instead of strftime. |
Did you guys figure out a more portable solution to this yet? |
@gouchi It does not work on Linux, I have not tested on Windows yet. And the 午前/午後 must come before the time display. Japanese is not the only language we support that does this either. |
It is working with
|
Can this get a rebase please? |
We will need to add an option for the time display so that we can select which one we want instead of having it hard coded. |
I'm not sure the recent commit "Introduce button mappings for generic usb controller" belongs in this PR. |
This has been requested in the issue tracker recently (#5216). There doesn't seem to be a way to choose which style will be used for time display using config files. Rgui and xmb have a variable set at compile time to define this.