Mercurial > minori
comparison src/gui/translate/anime.cpp @ 15:cde8f67a7c7d
*: update, megacommit :)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 19 Sep 2023 22:36:08 -0400 |
parents | 4b198a111713 |
children | d0adc4aedfc8 |
comparison
equal
deleted
inserted
replaced
14:a29c9402faf0 | 15:cde8f67a7c7d |
---|---|
1 #include "core/anime.h" | 1 #include "core/anime.h" |
2 #include "gui/translate/anime.h" | |
2 | 3 |
3 namespace Translate { | 4 namespace Translate { |
4 | 5 |
5 std::string TranslateListStatus(const Anime::ListStatus status) { | 6 std::string ToString(const Anime::ListStatus status) { |
6 switch (status) { | 7 switch (status) { |
7 case Anime::ListStatus::NOT_IN_LIST: return "Not in list"; | 8 case Anime::ListStatus::NOT_IN_LIST: return "Not in list"; |
8 case Anime::ListStatus::CURRENT: return "Currently watching"; | 9 case Anime::ListStatus::CURRENT: return "Currently watching"; |
9 case Anime::ListStatus::PLANNING: return "Plan to watch"; | 10 case Anime::ListStatus::PLANNING: return "Plan to watch"; |
10 case Anime::ListStatus::COMPLETED: return "Completed"; | 11 case Anime::ListStatus::COMPLETED: return "Completed"; |
12 case Anime::ListStatus::PAUSED: return "On hold"; | 13 case Anime::ListStatus::PAUSED: return "On hold"; |
13 default: return ""; | 14 default: return ""; |
14 } | 15 } |
15 } | 16 } |
16 | 17 |
17 std::string TranslateSeriesFormat(const Anime::SeriesFormat format) { | 18 std::string ToString(const Anime::SeriesFormat format) { |
18 switch (format) { | 19 switch (format) { |
19 case Anime::SeriesFormat::UNKNOWN: return "Unknown"; | 20 case Anime::SeriesFormat::UNKNOWN: return "Unknown"; |
20 case Anime::SeriesFormat::TV: return "TV"; | 21 case Anime::SeriesFormat::TV: return "TV"; |
21 case Anime::SeriesFormat::TV_SHORT: return "TV short"; | 22 case Anime::SeriesFormat::TV_SHORT: return "TV short"; |
22 case Anime::SeriesFormat::OVA: return "OVA"; | 23 case Anime::SeriesFormat::OVA: return "OVA"; |
26 case Anime::SeriesFormat::MUSIC: return "Music"; | 27 case Anime::SeriesFormat::MUSIC: return "Music"; |
27 default: return ""; | 28 default: return ""; |
28 } | 29 } |
29 } | 30 } |
30 | 31 |
31 std::string TranslateSeriesSeason(const Anime::SeriesSeason season) { | 32 std::string ToString(const Anime::SeriesSeason season) { |
32 switch (season) { | 33 switch (season) { |
33 case Anime::SeriesSeason::UNKNOWN: return "Unknown"; | 34 case Anime::SeriesSeason::UNKNOWN: return "Unknown"; |
34 case Anime::SeriesSeason::WINTER: return "Winter"; | 35 case Anime::SeriesSeason::WINTER: return "Winter"; |
35 case Anime::SeriesSeason::SUMMER: return "Summer"; | 36 case Anime::SeriesSeason::SUMMER: return "Summer"; |
36 case Anime::SeriesSeason::FALL: return "Fall"; | 37 case Anime::SeriesSeason::FALL: return "Fall"; |
37 case Anime::SeriesSeason::SPRING: return "Spring"; | 38 case Anime::SeriesSeason::SPRING: return "Spring"; |
38 default: return ""; | 39 default: return ""; |
39 } | 40 } |
40 } | 41 } |
41 | 42 |
42 std::string TranslateSeriesStatus(const Anime::SeriesStatus status) { | 43 std::string ToString(const Anime::SeriesStatus status) { |
43 switch (status) { | 44 switch (status) { |
44 case Anime::SeriesStatus::UNKNOWN: return "Unknown"; | 45 case Anime::SeriesStatus::UNKNOWN: return "Unknown"; |
45 case Anime::SeriesStatus::RELEASING: return "Currently airing"; | 46 case Anime::SeriesStatus::RELEASING: return "Currently airing"; |
46 case Anime::SeriesStatus::FINISHED: return "Finished airing"; | 47 case Anime::SeriesStatus::FINISHED: return "Finished airing"; |
47 case Anime::SeriesStatus::NOT_YET_RELEASED: return "Not yet aired"; | 48 case Anime::SeriesStatus::NOT_YET_RELEASED: return "Not yet aired"; |