diff --git a/AudioCuesheetEditor/Pages/About.de.resx b/AudioCuesheetEditor/Pages/About.de.resx
new file mode 100644
index 00000000..9a1a11c8
--- /dev/null
+++ b/AudioCuesheetEditor/Pages/About.de.resx
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ Über AudioCuesheetEditor
+
+
+ Spenden Sie für dieses Projekt
+
+
+ Lizenz
+
+
+ Vorschauumgebung
+
+
+ Projekt website
+
+
+ Version
+
+
\ No newline at end of file
diff --git a/AudioCuesheetEditor/Pages/About.razor b/AudioCuesheetEditor/Pages/About.razor
index 1f0cd627..faa6ae4f 100644
--- a/AudioCuesheetEditor/Pages/About.razor
+++ b/AudioCuesheetEditor/Pages/About.razor
@@ -15,44 +15,47 @@ You should have received a copy of the GNU General Public License
along with Foobar. If not, see
.
-->
+@implements IDisposable
@page "/about"
+@layout MainLayoutWithoutMenu
+
@inject HttpClient _httpClient
-@inject ITextLocalizer _localizer
+@inject IStringLocalizer _localizer
+@inject LocalizationService _localizationService
-
-
- @_localizer["About AudioCuesheetEditor"]
- @_localizer["Version"]: @VersionString
- @_localizer["Project url"]: https://www.github.com/NeoCoderMatrix86/AudioCuesheetEditor
- @_localizer["Preview environment"]: https://preview-audiocuesheeteditor.netlify.app/
- @_localizer["Donate for this project"]
-
-
- @_localizer["Licence"]
- @((MarkupString)licence)
-
-
+@_localizer["About AudioCuesheetEditor"]
+@_localizer["Version"]: @VersionString
+@_localizer["Project url"]: https://www.github.com/NeoCoderMatrix86/AudioCuesheetEditor
+@_localizer["Preview environment"]: https://preview-audiocuesheeteditor.netlify.app/
+@_localizer["Donate for this project"]
+
+
+@_localizer["Licence"]
+@if (licence != null)
+{
+ @((MarkupString)licence)
+}
@code {
- [CascadingParameter]
- public MainLayout? mainLayout { get; set; }
+ String? licence;
- String licence = default!;
+ public void Dispose()
+ {
+ _localizationService.LocalizationChanged -= LocalizationService_LocalizationChanged;
+ }
protected override async Task OnInitializedAsync()
{
+ await base.OnInitializedAsync();
+ _localizationService.LocalizationChanged += LocalizationService_LocalizationChanged;
var licenceContent = await _httpClient.GetStringAsync("Licence.txt");
licence = Markdown.ToHtml(licenceContent);
}
- protected override async Task OnParametersSetAsync()
+ void LocalizationService_LocalizationChanged(object? sender, EventArgs args)
{
- await base.OnParametersSetAsync();
- if (mainLayout != null)
- {
- mainLayout.SetDisplayMenuBar(false);
- }
+ StateHasChanged();
}
public String VersionString
diff --git a/AudioCuesheetEditor/Pages/About.resx b/AudioCuesheetEditor/Pages/About.resx
new file mode 100644
index 00000000..6e9142a3
--- /dev/null
+++ b/AudioCuesheetEditor/Pages/About.resx
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ About AudioCuesheetEditor
+
+
+ Donate for this project
+
+
+ Licence
+
+
+ Preview environment
+
+
+ Project url
+
+
+ Version
+
+
\ No newline at end of file