Mercurial > minori
comparison src/gui/widgets/anime_info.cc @ 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 | 5d3c9b31aa6e |
children | 6b0768158dcd |
comparison
equal
deleted
inserted
replaced
326:10096c5489e3 | 327:b5d6c27c308f |
---|---|
95 const auto producers = anime.GetProducers(); | 95 const auto producers = anime.GetProducers(); |
96 | 96 |
97 details_data_s << Strings::ToQString(Translate::ToLocalString(anime.GetFormat())) << "\n" | 97 details_data_s << Strings::ToQString(Translate::ToLocalString(anime.GetFormat())) << "\n" |
98 << anime.GetEpisodes() << "\n" | 98 << anime.GetEpisodes() << "\n" |
99 << Strings::ToQString(Translate::ToLocalString(anime.GetAiringStatus())) << "\n" | 99 << Strings::ToQString(Translate::ToLocalString(anime.GetAiringStatus())) << "\n" |
100 << Strings::ToQString(Translate::ToLocalString(anime.GetSeason())) << " " | 100 << Strings::ToQString(Translate::ToLocalString(anime.GetSeason())) << "\n" |
101 << anime.GetStartedDate().GetYear().value_or(2000) << "\n" | |
102 << Strings::ToQString((genres.size() > 1) ? Strings::Implode(genres, ", ") : "-") << "\n" | 101 << Strings::ToQString((genres.size() > 1) ? Strings::Implode(genres, ", ") : "-") << "\n" |
103 << Strings::ToQString((producers.size() > 1) ? Strings::Implode(producers, ", ") : "-") << "\n" | 102 << Strings::ToQString((producers.size() > 1) ? Strings::Implode(producers, ", ") : "-") << "\n" |
104 << anime.GetAudienceScore() << "%"; | 103 << anime.GetAudienceScore() << "%"; |
105 | 104 |
106 _details.GetData()->setText(details_data); | 105 _details.GetData()->setText(details_data); |