Sign in Join

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

Mailing lists / fpc-devel / 2010-12

ShortMonthNames give non local result

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Alexander

Hi,

I try use this variable, but result in English:

uses SysUtils;
begin
   WriteLn(SysUtils.ShortMonthNames[1]);
end.

Out:

Jan

set | grep 'LANG' :

GDM_LANG=ru_RU.UTF-8
LANG=ru_RU.UTF-8

fpc -iW :

2.4.0-0

Description of ShortMonthNames (http://www.freepascal.org/docs-html/rtl/sysutils/shortmonthnames.html):

ShortMonthNames is an array with the abbreviated names of months. It is used by the date formatting routines. The initialization routines of the SysUtils unit initialize this string with a value conforming to the regional preferences of the user or system regional default.

Good Luck,
Alexander.

Reply by email

Unknown author
to Alexander

Include the 'clocale' unit in your program's uses clause.

it will initialize the internationalization settings in the sysutils unit.

I have adapted the documentation so it mentions this.

Michael.

Alexander wrote 33 lines
Hi, I try use this variable, but result in English: uses SysUtils; begin WriteLn(SysUtils.ShortMonthNames[1]); end. Out: Jan set | grep 'LANG' : GDM_LANG=ru_RU.UTF-8 LANG=ru_RU.UTF-8 fpc -iW : 2.4.0-0 Description of ShortMonthNames (http://www.freepascal.org/docs-html/rtl/sysutils/shortmonthnames.html): ShortMonthNames is an array with the abbreviated names of months. It is used by the date formatting routines. The initialization routines of the SysUtils unit initialize this string with a value conforming to the regional preferences of the user or system regional default. Good Luck, Alexander. _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email