comparison src/gui/translate/anime.cc @ 279:657fda1b9cac

*: clean up enums
author Paper <paper@paper.us.eu.org>
date Fri, 19 Apr 2024 13:24:06 -0400
parents 862d0d8619f6
children 53e3c015a973
comparison
equal deleted inserted replaced
274:f6a756c19bfb 279:657fda1b9cac
8 8
9 namespace Translate { 9 namespace Translate {
10 10
11 std::string ToString(const Anime::ListStatus status) { 11 std::string ToString(const Anime::ListStatus status) {
12 switch (status) { 12 switch (status) {
13 case Anime::ListStatus::CURRENT: return "Currently watching"; 13 case Anime::ListStatus::Current: return "Currently watching";
14 case Anime::ListStatus::PLANNING: return "Plan to watch"; 14 case Anime::ListStatus::Planning: return "Plan to watch";
15 case Anime::ListStatus::COMPLETED: return "Completed"; 15 case Anime::ListStatus::Completed: return "Completed";
16 case Anime::ListStatus::DROPPED: return "Dropped"; 16 case Anime::ListStatus::Dropped: return "Dropped";
17 case Anime::ListStatus::PAUSED: return "On hold"; 17 case Anime::ListStatus::Paused: return "On hold";
18 default: 18 default:
19 case Anime::ListStatus::NOT_IN_LIST: return "Not in list"; 19 case Anime::ListStatus::NotInList: return "Not in list";
20 } 20 }
21 } 21 }
22 22
23 std::string ToString(const Anime::SeriesFormat format) { 23 std::string ToString(const Anime::SeriesFormat format) {
24 switch (format) { 24 switch (format) {
25 case Anime::SeriesFormat::TV: return "TV"; 25 case Anime::SeriesFormat::Tv: return "TV";
26 case Anime::SeriesFormat::TV_SHORT: return "TV short"; 26 case Anime::SeriesFormat::TvShort: return "TV short";
27 case Anime::SeriesFormat::OVA: return "OVA"; 27 case Anime::SeriesFormat::Ova: return "OVA";
28 case Anime::SeriesFormat::MOVIE: return "Movie"; 28 case Anime::SeriesFormat::Movie: return "Movie";
29 case Anime::SeriesFormat::SPECIAL: return "Special"; 29 case Anime::SeriesFormat::Special: return "Special";
30 case Anime::SeriesFormat::ONA: return "ONA"; 30 case Anime::SeriesFormat::Ona: return "ONA";
31 case Anime::SeriesFormat::MUSIC: return "Music"; 31 case Anime::SeriesFormat::Music: return "Music";
32 default: 32 default:
33 case Anime::SeriesFormat::UNKNOWN: return "Unknown"; 33 case Anime::SeriesFormat::Unknown: return "Unknown";
34 } 34 }
35 } 35 }
36 36
37 std::string ToString(const Anime::SeriesSeason season) { 37 std::string ToString(const Anime::SeriesSeason season) {
38 switch (season) { 38 switch (season) {
39 case Anime::SeriesSeason::WINTER: return "Winter"; 39 case Anime::SeriesSeason::Winter: return "Winter";
40 case Anime::SeriesSeason::SUMMER: return "Summer"; 40 case Anime::SeriesSeason::Summer: return "Summer";
41 case Anime::SeriesSeason::FALL: return "Fall"; 41 case Anime::SeriesSeason::Fall: return "Fall";
42 case Anime::SeriesSeason::SPRING: return "Spring"; 42 case Anime::SeriesSeason::Spring: return "Spring";
43 default: 43 default:
44 case Anime::SeriesSeason::UNKNOWN: return "Unknown"; 44 case Anime::SeriesSeason::Unknown: return "Unknown";
45 } 45 }
46 } 46 }
47 47
48 std::string ToString(const Anime::SeriesStatus status) { 48 std::string ToString(const Anime::SeriesStatus status) {
49 switch (status) { 49 switch (status) {
50 case Anime::SeriesStatus::RELEASING: return "Currently airing"; 50 case Anime::SeriesStatus::Releasing: return "Currently airing";
51 case Anime::SeriesStatus::FINISHED: return "Finished airing"; 51 case Anime::SeriesStatus::Finished: return "Finished airing";
52 case Anime::SeriesStatus::NOT_YET_RELEASED: return "Not yet aired"; 52 case Anime::SeriesStatus::NotYetReleased: return "Not yet aired";
53 case Anime::SeriesStatus::CANCELLED: return "Cancelled"; 53 case Anime::SeriesStatus::Cancelled: return "Cancelled";
54 case Anime::SeriesStatus::HIATUS: return "On hiatus"; 54 case Anime::SeriesStatus::Hiatus: return "On hiatus";
55 default: 55 default:
56 case Anime::SeriesStatus::UNKNOWN: return "Unknown"; 56 case Anime::SeriesStatus::Unknown: return "Unknown";
57 } 57 }
58 } 58 }
59 59
60 std::string ToString(const Anime::Services service) { 60 std::string ToString(const Anime::Service service) {
61 switch (service) { 61 switch (service) {
62 case Anime::Services::ANILIST: return "AniList"; 62 case Anime::Service::AniList: return "AniList";
63 default: 63 default:
64 case Anime::Services::NONE: return "None"; 64 case Anime::Service::None: return "None";
65 } 65 }
66 } 66 }
67 67
68 std::string ToString(const Anime::TitleLanguage language) { 68 std::string ToString(const Anime::TitleLanguage language) {
69 switch (language) { 69 switch (language) {
70 case Anime::TitleLanguage::NATIVE: return "Native"; 70 case Anime::TitleLanguage::Native: return "Native";
71 case Anime::TitleLanguage::ENGLISH: return "English"; 71 case Anime::TitleLanguage::English: return "English";
72 default: 72 default:
73 case Anime::TitleLanguage::ROMAJI: return "Romaji"; 73 case Anime::TitleLanguage::Romaji: return "Romaji";
74 } 74 }
75 } 75 }
76 76
77 std::string ToString(const Anime::ScoreFormat format) { 77 std::string ToString(const Anime::ScoreFormat format) {
78 switch (format) { 78 switch (format) {
79 case Anime::ScoreFormat::POINT_3: return "POINT_3"; 79 case Anime::ScoreFormat::Point3: return "3-point";
80 case Anime::ScoreFormat::POINT_5: return "POINT_5"; 80 case Anime::ScoreFormat::Point5: return "5-point";
81 case Anime::ScoreFormat::POINT_10: return "POINT_10"; 81 case Anime::ScoreFormat::Point10: return "10-point";
82 case Anime::ScoreFormat::POINT_10_DECIMAL: return "POINT_10_DECIMAL"; 82 case Anime::ScoreFormat::Point10Decimal: return "10-point Decimal";
83 default: 83 default:
84 case Anime::ScoreFormat::POINT_100: return "POINT_100"; 84 case Anime::ScoreFormat::Point100: return "100-point";
85 } 85 }
86 } 86 }
87 87
88 Anime::ListStatus ToListStatus(const std::string& str) { 88 Anime::ListStatus ToListStatus(const std::string& str) {
89 static const std::unordered_map<std::string, Anime::ListStatus> map = { 89 static const std::unordered_map<std::string, Anime::ListStatus> map = {
90 {"Currently watching", Anime::ListStatus::CURRENT }, 90 {"Currently watching", Anime::ListStatus::Current },
91 {"Plan to watch", Anime::ListStatus::PLANNING }, 91 {"Plan to watch", Anime::ListStatus::Planning },
92 {"Completed", Anime::ListStatus::COMPLETED}, 92 {"Completed", Anime::ListStatus::Completed},
93 {"Dropped", Anime::ListStatus::DROPPED }, 93 {"Dropped", Anime::ListStatus::Dropped },
94 {"On hold", Anime::ListStatus::PAUSED } 94 {"On hold", Anime::ListStatus::Paused }
95 }; 95 };
96 96
97 if (map.find(str) == map.end()) 97 if (map.find(str) == map.end())
98 return Anime::ListStatus::NOT_IN_LIST; 98 return Anime::ListStatus::NotInList;
99 return map.at(str); 99 return map.at(str);
100 } 100 }
101 101
102 Anime::SeriesStatus ToSeriesStatus(const std::string& str) { 102 Anime::SeriesStatus ToSeriesStatus(const std::string& str) {
103 static const std::unordered_map<std::string, Anime::SeriesStatus> map = { 103 static const std::unordered_map<std::string, Anime::SeriesStatus> map = {
104 {"Currently airing", Anime::SeriesStatus::RELEASING }, 104 {"Currently airing", Anime::SeriesStatus::Releasing },
105 {"Finished airing", Anime::SeriesStatus::FINISHED }, 105 {"Finished airing", Anime::SeriesStatus::Finished },
106 {"Not yet aired", Anime::SeriesStatus::NOT_YET_RELEASED}, 106 {"Not yet aired", Anime::SeriesStatus::NotYetReleased},
107 {"Cancelled", Anime::SeriesStatus::CANCELLED }, 107 {"Cancelled", Anime::SeriesStatus::Cancelled },
108 {"On hiatus", Anime::SeriesStatus::HIATUS } 108 {"On hiatus", Anime::SeriesStatus::Hiatus }
109 }; 109 };
110 110
111 if (map.find(str) == map.end()) 111 if (map.find(str) == map.end())
112 return Anime::SeriesStatus::UNKNOWN; 112 return Anime::SeriesStatus::Unknown;
113 return map.at(str); 113 return map.at(str);
114 } 114 }
115 115
116 Anime::SeriesSeason ToSeriesSeason(const std::string& str) { 116 Anime::SeriesSeason ToSeriesSeason(const std::string& str) {
117 static const std::unordered_map<std::string, Anime::SeriesSeason> map = { 117 static const std::unordered_map<std::string, Anime::SeriesSeason> map = {
118 {"Winter", Anime::SeriesSeason::WINTER}, 118 {"Winter", Anime::SeriesSeason::Winter},
119 {"Summer", Anime::SeriesSeason::SUMMER}, 119 {"Summer", Anime::SeriesSeason::Summer},
120 {"Fall", Anime::SeriesSeason::FALL }, 120 {"Fall", Anime::SeriesSeason::Fall },
121 {"Spring", Anime::SeriesSeason::SPRING} 121 {"Spring", Anime::SeriesSeason::Spring}
122 }; 122 };
123 123
124 if (map.find(str) == map.end()) 124 if (map.find(str) == map.end())
125 return Anime::SeriesSeason::UNKNOWN; 125 return Anime::SeriesSeason::Unknown;
126 return map.at(str); 126 return map.at(str);
127 } 127 }
128 128
129 Anime::SeriesFormat ToSeriesFormat(const std::string& str) { 129 Anime::SeriesFormat ToSeriesFormat(const std::string& str) {
130 static const std::unordered_map<std::string, Anime::SeriesFormat> map = { 130 static const std::unordered_map<std::string, Anime::SeriesFormat> map = {
131 {"TV", Anime::SeriesFormat::TV }, 131 {"TV", Anime::SeriesFormat::Tv },
132 {"TV short", Anime::SeriesFormat::TV_SHORT}, 132 {"TV short", Anime::SeriesFormat::TvShort},
133 {"OVA", Anime::SeriesFormat::OVA }, 133 {"OVA", Anime::SeriesFormat::Ova },
134 {"Movie", Anime::SeriesFormat::MOVIE }, 134 {"Movie", Anime::SeriesFormat::Movie },
135 {"Special", Anime::SeriesFormat::SPECIAL }, 135 {"Special", Anime::SeriesFormat::Special },
136 {"ONA", Anime::SeriesFormat::ONA }, 136 {"ONA", Anime::SeriesFormat::Ona },
137 {"Music", Anime::SeriesFormat::MUSIC } 137 {"Music", Anime::SeriesFormat::Music }
138 }; 138 };
139 139
140 if (map.find(str) == map.end()) 140 if (map.find(str) == map.end())
141 return Anime::SeriesFormat::UNKNOWN; 141 return Anime::SeriesFormat::Unknown;
142 return map.at(str); 142 return map.at(str);
143 } 143 }
144 144
145 Anime::Services ToService(const std::string& str) { 145 Anime::Service ToService(const std::string& str) {
146 static const std::unordered_map<std::string, Anime::Services> map = { 146 static const std::unordered_map<std::string, Anime::Service> map = {
147 {"AniList", Anime::Services::ANILIST} 147 {"AniList", Anime::Service::AniList}
148 }; 148 };
149 149
150 if (map.find(str) == map.end()) 150 if (map.find(str) == map.end())
151 return Anime::Services::NONE; 151 return Anime::Service::None;
152 return map.at(str); 152 return map.at(str);
153 } 153 }
154 154
155 Anime::TitleLanguage ToLanguage(const std::string& str) { 155 Anime::TitleLanguage ToLanguage(const std::string& str) {
156 static const std::unordered_map<std::string, Anime::TitleLanguage> map = { 156 static const std::unordered_map<std::string, Anime::TitleLanguage> map = {
157 {"Romaji", Anime::TitleLanguage::ROMAJI }, 157 {"Romaji", Anime::TitleLanguage::Romaji },
158 {"Native", Anime::TitleLanguage::NATIVE }, 158 {"Native", Anime::TitleLanguage::Native },
159 {"English", Anime::TitleLanguage::ENGLISH} 159 {"English", Anime::TitleLanguage::English}
160 }; 160 };
161 161
162 if (map.find(str) == map.end()) 162 if (map.find(str) == map.end())
163 return Anime::TitleLanguage::ROMAJI; 163 return Anime::TitleLanguage::Romaji;
164 return map.at(str); 164 return map.at(str);
165 } 165 }
166 166
167 Anime::ScoreFormat ToScoreFormat(const std::string& str) { 167 Anime::ScoreFormat ToScoreFormat(const std::string& str) {
168 static const std::unordered_map<std::string, Anime::ScoreFormat> map = { 168 static const std::unordered_map<std::string, Anime::ScoreFormat> map = {
169 {"POINT_3", Anime::ScoreFormat::POINT_3 }, 169 {"3-point", Anime::ScoreFormat::Point3},
170 {"POINT_5", Anime::ScoreFormat::POINT_5 }, 170 {"5-point", Anime::ScoreFormat::Point5},
171 {"POINT_10", Anime::ScoreFormat::POINT_10 }, 171 {"10-point", Anime::ScoreFormat::Point10 },
172 {"POINT_10_DECIMAL", Anime::ScoreFormat::POINT_10_DECIMAL}, 172 {"10-point Decimal", Anime::ScoreFormat::Point10Decimal},
173 {"POINT_100", Anime::ScoreFormat::POINT_100 } 173 {"100-point", Anime::ScoreFormat::Point100 },
174 }; 174 /* old values, provided for compatibility */
175 175 {"POINT_3", Anime::ScoreFormat::Point3 },
176 if (map.find(str) == map.end()) 176 {"POINT_5", Anime::ScoreFormat::Point5 },
177 return Anime::ScoreFormat::POINT_100; 177 {"POINT_10", Anime::ScoreFormat::Point10 },
178 {"POINT_10_DECIMAL", Anime::ScoreFormat::Point10Decimal},
179 {"POINT_100", Anime::ScoreFormat::Point100 }
180 };
181
182 if (map.find(str) == map.end())
183 return Anime::ScoreFormat::Point100;
178 return map.at(str); 184 return map.at(str);
179 } 185 }
180 186
181 /* Localized versions of ToString() functions. Meant for display to the user. */ 187 /* Localized versions of ToString() functions. Meant for display to the user. */
182 188
183 std::string ToLocalString(const Anime::ListStatus status) { 189 std::string ToLocalString(const Anime::ListStatus status) {
184 switch (status) { 190 switch (status) {
185 case Anime::ListStatus::CURRENT: return Strings::ToUtf8String(QCoreApplication::tr("Currently watching")); 191 case Anime::ListStatus::Current: return Strings::ToUtf8String(QCoreApplication::tr("Currently watching"));
186 case Anime::ListStatus::PLANNING: return Strings::ToUtf8String(QCoreApplication::tr("Plan to watch")); 192 case Anime::ListStatus::Planning: return Strings::ToUtf8String(QCoreApplication::tr("Plan to watch"));
187 case Anime::ListStatus::COMPLETED: return Strings::ToUtf8String(QCoreApplication::tr("Completed")); 193 case Anime::ListStatus::Completed: return Strings::ToUtf8String(QCoreApplication::tr("Completed"));
188 case Anime::ListStatus::DROPPED: return Strings::ToUtf8String(QCoreApplication::tr("Dropped")); 194 case Anime::ListStatus::Dropped: return Strings::ToUtf8String(QCoreApplication::tr("Dropped"));
189 case Anime::ListStatus::PAUSED: return Strings::ToUtf8String(QCoreApplication::tr("On hold")); 195 case Anime::ListStatus::Paused: return Strings::ToUtf8String(QCoreApplication::tr("On hold"));
190 default: 196 default:
191 case Anime::ListStatus::NOT_IN_LIST: return Strings::ToUtf8String(QCoreApplication::tr("Not in list")); 197 case Anime::ListStatus::NotInList: return Strings::ToUtf8String(QCoreApplication::tr("Not in list"));
192 } 198 }
193 } 199 }
194 200
195 std::string ToLocalString(const Anime::SeriesFormat format) { 201 std::string ToLocalString(const Anime::SeriesFormat format) {
196 switch (format) { 202 switch (format) {
197 case Anime::SeriesFormat::TV: return Strings::ToUtf8String(QCoreApplication::tr("TV")); 203 case Anime::SeriesFormat::Tv: return Strings::ToUtf8String(QCoreApplication::tr("TV"));
198 case Anime::SeriesFormat::TV_SHORT: return Strings::ToUtf8String(QCoreApplication::tr("TV short")); 204 case Anime::SeriesFormat::TvShort: return Strings::ToUtf8String(QCoreApplication::tr("TV short"));
199 case Anime::SeriesFormat::OVA: return Strings::ToUtf8String(QCoreApplication::tr("OVA")); 205 case Anime::SeriesFormat::Ova: return Strings::ToUtf8String(QCoreApplication::tr("OVA"));
200 case Anime::SeriesFormat::MOVIE: return Strings::ToUtf8String(QCoreApplication::tr("Movie")); 206 case Anime::SeriesFormat::Movie: return Strings::ToUtf8String(QCoreApplication::tr("Movie"));
201 case Anime::SeriesFormat::SPECIAL: return Strings::ToUtf8String(QCoreApplication::tr("Special")); 207 case Anime::SeriesFormat::Special: return Strings::ToUtf8String(QCoreApplication::tr("Special"));
202 case Anime::SeriesFormat::ONA: return Strings::ToUtf8String(QCoreApplication::tr("ONA")); 208 case Anime::SeriesFormat::Ona: return Strings::ToUtf8String(QCoreApplication::tr("ONA"));
203 case Anime::SeriesFormat::MUSIC: return Strings::ToUtf8String(QCoreApplication::tr("Music")); 209 case Anime::SeriesFormat::Music: return Strings::ToUtf8String(QCoreApplication::tr("Music"));
204 default: 210 default:
205 case Anime::SeriesFormat::UNKNOWN: return Strings::ToUtf8String(QCoreApplication::tr("Unknown")); 211 case Anime::SeriesFormat::Unknown: return Strings::ToUtf8String(QCoreApplication::tr("Unknown"));
206 } 212 }
207 } 213 }
208 214
209 std::string ToLocalString(const Anime::SeriesSeason season) { 215 std::string ToLocalString(const Anime::SeriesSeason season) {
210 switch (season) { 216 switch (season) {
211 case Anime::SeriesSeason::WINTER: return Strings::ToUtf8String(QCoreApplication::tr("Winter")); 217 case Anime::SeriesSeason::Winter: return Strings::ToUtf8String(QCoreApplication::tr("Winter"));
212 case Anime::SeriesSeason::SUMMER: return Strings::ToUtf8String(QCoreApplication::tr("Summer")); 218 case Anime::SeriesSeason::Summer: return Strings::ToUtf8String(QCoreApplication::tr("Summer"));
213 case Anime::SeriesSeason::FALL: return Strings::ToUtf8String(QCoreApplication::tr("Fall")); 219 case Anime::SeriesSeason::Fall: return Strings::ToUtf8String(QCoreApplication::tr("Fall"));
214 case Anime::SeriesSeason::SPRING: return Strings::ToUtf8String(QCoreApplication::tr("Spring")); 220 case Anime::SeriesSeason::Spring: return Strings::ToUtf8String(QCoreApplication::tr("Spring"));
215 default: 221 default:
216 case Anime::SeriesSeason::UNKNOWN: return Strings::ToUtf8String(QCoreApplication::tr("Unknown")); 222 case Anime::SeriesSeason::Unknown: return Strings::ToUtf8String(QCoreApplication::tr("Unknown"));
217 } 223 }
218 } 224 }
219 225
220 std::string ToLocalString(const Anime::SeriesStatus status) { 226 std::string ToLocalString(const Anime::SeriesStatus status) {
221 switch (status) { 227 switch (status) {
222 case Anime::SeriesStatus::RELEASING: return Strings::ToUtf8String(QCoreApplication::tr("Currently airing")); 228 case Anime::SeriesStatus::Releasing: return Strings::ToUtf8String(QCoreApplication::tr("Currently airing"));
223 case Anime::SeriesStatus::FINISHED: return Strings::ToUtf8String(QCoreApplication::tr("Finished airing")); 229 case Anime::SeriesStatus::Finished: return Strings::ToUtf8String(QCoreApplication::tr("Finished airing"));
224 case Anime::SeriesStatus::NOT_YET_RELEASED: return Strings::ToUtf8String(QCoreApplication::tr("Not yet aired")); 230 case Anime::SeriesStatus::NotYetReleased: return Strings::ToUtf8String(QCoreApplication::tr("Not yet aired"));
225 case Anime::SeriesStatus::CANCELLED: return Strings::ToUtf8String(QCoreApplication::tr("Cancelled")); 231 case Anime::SeriesStatus::Cancelled: return Strings::ToUtf8String(QCoreApplication::tr("Cancelled"));
226 case Anime::SeriesStatus::HIATUS: return Strings::ToUtf8String(QCoreApplication::tr("On hiatus")); 232 case Anime::SeriesStatus::Hiatus: return Strings::ToUtf8String(QCoreApplication::tr("On hiatus"));
227 default: 233 default:
228 case Anime::SeriesStatus::UNKNOWN: return Strings::ToUtf8String(QCoreApplication::tr("Unknown")); 234 case Anime::SeriesStatus::Unknown: return Strings::ToUtf8String(QCoreApplication::tr("Unknown"));
229 } 235 }
230 } 236 }
231 237
232 std::string ToLocalString(const Anime::Services service) { 238 std::string ToLocalString(const Anime::Service service) {
233 switch (service) { 239 switch (service) {
234 case Anime::Services::ANILIST: return Strings::ToUtf8String(QCoreApplication::tr("AniList")); 240 case Anime::Service::AniList: return Strings::ToUtf8String(QCoreApplication::tr("AniList"));
235 default: 241 default:
236 case Anime::Services::NONE: return Strings::ToUtf8String(QCoreApplication::tr("None")); 242 case Anime::Service::None: return Strings::ToUtf8String(QCoreApplication::tr("None"));
237 } 243 }
238 } 244 }
239 245
240 std::string ToLocalString(const Anime::TitleLanguage language) { 246 std::string ToLocalString(const Anime::TitleLanguage language) {
241 switch (language) { 247 switch (language) {
242 case Anime::TitleLanguage::NATIVE: return Strings::ToUtf8String(QCoreApplication::tr("Native")); 248 case Anime::TitleLanguage::Native: return Strings::ToUtf8String(QCoreApplication::tr("Native"));
243 case Anime::TitleLanguage::ENGLISH: return Strings::ToUtf8String(QCoreApplication::tr("English")); 249 case Anime::TitleLanguage::English: return Strings::ToUtf8String(QCoreApplication::tr("English"));
244 default: 250 default:
245 case Anime::TitleLanguage::ROMAJI: return Strings::ToUtf8String(QCoreApplication::tr("Romaji")); 251 case Anime::TitleLanguage::Romaji: return Strings::ToUtf8String(QCoreApplication::tr("Romaji"));
246 } 252 }
247 } 253 }
248 254
249 std::string ToLocalString(const Anime::ScoreFormat format) { 255 std::string ToLocalString(const Anime::ScoreFormat format) {
250 switch (format) { 256 switch (format) {
251 case Anime::ScoreFormat::POINT_3: return Strings::ToUtf8String(QCoreApplication::tr("3-point")); 257 case Anime::ScoreFormat::Point3: return Strings::ToUtf8String(QCoreApplication::tr("3-point"));
252 case Anime::ScoreFormat::POINT_5: return Strings::ToUtf8String(QCoreApplication::tr("5-point")); 258 case Anime::ScoreFormat::Point5: return Strings::ToUtf8String(QCoreApplication::tr("5-point"));
253 case Anime::ScoreFormat::POINT_10: return Strings::ToUtf8String(QCoreApplication::tr("10-point")); 259 case Anime::ScoreFormat::Point10: return Strings::ToUtf8String(QCoreApplication::tr("10-point"));
254 case Anime::ScoreFormat::POINT_10_DECIMAL: 260 case Anime::ScoreFormat::Point10Decimal:
255 return Strings::ToUtf8String(QCoreApplication::tr("10-point (Decimal)")); 261 return Strings::ToUtf8String(QCoreApplication::tr("10-point Decimal"));
256 default: 262 default:
257 case Anime::ScoreFormat::POINT_100: return Strings::ToUtf8String(QCoreApplication::tr("100-point")); 263 case Anime::ScoreFormat::Point100: return Strings::ToUtf8String(QCoreApplication::tr("100-point"));
258 } 264 }
259 } 265 }
260 266
261 } // namespace Translate 267 } // namespace Translate