From 81e5d60ad74f7aadd6f91e0eaaf29d63b22673ec Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Mon, 5 Mar 2012 12:25:34 +0100 Subject: [PATCH] Make strings in cmd_save and cmd_savef translateable. --- commands.c | 8 ++++---- po/de.po | 10 +++++++++- po/zathura.pot | 10 +++++++++- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/commands.c b/commands.c index 03cfeef..0135dde 100644 --- a/commands.c +++ b/commands.c @@ -238,9 +238,9 @@ cmd_save(girara_session_t* session, girara_list_t* argument_list) if (girara_list_size(argument_list) == 1) { if (document_save(zathura, girara_list_nth(argument_list, 0), true) == true) { - girara_notify(session, GIRARA_INFO, "Document saved."); + girara_notify(session, GIRARA_INFO, _("Document saved.")); } else { - girara_notify(session, GIRARA_INFO, "Failed to save document."); + girara_notify(session, GIRARA_INFO, _("Failed to save document.")); } } else { girara_notify(session, GIRARA_ERROR, _("Invalid number of arguments.")); @@ -264,9 +264,9 @@ cmd_savef(girara_session_t* session, girara_list_t* argument_list) if (girara_list_size(argument_list) == 1) { if (document_save(zathura, girara_list_nth(argument_list, 0), true) == true) { - girara_notify(session, GIRARA_INFO, "Document saved."); + girara_notify(session, GIRARA_INFO, _("Document saved.")); } else { - girara_notify(session, GIRARA_INFO, "Failed to save document."); + girara_notify(session, GIRARA_INFO, _("Failed to save document.")); } } else { girara_notify(session, GIRARA_ERROR, _("Invalid number of arguments.")); diff --git a/po/de.po b/po/de.po index 4b588ed..da80102 100644 --- a/po/de.po +++ b/po/de.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-03-05 09:33+0100\n" +"POT-Creation-Date: 2012-03-05 12:24+0100\n" "PO-Revision-Date: 2012-03-04 17:77+0100\n" "Last-Translator: Sebastian Ramacher \n" "Language-Team: LANGUAGE \n" @@ -82,6 +82,14 @@ msgstr "" msgid "No open document." msgstr "" +#: ../commands.c:241 ../commands.c:267 +msgid "Document saved." +msgstr "" + +#: ../commands.c:243 ../commands.c:269 +msgid "Failed to save document." +msgstr "" + #: ../commands.c:246 ../commands.c:272 msgid "Invalid number of arguments." msgstr "" diff --git a/po/zathura.pot b/po/zathura.pot index 530e1f9..4c5f26f 100644 --- a/po/zathura.pot +++ b/po/zathura.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-03-05 09:33+0100\n" +"POT-Creation-Date: 2012-03-05 12:24+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -82,6 +82,14 @@ msgstr "" msgid "No open document." msgstr "" +#: ../commands.c:241 ../commands.c:267 +msgid "Document saved." +msgstr "" + +#: ../commands.c:243 ../commands.c:269 +msgid "Failed to save document." +msgstr "" + #: ../commands.c:246 ../commands.c:272 msgid "Invalid number of arguments." msgstr ""