Hi Michael,

Does your unit also calculate the week from the first day to the last
day according to the system ?
For example, here Sunday is the first day of the "regular" week, while
on Europe and the US, it's Monday.

I wrote once a Delphi extension for such calculation without using the
OS API, however I can't use it, because it was written for specific
proprietary software. So I'm looking for an open source unit to do the
same.

Ido

On 6/2/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:


On Fri, 1 Jun 2007, patrick feillant wrote:

> Hi,
> I have a Ubuntu 7.04 french installation, so if i type $date ---> vendredi 1
> juin 2007, 23:14:41 (UTC+0200)
> That's ok.
> In Lazarus, the variables   ShortDateFormat,  LongDateFormat,
> ShortMonthNames, LongMonthNames ,ShortDayNames.. are initialize in the
> sysutils initialization section, from the system parameters by the
> InitInternational routine ..
> But i always have the date in the english format, Sunday ...
> I don't resolve this problem.
> Somebody can help me to try the solution.

Hello,

This is a known problem. The problem is that the variables which control
the date/time/currency formatting in the SysUtils unit are not initialized
on Unix. This is an open issue which must still be resolved. (it takes some
work to do this, unfortunately)

I have a unit which does this for you. It checks the KDE international
settings or the C library settings. It is not included by default in SysUtils
because it creates a dependency on the C library, but I can send this
unit to you in private.

Michael.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives



--
http://ik.homelinux.org/

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to