Remove implicit conversion from string to LocalizedString

In most cases, relying on the implicit conversion is a sign
of a missing call to "T".

--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-06-12 13:33:35 -07:00
parent ff5448ac31
commit ad54ffdbb2
21 changed files with 58 additions and 44 deletions

View File

@@ -55,7 +55,7 @@ namespace Orchard.MultiTenancy.Controllers {
return RedirectToAction("Index");
}
catch (Exception exception) {
Services.Notifier.Error(T("Creating Tenant failed: ") + exception.Message);
Services.Notifier.Error(T("Creating Tenant failed: {0}", exception.Message));
return View(viewModel);
}
}
@@ -103,7 +103,7 @@ namespace Orchard.MultiTenancy.Controllers {
return RedirectToAction("Index");
}
catch (Exception exception) {
Services.Notifier.Error(T("Failed to edit tenant: ") + exception.Message);
Services.Notifier.Error(T("Failed to edit tenant: {0} ", exception.Message));
return View(viewModel);
}
}