Comment 6 for bug 1001595

Charles Kerr (charlesk) wrote :

So, after looking into this, I didn't have to get into too many languages before realizing there isn't a one-size-fits-all solution that can be addressed in the source code.

For example, I the code /could/ check nl_langinfo(D_FMT) to see whether the month or day goes first, and that would solve the MM DD YYYY <--> DD MM YYYY complaints that are part of this ticket.

However there are all kinds of other issues and combinations, for example en zh_CN the weekday should go after the date, rather than before, and always prefers year-month-day rather than day-month-year or month-day-year. And there are several other issues.

In the end, I think this has got to be fixed on a locale-by-locale basis by the translators. However, indicator-datetime's code /can/ make this a lot less painful / more likely to actually happen. I've added copious translator comments to lp:~charlesk/indicator-datetime/lp-1001595 to help make this happen.