diff --git a/src/LessMsi.Gui/MainForm.cs b/src/LessMsi.Gui/MainForm.cs index 1f296bf..ab7f460 100644 --- a/src/LessMsi.Gui/MainForm.cs +++ b/src/LessMsi.Gui/MainForm.cs @@ -691,7 +691,7 @@ private void InitializeComponent() // openMsiDialog // this.openMsiDialog.DefaultExt = "msi"; - this.openMsiDialog.Filter = "msierablefiles|*.msi;*.msp|All Files|*.*"; + this.openMsiDialog.Filter = $"{Strings.MsiFilesFilter}|*.msi;*.msp|{Strings.AllFilesFilter}|*.*"; // // statusBar1 // diff --git a/src/LessMsi.Gui/Resources/Languages/Strings.Designer.cs b/src/LessMsi.Gui/Resources/Languages/Strings.Designer.cs index b9dcac4..0cec0db 100644 --- a/src/LessMsi.Gui/Resources/Languages/Strings.Designer.cs +++ b/src/LessMsi.Gui/Resources/Languages/Strings.Designer.cs @@ -87,6 +87,15 @@ internal static string AddShortcutTextNote { } } + /// + /// Looks up a localized string similar to All Files. + /// + internal static string AllFilesFilter { + get { + return ResourceManager.GetString("AllFilesFilter", resourceCulture); + } + } + /// /// Looks up a localized string similar to The file path is badly formed. /// @@ -285,6 +294,15 @@ internal static string MissingFile { } } + /// + /// Looks up a localized string similar to msierablefiles. + /// + internal static string MsiFilesFilter { + get { + return ResourceManager.GetString("MsiFilesFilter", resourceCulture); + } + } + /// /// Looks up a localized string similar to Name. /// diff --git a/src/LessMsi.Gui/Resources/Languages/Strings.it.resx b/src/LessMsi.Gui/Resources/Languages/Strings.it.resx index 6339fbf..f8788f4 100644 --- a/src/LessMsi.Gui/Resources/Languages/Strings.it.resx +++ b/src/LessMsi.Gui/Resources/Languages/Strings.it.resx @@ -118,7 +118,7 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - Info Programma + Info programma Componente @@ -145,10 +145,10 @@ E&strai - Estrai File + Estrai file - Estrai File Flussi... + Estrai file flussi... File @@ -166,13 +166,13 @@ Preferenze - File Recenti + File recenti - Cerca File + Cerca file - Selziona &Tutto + Selziona &tutto Dimensione @@ -190,13 +190,13 @@ &Tabella - Vista Tabella + Vista tabella Tipo - &Deseleziona Tutto + &Deseleziona tutto Valore @@ -232,19 +232,19 @@ Il percorso del file รจ troppo lungo - Aggiungi menu contestuale Explorer + Aggiungi menu contestuale explorer Aggiungi le voci 'Estrai' e 'Sfoglia' al menu contestuale dei file .msi - Rimuovi menu contestuale Explorer + Rimuovi menu contestuale explorer - Rimuovi se esistono voci menu contestuale Explorer + Rimuovi se esistono voci menu contestuale explorer - File Mancante + File mancante deve essere nella stessa cartella di @@ -276,4 +276,10 @@ &Preferenze + + Tutti i file + + + File eseguibili .msi + \ No newline at end of file diff --git a/src/LessMsi.Gui/Resources/Languages/Strings.resx b/src/LessMsi.Gui/Resources/Languages/Strings.resx index 9606c58..bd0c428 100644 --- a/src/LessMsi.Gui/Resources/Languages/Strings.resx +++ b/src/LessMsi.Gui/Resources/Languages/Strings.resx @@ -126,6 +126,9 @@ Adds 'Extract' & 'Explore' menu items to the right-click context menu of .msi files + + All Files + The file path is badly formed @@ -192,6 +195,9 @@ Missing File + + msierablefiles + Name diff --git a/src/Lessmsi.Tests/GUITests.cs b/src/Lessmsi.Tests/GUITests.cs index ffda299..29fe629 100644 --- a/src/Lessmsi.Tests/GUITests.cs +++ b/src/Lessmsi.Tests/GUITests.cs @@ -48,8 +48,8 @@ private void checkItalianUIStrings() Assert.NotNull(form); // check buttons strings - Assert.Equal("Selziona &Tutto", form.btnSelectAll.Text); - Assert.Equal("&Deseleziona Tutto", form.btnUnselectAll.Text); + Assert.Equal("Selziona &tutto", form.btnSelectAll.Text); + Assert.Equal("&Deseleziona tutto", form.btnUnselectAll.Text); Assert.Equal("E&strai", form.btnExtract.Text); // check strip menu items strings