-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_lang.py
68 lines (58 loc) · 1.73 KB
/
main_lang.py
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
class TemplateEn:
@staticmethod
def filetype_to_name(filetype):
filetype = str(filetype)
filetype_dict = {
"1": "OST",
"2": "Short Animation",
"3": "Animation",
"4": "Other",
"11": "Main",
"12": "Side",
"13": "Short",
"14": "Event",
"15": "Bond",
"16": "Other"
}
return filetype_dict[filetype]
@staticmethod
def tracktype_to_name(track_type):
track_type = str(track_type)
track_type_dict = {
"0": "OST",
"1": "Short Animation",
"2": "Animation",
"3": "Other",
}
return track_type_dict[track_type]
class TemplateZhCn:
@staticmethod
def filetype_to_name(filetype):
filetype = str(filetype)
filetype_dict = {
"1": "OST",
"2": "短篇动画",
"3": "动画",
"4": "其它",
"11": "主线",
"12": "支线",
"13": "短篇",
"14": "活动",
"15": "羁绊",
"16": "其它"
}
return filetype_dict[filetype]
@staticmethod
def tracktype_to_name(track_type):
track_type = str(track_type)
track_type_dict = {
"0": "OST",
"1": "短篇动画",
"2": "动画",
"3": "其它",
}
return track_type_dict[track_type]
ALL_FUNC_EN = {"filetype_to_name": TemplateEn.filetype_to_name,
"tracktype_to_name": TemplateEn.tracktype_to_name}
ALL_FUNC_ZHCN = {"filetype_to_name": TemplateZhCn.filetype_to_name,
"tracktype_to_name": TemplateZhCn.tracktype_to_name}