mirror of
https://github.com/LorisYounger/VPet.ModMaker.git
synced 2024-08-30 18:22:21 +00:00
更新
This commit is contained in:
parent
9d852bb645
commit
80d0641e62
@ -218,26 +218,28 @@ public class PetModel : ObservableObjectX
|
|||||||
{
|
{
|
||||||
foreach (var cultureName in LocalizeCore.AvailableCultures)
|
foreach (var cultureName in LocalizeCore.AvailableCultures)
|
||||||
{
|
{
|
||||||
|
if (CultureUtils.TryGetCultureInfo(cultureName, out var culture) is false)
|
||||||
|
continue;
|
||||||
if (LocalizeCore.Localizations.TryGetValue(cultureName, out var data) is false)
|
if (LocalizeCore.Localizations.TryGetValue(cultureName, out var data) is false)
|
||||||
continue;
|
continue;
|
||||||
foreach (var line in data)
|
foreach (var line in data)
|
||||||
{
|
{
|
||||||
if (line?.Name == ID)
|
if (line?.Name == ID)
|
||||||
{
|
{
|
||||||
I18nResource.AddCultureData(cultureName, ID, line.Info);
|
I18nResource.AddCultureData(culture, ID, line.Info);
|
||||||
}
|
}
|
||||||
else if (line?.Name == PetNameID)
|
else if (line?.Name == PetNameID)
|
||||||
{
|
{
|
||||||
I18nResource.AddCultureData(cultureName, PetNameID, line.Info);
|
I18nResource.AddCultureData(culture, PetNameID, line.Info);
|
||||||
}
|
}
|
||||||
else if (line?.Name == DescriptionID)
|
else if (line?.Name == DescriptionID)
|
||||||
{
|
{
|
||||||
I18nResource.AddCultureData(cultureName, DescriptionID, line.Info);
|
I18nResource.AddCultureData(culture, DescriptionID, line.Info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
I18nResource.AddCultureData(cultureName, ID, ID);
|
I18nResource.AddCultureData(culture, ID, ID);
|
||||||
I18nResource.AddCultureData(cultureName, PetNameID, PetNameID);
|
I18nResource.AddCultureData(culture, PetNameID, PetNameID);
|
||||||
I18nResource.AddCultureData(cultureName, DescriptionID, DescriptionID);
|
I18nResource.AddCultureData(culture, DescriptionID, DescriptionID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user