comparison src/gui/translate/anime.cpp @ 9:5c0397762b53

INCOMPLETE: megacommit :)
author Paper <mrpapersonic@gmail.com>
date Sun, 10 Sep 2023 03:59:16 -0400
parents
children 4b198a111713
comparison
equal deleted inserted replaced
8:b1f73678ef61 9:5c0397762b53
1 #include "core/anime.h"
2
3 namespace Translate {
4
5 std::string TranslateListStatus(const Anime::ListStatus status) {
6 switch (status) {
7 case Anime::ListStatus::NOT_IN_LIST: return "Not in list";
8 case Anime::ListStatus::CURRENT: return "Currently watching";
9 case Anime::ListStatus::PLANNING: return "Plan to watch";
10 case Anime::ListStatus::COMPLETED: return "Completed";
11 case Anime::ListStatus::DROPPED: return "Dropped";
12 case Anime::ListStatus::PAUSED: return "On hold";
13 default: return "";
14 }
15 }
16
17 std::string TranslateSeriesFormat(const Anime::SeriesFormat format) {
18 switch (format) {
19 case Anime::SeriesFormat::UNKNOWN: return "Unknown";
20 case Anime::SeriesFormat::TV: return "TV";
21 case Anime::SeriesFormat::TV_SHORT: return "TV short";
22 case Anime::SeriesFormat::OVA: return "OVA";
23 case Anime::SeriesFormat::MOVIE: return "Movie";
24 case Anime::SeriesFormat::SPECIAL: return "Special";
25 case Anime::SeriesFormat::ONA: return "ONA";
26 case Anime::SeriesFormat::MUSIC: return "Music";
27 default: return "";
28 }
29 }
30
31 std::string TranslateSeriesSeason(const Anime::SeriesSeason season) {
32 switch (season) {
33 case Anime::SeriesSeason::UNKNOWN: return "Unknown";
34 case Anime::SeriesSeason::WINTER: return "Winter";
35 case Anime::SeriesSeason::SUMMER: return "Summer";
36 case Anime::SeriesSeason::FALL: return "Fall";
37 case Anime::SeriesSeason::SPRING: return "Spring";
38 default: return "";
39 }
40 }
41
42 std::string TranslateSeriesStatus(const Anime::SeriesStatus status) {
43 switch (status) {
44 case Anime::SeriesStatus::UNKNOWN: return "Unknown";
45 case Anime::SeriesStatus::RELEASING: return "Currently airing";
46 case Anime::SeriesStatus::FINISHED: return "Finished airing";
47 case Anime::SeriesStatus::NOT_YET_RELEASED: return "Not yet aired";
48 case Anime::SeriesStatus::CANCELLED: return "Cancelled";
49 case Anime::SeriesStatus::HIATUS: return "On hiatus";
50 default: return "";
51 }
52 }
53
54 } // namespace Translate