修改UI
This commit is contained in:
@@ -37,18 +37,19 @@ namespace NBC
|
||||
{
|
||||
if(string.IsNullOrEmpty(key)) return;
|
||||
if (Text == null) return;
|
||||
child.lang = key;
|
||||
// child.lang = key;
|
||||
|
||||
|
||||
var value = Text.Get(key);
|
||||
|
||||
if (args != null && args.Length > 0)
|
||||
{
|
||||
value = string.Format(value, args);
|
||||
child.langArgs = args;
|
||||
// child.langArgs = args;
|
||||
}
|
||||
else
|
||||
{
|
||||
child.langArgs = null;
|
||||
// child.langArgs = null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace NBC
|
||||
public string Name;
|
||||
public string RelativePath;
|
||||
}
|
||||
|
||||
|
||||
public class LanguageConfig
|
||||
{
|
||||
public string Key;
|
||||
|
||||
Reference in New Issue
Block a user