Mercurial > minori
diff 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 |
line wrap: on
line diff
--- a/include/gui/translate/anime.h Thu Jun 13 00:42:00 2024 -0400 +++ b/include/gui/translate/anime.h Thu Jun 13 01:49:18 2024 -0400 @@ -7,7 +7,7 @@ std::string ToString(const Anime::ListStatus status); std::string ToString(const Anime::SeriesFormat format); -std::string ToString(const Anime::SeriesSeason season); +std::string ToString(const Anime::Season::Name season); std::string ToString(const Anime::SeriesStatus status); std::string ToString(const Anime::Service service); std::string ToString(const Anime::TitleLanguage language); @@ -15,7 +15,7 @@ std::string ToLocalString(const Anime::ListStatus status); std::string ToLocalString(const Anime::SeriesFormat format); -std::string ToLocalString(const Anime::SeriesSeason season); +std::string ToLocalString(const Anime::Season& season); std::string ToLocalString(const Anime::SeriesStatus status); std::string ToLocalString(const Anime::Service service); std::string ToLocalString(const Anime::TitleLanguage language); @@ -23,7 +23,7 @@ Anime::ListStatus ToListStatus(const std::string& str); Anime::SeriesFormat ToSeriesFormat(const std::string& str); -Anime::SeriesSeason ToSeriesSeason(const std::string& str); +Anime::Season::Name ToSeriesSeason(const std::string& str); Anime::SeriesStatus ToSeriesStatus(const std::string& str); Anime::Service ToService(const std::string& str); Anime::TitleLanguage ToLanguage(const std::string& str);