Changeset 544


Ignore:
Timestamp:
Apr 16, 2024, 9:47:10 PM (8 months ago)
Author:
chronos
Message:
  • Fixed: Correct translation of offered players AIs.
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Brain.pas

    r468 r544  
    2121
    2222  TBrain = class
     23  private
     24    FName: string;
     25    function GetName: string;
     26    procedure SetName(AValue: string);
     27  public
    2328    FileName: string;
    2429    DLLName: string;
    25     Name: string;
     30    LookupName: string;
    2631    Credits: string; { filename and full name }
    2732    hm: TLibHandle; { module handle }
     
    3944    constructor Create;
    4045    destructor Destroy; override;
     46    property Name: string read GetName write SetName;
    4147  end;
    4248
     
    5864
    5965{ TBrain }
     66
     67function TBrain.GetName: string;
     68begin
     69  if FName <> '' then Result := FName
     70    else Result := Phrases.Lookup(LookupName);
     71end;
     72
     73procedure TBrain.SetName(AValue: string);
     74begin
     75  FName := AValue;
     76end;
    6077
    6178procedure TBrain.LoadPicture;
  • trunk/Direct.pas

    r468 r544  
    175175  GameServer.Init(Notify);
    176176  BrainNoTerm.Client := NoTerm.Client;
    177   BrainNoTerm.Name := Phrases.Lookup('AIT');
     177  BrainNoTerm.LookupName := 'AIT';
    178178  BrainSuperVirtual.Client := nil;
    179   BrainSuperVirtual.Name := Phrases.Lookup('SUPER');
     179  BrainSuperVirtual.LookupName := 'SUPER';
    180180  BrainTerm.Client := LocalPlayer.Client;
    181   BrainTerm.Name := Phrases.Lookup('HUMAN');
     181  BrainTerm.LookupName := 'HUMAN';
    182182  if NetworkEnabled then begin
    183183    BrainNetworkServer.Client := NetworkServer.Client;
    184     BrainNetworkServer.Name := Phrases.Lookup('NETWORK_SERVER');
     184    BrainNetworkServer.LookupName := 'NETWORK_SERVER';
    185185    BrainNetworkClient.Client := NetworkClient.Client;
    186     BrainNetworkClient.Name := Phrases.Lookup('NETWORK_CLIENT');
    187   end;
    188   BrainRandom.Name := Phrases.Lookup('RANDOMAI');
     186    BrainNetworkClient.LookupName := 'NETWORK_CLIENT';
     187  end;
     188  BrainRandom.LookupName := 'RANDOMAI';
    189189  Canvas.Font.Assign(UniFont[ftNormal]);
    190190  Canvas.Brush.Style := TBrushStyle.bsClear;
  • trunk/Localization/fr/Language.txt

    r473 r544  
    341341#BTN_NO Non
    342342#BTN_INFO Info
     343#BTN_RESET Remettre
    343344
    344345'Button Tooltips
Note: See TracChangeset for help on using the changeset viewer.