[gnome-boxes] main: Don't attempt to translate ""
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] main: Don't attempt to translate ""
- Date: Thu, 5 Sep 2013 12:08:17 +0000 (UTC)
commit f6fcb4da92388c0ceb7eb9d39e8a68bb2016916c
Author: Christophe Fergeau <cfergeau redhat com>
Date: Wed Sep 4 12:28:31 2013 +0200
main: Don't attempt to translate ""
During the refactoring done in commit 0d6c295, we ended up passing _("")
to g_option context_new(). This is a bad thing to do as "" is a magic
string for gettext. g_option_context_new() can handle NULL, so let's
use that here.
https://bugzilla.gnome.org/show_bug.cgi?id=707439
src/main.vala | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/main.vala b/src/main.vala
index fe46a9d..5f17be0 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -12,8 +12,7 @@ private const OptionEntry[] local_options = {
};
private static void parse_local_args (ref unowned string[] args) {
- var parameter_string = _("");
- var opt_context = new OptionContext (parameter_string);
+ var opt_context = new OptionContext (null);
opt_context.set_ignore_unknown_options (true);
opt_context.add_main_entries (local_options, null);
opt_context.set_help_enabled (false);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]