After spending hours fiddling with /usr/share/i18n/locales files i found out (or i think to have find out) that the issue with two digit year with some locales in linux is caused by qt5core (qlocale) simply ignoring that settings but only reading locale language and country to apply cldr settings.
With language and country (honouring LC_TIME too) qt5core applyes hardcoded format settings, sourcing them when building from qlocale_data_p_h in src/corelib/tools in qtbase source code.
You can also read src/corelib/tools/qlocale.qdoc for some further info.
Searching for "Formats - Standard - Date Formats" in these pages
http://st.unicode.org/cldr-apps/v#/it/Gregorian/
http://st.unicode.org/cldr-apps/v#/en_GB/Gregorian/
you can see that the same short date value 9/14/99 becomes 14/09/99 for italian and 14/09/1999 for english, which i think causes the two digit year in italian locale and not in english locale.
So i think the only ways to have four digits years for some locales are:
-to make QDateEdit read dates in a different format than short (i don't know if it's possible) - or
-to change method to get dates (i don't know if it's possible) - or
It's very likely (read sure) that you know that option better than me, so i probably did it the longest way.
Please, let me know if you and other developers opt for calendar solution.
Hi Ale, today I am sick and I have a high fever, as soon as possible (i hope tomorrow) i'll made the mods in you pull request and start testing it in Ubuntu.
Thanks, today i'm well and i'm in front of PC to avoid bedsores :-)
I made some fast test and after i found out how to fast modify year :-D it seems to works well, there are only two downside that i can see:
1)you can't know of calendar esistence if you don't click on the right side arrow, so maybe if you choose to go this way this should be documented somewhere (maybe i'm still missing something?);
2)for some reason in my Mate desktop Linuxmint the year field get partially hidden (see enclosed screenshots), this does not happen with LXQT so i think that it's desktop related. I don't know if this can be avoided but it's not a real issue, only cosmetic.
Greetings
Fabio
Do i need a github account to edit the wiki?
Is there an how-to about it?
For the sake of curiosity i built ubuntu QT5 packages with a modified qlocale_data_p_h which provides four digit short year format to it_* locales.
I Installed these packages and found out that your GoldenCheetah binary file does not change dates format while the binary file i built myself does.
The output of
ldd /opt/GoldenCheetah/GoldenCheetah
tells me that you already provide a custom version of some libs, at least for linux os: