ubuntu-touch-coreapps team mailing list archive
-
ubuntu-touch-coreapps team
-
Mailing list archive
-
Message #00222
Re: [Calendar] [Clock] i18n.language aware date and time formatting
Please not that many people like to set language and number/date/time
formats differently.
I myself prefer to have the English language version, but just hate all the
English numbering: 24/7 time format dd.mm.yyyy (or perhaps yyyy-dd-mm) date
format, SI units like °C, meters, grams, kilometers per hour (or perhaps
meters per second), ...
On Mon, Mar 25, 2013 at 9:06 PM, Robert Bruce Park <
robert.park@xxxxxxxxxxxxx> wrote:
> On Mon, Mar 25, 2013 at 08:21:58PM +0100, Frank Mertens wrote:
> > And this allows to write the following to format the current time:
> >
> > new Date().toLocaleTimeString(Qt.locale(i18n.language),
> Locale.ShortFormat)
>
> Yikes, that's quite the mouthful for localized date formats! Are we
> expecting all app developers to remember this every time?
>
> Is there any way the SDK could include a wrapper around this for easy
> re-usage in all our apps?
>
> --
> Mailing list: https://launchpad.net/~ubuntu-touch-coreapps
> Post to : ubuntu-touch-coreapps@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-touch-coreapps
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References