Localize alert messages in admin pages

This commit is contained in:
hishamco
2020-12-09 21:12:00 +03:00
parent 3c71282379
commit a29d7b524c
46 changed files with 163 additions and 162 deletions

View File

@ -129,12 +129,12 @@
catch (Exception ex)
{
await logger.LogError(ex, "Error Adding Job {Job} {Error}", job, ex.Message);
AddModuleMessage("Error Adding Job", MessageType.Error);
AddModuleMessage(Localizer["Error Adding Job"], MessageType.Error);
}
}
else
{
AddModuleMessage("You Must Provide The Job Name, Type, Frequency, and Retention", MessageType.Warning);
AddModuleMessage(Localizer["You Must Provide The Job Name, Type, Frequency, and Retention"], MessageType.Warning);
}
}