Let's see if this localizes the menu, then
This commit is contained in:
@@ -6,7 +6,23 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Swarmops.Localization
|
||||
{
|
||||
class LocStrings
|
||||
public static class LocStrings
|
||||
{
|
||||
public static string GetString(LocDomain domain, string stringResource)
|
||||
{
|
||||
switch (domain)
|
||||
{
|
||||
case LocDomain.Menu5:
|
||||
return Menu5.ResourceManager.GetString(stringResource);
|
||||
|
||||
default:
|
||||
throw new NotImplementedException("Unimplemented localization domain: " + domain.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public enum LocString
|
||||
{
|
||||
Unknown = 0
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user