mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing a few more unlocalized exceptions.
--HG-- branch : dev
This commit is contained in:
@@ -84,7 +84,7 @@ namespace Orchard.Roles.Services {
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new ArgumentException("Permission " + permissionName + " was not found in any of the installed modules.");
|
||||
throw new ArgumentException(T("Permission {0} was not found in any of the installed modules.", permissionName).ToString());
|
||||
}
|
||||
|
||||
private string GetPermissionDescription(string permissionName) {
|
||||
@@ -95,7 +95,7 @@ namespace Orchard.Roles.Services {
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new ArgumentException("Permission " + permissionName + " was not found in any of the installed modules.");
|
||||
throw new ArgumentException(T("Permission {0} was not found in any of the installed modules.", permissionName).ToString());
|
||||
}
|
||||
|
||||
public void DeleteRole(int id) {
|
||||
|
@@ -208,8 +208,12 @@ namespace Orchard.FileSystems.Media {
|
||||
public FileSystemStorageFolder(string path, DirectoryInfo directoryInfo) {
|
||||
_path = path;
|
||||
_directoryInfo = directoryInfo;
|
||||
|
||||
T = NullLocalizer.Instance;
|
||||
}
|
||||
|
||||
public Localizer T { get; set; }
|
||||
|
||||
#region Implementation of IStorageFolder
|
||||
|
||||
public string GetPath() {
|
||||
@@ -232,7 +236,7 @@ namespace Orchard.FileSystems.Media {
|
||||
if (_directoryInfo.Parent != null) {
|
||||
return new FileSystemStorageFolder(Path.GetDirectoryName(_path), _directoryInfo.Parent);
|
||||
}
|
||||
throw new ArgumentException("Directory " + _directoryInfo.Name + " does not have a parent directory");
|
||||
throw new ArgumentException(T("Directory {0} does not have a parent directory", _directoryInfo.Name).ToString());
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
Reference in New Issue
Block a user