Mercurial > minori
annotate include/gui/translate/anime.h @ 327:b5d6c27c308f
anime: refactor Anime::SeriesSeason to Season class
ToLocalString has also been altered to take in both season
and year because lots of locales actually treat formatting
seasons differently! most notably is Russian which adds a
suffix at the end to notate seasons(??)
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Thu, 13 Jun 2024 01:49:18 -0400 |
parents | 657fda1b9cac |
children |
rev | line source |
---|---|
261
3ec7804abf17
include: make header guards more sane
Paper <paper@paper.us.eu.org>
parents:
189
diff
changeset
|
1 #ifndef MINORI_GUI_TRANSLATE_ANIME_H_ |
3ec7804abf17
include: make header guards more sane
Paper <paper@paper.us.eu.org>
parents:
189
diff
changeset
|
2 #define MINORI_GUI_TRANSLATE_ANIME_H_ |
185
62e336597bb7
anime list: add support for different score formats
Paper <mrpapersonic@gmail.com>
parents:
174
diff
changeset
|
3 |
10 | 4 #include "core/anime.h" |
5 | |
6 namespace Translate { | |
7 | |
15 | 8 std::string ToString(const Anime::ListStatus status); |
9 std::string ToString(const Anime::SeriesFormat format); | |
327
b5d6c27c308f
anime: refactor Anime::SeriesSeason to Season class
Paper <paper@paper.us.eu.org>
parents:
279
diff
changeset
|
10 std::string ToString(const Anime::Season::Name season); |
15 | 11 std::string ToString(const Anime::SeriesStatus status); |
279 | 12 std::string ToString(const Anime::Service service); |
174
f88eda79c60a
anime/db: add some more json functionality, still doesn't compile :/
Paper <mrpapersonic@gmail.com>
parents:
90
diff
changeset
|
13 std::string ToString(const Anime::TitleLanguage language); |
185
62e336597bb7
anime list: add support for different score formats
Paper <mrpapersonic@gmail.com>
parents:
174
diff
changeset
|
14 std::string ToString(const Anime::ScoreFormat format); |
174
f88eda79c60a
anime/db: add some more json functionality, still doesn't compile :/
Paper <mrpapersonic@gmail.com>
parents:
90
diff
changeset
|
15 |
f88eda79c60a
anime/db: add some more json functionality, still doesn't compile :/
Paper <mrpapersonic@gmail.com>
parents:
90
diff
changeset
|
16 std::string ToLocalString(const Anime::ListStatus status); |
f88eda79c60a
anime/db: add some more json functionality, still doesn't compile :/
Paper <mrpapersonic@gmail.com>
parents:
90
diff
changeset
|
17 std::string ToLocalString(const Anime::SeriesFormat format); |
327
b5d6c27c308f
anime: refactor Anime::SeriesSeason to Season class
Paper <paper@paper.us.eu.org>
parents:
279
diff
changeset
|
18 std::string ToLocalString(const Anime::Season& season); |
174
f88eda79c60a
anime/db: add some more json functionality, still doesn't compile :/
Paper <mrpapersonic@gmail.com>
parents:
90
diff
changeset
|
19 std::string ToLocalString(const Anime::SeriesStatus status); |
279 | 20 std::string ToLocalString(const Anime::Service service); |
174
f88eda79c60a
anime/db: add some more json functionality, still doesn't compile :/
Paper <mrpapersonic@gmail.com>
parents:
90
diff
changeset
|
21 std::string ToLocalString(const Anime::TitleLanguage language); |
189 | 22 std::string ToLocalString(const Anime::ScoreFormat language); |
174
f88eda79c60a
anime/db: add some more json functionality, still doesn't compile :/
Paper <mrpapersonic@gmail.com>
parents:
90
diff
changeset
|
23 |
f88eda79c60a
anime/db: add some more json functionality, still doesn't compile :/
Paper <mrpapersonic@gmail.com>
parents:
90
diff
changeset
|
24 Anime::ListStatus ToListStatus(const std::string& str); |
f88eda79c60a
anime/db: add some more json functionality, still doesn't compile :/
Paper <mrpapersonic@gmail.com>
parents:
90
diff
changeset
|
25 Anime::SeriesFormat ToSeriesFormat(const std::string& str); |
327
b5d6c27c308f
anime: refactor Anime::SeriesSeason to Season class
Paper <paper@paper.us.eu.org>
parents:
279
diff
changeset
|
26 Anime::Season::Name ToSeriesSeason(const std::string& str); |
174
f88eda79c60a
anime/db: add some more json functionality, still doesn't compile :/
Paper <mrpapersonic@gmail.com>
parents:
90
diff
changeset
|
27 Anime::SeriesStatus ToSeriesStatus(const std::string& str); |
279 | 28 Anime::Service ToService(const std::string& str); |
90
c4bb49c2f6eb
config: improve handling of vars
Paper <mrpapersonic@gmail.com>
parents:
15
diff
changeset
|
29 Anime::TitleLanguage ToLanguage(const std::string& str); |
185
62e336597bb7
anime list: add support for different score formats
Paper <mrpapersonic@gmail.com>
parents:
174
diff
changeset
|
30 Anime::ScoreFormat ToScoreFormat(const std::string& str); |
10 | 31 |
32 } // namespace Translate | |
185
62e336597bb7
anime list: add support for different score formats
Paper <mrpapersonic@gmail.com>
parents:
174
diff
changeset
|
33 |
261
3ec7804abf17
include: make header guards more sane
Paper <paper@paper.us.eu.org>
parents:
189
diff
changeset
|
34 #endif // MINORI_GUI_TRANSLATE_ANIME_H_ |