Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-03

formatdatetime ( ) returns only english sting ?

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

fedorax

Hello,

My configuration ( Linux fedora 8 KDE is in french, lazarus and FPC ( latest svn ) also also ) bur when i use:

formatdatetime ('dddddd', now ) i got the result in english, not in french.

What's wrong ?

Reply by email

Michael Van Canneyt
to fedorax
fedorax wrote 8 lines
Hello, My configuration ( Linux fedora 8 KDE is in french, lazarus and FPC ( latest svn ) also also ) bur when i use: formatdatetime ('dddddd', now ) i got the result in english, not in french. What's wrong ?

sysutils does not automatically import the locale settings. I have a unit which does this, by using some C library functionality. If you want, I can send this unit. All you need to do is add it to the uses clause of your program.

Michael.

Reply by email

Marco van de Voort
to Michael Van Canneyt
Michael Van Canneyt wrote 13 lines
> Hello, > > My configuration ( Linux fedora 8 KDE is in french, lazarus and FPC ( latest svn > ) also also ) bur when i use: > > formatdatetime ('dddddd', now ) i got the result in english, not in french. > > What's wrong ? sysutils does not automatically import the locale settings. I have a unit which does this, by using some C library functionality. If you want, I can send this unit. All you need to do is add it to the uses clause of your program.

Send it to me too. I'll see if I can clean it up, and add it as a package, like I did with the "users" package.

Reply by email

Paul Ishenin
to Michael Van Canneyt: sysutils does not automatically import the locale settings. I have a unit which does…

Michael Van Canneyt ?????:

Show quoted text 16 lines
On Wed, 12 Mar 2008, fedorax wrote: > Hello, > > My configuration ( Linux fedora 8 KDE is in french, lazarus and FPC ( latest svn > ) also also ) bur when i use: > > formatdatetime ('dddddd', now ) i got the result in english, not in french. > > What's wrong ? sysutils does not automatically import the locale settings. I have a unit which does this, by using some C library functionality. If you want, I can send this unit. All you need to do is add it to the uses clause of your program.

Maybe lazarus can help to define this settings? Lazarus can ask them from qt, gtk and set apropriate sysutils variables.

Best regards,
Paul Ishenin.

Reply by email

Michael Van Canneyt
to Paul Ishenin
Show quoted text 22 lines
On Thu, 13 Mar 2008, Paul Ishenin wrote: > Michael Van Canneyt ?????: > > On Wed, 12 Mar 2008, fedorax wrote: > >> Hello, >> >>> My configuration ( Linux fedora 8 KDE is in french, lazarus and FPC ( latest svn >> ) also also ) bur when i use: >> >> formatdatetime ('dddddd', now ) i got the result in english, not in french. >> >> What's wrong ? > > sysutils does not automatically import the locale settings. I have a unit > which does this, by using some C library functionality. If you want, I can > send this unit. All you need to do is add it to the uses clause of your > program. Maybe lazarus can help to define this settings? Lazarus can ask them from qt, gtk and set apropriate sysutils variables.

I'll send you the unit, this way you can see what you can do with it. But careful, it uses the GNU libc unit.

Michael.

Reply by email

fedorax
to Michael Van Canneyt: sysutils does not automatically import the locale settings. I have a unit which does…

Selon Michael Van Canneyt :

Show quoted text 20 lines
On Wed, 12 Mar 2008, fedorax wrote: > Hello, > > My configuration ( Linux fedora 8 KDE is in french, lazarus and FPC ( latest svn > ) also also ) bur when i use: > > formatdatetime ('dddddd', now ) i got the result in english, not in french. > > What's wrong ? sysutils does not automatically import the locale settings. I have a unit which does this, by using some C library functionality. If you want, I can send this unit. All you need to do is add it to the uses clause of your program. Michael.

Yes, i'll be hapy with it. Thank's.

Show quoted text 5 lines
_______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email