KLocale to use nl_langinfo?

Albert Astals Cid aacid at kde.org
Wed Aug 16 19:59:00 BST 2006


A Dimecres 16 Agost 2006 16:57, Nicolas Goutte va escriure:
> On Tuesday 15 August 2006 14:36, Barış Metin wrote:
> > Hello,
> >
> > With a bug report I recognized that the default date format in KDE is
> > wrong. Is there a particular reason for KLocale not to use nl_langinfo
> > and hard-code default values?
>
> The values depend on the country setting. KDE has chosen to use its own
> country settings. If it is not correct for country in KDE please fix it (or
> ask how to fix it).

Agree

> > From kdecore/klocale.cpp:
> >   readConfigEntry("TimeFormat", "%H:%M:%S", m_timeFormat);
> >   readConfigEntry("DateFormat", "%A %d %B %Y", m_dateFormat);
> >   readConfigEntry("DateFormatShort", "%Y-%m-%d", m_dateFormatShort);
>
> What would be wrong as default? The first and last one are the ISO
> date/time format.

Although we have decided to have own our country settings isn't more sensible 
to default to system locale that to C locale?

Albert

>
> > regards,
>
> Have a nice day!




More information about the kde-core-devel mailing list