- Timestamp:
- Feb 16, 2015, 10:42:24 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 24 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormDatabases.lfm
r9 r11 48 48 ButtonHeight = 32 49 49 ButtonWidth = 32 50 Caption = 'ToolBar1'51 50 Images = Core.ImageList1 51 ParentShowHint = False 52 ShowHint = True 52 53 TabOrder = 1 53 54 object ToolButton1: TToolButton -
trunk/Forms/UFormDatabases.pas
r9 r11 109 109 110 110 procedure TFormDatabases.FormShow(Sender: TObject); 111 var 112 I: Integer; 111 113 begin 114 for I := 0 to ToolBar1.ButtonCount - 1 do 115 ToolBar1.Buttons[I].Hint := ToolBar1.Buttons[I].Caption; 112 116 ReloadList; 113 117 end; -
trunk/Forms/UFormFields.lfm
r8 r11 18 18 ButtonHeight = 32 19 19 ButtonWidth = 32 20 Caption = 'ToolBar1'21 20 Images = Core.ImageList1 21 ParentShowHint = False 22 ShowHint = True 22 23 TabOrder = 0 23 24 object ToolButton1: TToolButton -
trunk/Forms/UFormFields.pas
r8 r11 59 59 {$R *.lfm} 60 60 61 resourcestring 62 SNewField = 'New field'; 63 SFieldsNotSet = 'Fields not set'; 64 STableFields = 'Table fields - %s'; 65 61 66 { TFormFields } 62 67 63 68 procedure TFormFields.FormShow(Sender: TObject); 69 var 70 I: Integer; 64 71 begin 72 for I := 0 to ToolBar1.ButtonCount - 1 do 73 ToolBar1.Buttons[I].Hint := ToolBar1.Buttons[I].Caption; 65 74 if not Assigned(Fields) then 66 raise Exception.Create( 'Fields not set');67 Caption := 'Table fields - ' + TableName;75 raise Exception.Create(SFieldsNotSet); 76 Caption := Format(STableFields, [TableName]); 68 77 UpdateInterface; 69 78 ReloadList; … … 76 85 NewField := TField.Create; 77 86 NewField.Table := Fields.Table; 78 NewField.Name := 'New field'; 87 NewField.Name := SNewField; 88 if Fields.Table.Database.Engine.DataTypes.Count > 0 then 89 NewField.DataType := TDataType(Fields.Table.Database.Engine.DataTypes[0]); 79 90 FormField.Load(NewField); 80 91 if FormField.ShowModal = mrOk then begin -
trunk/Forms/UFormMain.lfm
r9 r11 21 21 object MainMenu1: TMainMenu 22 22 Images = Core.ImageList1 23 left = 8 7024 top = 2 0023 left = 824 24 top = 216 25 25 object MenuItem1: TMenuItem 26 26 Caption = 'Database' -
trunk/Forms/UFormRecords.lfm
r9 r11 44 44 ButtonHeight = 32 45 45 ButtonWidth = 32 46 Caption = 'ToolBar1'47 46 Images = Core.ImageList1 47 ParentShowHint = False 48 ShowHint = True 48 49 TabOrder = 1 49 50 object ToolButton1: TToolButton -
trunk/Forms/UFormRecords.pas
r4 r11 52 52 {$R *.lfm} 53 53 54 resourcestring 55 STable = 'Table'; 56 SRemoveRecord = 'Remove record'; 57 SRemoveRecordConfirm = 'Do you want to remove record?'; 58 54 59 { TFormRecords } 55 60 56 61 procedure TFormRecords.FormShow(Sender: TObject); 62 var 63 I: Integer; 57 64 begin 58 Caption := 'Table - ' + Table.Caption; 65 for I := 0 to ToolBar1.ButtonCount - 1 do 66 ToolBar1.Buttons[I].Hint := ToolBar1.Buttons[I].Caption; 67 Caption := STable + ' - ' + Table.Caption; 59 68 ReloadList; 60 69 end; … … 94 103 procedure TFormRecords.ARemoveExecute(Sender: TObject); 95 104 begin 96 if Assigned(ListView1.Selected) then begin 105 if Assigned(ListView1.Selected) then 106 if MessageDlg(SRemoveRecord, SRemoveRecordConfirm, 107 mtConfirmation, [mbYes, mbNo], 0) = mrYes then begin 97 108 Table.Records.Remove(ListView1.Selected.Data); 98 109 ReloadList; -
trunk/Forms/UFormTables.lfm
r9 r11 45 45 ButtonHeight = 32 46 46 ButtonWidth = 32 47 Caption = 'ToolBar1'48 47 Images = Core.ImageList1 48 ParentShowHint = False 49 ShowHint = True 49 50 TabOrder = 1 50 51 object ToolButton1: TToolButton -
trunk/Forms/UFormTables.pas
r9 r11 64 64 {$R *.lfm} 65 65 66 resourcestring 67 SRemoveTable = 'Remove table'; 68 SRemoveTableConfirm = 'Do you want to really remove table ''%s'' ?'; 69 SNewTable = 'New table'; 70 71 66 72 { TFormTables } 67 73 … … 104 110 begin 105 111 NewTable := TTable.Create; 106 NewTable.Name := 'New table';112 NewTable.Name := SNewTable; 107 113 NewTable.Database := Database; 108 114 FormTable.Load(NewTable); … … 128 134 begin 129 135 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 begin136 if MessageDlg(SRemoveTable, Format(SRemoveTableConfirm, [TTable(ListView1.Selected.Data).Name]), 137 mtConfirmation, [mbYes, mbNo], 0) = mrYes then begin 132 138 Database.Tables.Remove(ListView1.Selected.Data); 133 139 ReloadList; … … 200 206 201 207 procedure TFormTables.FormShow(Sender: TObject); 202 begin 208 var 209 I: Integer; 210 begin 211 for I := 0 to ToolBar1.ButtonCount - 1 do 212 ToolBar1.Buttons[I].Hint := ToolBar1.Buttons[I].Caption; 203 213 UpdateInterface; 204 214 end; -
trunk/Languages/MyData.cs.po
r10 r11 11 11 "X-Generator: Poedit 1.5.4\n" 12 12 13 #: tcore.adatabaseconnect.caption 14 msgid "Connect" 15 msgstr "Připojit" 16 17 #: tcore.adatabasedisconnect.caption 18 msgid "Disconnect" 19 msgstr "Odpojit" 20 21 #: tcore.aexit.caption 22 msgid "Exit" 23 msgstr "Ukončit" 24 25 #: tcore.apreferences.caption 26 msgctxt "tcore.apreferences.caption" 27 msgid "Preferences" 28 msgstr "Předvolby" 29 30 #: tformdatabases.aadd.caption 31 msgid "New" 32 msgstr "Nová" 33 34 #: tformdatabases.amodify.caption 35 msgctxt "tformdatabases.amodify.caption" 36 msgid "Modify" 37 msgstr "Upravit" 38 39 #: tformdatabases.aopen.caption 40 msgid "Open" 41 msgstr "Otevřít" 42 43 #: tformdatabases.aremove.caption 44 msgctxt "tformdatabases.aremove.caption" 45 msgid "Remove" 46 msgstr "Odstranit" 47 48 #: tformdatabases.caption 49 msgid "Databases" 50 msgstr "Databáze" 51 52 #: tformdatabases.listview1.columns[0].caption 53 msgctxt "tformdatabases.listview1.columns[0].caption" 54 msgid "Name" 55 msgstr "Jméno" 56 57 #: tformdatabases.listview1.columns[1].caption 58 msgctxt "tformdatabases.listview1.columns[1].caption" 59 msgid "Type" 60 msgstr "Typ" 61 62 #: tformdatabases.listview1.columns[2].caption 63 msgid "Connection string" 64 msgstr "Připojovací řetězec" 65 66 #: tformfield.buttoncancel.caption 67 msgctxt "tformfield.buttoncancel.caption" 68 msgid "Cancel" 69 msgstr "Zrušit" 70 71 #: tformfield.buttonok.caption 72 msgctxt "tformfield.buttonok.caption" 73 msgid "Ok" 74 msgstr "Ok" 75 76 #: tformfield.caption 77 msgid "Field" 78 msgstr "Pole" 79 80 #: tformfield.dateeditmax.cancelcaption 81 msgctxt "tformfield.dateeditmax.cancelcaption" 82 msgid "Cancel" 83 msgstr "Zrušit" 84 85 #: tformfield.dateeditmax.okcaption 86 msgctxt "tformfield.dateeditmax.okcaption" 87 msgid "OK" 88 msgstr "OK" 89 90 #: tformfield.dateeditmin.cancelcaption 91 msgctxt "tformfield.dateeditmin.cancelcaption" 92 msgid "Cancel" 93 msgstr "Zrušit" 94 95 #: tformfield.dateeditmin.okcaption 96 msgctxt "tformfield.dateeditmin.okcaption" 97 msgid "OK" 98 msgstr "OK" 99 100 #: tformfield.label1.caption 101 msgid "Name:" 102 msgstr "Jméno:" 103 104 #: tformfield.label10.caption 105 msgctxt "tformfield.label10.caption" 106 msgid "Minimum:" 107 msgstr "Minimum:" 108 109 #: tformfield.label11.caption 110 msgctxt "tformfield.label11.caption" 111 msgid "Maximum:" 112 msgstr "Maximum:" 113 114 #: tformfield.label2.caption 115 msgid "Text before:" 116 msgstr "Text za:" 117 118 #: tformfield.label3.caption 119 msgid "Text after:" 120 msgstr "Text před:" 121 122 #: tformfield.label4.caption 123 msgid "Data type:" 124 msgstr "Datový typ:" 125 126 #: tformfield.label5.caption 127 msgid "Default value:" 128 msgstr "Výchozí hodnota:" 129 130 #: tformfield.label6.caption 131 msgctxt "tformfield.label6.caption" 132 msgid "Minimum:" 133 msgstr "Minimum:" 134 135 #: tformfield.label7.caption 136 msgctxt "tformfield.label7.caption" 137 msgid "Maximum:" 138 msgstr "Maximum:" 139 140 #: tformfield.label8.caption 141 msgctxt "tformfield.label8.caption" 142 msgid "Minimum:" 143 msgstr "Minimum:" 144 145 #: tformfield.label9.caption 146 msgctxt "tformfield.label9.caption" 147 msgid "Maximum:" 148 msgstr "Maximum:" 149 150 #: tformfield.tabsheetboolean.caption 151 msgid "TabSheetBoolean" 152 msgstr "" 153 154 #: tformfield.tabsheetdatetime.caption 155 msgid "TabSheetDateTime" 156 msgstr "" 157 158 #: tformfield.tabsheetfloat.caption 159 msgid "TabSheetFloat" 160 msgstr "" 161 162 #: tformfield.tabsheetinteger.caption 163 msgid "TabSheetInteger" 164 msgstr "" 165 166 #: tformfield.tabsheetstring.caption 167 msgid "TabSheetString" 168 msgstr "" 169 170 #: tformfields.aadd.caption 171 msgctxt "tformfields.aadd.caption" 172 msgid "Add" 173 msgstr "Přidat" 174 175 #: tformfields.acancel.caption 176 msgctxt "tformfields.acancel.caption" 177 msgid "Cancel" 178 msgstr "Zrušít" 179 180 #: tformfields.amodify.caption 181 msgctxt "tformfields.amodify.caption" 182 msgid "Modify" 183 msgstr "Upravit" 184 185 #: tformfields.aok.caption 186 msgctxt "tformfields.aok.caption" 187 msgid "Ok" 188 msgstr "Ok" 189 190 #: tformfields.aremove.caption 191 msgctxt "tformfields.aremove.caption" 192 msgid "Remove" 193 msgstr "Odstranit" 194 195 #: tformfields.caption 196 msgid "Fields" 197 msgstr "Pole" 198 199 #: tformfields.listview1.columns[0].caption 200 msgctxt "tformfields.listview1.columns[0].caption" 201 msgid "Name" 202 msgstr "Jméno" 203 204 #: tformfields.listview1.columns[1].caption 205 msgctxt "tformfields.listview1.columns[1].caption" 206 msgid "Type" 207 msgstr "Typ" 208 209 #: tformfields.listview1.columns[2].caption 210 msgid "Required" 211 msgstr "Vyžadováno" 212 213 #: tformfields.listview1.columns[3].caption 214 msgid "TextBefore" 215 msgstr "Text před" 216 217 #: tformfields.listview1.columns[4].caption 218 msgid "TextAfter" 219 msgstr "Text za" 220 221 #: tformmain.caption 222 msgid "MyData" 223 msgstr "MyData" 224 225 #: tformmain.menuitem1.caption 226 msgid "Database" 227 msgstr "Databáze" 228 229 #: tformmain.menuitem5.caption 230 msgid "-" 231 msgstr "-" 232 233 #: tformmain.menuitempreferences.caption 234 msgid "Tools" 235 msgstr "Nástroje" 236 13 237 #: tformpreferences.buttoncancel.caption 238 msgctxt "tformpreferences.buttoncancel.caption" 14 239 msgid "Cancel" 15 240 msgstr "Zrušít" … … 20 245 21 246 #: tformpreferences.caption 247 msgctxt "tformpreferences.caption" 22 248 msgid "Preferences" 23 249 msgstr "Předvolby" … … 31 257 msgstr "Jazyk:" 32 258 259 #: tformrecords.aadd.caption 260 msgctxt "tformrecords.aadd.caption" 261 msgid "Add" 262 msgstr "Přidat" 263 264 #: tformrecords.amodify.caption 265 msgctxt "tformrecords.amodify.caption" 266 msgid "Modify" 267 msgstr "Upravit" 268 269 #: tformrecords.aremove.caption 270 msgctxt "tformrecords.aremove.caption" 271 msgid "Remove" 272 msgstr "Odstranit" 273 274 #: tformrecords.caption 275 msgctxt "tformrecords.caption" 276 msgid "Records" 277 msgstr "Záznamy" 278 279 #: tformrecords.listview1.columns[0].caption 280 msgctxt "tformrecords.listview1.columns[0].caption" 281 msgid "Name" 282 msgstr "Jméno" 283 284 #: tformrecords.listview1.columns[1].caption 285 msgctxt "tformrecords.listview1.columns[1].caption" 286 msgid "Records" 287 msgstr "Záznamy" 288 289 #: tformtables.aadd.caption 290 msgctxt "tformtables.aadd.caption" 291 msgid "Add" 292 msgstr "Přidat" 293 294 #: tformtables.amodify.caption 295 msgctxt "tformtables.amodify.caption" 296 msgid "Modify" 297 msgstr "Upravit" 298 299 #: tformtables.aremove.caption 300 msgctxt "tformtables.aremove.caption" 301 msgid "Remove" 302 msgstr "Odstranit" 303 304 #: tformtables.ashowfields.caption 305 msgid "Design" 306 msgstr "Návrh" 307 308 #: tformtables.ashowrecords.caption 309 msgctxt "tformtables.ashowrecords.caption" 310 msgid "Records" 311 msgstr "Záznamy" 312 313 #: tformtables.caption 314 msgid "Tables" 315 msgstr "Tabulky" 316 317 #: tformtables.listview1.columns[0].caption 318 msgctxt "tformtables.listview1.columns[0].caption" 319 msgid "Name" 320 msgstr "Jméno" 321 322 #: tformtables.listview1.columns[1].caption 323 msgctxt "tformtables.listview1.columns[1].caption" 324 msgid "Records" 325 msgstr "Záznamy" 326 327 #: ucore.stypeboolean 328 msgid "Boolean" 329 msgstr "Logická hodnota" 330 331 #: ucore.stypedate 332 msgid "Date" 333 msgstr "Datum" 334 335 #: ucore.stypedatetime 336 msgid "Date and time" 337 msgstr "Datum a čas" 338 339 #: ucore.stypefloat 340 msgid "Float" 341 msgstr "Desetinné číslo" 342 343 #: ucore.stypeimage 344 msgid "Image" 345 msgstr "Obrázek" 346 347 #: ucore.stypeinteger 348 msgid "Integer" 349 msgstr "Celé číslo" 350 351 #: ucore.stypemapposition 352 msgid "Map position" 353 msgstr "Pozice na mapě" 354 355 #: ucore.stypestring 356 msgid "String" 357 msgstr "Řetězec" 358 359 #: ucore.stypetime 360 msgid "Time" 361 msgstr "Čas" 362 33 363 #: uenginexml.swrongfileformat 34 364 msgid "Wrong file format" 35 365 msgstr "Špatný formát souboru" 366 367 #: uformfields.sfieldsnotset 368 msgid "Fields not set" 369 msgstr "Políčka nejsou nastavena" 370 371 #: uformfields.snewfield 372 msgid "New field" 373 msgstr "Nové políčko" 374 375 #: uformfields.stablefields 376 msgid "Table fields - %s" 377 msgstr "Políčka tabulky - %s" 378 379 #: uformrecords.sremoverecord 380 msgid "Remove record" 381 msgstr "Odstranit záznam" 382 383 #: uformrecords.sremoverecordconfirm 384 msgid "Do you want to remove record?" 385 msgstr "Opravdu chcete odstranit záznam?" 386 387 #: uformrecords.stable 388 msgid "Table" 389 msgstr "Tabulka" 390 391 #: uformtables.snewtable 392 msgid "New table" 393 msgstr "Nová tabulka" 394 395 #: uformtables.sremovetable 396 msgid "Remove table" 397 msgstr "Odstranit tabulku" 398 399 #: uformtables.sremovetableconfirm 400 msgid "Do you want to really remove table '%s' ?" 401 msgstr "Opravdu chcete odstranit tabulku '%s'?" -
trunk/Languages/MyData.po
r10 r11 2 2 msgstr "Content-Type: text/plain; charset=UTF-8" 3 3 4 #: tcore.adatabaseconnect.caption 5 msgid "Connect" 6 msgstr "" 7 8 #: tcore.adatabasedisconnect.caption 9 msgid "Disconnect" 10 msgstr "" 11 12 #: tcore.aexit.caption 13 msgid "Exit" 14 msgstr "" 15 16 #: tcore.apreferences.caption 17 msgctxt "TCORE.APREFERENCES.CAPTION" 18 msgid "Preferences" 19 msgstr "" 20 21 #: tformdatabases.aadd.caption 22 msgid "New" 23 msgstr "" 24 25 #: tformdatabases.amodify.caption 26 msgctxt "TFORMDATABASES.AMODIFY.CAPTION" 27 msgid "Modify" 28 msgstr "" 29 30 #: tformdatabases.aopen.caption 31 msgid "Open" 32 msgstr "" 33 34 #: tformdatabases.aremove.caption 35 msgctxt "TFORMDATABASES.AREMOVE.CAPTION" 36 msgid "Remove" 37 msgstr "" 38 39 #: tformdatabases.caption 40 msgid "Databases" 41 msgstr "" 42 43 #: tformdatabases.listview1.columns[0].caption 44 msgctxt "TFORMDATABASES.LISTVIEW1.COLUMNS[0].CAPTION" 45 msgid "Name" 46 msgstr "" 47 48 #: tformdatabases.listview1.columns[1].caption 49 msgctxt "TFORMDATABASES.LISTVIEW1.COLUMNS[1].CAPTION" 50 msgid "Type" 51 msgstr "" 52 53 #: tformdatabases.listview1.columns[2].caption 54 msgid "Connection string" 55 msgstr "" 56 57 #: tformfield.buttoncancel.caption 58 msgctxt "TFORMFIELD.BUTTONCANCEL.CAPTION" 59 msgid "Cancel" 60 msgstr "" 61 62 #: tformfield.buttonok.caption 63 msgctxt "TFORMFIELD.BUTTONOK.CAPTION" 64 msgid "Ok" 65 msgstr "" 66 67 #: tformfield.caption 68 msgid "Field" 69 msgstr "" 70 71 #: tformfield.dateeditmax.cancelcaption 72 msgctxt "TFORMFIELD.DATEEDITMAX.CANCELCAPTION" 73 msgid "Cancel" 74 msgstr "" 75 76 #: tformfield.dateeditmax.okcaption 77 msgctxt "TFORMFIELD.DATEEDITMAX.OKCAPTION" 78 msgid "OK" 79 msgstr "" 80 81 #: tformfield.dateeditmin.cancelcaption 82 msgctxt "TFORMFIELD.DATEEDITMIN.CANCELCAPTION" 83 msgid "Cancel" 84 msgstr "" 85 86 #: tformfield.dateeditmin.okcaption 87 msgctxt "tformfield.dateeditmin.okcaption" 88 msgid "OK" 89 msgstr "" 90 91 #: tformfield.label1.caption 92 msgid "Name:" 93 msgstr "" 94 95 #: tformfield.label10.caption 96 msgctxt "tformfield.label10.caption" 97 msgid "Minimum:" 98 msgstr "" 99 100 #: tformfield.label11.caption 101 msgctxt "tformfield.label11.caption" 102 msgid "Maximum:" 103 msgstr "" 104 105 #: tformfield.label2.caption 106 msgid "Text before:" 107 msgstr "" 108 109 #: tformfield.label3.caption 110 msgid "Text after:" 111 msgstr "" 112 113 #: tformfield.label4.caption 114 msgid "Data type:" 115 msgstr "" 116 117 #: tformfield.label5.caption 118 msgid "Default value:" 119 msgstr "" 120 121 #: tformfield.label6.caption 122 msgctxt "TFORMFIELD.LABEL6.CAPTION" 123 msgid "Minimum:" 124 msgstr "" 125 126 #: tformfield.label7.caption 127 msgctxt "TFORMFIELD.LABEL7.CAPTION" 128 msgid "Maximum:" 129 msgstr "" 130 131 #: tformfield.label8.caption 132 msgctxt "TFORMFIELD.LABEL8.CAPTION" 133 msgid "Minimum:" 134 msgstr "" 135 136 #: tformfield.label9.caption 137 msgctxt "TFORMFIELD.LABEL9.CAPTION" 138 msgid "Maximum:" 139 msgstr "" 140 141 #: tformfield.tabsheetboolean.caption 142 msgid "TabSheetBoolean" 143 msgstr "" 144 145 #: tformfield.tabsheetdatetime.caption 146 msgid "TabSheetDateTime" 147 msgstr "" 148 149 #: tformfield.tabsheetfloat.caption 150 msgid "TabSheetFloat" 151 msgstr "" 152 153 #: tformfield.tabsheetinteger.caption 154 msgid "TabSheetInteger" 155 msgstr "" 156 157 #: tformfield.tabsheetstring.caption 158 msgid "TabSheetString" 159 msgstr "" 160 161 #: tformfields.aadd.caption 162 msgctxt "TFORMFIELDS.AADD.CAPTION" 163 msgid "Add" 164 msgstr "" 165 166 #: tformfields.acancel.caption 167 msgctxt "TFORMFIELDS.ACANCEL.CAPTION" 168 msgid "Cancel" 169 msgstr "" 170 171 #: tformfields.amodify.caption 172 msgctxt "TFORMFIELDS.AMODIFY.CAPTION" 173 msgid "Modify" 174 msgstr "" 175 176 #: tformfields.aok.caption 177 msgctxt "tformfields.aok.caption" 178 msgid "Ok" 179 msgstr "" 180 181 #: tformfields.aremove.caption 182 msgctxt "TFORMFIELDS.AREMOVE.CAPTION" 183 msgid "Remove" 184 msgstr "" 185 186 #: tformfields.caption 187 msgid "Fields" 188 msgstr "" 189 190 #: tformfields.listview1.columns[0].caption 191 msgctxt "TFORMFIELDS.LISTVIEW1.COLUMNS[0].CAPTION" 192 msgid "Name" 193 msgstr "" 194 195 #: tformfields.listview1.columns[1].caption 196 msgctxt "tformfields.listview1.columns[1].caption" 197 msgid "Type" 198 msgstr "" 199 200 #: tformfields.listview1.columns[2].caption 201 msgid "Required" 202 msgstr "" 203 204 #: tformfields.listview1.columns[3].caption 205 msgid "TextBefore" 206 msgstr "" 207 208 #: tformfields.listview1.columns[4].caption 209 msgid "TextAfter" 210 msgstr "" 211 212 #: tformmain.caption 213 msgid "MyData" 214 msgstr "" 215 216 #: tformmain.menuitem1.caption 217 msgid "Database" 218 msgstr "" 219 220 #: tformmain.menuitem5.caption 221 msgid "-" 222 msgstr "" 223 224 #: tformmain.menuitempreferences.caption 225 msgid "Tools" 226 msgstr "" 227 4 228 #: tformpreferences.buttoncancel.caption 229 msgctxt "tformpreferences.buttoncancel.caption" 5 230 msgid "Cancel" 6 231 msgstr "" … … 11 236 12 237 #: tformpreferences.caption 238 msgctxt "tformpreferences.caption" 13 239 msgid "Preferences" 14 240 msgstr "" … … 22 248 msgstr "" 23 249 250 #: tformrecords.aadd.caption 251 msgctxt "tformrecords.aadd.caption" 252 msgid "Add" 253 msgstr "" 254 255 #: tformrecords.amodify.caption 256 msgctxt "tformrecords.amodify.caption" 257 msgid "Modify" 258 msgstr "" 259 260 #: tformrecords.aremove.caption 261 msgctxt "tformrecords.aremove.caption" 262 msgid "Remove" 263 msgstr "" 264 265 #: tformrecords.caption 266 msgctxt "tformrecords.caption" 267 msgid "Records" 268 msgstr "" 269 270 #: tformrecords.listview1.columns[0].caption 271 msgctxt "tformrecords.listview1.columns[0].caption" 272 msgid "Name" 273 msgstr "" 274 275 #: tformrecords.listview1.columns[1].caption 276 msgctxt "TFORMRECORDS.LISTVIEW1.COLUMNS[1].CAPTION" 277 msgid "Records" 278 msgstr "" 279 280 #: tformtables.aadd.caption 281 msgctxt "TFORMTABLES.AADD.CAPTION" 282 msgid "Add" 283 msgstr "" 284 285 #: tformtables.amodify.caption 286 msgctxt "TFORMTABLES.AMODIFY.CAPTION" 287 msgid "Modify" 288 msgstr "" 289 290 #: tformtables.aremove.caption 291 msgctxt "TFORMTABLES.AREMOVE.CAPTION" 292 msgid "Remove" 293 msgstr "" 294 295 #: tformtables.ashowfields.caption 296 msgid "Design" 297 msgstr "" 298 299 #: tformtables.ashowrecords.caption 300 msgctxt "TFORMTABLES.ASHOWRECORDS.CAPTION" 301 msgid "Records" 302 msgstr "" 303 304 #: tformtables.caption 305 msgid "Tables" 306 msgstr "" 307 308 #: tformtables.listview1.columns[0].caption 309 msgctxt "TFORMTABLES.LISTVIEW1.COLUMNS[0].CAPTION" 310 msgid "Name" 311 msgstr "" 312 313 #: tformtables.listview1.columns[1].caption 314 msgctxt "TFORMTABLES.LISTVIEW1.COLUMNS[1].CAPTION" 315 msgid "Records" 316 msgstr "" 317 318 #: ucore.stypeboolean 319 msgid "Boolean" 320 msgstr "" 321 322 #: ucore.stypedate 323 msgid "Date" 324 msgstr "" 325 326 #: ucore.stypedatetime 327 msgid "Date and time" 328 msgstr "" 329 330 #: ucore.stypefloat 331 msgid "Float" 332 msgstr "" 333 334 #: ucore.stypeimage 335 msgid "Image" 336 msgstr "" 337 338 #: ucore.stypeinteger 339 msgid "Integer" 340 msgstr "" 341 342 #: ucore.stypemapposition 343 msgid "Map position" 344 msgstr "" 345 346 #: ucore.stypestring 347 msgid "String" 348 msgstr "" 349 350 #: ucore.stypetime 351 msgid "Time" 352 msgstr "" 353 24 354 #: uenginexml.swrongfileformat 25 355 msgid "Wrong file format" 26 356 msgstr "" 27 357 358 #: uformfields.sfieldsnotset 359 msgid "Fields not set" 360 msgstr "" 361 362 #: uformfields.snewfield 363 msgid "New field" 364 msgstr "" 365 366 #: uformfields.stablefields 367 msgid "Table fields - %s" 368 msgstr "" 369 370 #: uformrecords.sremoverecord 371 msgid "Remove record" 372 msgstr "" 373 374 #: uformrecords.sremoverecordconfirm 375 msgid "Do you want to remove record?" 376 msgstr "" 377 378 #: uformrecords.stable 379 msgid "Table" 380 msgstr "" 381 382 #: uformtables.snewtable 383 msgid "New table" 384 msgstr "" 385 386 #: uformtables.sremovetable 387 msgid "Remove table" 388 msgstr "" 389 390 #: uformtables.sremovetableconfirm 391 msgid "Do you want to really remove table '%s' ?" 392 msgstr "" 393 -
trunk/UCore.lfm
r10 r11 1458 1458 object CoolTranslator1: TCoolTranslator 1459 1459 POFilesFolder = 'Languages' 1460 OnTranslate = CoolTranslator1Translate 1460 1461 left = 288 1461 1462 top = 304 -
trunk/UCore.pas
r10 r11 25 25 procedure AExitExecute(Sender: TObject); 26 26 procedure APreferencesExecute(Sender: TObject); 27 procedure CoolTranslator1Translate(Sender: TObject); 27 28 procedure DataModuleCreate(Sender: TObject); 28 29 procedure DataModuleDestroy(Sender: TObject); … … 57 58 {$R *.lfm} 58 59 60 resourcestring 61 STypeString = 'String'; 62 STypeInteger = 'Integer'; 63 STypeFloat = 'Float'; 64 STypeBoolean = 'Boolean'; 65 STypeMapPosition = 'Map position'; 66 STypeImage = 'Image'; 67 STypeDate = 'Date'; 68 STypeTime = 'Time'; 69 STypeDateTime = 'Date and time'; 70 59 71 { TCore } 60 72 … … 69 81 procedure TCore.AExitExecute(Sender: TObject); 70 82 begin 71 Form Tables.Close;83 FormMain.Close; 72 84 end; 73 85 … … 89 101 if FormPreferences.ShowModal = mrOk then begin 90 102 FormPreferences.Save(Preferences); 103 end; 104 end; 105 106 procedure TCore.CoolTranslator1Translate(Sender: TObject); 107 var 108 I: Integer; 109 begin 110 for I := 0 to DataTypes.Count - 1 do begin 111 TDataType(DataTypes[I]).Name := CoolTranslator1.TranslateText(TDataType(DataTypes[I]).Name, TDataType(DataTypes[I]).Name); 91 112 end; 92 113 end; … … 119 140 DataTypes.Clear; 120 141 with DataTypes do begin 121 RegisterType( 'String', ftString, TFieldString);122 RegisterType( 'Integer', ftInteger, TFieldInteger);123 RegisterType( 'Date and time', ftDateTime, TFieldDateTime);124 RegisterType( 'Boolean', ftBoolean, TFieldBoolean);125 RegisterType( 'Float', ftFloat, TFieldFloat);126 RegisterType( 'MapPosition', ftMapPosition, TFieldMapPosition);127 RegisterType( 'Date', ftDate, TFieldDate);128 RegisterType( 'Time', ftTime, TFieldTime);129 RegisterType( 'Image', ftImage, TFieldImage);142 RegisterType(STypeString, ftString, TFieldString); 143 RegisterType(STypeInteger, ftInteger, TFieldInteger); 144 RegisterType(STypeDateTime, ftDateTime, TFieldDateTime); 145 RegisterType(STypeBoolean, ftBoolean, TFieldBoolean); 146 RegisterType(STypeFloat, ftFloat, TFieldFloat); 147 RegisterType(STypeMapPosition, ftMapPosition, TFieldMapPosition); 148 RegisterType(STypeDate, ftDate, TFieldDate); 149 RegisterType(STypeTime, ftTime, TFieldTime); 150 RegisterType(STypeImage, ftImage, TFieldImage); 130 151 end; 131 152 end; … … 135 156 if FDatabase = AValue then Exit; 136 157 if Assigned(FDatabase) then begin 158 FDatabase.Save; 137 159 FDatabase.Clear; 138 160 end;
Note:
See TracChangeset
for help on using the changeset viewer.