bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#19856: Bad month translation printed with date command in Greek loca


From: Nick & John
Subject: bug#19856: Bad month translation printed with date command in Greek locale
Date: Fri, 13 Feb 2015 15:46:48 +0200

Hello we are Nick Barkas and Ioannis Barkas from Greece. There is an
annoying error in the date command for quite some time when using
Greek locale.
If date is instructed to print month and day of month, the translation
is wrong and looks funny...
 You have to be able to write Greek in order to understand it and
since the bug exists we assume no one from coreutils developers knows
Greek.
 As a result we will explain every month in detail as it will be Greek
to you. Remove "LC_TIME=el_GR.UTF-8" from the commands to get the date
in English.

This is what you get with "B Y" (month year), which is correct:
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-01-01"
Ιανουάριος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-02-01"
Φεβρουάριος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-03-01"
Μάρτιος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-04-01"
Απρίλιος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-05-01"
Μάιος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-06-01"
Ιούνιος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-07-01"
Ιούλιος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-08-01"
Αύγουστος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-09-01"
Σεπτέμβριος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-10-01"
Οκτώβριος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-11-01"
Νοέμβριος 2015
$ LC_TIME=el_GR.UTF-8 date +"%B %Y" -d "2015-12-01"
Δεκέμβριος 2015

This is what you get with "d B Y" (month year), which is wrong:
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-01-01"
01 Ιανουάριος 2015
address@hidden:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-02-01"
01 Φεβρουάριος 2015
address@hidden:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-03-01"
01 Μάρτιος 2015
address@hidden:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-04-01"
01 Απρίλιος 2015
address@hidden:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-05-01"
01 Μάιος 2015
address@hidden:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-06-01"
01 Ιούνιος 2015
address@hidden:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-07-01"
01 Ιούλιος 2015
address@hidden:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-08-01"
01 Αύγουστος 2015
address@hidden:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-09-01"
01 Σεπτέμβριος 2015
address@hidden:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-10-01"
01 Οκτώβριος 2015
address@hidden:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-11-01"
01 Νοέμβριος 2015
address@hidden:~$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-12-01"
01 Δεκέμβριος 2015

Here is what the date command should print with "d B Y" (month year),
in el_GR.UTF-8 locale:
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-01-01"
01 Ιανουαρίου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-02-01"
01 Φεβρουαρίου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-03-01"
01 Μαρτίου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-04-01"
01 Απριλίου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-05-01"
01 Μαίου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-06-01"
01 Ιουνίου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-07-01"
01 Ιουλίου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-08-01"
01 Αυγούστου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-09-01"
01 Σεπτεμβρίου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-10-01"
01 Οκτωβρίου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-11-01"
01 Νοεμβρίου 2015
$ LC_TIME=el_GR.UTF-8 date +"%d %B %Y" -d "2015-12-01"
01 Δεκεμβρίου 2015

In Greek language things are different and complex compared to
English. We have accents (τόνους) for most words and words are not
fixed but can dynamically change depending on context.
When the month is accompanied by a day of month the accent (Greek
tonos/τόνος) changes and ...ος becomes ...ου. To fix this, use the
correct translations for months, if and only if %B
 and %d are used together. If the month is called with no day (%d)
using "%B" or if the month is called with "%d %b" or "%b" leave the
translations as they are.
Since there are many computer-science oriented Greek universities and
so many Greeks around the world, we are amazed that no one fixed it so
far.
We must also inform you that this silly bug of yours has been seen in webpages.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]