Ignore:
Timestamp:
Feb 16, 2015, 10:42:24 PM (10 years ago)
Author:
chronos
Message:
  • Added: Czech translation for most of interface texts.
  • Fixed: Creation of new table fields.
  • Fixed: Saving XML database on exit.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormTables.pas

    r9 r11  
    6464{$R *.lfm}
    6565
     66resourcestring
     67  SRemoveTable = 'Remove table';
     68  SRemoveTableConfirm = 'Do you want to really remove table ''%s'' ?';
     69  SNewTable = 'New table';
     70
     71
    6672{ TFormTables }
    6773
     
    104110begin
    105111  NewTable := TTable.Create;
    106   NewTable.Name := 'New table';
     112  NewTable.Name := SNewTable;
    107113  NewTable.Database := Database;
    108114  FormTable.Load(NewTable);
     
    128134begin
    129135  if Assigned(ListView1.Selected) then begin
    130     if MessageDlg('Remove table', 'Do you want to really remove table ' +
    131     TTable(ListView1.Selected.Data).Name, mtConfirmation, [mbYes, mbNo], 0) = mrYes then begin
     136    if MessageDlg(SRemoveTable, Format(SRemoveTableConfirm, [TTable(ListView1.Selected.Data).Name]),
     137    mtConfirmation, [mbYes, mbNo], 0) = mrYes then begin
    132138      Database.Tables.Remove(ListView1.Selected.Data);
    133139      ReloadList;
     
    200206
    201207procedure TFormTables.FormShow(Sender: TObject);
    202 begin
     208var
     209  I: Integer;
     210begin
     211  for I := 0 to ToolBar1.ButtonCount - 1 do
     212    ToolBar1.Buttons[I].Hint := ToolBar1.Buttons[I].Caption;
    203213  UpdateInterface;
    204214end;
Note: See TracChangeset for help on using the changeset viewer.