Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrected resource file and made error message translatable #82

Merged
merged 2 commits into from
Feb 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}
}
}