[lightsoff] Fixed compilation error caused by translatable options
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lightsoff] Fixed compilation error caused by translatable options
- Date: Thu, 19 Jul 2018 20:54:18 +0000 (UTC)
commit c660719c43b29e92dd94eef126259bbb97abf36c
Author: Robert Roth <robert roth off gmail com>
Date: Thu Jul 19 23:53:58 2018 +0300
Fixed compilation error caused by translatable options
src/lightsoff.vala | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/lightsoff.vala b/src/lightsoff.vala
index 7955bd8..3cb7667 100644
--- a/src/lightsoff.vala
+++ b/src/lightsoff.vala
@@ -21,10 +21,10 @@ public class LightsOff : Gtk.Application
private const GLib.OptionEntry[] options = {
// --version
- { "version", 0, 0, OptionArg.NONE, ref version, _("Display version number"), null },
+ { "version", 0, 0, OptionArg.NONE, ref version, "Display version number", null },
// --gtk-mode
- { "gtk-mode", 0, 0, OptionArg.NONE, ref gtk, _("Use native graphics"), null },
+ { "gtk-mode", 0, 0, OptionArg.NONE, ref gtk, "Use native graphics", null },
// list terminator
{ null }
@@ -127,7 +127,7 @@ public class LightsOff : Gtk.Application
try {
var opt_context = new OptionContext ("");
opt_context.set_help_enabled (true);
- opt_context.add_main_entries (options, null);
+ opt_context.add_main_entries (options, Config.GETTEXT_PACKAGE);
opt_context.parse (ref args);
} catch (OptionError e) {
print (_("Run `%s --help` to see a full list of available command line options.\n"), args[0]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]