Skip to content

Commit

Permalink
Merge pull request #3150 from alikoli/dev
Browse files Browse the repository at this point in the history
Fix missing translations part 3
  • Loading branch information
sbwalker committed Aug 15, 2023
2 parents 530804c + 128f175 commit 1acbdf8
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Oqtane.Client/Modules/Admin/Themes/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ else
<th>&nbsp;</th>
</Header>
<Row>
<td><ActionLink Action="Edit" Parameters="@($"id=" + context.ThemeId.ToString())" ResourceKey="EditModule" /></td>
<td><ActionLink Action="Edit" Parameters="@($"id=" + context.ThemeId.ToString())" ResourceKey="EditTheme" /></td>
<td>
@if (context.AssemblyName != Constants.ClientId)
{
Expand Down
3 changes: 2 additions & 1 deletion Oqtane.Client/Modules/Controls/ActionDialog.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@namespace Oqtane.Modules.Controls
@using System.Text.Json
@inherits LocalizableComponent
@inject IStringLocalizer<SharedResources> SharedLocalizer

@if (_visible)
{
Expand All @@ -20,7 +21,7 @@
{
<button type="button" class="@Class" @onclick="Confirm">@((MarkupString)_iconSpan) @Text</button>
}
<button type="button" class="btn btn-secondary" @onclick="DisplayModal">@Localize("Cancel")</button>
<button type="button" class="btn btn-secondary" @onclick="DisplayModal">@SharedLocalizer["Cancel"]</button>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion Oqtane.Client/Modules/Controls/RichTextEditor.razor
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="row" style="margin-bottom: 50px;">
<div class="col">
<TabStrip>
<TabPanel Name="Rich" Heading="Rich Text Editor">
<TabPanel Name="Rich" Heading="Rich Text Editor" ResourceKey="RichTextEditor">
@if (_richfilemanager)
{
<FileManager @ref="_fileManager" Filter="@Constants.ImageFiles" />
Expand Down
6 changes: 6 additions & 0 deletions Oqtane.Client/Resources/Modules/Admin/Themes/Index.resx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@
<data name="DeleteTheme.Header" xml:space="preserve">
<value>Delete Theme</value>
</data>
<data name="DeleteTheme.Text" xml:space="preserve">
<value>Delete</value>
</data>
<data name="CreateTheme.Text" xml:space="preserve">
<value>Create Theme</value>
</data>
Expand All @@ -147,6 +150,9 @@
<data name="ViewTheme.Text" xml:space="preserve">
<value>View</value>
</data>
<data name="EditTheme.Text" xml:space="preserve">
<value>Edit</value>
</data>
<data name="Enabled" xml:space="preserve">
<value>Enabled?</value>
</data>
Expand Down
6 changes: 6 additions & 0 deletions Oqtane.Client/Resources/Modules/Admin/UserProfile/Index.resx
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,10 @@
<data name="Profile.Heading" xml:space="preserve">
<value>Profile</value>
</data>
<data name="ViewNotification.Text" xml:space="preserve">
<value>View</value>
</data>
<data name="DeleteNotification.Text" xml:space="preserve">
<value>Delete</value>
</data>
</root>
6 changes: 6 additions & 0 deletions Oqtane.Client/Resources/Modules/Admin/Users/Index.resx
Original file line number Diff line number Diff line change
Expand Up @@ -396,4 +396,10 @@
<data name="ProfileClaimTypes.Text" xml:space="preserve">
<value>User Profile Claims:</value>
</data>
<data name="Username" xml:space="preserve">
<value>User Name</value>
</data>
<data name="Name" xml:space="preserve">
<value>Name</value>
</data>
</root>
14 changes: 13 additions & 1 deletion Oqtane.Client/Resources/Modules/HtmlText/Edit.resx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Expand Down Expand Up @@ -168,4 +168,16 @@
<data name="View.Text" xml:space="preserve">
<value>View</value>
</data>
<data name="Edit.Heading" xml:space="preserve">
<value>Edit</value>
</data>
<data name="Versions.Heading" xml:space="preserve">
<value>Versions</value>
</data>
<data name="HtmlEditor.Heading" xml:space="preserve">
<value>Raw HTML Editor</value>
</data>
<data name="RichTextEditor.Heading" xml:space="preserve">
<value>Rich Text Editor</value>
</data>
</root>
5 changes: 4 additions & 1 deletion Oqtane.Client/Resources/Modules/HtmlText/Index.resx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Expand Down Expand Up @@ -119,6 +119,9 @@
</resheader>
<data name="Edit.Action" xml:space="preserve">
<value>Edit</value>
</data>
<data name="Edit.Text" xml:space="preserve">
<value>Edit</value>
</data>
<data name="Error.Content.Load" xml:space="preserve">
<value>An Error Occurred Loading Content</value>
Expand Down
5 changes: 4 additions & 1 deletion Oqtane.Client/Resources/Themes/Controls/ControlPanel.resx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Expand Down Expand Up @@ -186,4 +186,7 @@
<data name="VisibilityView" xml:space="preserve">
<value>Same As Page</value>
</data>
<data name="Confirm.Page.Delete" xml:space="preserve">
<value>Are You Sure You Want To Delete This Page?</value>
</data>
</root>
2 changes: 1 addition & 1 deletion Oqtane.Client/Themes/Controls/Theme/ControlPanel.razor
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
<button type="button" class="btn-close" aria-label="Close" @onclick="ConfirmDelete"></button>
</div>
<div class="modal-body">
<p>Are You Sure You Want To Delete This Page?</p>
<p>@Localizer["Confirm.Page.Delete"]</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" @onclick="DeletePage">@SharedLocalizer["Delete"]</button>
Expand Down

0 comments on commit 1acbdf8

Please sign in to comment.