Modifica traduzioni
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user