1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
private static List<(string key, string value)> LoadTranslations(Mod mod, GameCulture culture){}
//下面是GameCulture
public enum CultureName
{
English = 1,
German = 2,
Italian = 3,
French = 4,
Spanish = 5,
Russian = 6,
Chinese = 7,
Portuguese = 8,
Polish = 9,
Unknown = 9999
}
static GameCulture()
{
_NamedCultures = new Dictionary<CultureName, GameCulture> {
{ CultureName.English, new GameCulture("en-US", 1) },
{ CultureName.German, new GameCulture("de-DE", 2) },
{ CultureName.Italian, new GameCulture("it-IT", 3) },
{ CultureName.French, new GameCulture("fr-FR", 4) },
{ CultureName.Spanish, new GameCulture("es-ES", 5) },
{ CultureName.Russian, new GameCulture("ru-RU", 6) },
{ CultureName.Chinese, new GameCulture("zh-Hans", 7) },
{ CultureName.Portuguese, new GameCulture("pt-BR", 8) },
{ CultureName.Polish, new GameCulture("pl-PL", 9) }
};
DefaultCulture = _NamedCultures[CultureName.English];
}
|