diff --git a/Library/Pages/CreateStructuredLearningOutcome.razor b/Library/Pages/CreateStructuredLearningOutcome.razor
index a794375..19593d4 100644
--- a/Library/Pages/CreateStructuredLearningOutcome.razor
+++ b/Library/Pages/CreateStructuredLearningOutcome.razor
@@ -1,4 +1,3 @@
-@using Microsoft.Extensions.Localization
@using System.Diagnostics.CodeAnalysis
@using System.Globalization
@using System.Resources
@@ -27,7 +26,6 @@
Englisch/English
- CurrentCulture: @CultureInfo.CurrentCulture.Name ; Culture: @Culture.Name ;
@@ -199,7 +197,7 @@
@@ -212,18 +210,13 @@
private Dictionary
TaxonomyLevelNames { get; set; } = null!;
- [Inject, AllowNull] //can never be null, DI will throw exception on unresolved types
- internal IStringLocalizer Localizer { get; set; }
+ private string IntroText => GetLocalizerString("CreateStructuredLearningOutcome.Intro");
- private string IntroText => Culture.Name == "de-DE" ? "Sie können..." : "You will be able to...";
+ private string WherebyText => GetLocalizerString("CreateStructuredLearningOutcome.Whereby.Text");
- private string WherebyText => Culture.Name == "de-DE" ? "indem Sie..." : "by...";
-
- private string WhatForText => Culture.Name == "de-DE" ? "um..." : "to...";
+ private string WhatForText => GetLocalizerString("CreateStructuredLearningOutcome.WhatFor.Text");
- private static ResourceManager _resourceManager = new ResourceManager("Library.Resources.Pages.CreateStructuredLearningOutcome", typeof(CreateStructuredLearningOutcome).Assembly);
-
- private string GetLocalizerString(string key) => _resourceManager.GetString(key, Culture) ?? "String not found";
+ private static readonly ResourceManager ResourceManager = new("Library.Resources.Pages.CreateStructuredLearningOutcome", typeof(CreateStructuredLearningOutcome).Assembly);
private CultureInfo _culture = null!;
@@ -235,27 +228,11 @@
{
if (Equals(_culture, value)) return;
_culture = value;
- CultureInfo.CurrentCulture = value;
- CultureInfo.CurrentUICulture = value;
- CultureInfo.DefaultThreadCurrentCulture = value;
- CultureInfo.DefaultThreadCurrentUICulture = value;
OnCultureChange();
}
}
-
- private string GetLearningOutcomeExampleImage()
- {
- @switch (CultureInfo.CurrentCulture.Name)
- {
- case "de-DE":
- return "/CustomIcons/Beispiel-Lernziel_AT-de_LO-de.png";
-
- case "en-DE":
- return "/CustomIcons/Beispiel-Lernziel_AT-en_LO-en.png";
- }
-
- return "";
- }
+
+ private string GetLocalizerString(string key) => ResourceManager.GetString(key, Culture) ?? "String not found";
[CascadingParameter, AllowNull] //injected by MudDialog
public MudDialogInstance DialogInstance { get; set; }
diff --git a/Library/Resources/Pages/CreateStructuredLearningOutcome.de.resx b/Library/Resources/Pages/CreateStructuredLearningOutcome.de.resx
index e15574d..6669cdb 100644
--- a/Library/Resources/Pages/CreateStructuredLearningOutcome.de.resx
+++ b/Library/Resources/Pages/CreateStructuredLearningOutcome.de.resx
@@ -132,4 +132,7 @@
Fehler beim Kopieren in die Zwischenablage. Markieren und kopieren Sie alternativ Ihr formuliertes Lernziel/Lernergebnis im Vorschaufenster.
+
+ /CustomIcons/Beispiel-Lernziel_AT-de_LO-de.png
+
\ No newline at end of file
diff --git a/Library/Resources/Pages/CreateStructuredLearningOutcome.en.resx b/Library/Resources/Pages/CreateStructuredLearningOutcome.en.resx
index c1baede..ddefdf4 100644
--- a/Library/Resources/Pages/CreateStructuredLearningOutcome.en.resx
+++ b/Library/Resources/Pages/CreateStructuredLearningOutcome.en.resx
@@ -40,7 +40,7 @@
The formulation of a learning outcome focuses on the description of corresponding abilities, skills or competencies of the intended learning process of the students. These can be assigned to a taxonomy level based on the complexity of the cognitive processes. The definition of a taxonomy level (according to Anderson & Krathwohl) serves to find a suitable verb of visibility in the further processing steps of the learning outcome formulation.
- You are able to...
+ You will be able to...
Verb of visibility*
@@ -132,4 +132,7 @@
Error when copying to the clipboard. Alternatively, select and copy your formulated learning objective/learning outcome in the preview window.
+
+ /CustomIcons/Beispiel-Lernziel_AT-en_LO-en.png
+
\ No newline at end of file