diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-20 12:38:12 (EST) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-20 12:38:12 (EST) |
commit | 7c7eebe415950f2898998e6329ebcea380269028 (patch) | |
tree | 9c3463e48468c4b36c5e787cd76c2bedac0d0c46 /src/schemes | |
parent | f3835b0d59a07bfb91ba9ea5c4932b64d91f346b (diff) | |
download | marquee-7c7eebe415950f2898998e6329ebcea380269028.zip marquee-7c7eebe415950f2898998e6329ebcea380269028.tar.gz marquee-7c7eebe415950f2898998e6329ebcea380269028.tar.bz2 |
about(:version): Internationalize
Diffstat (limited to 'src/schemes')
-rw-r--r-- | src/schemes/about/version.c | 19 |
1 files changed, 10 insertions, 9 deletions
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 <webkit2/webkit2.h> #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); |