Add a Fluent based translation system.
This commit is contained in:
committed by
teinarss
parent
f1a9a5180d
commit
1f01d0b6b1
@@ -31,5 +31,10 @@ namespace OpenRA.Mods.Common.Scripting.Global
|
||||
var c = color.HasValue ? color.Value : Color.White;
|
||||
luaLabel.GetColor = () => c;
|
||||
}
|
||||
|
||||
public string Translate(string text)
|
||||
{
|
||||
return Context.World.Map.Translate(text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user