Make strings in cmd_save and cmd_savef translateable.

This commit is contained in:
Sebastian Ramacher 2012-03-05 12:25:34 +01:00
parent 9f31c38cca
commit 81e5d60ad7
3 changed files with 22 additions and 6 deletions

View file

@ -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."));

View file

@ -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 <s.ramacher@gmx.at>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 ""

View file

@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 ""