homework

Dirk Hohndel dirk at hohndel.org
Fri Jun 27 12:10:19 PDT 2014


On Fri, Jun 27, 2014 at 10:59:29AM -0700, Dirk Hohndel wrote:
> The thing that needs to get implemented as real localization of the date.
> Sadly, Qt doesn't really help us there. I'm still trying to come up with
> something that is easier than creating a full blown ssrfLocalizedDate()
> setup :-)

I should have spent more time reading the code before posting this :-)

So what we did so far was to rely on the translators to notice that they
had to adjust a couple of random format strings to get the correct date
and time localization. Clearly that didn't work.

Instead I hacked together something based on what QLocale tells me about
the date and time format preferences. I tested this for a few locales and
the results looked mostly OK, but I'd really like others to test in their
locale (and for Thiago / Tomaz to make sure I'm not completely on drugs).

Thanks

/D


More information about the subsurface mailing list