mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 18:20:39 +08:00
fix: 找不到语言资源文件
This commit is contained in:
@@ -119,6 +119,11 @@ namespace MaaWpfGui.Helper
|
||||
/// <returns>The string.</returns>
|
||||
public static string GetString(string key, string culture = null)
|
||||
{
|
||||
if (_culture == "pallas")
|
||||
{
|
||||
return GetPallasString();
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(culture))
|
||||
{
|
||||
var dictionary = new ResourceDictionary
|
||||
@@ -131,11 +136,6 @@ namespace MaaWpfGui.Helper
|
||||
}
|
||||
}
|
||||
|
||||
if (_culture == "pallas")
|
||||
{
|
||||
return GetPallasString();
|
||||
}
|
||||
|
||||
var dictList = Application.Current.Resources.MergedDictionaries;
|
||||
for (int i = dictList.Count - 1; i >= 0; --i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user