Skip to content

Commit

Permalink
fix: Amending Italian Translations (#208)
Browse files Browse the repository at this point in the history
* added Italian translation to file filter in the file selecting dialog

* Updated italian translations and tests
  • Loading branch information
mega5800 authored Dec 11, 2024
1 parent 18356d0 commit af0c172
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/LessMsi.Gui/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
//
Expand Down
18 changes: 18 additions & 0 deletions src/LessMsi.Gui/Resources/Languages/Strings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 18 additions & 12 deletions src/LessMsi.Gui/Resources/Languages/Strings.it.resx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="About" xml:space="preserve">
<value>Info Programma</value>
<value>Info programma</value>
</data>
<data name="Component" xml:space="preserve">
<value>Componente</value>
Expand All @@ -145,10 +145,10 @@
<value>E&amp;strai</value>
</data>
<data name="ExtractFiles" xml:space="preserve">
<value>Estrai File</value>
<value>Estrai file</value>
</data>
<data name="ExtractStreamFiles" xml:space="preserve">
<value>Estrai File Flussi...</value>
<value>Estrai file flussi...</value>
</data>
<data name="File" xml:space="preserve">
<value>File</value>
Expand All @@ -166,13 +166,13 @@
<value>Preferenze</value>
</data>
<data name="RecentFiles" xml:space="preserve">
<value>File Recenti</value>
<value>File recenti</value>
</data>
<data name="SearchFile" xml:space="preserve">
<value>Cerca File</value>
<value>Cerca file</value>
</data>
<data name="SelectAll" xml:space="preserve">
<value>Selziona &amp;Tutto</value>
<value>Selziona &amp;tutto</value>
</data>
<data name="Size" xml:space="preserve">
<value>Dimensione</value>
Expand All @@ -190,13 +190,13 @@
<value>&amp;Tabella</value>
</data>
<data name="TableView" xml:space="preserve">
<value>Vista Tabella</value>
<value>Vista tabella</value>
</data>
<data name="Type" xml:space="preserve">
<value>Tipo</value>
</data>
<data name="UnselectAll" xml:space="preserve">
<value>&amp;Deseleziona Tutto</value>
<value>&amp;Deseleziona tutto</value>
</data>
<data name="Value" xml:space="preserve">
<value>Valore</value>
Expand Down Expand Up @@ -232,19 +232,19 @@
<value>Il percorso del file è troppo lungo</value>
</data>
<data name="AddShortcutText" xml:space="preserve">
<value>Aggiungi menu contestuale Explorer</value>
<value>Aggiungi menu contestuale explorer</value>
</data>
<data name="AddShortcutTextNote" xml:space="preserve">
<value>Aggiungi le voci 'Estrai' e 'Sfoglia' al menu contestuale dei file .msi</value>
</data>
<data name="RemoveShortcutText" xml:space="preserve">
<value>Rimuovi menu contestuale Explorer</value>
<value>Rimuovi menu contestuale explorer</value>
</data>
<data name="RemoveShortcutTextNote" xml:space="preserve">
<value>Rimuovi se esistono voci menu contestuale Explorer</value>
<value>Rimuovi se esistono voci menu contestuale explorer</value>
</data>
<data name="MissingFile" xml:space="preserve">
<value>File Mancante</value>
<value>File mancante</value>
</data>
<data name="SameDirMassage" xml:space="preserve">
<value>deve essere nella stessa cartella di</value>
Expand Down Expand Up @@ -276,4 +276,10 @@
<data name="PreferencesMenuLabel" xml:space="preserve">
<value>&amp;Preferenze</value>
</data>
<data name="AllFilesFilter" xml:space="preserve">
<value>Tutti i file</value>
</data>
<data name="MsiFilesFilter" xml:space="preserve">
<value>File eseguibili .msi</value>
</data>
</root>
6 changes: 6 additions & 0 deletions src/LessMsi.Gui/Resources/Languages/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@
<data name="AddShortcutTextNote" xml:space="preserve">
<value>Adds 'Extract' &amp; 'Explore' menu items to the right-click context menu of .msi files</value>
</data>
<data name="AllFilesFilter" xml:space="preserve">
<value>All Files</value>
</data>
<data name="BadlyFormedFilePathError" xml:space="preserve">
<value>The file path is badly formed</value>
</data>
Expand Down Expand Up @@ -192,6 +195,9 @@
<data name="MissingFile" xml:space="preserve">
<value>Missing File</value>
</data>
<data name="MsiFilesFilter" xml:space="preserve">
<value>msierablefiles</value>
</data>
<data name="Name" xml:space="preserve">
<value>Name</value>
</data>
Expand Down
4 changes: 2 additions & 2 deletions src/Lessmsi.Tests/GUITests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af0c172

Please sign in to comment.