diff src/gui/pages/statistics.cpp @ 51:75c804f713b2

window: add about window, *: use tr() when applicable (useful for i18n)
author Paper <mrpapersonic@gmail.com>
date Mon, 25 Sep 2023 20:29:26 -0400
parents f4bea5ef5b8a
children 3d2decf093bb
line wrap: on
line diff
--- a/src/gui/pages/statistics.cpp	Mon Sep 25 13:50:56 2023 -0400
+++ b/src/gui/pages/statistics.cpp	Mon Sep 25 20:29:26 2023 -0400
@@ -23,13 +23,13 @@
 	setAutoFillBackground(true);
 
 	TextWidgets::LabelledTextParagraph* anime_list_paragraph = new TextWidgets::LabelledTextParagraph(
-	    "Anime list",
-	    "Anime count:\nEpisode count:\nTime spent watching:\nTime to complete:\nAverage score:\nScore deviation:", "\n\n\n\n\n\n",
+	    tr("Anime list"),
+	    tr("Anime count:\nEpisode count:\nTime spent watching:\nTime to complete:\nAverage score:\nScore deviation:"), "\n\n\n\n\n\n",
 	    this);
 	anime_list_data = anime_list_paragraph->GetParagraph();
 
 	TextWidgets::LabelledTextParagraph* application_paragraph =
-	    new TextWidgets::LabelledTextParagraph("Minori", "Uptime:\nRequests made:", "\n\n", this);
+	    new TextWidgets::LabelledTextParagraph(tr("Minori"), tr("Uptime:\nRequests made:"), "\n\n", this);
 	application_data = application_paragraph->GetParagraph();
 
 	layout()->addWidget(anime_list_paragraph);