Skip to content

Commit

Permalink
Fixed Audit.cs Localization
Browse files Browse the repository at this point in the history
  • Loading branch information
Casparus J Van Zyl committed Jan 20, 2025
1 parent 4fc1345 commit 53c6dd8
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/apps/blazor/client/Pages/Identity/Users/Audit.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ protected override async Task OnInitializedAsync()
Id = new Guid(state.User.GetUserId()!);
}
}
_subHeader = $"Audit Trail for User {Id}";
_subHeader = $"{_localizer["Audit Trail for User"]} : {Id}";
Context = new(
entityNamePlural: "Trails",
entityNamePlural: _localizer["Trails"],
searchAction: true.ToString(),
fields: new()
{
new(audit => audit.Id,"Id"),
new(audit => audit.Entity, "Entity"),
new(audit => audit.DateTime, "Date", Template: DateFieldTemplate),
new(audit => audit.Operation, "Operation")
new(audit => audit.Id,_localizer["Id"], "Id"),
new(audit => audit.Entity, _localizer["Id"],"Entity"),
new(audit => audit.DateTime, _localizer["Date"],"Date", Template: DateFieldTemplate),
new(audit => audit.Operation,_localizer["Operation"], "Operation")
},
loadDataFunc: async () => _trails = (await ApiClient.GetUserAuditTrailEndpointAsync(Id)).Adapt<List<RelatedAuditTrail>>(),
searchFunc: (searchString, trail) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,33 @@
<data name="Audit Trail" xml:space="preserve">
<value>Ouditspoor</value>
</data>
<data name="Audit Trail for User" xml:space="preserve">
<value>Ouditspoor vir gebruiker</value>
</data>
<data name="Current Values" xml:space="preserve">
<value>Huidige waardes</value>
</data>
<data name="Date" xml:space="preserve">
<value>Datum</value>
</data>
<data name="Details for Audit Trail with Id :" xml:space="preserve">
<value>Besonderhede vir ouditroete met Id:</value>
</data>
<data name="Entity" xml:space="preserve">
<value>Tafel</value>
</data>
<data name="Hide" xml:space="preserve">
<value>Versteek</value>
</data>
<data name="Id" xml:space="preserve">
<value>Id</value>
</data>
<data name="Modified Properties" xml:space="preserve">
<value>Gewysigde Eienskappe</value>
</data>
<data name="Operation" xml:space="preserve">
<value>Operasie</value>
</data>
<data name="Previous Values" xml:space="preserve">
<value>Vorige waardes</value>
</data>
Expand All @@ -144,4 +159,7 @@
<data name="Trail Details" xml:space="preserve">
<value>Oudit detail</value>
</data>
<data name="Trails" xml:space="preserve">
<value>Oudits</value>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,33 @@
<data name="Audit Trail" xml:space="preserve">
<value>Audit Trail</value>
</data>
<data name="Audit Trail for User" xml:space="preserve">
<value>Audit Trail for User</value>
</data>
<data name="Current Values" xml:space="preserve">
<value>Current Values</value>
</data>
<data name="Date" xml:space="preserve">
<value>Date</value>
</data>
<data name="Details for Audit Trail with Id :" xml:space="preserve">
<value>Details for Audit Trail with Id :</value>
</data>
<data name="Entity" xml:space="preserve">
<value>Entity</value>
</data>
<data name="Hide" xml:space="preserve">
<value>Hide</value>
</data>
<data name="Id" xml:space="preserve">
<value>Id</value>
</data>
<data name="Modified Properties" xml:space="preserve">
<value>Modified Properties</value>
</data>
<data name="Operation" xml:space="preserve">
<value>Operation</value>
</data>
<data name="Previous Values" xml:space="preserve">
<value>Previous Values</value>
</data>
Expand All @@ -144,4 +159,7 @@
<data name="Trail Details" xml:space="preserve">
<value>Trail Details</value>
</data>
<data name="Trails" xml:space="preserve">
<value>Trails</value>
</data>
</root>
24 changes: 24 additions & 0 deletions src/apps/blazor/client/Resources/Pages/Identity/Users/Audit.resx
Original file line number Diff line number Diff line change
Expand Up @@ -121,22 +121,42 @@
<value>Audit Trail</value>
<comment>Audit Trail</comment>
</data>
<data name="Audit Trail for User" xml:space="preserve">
<value>Audit Trail for User</value>
<comment>Audit Trail for User</comment>
</data>
<data name="Current Values" xml:space="preserve">
<value>Current Values</value>
<comment>Current Values</comment>
</data>
<data name="Date" xml:space="preserve">
<value>Date</value>
<comment>Date</comment>
</data>
<data name="Details for Audit Trail with Id :" xml:space="preserve">
<value>Details for Audit Trail with Id :</value>
<comment>Details for Audit Trail with Id :</comment>
</data>
<data name="Entity" xml:space="preserve">
<value>Entity</value>
<comment>Entity</comment>
</data>
<data name="Hide" xml:space="preserve">
<value>Hide</value>
<comment>Hide</comment>
</data>
<data name="Id" xml:space="preserve">
<value>Id</value>
<comment>Id</comment>
</data>
<data name="Modified Properties" xml:space="preserve">
<value>Modified Properties</value>
<comment>Modified Properties</comment>
</data>
<data name="Operation" xml:space="preserve">
<value>Operation</value>
<comment>Operation</comment>
</data>
<data name="Previous Values" xml:space="preserve">
<value>Previous Values</value>
<comment>Previous Values</comment>
Expand All @@ -153,4 +173,8 @@
<value>Trail Details</value>
<comment>Trail Details</comment>
</data>
<data name="Trails" xml:space="preserve">
<value>Trails</value>
<comment>Trails</comment>
</data>
</root>

0 comments on commit 53c6dd8

Please sign in to comment.