tlocale.pp 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. { %interactive }
  2. uses
  3. {$ifdef unix}
  4. cwstring,
  5. clocale,
  6. {$endif}
  7. SysUtils;
  8. procedure PrintSettings;
  9. var
  10. i: integer;
  11. begin
  12. Writeln('Month names:');
  13. for i := 1 to 12 do
  14. Writeln('month ',i:5,' ',shortmonthnames[i]:25,' - ',longmonthnames[i]);
  15. Writeln;
  16. Writeln('Day names :');
  17. for i := 1 to 7 do
  18. writeln('short day ',i:5,' ',shortdaynames[i]:25,' - ',longdaynames[i]);
  19. writeln('Dateseparator : ', dateseparator);
  20. {$ifdef localedebug}
  21. writeln('orgshortdate : ', orgformatsettings.shortdateformat);
  22. {$endif}
  23. writeln('short date : ', shortdateformat);
  24. {$ifdef localedebug}
  25. writeln('orglongdate : ', orgformatsettings.longdateformat);
  26. {$endif}
  27. writeln('long date : ', longdateformat);
  28. { Time stuff }
  29. writeln('TimeSeparator : ', timeseparator);
  30. writeln('TimeAMstring : ', timeamstring);
  31. writeln('TimePMstring : ', timepmstring);
  32. {$ifdef localedebug}
  33. writeln('orgshorttime : ', orgformatsettings.shorttimeformat);
  34. {$endif}
  35. // No support for 12 hour stuff at the moment...
  36. writeln('short time : ', shorttimeformat);
  37. {$ifdef localedebug}
  38. writeln('orglongtime : ', orgformatsettings.longtimeformat);
  39. {$endif}
  40. writeln('long time : ', longtimeformat);
  41. { Currency stuff }
  42. {$ifdef localedebug}
  43. writeln('currency1 : ', orgformatsettings.currencystring1);
  44. writeln('currency2 : ', orgformatsettings.currencystring2);
  45. {$endif}
  46. writeln('currencystring : ', currencystring);
  47. writeln('currencyformat : ', currencyformat);
  48. writeln('negcurrformat : ', negcurrformat);
  49. writeln('decimalseparator : ', decimalseparator);
  50. writeln('thousandseparator: ', thousandseparator);
  51. writeln('currencydecimals : ', currencydecimals);
  52. end;
  53. begin
  54. printsettings;
  55. end.