diff src/gui/widgets/anime_info.cc @ 197:c4ca035c565d

*: misc. patches
author Paper <mrpapersonic@gmail.com>
date Fri, 08 Dec 2023 11:19:54 -0500
parents 9613d72b097e
children 4d461ef7d424
line wrap: on
line diff
--- a/src/gui/widgets/anime_info.cc	Thu Dec 07 16:28:11 2023 -0500
+++ b/src/gui/widgets/anime_info.cc	Fri Dec 08 11:19:54 2023 -0500
@@ -35,11 +35,11 @@
 	 * QString because QTextStream sucks and assumes
 	 * Latin1 (on Windows?)
 	*/
-	details_data_s << Strings::ToQString(Translate::ToString(anime.GetFormat())) << "\n"
+	details_data_s << Strings::ToQString(Translate::ToLocalString(anime.GetFormat())) << "\n"
 	               << anime.GetEpisodes() << "\n"
-	               << Strings::ToQString(Translate::ToString(anime.GetUserStatus())) << "\n"
-	               << Strings::ToQString(Translate::ToString(anime.GetSeason())) << " "
-	                   << anime.GetAirDate().GetYear() << "\n"
+	               << Strings::ToQString(Translate::ToLocalString(anime.GetUserStatus())) << "\n"
+	               << Strings::ToQString(Translate::ToLocalString(anime.GetSeason())) << " "
+	                   << anime.GetAirDate().GetYear().value_or(2000) << "\n"
 	               << Strings::ToQString(Strings::Implode(anime.GetGenres(), ", ")) << "\n"
 	               << anime.GetAudienceScore() << "%";
 	_details->GetParagraph()->SetText(details_data);