From 3ac23d4b3209c94cf5bcb34f74350ef3a069834e Mon Sep 17 00:00:00 2001 From: Daniel Stolt Date: Sun, 20 Jul 2014 01:30:46 +0200 Subject: [PATCH] Unified wording of event summaries. Added missing permission names to role events. --- .../Providers/Roles/RoleEventHandler.cs | 13 +++++++++++-- .../AuditTrailEvent-ContentPart-Created.cshtml | 2 +- .../AuditTrailEvent-ContentPart-FieldAdded.cshtml | 2 +- .../AuditTrailEvent-ContentPart-FieldRemoved.cshtml | 2 +- ...ailEvent-ContentPart-FieldSettingsUpdated.cshtml | 2 +- ...tentPart-PartSettingsUpdated.SummaryAdmin.cshtml | 2 +- ...railEvent-ContentPart-PartSettingsUpdated.cshtml | 2 +- .../AuditTrailEvent-ContentPart-Removed.cshtml | 2 +- .../AuditTrailEvent-ContentType-Created.cshtml | 2 +- ...entType-FieldSettingsUpdated.SummaryAdmin.cshtml | 4 ++-- ...ailEvent-ContentType-FieldSettingsUpdated.cshtml | 4 ++-- .../AuditTrailEvent-ContentType-PartAdded.cshtml | 2 +- .../AuditTrailEvent-ContentType-PartRemoved.cshtml | 2 +- ...tentType-PartSettingsUpdated.SummaryAdmin.cshtml | 2 +- ...railEvent-ContentType-PartSettingsUpdated.cshtml | 2 +- .../AuditTrailEvent-ContentType-Removed.cshtml | 2 +- ...lEvent-ContentType-TypeDisplayNameUpdated.cshtml | 2 +- ...tentType-TypeSettingsUpdated.SummaryAdmin.cshtml | 2 +- ...railEvent-ContentType-TypeSettingsUpdated.cshtml | 2 +- .../Views/AuditTrailEvent-Role-Created.cshtml | 2 +- .../AuditTrailEvent-Role-PermissionAdded.cshtml | 2 +- .../AuditTrailEvent-Role-PermissionRemoved.cshtml | 2 +- .../Views/AuditTrailEvent-Role-Removed.cshtml | 2 +- .../Views/AuditTrailEvent-Role-Renamed.cshtml | 2 +- .../Views/AuditTrailEvent-Role-UserAdded.cshtml | 2 +- .../Views/AuditTrailEvent-Role-UserRemoved.cshtml | 2 +- .../Views/AuditTrailEvent-User-LoginFailed..cshtml | 2 +- .../Views/AuditTrailEvent-User.cshtml | 2 +- 28 files changed, 40 insertions(+), 31 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Providers/Roles/RoleEventHandler.cs b/src/Orchard.Web/Modules/Orchard.AuditTrail/Providers/Roles/RoleEventHandler.cs index eb32cbe05..afd44909b 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Providers/Roles/RoleEventHandler.cs +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Providers/Roles/RoleEventHandler.cs @@ -34,11 +34,11 @@ namespace Orchard.AuditTrail.Providers.Roles { } public void PermissionAdded(PermissionAddedContext context) { - RecordAuditTrailEvent(RoleAuditTrailEventProvider.PermissionAdded, context.Role.Name); + RecordAuditTrailEvent(RoleAuditTrailEventProvider.PermissionAdded, context.Role.Name, context.Permission.Name); } public void PermissionRemoved(PermissionRemovedContext context) { - RecordAuditTrailEvent(RoleAuditTrailEventProvider.PermissionRemoved, context.Role.Name); + RecordAuditTrailEvent(RoleAuditTrailEventProvider.PermissionRemoved, context.Role.Name, context.Permission.Name); } public void UserAdded(UserAddedContext context) { @@ -57,6 +57,15 @@ namespace Orchard.AuditTrail.Providers.Roles { RecordAuditTrailEvent(eventName, roleName, properties: null, eventData: eventData); } + private void RecordAuditTrailEvent(string eventName, string roleName, string permissionName) { + var eventData = new Dictionary { + {"RoleName", roleName}, + {"PermissionName", permissionName} + }; + + RecordAuditTrailEvent(eventName, roleName, properties: null, eventData: eventData); + } + private void RecordAuditTrailEvent(string eventName, string roleName, IUser user) { var properties = new Dictionary { diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-Created.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-Created.cshtml index dedd7c64d..551ba5fa5 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-Created.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-Created.cshtml @@ -5,5 +5,5 @@ }
- @T("Created the {0} content part.", contentPartName) + @T("The content part {0} was created.", contentPartName)
\ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-FieldAdded.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-FieldAdded.cshtml index c9bb76bed..f0171e155 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-FieldAdded.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-FieldAdded.cshtml @@ -8,5 +8,5 @@ }
- @T("Added the {0} content field of type {1} to the {2} content part.", contentFieldName, contentFieldTypeName, contentPartName) + @T("The content field {0} of type {1} was added to the content part {2}.", contentFieldName, contentFieldTypeName, contentPartName)
\ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-FieldRemoved.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-FieldRemoved.cshtml index eed00a730..f439d70da 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-FieldRemoved.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-FieldRemoved.cshtml @@ -6,5 +6,5 @@ }
- @T("Removed the {0} content field from the {1} content part.", contentFieldName, contentPartName) + @T("The content field {0} was removed from the content part {1}.", contentFieldName, contentPartName)
\ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-FieldSettingsUpdated.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-FieldSettingsUpdated.cshtml index 04fe1f0a8..0f55b9fb4 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-FieldSettingsUpdated.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-FieldSettingsUpdated.cshtml @@ -8,5 +8,5 @@ }
- @T("The {0} content field of the {1} content part was renamed from {2} to {3}.", contentFieldName, contentPartName, oldDisplayName, newDisplayName) + @T("The content field {0} of the content part {1} was renamed from {2} to {3}.", contentFieldName, contentPartName, oldDisplayName, newDisplayName)
\ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-PartSettingsUpdated.SummaryAdmin.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-PartSettingsUpdated.SummaryAdmin.cshtml index 8ba2ea59e..41e1cc45f 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-PartSettingsUpdated.SummaryAdmin.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-PartSettingsUpdated.SummaryAdmin.cshtml @@ -14,7 +14,7 @@ var diff = (DiffDictionary)Model.Diff; }
-
@T("Settings for {0} were updated:", contentPartName)
+ @T("Settings for the content part {0} were changed:", contentPartName)
    @foreach (var setting in diff) {
  • diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-PartSettingsUpdated.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-PartSettingsUpdated.cshtml index b6935237e..0baa90249 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-PartSettingsUpdated.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-PartSettingsUpdated.cshtml @@ -14,7 +14,7 @@ var diff = (DiffDictionary)Model.Diff; }
    -

    @T("Settings for {0} were updated:", contentPartName)

    + @T("Settings for the content part {0} were changed:", contentPartName) diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-Removed.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-Removed.cshtml index 167daf607..c1ed2e156 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-Removed.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentPart-Removed.cshtml @@ -5,5 +5,5 @@ }
    - @T("Removed the {0} content part.", contentPartName) + @T("The content part {0} was removed.", contentPartName)
    \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-Created.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-Created.cshtml index 80d4a2ca0..4e60d28d7 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-Created.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-Created.cshtml @@ -6,5 +6,5 @@ }
    - @T("Created the {0} content type.", contentTypeName) + @T("The content type {0} was created.", contentTypeName)
    \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-FieldSettingsUpdated.SummaryAdmin.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-FieldSettingsUpdated.SummaryAdmin.cshtml index 7d6b42398..d9758d01b 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-FieldSettingsUpdated.SummaryAdmin.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-FieldSettingsUpdated.SummaryAdmin.cshtml @@ -15,10 +15,10 @@ var contentFieldName = eventData.Get("ContentFieldName"); var diff = (DiffDictionary)Model.Diff; var isImplicitPart = contentTypeName == contentPartName; - var captionTemplate = isImplicitPart ? "Settings for {0} attached the {1} content type were updated:" : "Settings for {0} attached to {1} of the {2} content type were updated:"; + var captionTemplate = isImplicitPart ? "Settings for the field {0} attached to the {1} content type were updated:" : "Settings for the field {0} attached to content part {1} of the content type {2} were updated:"; }
    -
    @T(captionTemplate, contentFieldName, contentPartName, contentTypeName)
    + @T(captionTemplate, contentFieldName, contentPartName, contentTypeName)
      @foreach (var setting in diff) {
    • diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-FieldSettingsUpdated.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-FieldSettingsUpdated.cshtml index 27bce0b92..5e072adaa 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-FieldSettingsUpdated.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-FieldSettingsUpdated.cshtml @@ -15,10 +15,10 @@ var contentFieldName = eventData.Get("ContentFieldName"); var diff = (DiffDictionary)Model.Diff; var isImplicitPart = contentTypeName == contentPartName; - var captionTemplate = isImplicitPart ? "Settings for {0} attached the {1} content type were updated:" : "Settings for {0} attached to {1} of the {2} content type were updated:"; + var captionTemplate = isImplicitPart ? "Settings for the field {0} attached to the {1} content type were updated:" : "Settings for the field {0} attached to content part {1} of the content type {2} were updated:"; }
      -

      @T(captionTemplate, contentFieldName, contentPartName, contentTypeName)

      + @T(captionTemplate, contentFieldName, contentPartName, contentTypeName)
    diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-PartAdded.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-PartAdded.cshtml index 8bace8ba5..07c5e7872 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-PartAdded.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-PartAdded.cshtml @@ -6,5 +6,5 @@ }
    - @T("Added the {0} content part to the {1} content type.", contentPartName, contentTypeName) + @T("The content part {0} was added to the content type {1}.", contentPartName, contentTypeName)
    \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-PartRemoved.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-PartRemoved.cshtml index 3a0697226..45a087b5a 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-PartRemoved.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-PartRemoved.cshtml @@ -6,5 +6,5 @@ }
    - @T("Removed the {0} content part from the {1} content type.", contentPartName, contentTypeName) + @T("The content part {0} was removed from the content type {1}.", contentPartName, contentTypeName)
    \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-PartSettingsUpdated.SummaryAdmin.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-PartSettingsUpdated.SummaryAdmin.cshtml index 52360ad99..32c15ab6f 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-PartSettingsUpdated.SummaryAdmin.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-PartSettingsUpdated.SummaryAdmin.cshtml @@ -15,7 +15,7 @@ var diff = (DiffDictionary)Model.Diff; }
    -
    @T("Settings for {0} attached to the {1} content type were updated:", contentPartName, contentTypeName)
    + @T("Settings for the content part {0} attached to the content type {1} were changed:", contentPartName, contentTypeName)
      @foreach (var setting in diff) {
    • diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-PartSettingsUpdated.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-PartSettingsUpdated.cshtml index 5cbc92ef0..9e711256a 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-PartSettingsUpdated.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-PartSettingsUpdated.cshtml @@ -15,7 +15,7 @@ var diff = (DiffDictionary)Model.Diff; }
      -

      @T("Settings for {0} attached to the {1} content type were updated:", contentPartName, contentTypeName)

      + @T("Settings for the content part {0} attached to the content type {1} were changed:", contentPartName, contentTypeName)
    diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-Removed.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-Removed.cshtml index bdbbc7083..c786b2f35 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-Removed.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-Removed.cshtml @@ -6,5 +6,5 @@ }
    - @T("Removed the {0} content type.", contentTypeName) + @T("The content type {0} was removed.", contentTypeName)
    \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-TypeDisplayNameUpdated.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-TypeDisplayNameUpdated.cshtml index 06c100842..4905d2a8f 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-TypeDisplayNameUpdated.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-TypeDisplayNameUpdated.cshtml @@ -7,5 +7,5 @@ }
    - @T("The display name for the {0} content type was changed from {1} to {2}.", contentTypeName, oldDisplayName, newDisplayName) + @T("The display name for the content type {0} was changed from {1} to {2}.", contentTypeName, oldDisplayName, newDisplayName)
    \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-TypeSettingsUpdated.SummaryAdmin.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-TypeSettingsUpdated.SummaryAdmin.cshtml index 0bcef5e06..130c67f26 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-TypeSettingsUpdated.SummaryAdmin.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-TypeSettingsUpdated.SummaryAdmin.cshtml @@ -15,7 +15,7 @@ }
    - @T("The following {0} settings were changed:", contentTypeName)
    + @T("Settings for the content type {0} were changed:", contentTypeName)
      @foreach (var setting in diff) {
    • diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-TypeSettingsUpdated.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-TypeSettingsUpdated.cshtml index f773fb1fc..cee4efc95 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-TypeSettingsUpdated.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-ContentType-TypeSettingsUpdated.cshtml @@ -14,7 +14,7 @@ var diff = (DiffDictionary) Model.Diff; }
      -

      @T("The following {0} settings were changed", contentTypeName)

      + @T("Settings for the content type {0} were changed:", contentTypeName)
    diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-Created.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-Created.cshtml index f2abda990..5aa6f09c7 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-Created.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-Created.cshtml @@ -5,5 +5,5 @@ }
    - @T("Created the role {0}.", roleName) + @T("The role {0} was created.", roleName)
    \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-PermissionAdded.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-PermissionAdded.cshtml index acb13d1c4..4cfe482d0 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-PermissionAdded.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-PermissionAdded.cshtml @@ -6,5 +6,5 @@ }
    - @T("Added the permission {0} to the role {1}.", permissionName, roleName) + @T("The permission {0} was added to the role {1}.", permissionName, roleName)
    \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-PermissionRemoved.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-PermissionRemoved.cshtml index bf43ccd8e..7d79e5b9b 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-PermissionRemoved.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-PermissionRemoved.cshtml @@ -6,5 +6,5 @@ }
    - @T("Removed the permission {0} from the role {1}.", permissionName, roleName) + @T("The permission {0} was removed from the role {1}.", permissionName, roleName)
    \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-Removed.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-Removed.cshtml index b3f07fd6d..301738a94 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-Removed.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-Removed.cshtml @@ -5,5 +5,5 @@ }
    - @T("Removed the role {0}.", roleName) + @T("The role {0} was removed.", roleName)
    \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-Renamed.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-Renamed.cshtml index 6f9802335..7004391cd 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-Renamed.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-Renamed.cshtml @@ -6,5 +6,5 @@ }
    - @T("Renamed the role {0} to {1}.", previousRoleName, newRoleName) + @T("The role {0} was renamed to {1}.", previousRoleName, newRoleName)
    \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-UserAdded.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-UserAdded.cshtml index 182c49f47..c826ff9ba 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-UserAdded.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-UserAdded.cshtml @@ -6,5 +6,5 @@ }
    - @T("Added the user {0} to the role {1}.", userName, roleName) + @T("The user {0} was added to the role {1}.", userName, roleName)
    \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-UserRemoved.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-UserRemoved.cshtml index cc5004b83..8f035bb55 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-UserRemoved.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-Role-UserRemoved.cshtml @@ -6,5 +6,5 @@ }
    - @T("Removed the user {0} from the role {1}.", userName, roleName) + @T("The user {0} was removed from the role {1}.", userName, roleName)
    \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-User-LoginFailed..cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-User-LoginFailed..cshtml index d59b373b9..e9ae640f1 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-User-LoginFailed..cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-User-LoginFailed..cshtml @@ -5,5 +5,5 @@ }
    - @T("Attempted user name: {0}", userName) + @T("Attempted user name: {0}", userName)
    \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-User.cshtml b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-User.cshtml index 87e06a634..a33fecea8 100644 --- a/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-User.cshtml +++ b/src/Orchard.Web/Modules/Orchard.AuditTrail/Views/AuditTrailEvent-User.cshtml @@ -5,5 +5,5 @@ }
    - @T("User: {0}", userName) + @T("User name: {0}", userName)
    \ No newline at end of file