Skip to content

Commit

Permalink
Merge pull request #82 from MaiklT/Issue-81
Browse files Browse the repository at this point in the history
Corrected resource file and made error message translatable
  • Loading branch information
valadas authored Feb 13, 2021
2 parents 6feb442 + 91205a8 commit 9242561
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions App_LocalResources/ImportCSV.ascx.resx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<value>Folder</value>
</data>
<data name="plFolder.Help" xml:space="preserve">
<value>Select the folder</value>
<value>Select the folder</value>
</data>
<data name="plFile.Text" xml:space="preserve">
<value>File</value>
Expand All @@ -142,7 +142,7 @@
<value>The module specified does not have any content</value>
</data>
<data name="Error.Text" xml:space="preserve">
<value>An error occurred during the export</value>
<value>An error occurred during the import</value>
</data>
<data name="Validation.Text" xml:space="preserve">
<value>You must specify a folder and file for Import</value>
Expand All @@ -165,4 +165,4 @@
<data name="semicolon.Text" xml:space="preserve">
<value>Semicolon ";"</value>
</data>
</root>
</root>
4 changes: 2 additions & 2 deletions ImportCSV.ascx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ void cmdImport_Click(object sender, EventArgs e)
}
else
{
UI.Skins.Skin.AddModuleMessage(this, "Please specify the file to import",
UI.Skins.Skin.AddModuleMessage(this, Localization.GetString("Validation.Text", LocalResourceFile),
ModuleMessage.ModuleMessageType.RedError);
}
}
Expand Down Expand Up @@ -239,4 +239,4 @@ DataRow FillRow(string[] data, DataRow row, int start)

#endregion
}
}
}

0 comments on commit 9242561

Please sign in to comment.