aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/terminal.vala
diff options
context:
space:
mode:
authorWolfgang Müller2021-06-26 19:18:11 +0200
committerWolfgang Müller2021-06-27 18:31:06 +0200
commit5fdfd3c6072ccb4af666603905c5965e4c6358f8 (patch)
treef55d984d28b83d264ff3bfa6d55f3ffe6c3562d4 /terminal.vala
parent75ff67a99e3420ff49da7ec1b74f53a74451e874 (diff)
downloadweltschmerz-5fdfd3c6072ccb4af666603905c5965e4c6358f8.tar.gz
Mark messages for translation
With the translation infrastructure now in place, make sure to mark every user-bound message for translation. All but one of the strings in terminal.ui are already marked. This commit marks all remaining messages in the Vala code as well as the missing one from terminal.ui. One of the messages in terminal.ui is a sample error message for the infobar label. Since this message will never be visible to the user (the code overrides the label's contents with any relevant warning messages), we do not need to keep it marked. Finally, give translators ample context for what they will have to translate and fix a small inconsistency with the capitalization of warning messages in configreader.vala.
Diffstat (limited to 'terminal.vala')
-rw-r--r--terminal.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/terminal.vala b/terminal.vala
index dfe8130..fcd5ee0 100644
--- a/terminal.vala
+++ b/terminal.vala
@@ -138,10 +138,10 @@ class Terminal : Gtk.Overlay {
vte.set_color_highlight(conf.selection_background);
if (conf.get_warnings().length > 0) {
- string header = "<b>Configuration loaded with warnings:</b>\n";
+ string header = "<b>%s</b>\n".printf(_("Configuration loaded with warnings:"));
infobar_show(header + string.joinv("\n", conf.get_warnings()), Gtk.MessageType.WARNING);
} else if (reload) {
- infobar_show("Configuration loaded successfully.", Gtk.MessageType.INFO, 3);
+ infobar_show(_("Configuration loaded successfully."), Gtk.MessageType.INFO, 3);
}
}