Fixing a few more unlocalized exceptions.

--HG--
branch : dev
This commit is contained in:
Andre Rodrigues
2010-11-24 15:50:01 -08:00
parent fd4c58d4b4
commit b84a4f74e8
2 changed files with 7 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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