Languages

Multilanguage hinzugefügt muss noch weiter umgebaut werden

Bei fehlerhafte projektnummern, wird die zeile rot dargestellt
This commit is contained in:
Husky
2018-06-30 13:39:12 +02:00
parent 322cd4c991
commit d30876db34
23 changed files with 593 additions and 82 deletions

25
Language/Language.cs Normal file
View File

@@ -0,0 +1,25 @@
using SanShared;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Language
{
public enum BUILTINLANGUAGES
{
GERMAN = 0
}
public static class Language
{
public static ILanguage GetLanguage(BUILTINLANGUAGES lang)
{
switch(lang)
{
case BUILTINLANGUAGES.GERMAN: return new DE();
default: throw new SanShared.Exceptions.LangNotFoundException(string.Format("Language {0} not found",lang));
}
}
}
}