-
Notifications
You must be signed in to change notification settings - Fork 22
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
Use locale settings for "paste date and date" #379
Comments
It's intentionally left to the user (because the locale format is too limited). Please see Preferences → Text → Date and time format. |
I use this, but it's not localized. Fiddled with " date +%e.%B-%Y " but nothing. |
For example, "%Y" has no meaning, and "date" is just d+a+t+e, which you most probably don't want. See https://doc.qt.io/qt-6/qdate.html#fromString-1 and https://doc.qt.io/qt-6/qtime.html#toString for date and time formats. |
But wait a minute! If you empty that text entry, the app uses the date time format used for your current locale, with the long format. Doesn't it? |
OK, the date and time string is always in English and not localized, although its format is localized when that text entry is left empty. The reason is that Qt has changed. I think we had something similar in LXQt, which I fixed. |
It's not here, I tried that. |
With the fix, it's be EDIT: Of course, the above string is made here, not at your location. |
Done in 243cbac. Thanks for telling me about it. I'll do the same thing for FeatherPad. |
Changed it to the short format (from the long format, which is Qt's default) in e793e9d. It's more practical to have |
I used always a custom format, it works fine now. |
The problem was that the names were always in English. There was a comment in Qt5 doc that it would happen in Qt6. I'm sure that I made a PR about that in LXQt; maybe for lxqt-panel's clock. EDIT: Yes, it was this: lxqt/lxqt-panel#2039 |
O yes, one of our bugs in Qt6. |
It's always en_US.UTF
The text was updated successfully, but these errors were encountered: