[moserial] correctly call gettext
- From: Michael J. Chudobiak <mjc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [moserial] correctly call gettext
- Date: Mon, 8 Jan 2018 12:51:08 +0000 (UTC)
commit 3932b0b3fea21a55332e5c6e5698020046a63220
Author: Abderrahim Kitouni <a kitouni gmail com>
Date: Thu Dec 28 09:38:01 2017 +0100
correctly call gettext
constants translated with N_ need to call _ when used.
Signed-off-by: Michael J. Chudobiak <mjc avtechpulse com>
src/MainWindow.vala | 4 ++--
src/MoUtils.vala | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/MainWindow.vala b/src/MainWindow.vala
index 47bec6a..9a4036f 100644
--- a/src/MainWindow.vala
+++ b/src/MainWindow.vala
@@ -762,14 +762,14 @@ public class moserial.MainWindow : Gtk.Window //Have to extend Gtk.Winow to get
private void showAboutDialog () {
- string license_trans = license[0] + "\n" + license[1] + "\n" + license[2];
+ string license_trans = _(license[0]) + "\n" + _(license[1]) + "\n" + _(license[2]);
show_about_dialog (gtkWindow,
"version", Config.VERSION,
"copyright", "Copyright © 2009-2017\nMichael J. Chudobiak\n<mjc svn gnome
org>",
"comments", _("A serial terminal for the GNOME desktop, optimized for
logging and file capture."),
"authors", authors,
- "translator-credits", translators,
+ "translator-credits", _(translators),
"logo-icon-name", "moserial",
"wrap-license", true,
"license", license_trans,
diff --git a/src/MoUtils.vala b/src/MoUtils.vala
index 3c66ac3..773475f 100644
--- a/src/MoUtils.vala
+++ b/src/MoUtils.vala
@@ -104,7 +104,7 @@ public class MoUtils : GLib.Object
foreach (string val_item in val_array) {
TreeIter iter;
Model.append(out iter);
- Model.set(iter,0,val_item);
+ Model.set(iter, 0, _(val_item));
}
Combo.set_model(Model);
CellRenderer Cell = new CellRendererText();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]