[PATCH] Fix date_fmt in en_AU locale

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Fix date_fmt in en_AU locale

Aurelien Jarno
The date_fmt definition in the en_AU locale displays the month before
the day, which doesn't correspond to the common standards there [1].
The patch below fixes that, which also make the definition consistent
with d_t_fmt.

[1] https://en.wikipedia.org/wiki/Date_and_time_notation_in_Australia


2012-04-29  Aurelien Jarno  <[hidden email]>

        * locales/en_AU: Change date_fmt to match Australian standards.

diff --git a/localedata/locales/en_AU b/localedata/locales/en_AU
index 39aa7e2..db73571 100644
--- a/localedata/locales/en_AU
+++ b/localedata/locales/en_AU
@@ -114,7 +114,7 @@ t_fmt       "<U0025><U0054>"
 am_pm       "<U0041><U004D>";"<U0050><U004D>"
 t_fmt_ampm  "<U0025><U0049><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
 <U0025><U0070>"
-date_fmt "<U0025><U0061><U0020><U0025><U0062><U0020><U0025><U0065>/
+date_fmt "<U0025><U0041><U0020><U0025><U002D><U0065><U0020><U0025><U0042><U0020>/
 <U0020><U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
 <U0025><U005A><U0020><U0025><U0059>"
 END LC_TIME

--
Aurelien Jarno                          GPG: 1024D/F1BCDB73
[hidden email]                 http://www.aurel32.net
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Fix date_fmt in en_AU locale

Petr Baudis
  Hi!

On Sun, Apr 29, 2012 at 04:48:15PM +0200, Aurelien Jarno wrote:
> The date_fmt definition in the en_AU locale displays the month before
> the day, which doesn't correspond to the common standards there [1].
> The patch below fixes that, which also make the definition consistent
> with d_t_fmt.
>
> [1] https://en.wikipedia.org/wiki/Date_and_time_notation_in_Australia

  This patch does two different things (I'd have preferred if you
clarified that in the patch description...):

  (i) Switch order from %a %b %e to %a %e %b. Wikipedia says while the
latter is the "standard", the former is common too. I personally don't
think switching between two commonly used format just because one of
them is mentioned in a government style manual is not a persuasive
argument. I'm open to discussion though. What do non-GNU locale
environments use? Is there any survey of everyday use besides the
unsourced Wikipedia statement?  Is there a community of Australian
GNU users you could poll?

  (ii) Switch form from %a %e %b to %A %-e %B. This is not mentioned
in the patch description at all and is missing a rationale. Using long
form in locales where it can take many characters (e.g. en_*) is fairly
uncommon. The wikipedia example uses long form but is that really more
common? Also, it includes extra commas, should we include them too?

  This is not a clear-cut change so it will need more work/discussion
if we shall change anything. And for example http://www.smh.com.au/
uses old format and mix of short and long form for various fields. :-)

> 2012-04-29  Aurelien Jarno  <[hidden email]>
>
>         * locales/en_AU: Change date_fmt to match Australian standards.

  Also, I forgot to mention last time that usually, section is appended
to filename in the Changelog - * locales/en_AU (LC_TIME): ...

--
                                Petr "Pasky" Baudis
        Smart data structures and dumb code works a lot better
        than the other way around.  -- Eric S. Raymond
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Fix date_fmt in en_AU locale

Petr Baudis
On Mon, Apr 30, 2012 at 09:52:19AM +0200, Petr Baudis wrote:
> I personally don't think switching between two commonly used format
> just because one of them is mentioned in a government style manual is
> not a persuasive argument.

  Sorry, I didn't mean to use a double negative. :-) I think it is not
good enough argument alone for a switch.

                                Petr "Pasky" Baudis