Modifica traduzioni

This commit is contained in:
Annamaria Sassi
2026-08-14 14:44:29 +02:00
parent e3e4ddc4e3
commit 953a90fa62
7 changed files with 90 additions and 35 deletions
+5 -3
View File
@@ -52,7 +52,7 @@ namespace WebWindowComplex.Compo
protected override async Task OnInitializedAsync()
{
Dictionary<string, string> AreaFDict = Vocabulary.Where(x => x.Key.Contains("CWAreaF_")).ToDictionary(x => x.Key, y => y.Value);
AreaFDict = Vocabulary.Where(x => x.Key.Contains("CWAreaF_")).ToDictionary(x => x.Key, y => y.Value);
if (AreaFDict == null || AreaFDict.Count != 4)
{
List<string> tradList = new List<string>() { "CWAreaF_AreaFrame", "CWAreaF_AggSash", "CWAreaF_AggSplit", "CWAreaF_AggInglesina"};
@@ -62,6 +62,8 @@ namespace WebWindowComplex.Compo
#endregion Protected Properties
private Dictionary<string, string> AreaFDict = new();
#region Private Methods
/// <summary>
@@ -99,9 +101,9 @@ namespace WebWindowComplex.Compo
private string Traduci(string lemma)
{
string ans = lemma;
if (Vocabulary != null && Vocabulary.ContainsKey(lemma))
if (AreaFDict != null && AreaFDict.ContainsKey(lemma))
{
ans = Vocabulary.GetValueOrDefault(lemma) ?? "";
ans = AreaFDict.GetValueOrDefault(lemma) ?? "";
}
return ans;
}