From 7c7eebe415950f2898998e6329ebcea380269028 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 20 Nov 2017 12:38:12 -0500 Subject: about(:version): Internationalize --- diff --git a/src/schemes/about/version.c b/src/schemes/about/version.c index df30c8c..1619dfe 100644 --- a/src/schemes/about/version.c +++ b/src/schemes/about/version.c @@ -29,6 +29,7 @@ #include #include "../../application.h" +#include "../../i18n.h" #include "../../utils/html.h" #include "../about.h" @@ -42,7 +43,7 @@ mq_about_version_response(MqApplication G_GNUC_UNUSED *application, gchar *title; gchar *document; - title = g_strdup_printf("About %s", PACKAGE_NAME); + title = g_strdup_printf(_("About %s"), PACKAGE_NAME); document = mq_html_document(title, NULL, NULL, mq_html_notebook(FALSE, "notebook1", 0, mq_html_container("div", NULL, @@ -51,22 +52,22 @@ mq_about_version_response(MqApplication G_GNUC_UNUSED *application, PACKAGE_VERSION_GIT, NULL)), /* TODO: Comments */ /* TODO: Web site link */ - mq_html_p("Copyright © 2017 " - "Patrick McDermott"), - mq_html_p("This program comes with " + mq_html_p(_("Copyright © 2017 " + "Patrick McDermott")), + mq_html_p(_("This program comes with " "ABSOLUTELY NO WARRANTY. " - "See the license text for details."), + "See the license text for details.")), NULL), - "About", + _("About"), mq_html_container("div", NULL, - mq_html_h3("Authors"), + mq_html_h3(_("Authors")), mq_html_p("Patrick McDermott " "<pj@pehjota.net>"), NULL), - "Credits", + _("Credits"), mq_html_input_iframe("mq-about:resources/" "gpl-3.0-standalone.html"), - "License", + _("License"), NULL), NULL); g_free(title); -- cgit v0.9.1