mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 09:28:21 +02:00
IDE, Install/Uninstall Packages dialog: unified file type lists in save/load dialogs, made them translatable
This commit is contained in:
parent
dfb090ce73
commit
41a671281e
@ -1604,6 +1604,7 @@ resourcestring
|
||||
dlgFilterImagesPng = 'PNG images';
|
||||
dlgFilterImagesBitmap = 'Bitmap images';
|
||||
dlgFilterImagesPixmap = 'Pixmap images';
|
||||
dlgFilterPackageListFiles = 'Package list files';
|
||||
|
||||
// editor options
|
||||
dlgEdMisc = 'Miscellaneous';
|
||||
|
@ -309,7 +309,7 @@ begin
|
||||
InputHistories.ApplyFileDialogSettings(SaveDialog);
|
||||
SaveDialog.InitialDir:=GetPrimaryConfigPath;
|
||||
SaveDialog.Title:=lisExportPackageListXml;
|
||||
SaveDialog.Filter:='XML-files|*.xml|Plain text|*.txt|All files|*.*';
|
||||
SaveDialog.Filter:=dlgFilterPackageListFiles+'|*.xml;*.txt|'+dlgFilterAll+'|*.*';
|
||||
SaveDialog.Options:=SaveDialog.Options+[ofPathMustExist];
|
||||
if SaveDialog.Execute then begin
|
||||
AFilename:=CleanAndExpandFilename(SaveDialog.Filename);
|
||||
@ -338,7 +338,7 @@ begin
|
||||
InputHistories.ApplyFileDialogSettings(OpenDialog);
|
||||
OpenDialog.InitialDir:=GetPrimaryConfigPath;
|
||||
OpenDialog.Title:=lisImportPackageListXml;
|
||||
OpenDialog.Filter:='Package list files|*.xml;*.txt|All files|*.*';
|
||||
OpenDialog.Filter:=dlgFilterPackageListFiles+'|*.xml;*.txt|'+dlgFilterAll+'|*.*';
|
||||
OpenDialog.Options:=OpenDialog.Options+[ofPathMustExist,ofFileMustExist];
|
||||
if OpenDialog.Execute then begin
|
||||
AFilename:=CleanAndExpandFilename(OpenDialog.Filename);
|
||||
|
Loading…
Reference in New Issue
Block a user