LC_TIME environment variable is ignored for date format
-
Virgil Dupras
- State changed from new to accepted
I tried setting the LC_TIME variable to "en_DK.UTF-8" and start moneyGuru, and sure enough, the date format didn't change. A also tried to set the date format (In the "Languages" config panel in ubuntu) to "English (Denmark)" and the date format didn't change either.
Funnily enough, I also tried a date cell in OOO's Calc and it didn't follow the locale either. However, Ubuntu's filebrowser as well as the built-in photo viewer do follow the locale.
-
Virgil Dupras
- Assigned user set to Virgil Dupras
-
Virgil Dupras
- Tag changed from bug to feature, qt
After investigation, it seems that the cause of this would be a QLocale problem with the
en_DKlocale. It just doesn't recognize it.QLocale.countriesForLanguage(QLocale.English)doesn't list Denmark.Rather than trying to fight with locale, it would be better to simply add a preference for date formats.
-
Virgil Dupras
- Assigned user cleared.
-
Virgil Dupras
- Assigned user set to Virgil Dupras
-
Virgil Dupras
- State changed from accepted to fixed
Fixed in https://bitbucket.org/hsoft/moneyguru/changeset/681f444ad9c4
(bitbucket integration seems to have failed for this commit)
-
Virgil Dupras
(from [59180493ff88]) [#256 LC_TIME environment variable is ignored for date format] De-UI-ified preference_panel. https://bitbucket.org/hsoft/moneyguru/changeset/59180493ff88/
-
Virgil Dupras
(from [681f444ad9c4]) [#256 LC_TIME environment variable is ignored for date format state:fixed] Added a date format preference to Qt. https://bitbucket.org/hsoft/moneyguru/changeset/681f444ad9c4/
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.