Changeset 134 for trunk/Forms


Ignore:
Timestamp:
May 2, 2023, 11:48:43 AM (19 months ago)
Author:
chronos
Message:
  • Fixed: Translation of week days.
  • Fixed: Highest score changed after click at game over screen.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r133 r134  
    3535    procedure PaintBox1Resize(Sender: TObject);
    3636    procedure Timer1Timer(Sender: TObject);
    37     procedure Translator1Translate(Sender: TObject);
    3837  private
    3938    Initialized: Boolean;
     
    6059uses
    6160  UFormImages, UPixelPointer, UCore, UFormTest, UTestCases;
    62 
    63 resourcestring
    64   SMondayShort = 'MON';
    65   STuesdayShort = 'TUE';
    66   SWednesdayShort = 'WED';
    67   SThrusdayShort = 'THU';
    68   SFridayShort = 'FRI';
    69   SSaturdayShort = 'SAT';
    70   SSundayShort = 'SUN';
    7161
    7262{ TFormMain }
     
    205195  if Engine.RedrawPending then
    206196    PaintBox1.Repaint;
    207 end;
    208 
    209 procedure TFormMain.Translator1Translate(Sender: TObject);
    210 begin
    211   FormatSettings.ShortDayNames[1] := SSundayShort;
    212   FormatSettings.ShortDayNames[2] := SMondayShort;
    213   FormatSettings.ShortDayNames[3] := STuesdayShort;
    214   FormatSettings.ShortDayNames[4] := SWednesdayShort;
    215   FormatSettings.ShortDayNames[5] := SThrusdayShort;
    216   FormatSettings.ShortDayNames[6] := SFridayShort;
    217   FormatSettings.ShortDayNames[7] := SSaturdayShort;
    218197end;
    219198
Note: See TracChangeset for help on using the changeset viewer.