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.

On Sun, 5 Dec 2010, Alexander wrote:

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  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to