Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Wrong Time Format FxOS 2.5

13 views
Skip to first unread message

Jørgen Rasmussen

unread,
Nov 8, 2015, 8:25:33 AM11/8/15
to
Hi

I have a weird problem with the Time Format in the Danish locale.
Recently the time format in the upper right corner changed from HH:MM to
HH.MM.
Changing language in the phone to Deutch or Svenska and the format is
displayed HH:MM.
The Danish date.properties file:
http://hg.mozilla.org/gaia-l10n/da/file/default/shared/date/date.properties

What's wrong?
--
Regards Jørgen Rasmussen

Francesco Lodolo

unread,
Nov 8, 2015, 9:58:46 AM11/8/15
to Jørgen Rasmussen, Mozilla l10n Mailing List
As far as I know we rely on mozIntl to determine the time formats, not on
properties files anymore. The only thing remaining there is the separator
displayed in the timepicker.

CLDR seems to suggest a dot as separator for Danish
http://demo.icu-project.org/icu-bin/locexp?d_=en&_=da

Compared to Swedish for example
http://demo.icu-project.org/icu-bin/locexp?d_=en&_=sv

CCing gandalf to check if I didn't misunderstand this change, and/or give a
better explanation.

Francesco
> _______________________________________________
> dev-l10n mailing list
> dev-...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-l10n
>

Jørgen Rasmussen

unread,
Nov 8, 2015, 10:33:53 AM11/8/15
to
Hi Francesco

Thank you for the explanation.
My Windows 7 and Linux Mint computers both display time in the format HH:MM.


Den 08-11-2015 kl. 15:58 skrev Francesco Lodolo:
> As far as I know we rely on mozIntl to determine the time formats, not on
> properties files anymore. The only thing remaining there is the separator
> displayed in the timepicker.
>
> CLDR seems to suggest a dot as separator for Danish
> http://demo.icu-project.org/icu-bin/locexp?d_=en&_=da
>
> Compared to Swedish for example
> http://demo.icu-project.org/icu-bin/locexp?d_=en&_=sv
>
> CCing gandalf to check if I didn't misunderstand this change, and/or give a
> better explanation.
>
> Francesco
>
> 2015-11-08 14:25 GMT+01:00 Jørgen Rasmussen <joer...@stofanet.dk>:
>
>> Hi
>>
>> I have a weird problem with the Time Format in the Danish locale. Recently
>> the time format in the upper right corner changed from HH:MM to HH.MM.
>> Changing language in the phone to Deutch or Svenska and the format is
>> displayed HH:MM.
>> The Danish date.properties file:
>> http://hg.mozilla.org/gaia-l10n/da/file/default/shared/date/date.properties
>>
>> What's wrong?
>> --
>> Regards Jørgen Rasmussen

--
Regards Jørgen Rasmussen

zbran...@mozilla.com

unread,
Nov 9, 2015, 12:09:06 PM11/9/15
to
Hi Jorgen!

Thanks for bringing this up!

We're currently migrating our date/time management to use JavaScript Intl API which bases on a huge project called ICU.

ICU is managing a lot of internationalization related code like construction of time strings.

ICU (to make it more complex) uses a database called CLDR that collects and stores all the data in all languages about how to construct correct time strings.

It seems to me that currently, CLDR (ver 28) is in fact using "HH.mm" for Danish for a short time string [0].

That's fortunately not set in stone, but we would prefer to fix it in CLDR for all projects to use, rather than in our implementation only.

It seems that there are already a couple bugs reported against Danish in CLDR [1] and I believe it would be worth for you to file a bug about this.

It's a great time to get this fixed in time for CLDR ver 29 release.

One thing that I'm wondering is if there's a chance that both styles are accepted and one is just preferred. I know there was a case like that in Swedish [2] and it seems that someone demanded change to "HH.mm" for Danish in Android [3] which may be why we ended up with this notation.

So, could you file a bug in CLDR database and ask for the change? And link it here, I'd love to CC myself and keep track of this :)

Thanks!
zb.



[0] http://www.unicode.org/cldr/charts/28/summary/da.html#1843
[1] http://unicode.org/cldr/trac/ticket/7657
[2] https://sourceware.org/bugzilla/show_bug.cgi?id=11630
[3] https://code.google.com/p/android/issues/detail?id=36373
0 new messages