[rygel] rygel: Mark options translatable



commit db7cf32a4bb477bbeaa55162df34b1ff8ffc5864
Author: Jens Georg <jensg openismus com>
Date:   Fri May 10 18:58:56 2013 +0200

    rygel: Mark options translatable

 src/rygel/rygel-cmdline-config.vala |   29 ++++++++++++-----------------
 1 files changed, 12 insertions(+), 17 deletions(-)
---
diff --git a/src/rygel/rygel-cmdline-config.vala b/src/rygel/rygel-cmdline-config.vala
index acf236f..b7b5342 100644
--- a/src/rygel/rygel-cmdline-config.vala
+++ b/src/rygel/rygel-cmdline-config.vala
@@ -72,37 +72,32 @@ public class Rygel.CmdlineConfig : GLib.Object, Configuration {
         { "version", 0, 0, OptionArg.NONE, ref version,
           "Display version number", null },
         { "network-interface", 'n', 0, OptionArg.STRING_ARRAY, ref ifaces,
-          "Network Interface", "INTERFACE" },
+          N_("Network Interfaces"), "INTERFACE" },
         { "port", 'p', 0, OptionArg.INT, ref port,
           "Port", "PORT" },
         { "disable-transcoding", 't', 0, OptionArg.NONE, ref no_transcoding,
-          "Disable transcoding", null },
+          N_("Disable transcoding"), null },
         { "disallow-upload", 'U', 0, OptionArg.NONE,
-          ref disallow_upload, "Disallow upload", null },
+          ref disallow_upload, N_("Disallow upload"), null },
         { "disallow-deletion", 'D', 0, OptionArg.NONE,
-          ref disallow_deletion, "Disallow deletion", null },
+          ref disallow_deletion, N_ ("Disallow deletion"), null },
         { "log-level", 'g', 0, OptionArg.STRING, ref log_levels,
-          "Comma-separated list of domain:level pairs to specify log level " +
-          "thresholds for individual domains. domain could be either " +
-          "'rygel', name of a plugin or '*' for all domains. " +
-          " Allowed levels are: " +
-          "0=critical,2=error,3=warning,4=message/info,5=debug.",
-          "DOMAIN1:LEVEL1[,DOMAIN2:LEVEL2,..]" },
+          N_ ("Comma-separated list of domain:level pairs. See rygel(1) for details") },
         { "plugin-path", 'u', 0, OptionArg.STRING, ref plugin_path,
-          "Plugin Path", "PLUGIN_PATH" },
+          N_ ("Plugin Path"), "PLUGIN_PATH" },
         { "engine-path", 'e', 0, OptionArg.STRING, ref engine_path,
-          "Engine Path", "ENGINE_PATH" },
+          N_ ("Engine Path"), "ENGINE_PATH" },
         { "disable-plugin", 'd', 0, OptionArg.STRING_ARRAY,
           ref disabled_plugins,
-          "Disable plugin", "PluginName" },
+          N_ ("Disable plugin"), "PluginName" },
         { "title", 'i', 0, OptionArg.STRING_ARRAY, ref plugin_titles,
-          "Set plugin titles", "PluginName:TITLE" },
+          N_ ("Set plugin titles"), "PluginName:TITLE" },
         { "plugin-option", 'o', 0, OptionArg.STRING_ARRAY, ref plugin_options,
-          "Set plugin options", "PluginName:OPTION:VALUE1[,VALUE2,..]" },
+          N_ ("Set plugin options"), "PluginName:OPTION:VALUE1[,VALUE2,..]" },
         { "disable-upnp", 'P', 0, OptionArg.NONE, ref no_upnp,
-          "Disable UPnP (streaming-only)", null },
+          N_ ("Disable UPnP (streaming-only)"), null },
         { "config", 'c', 0, OptionArg.FILENAME, ref config_file,
-          "Use configuration file instead of user configuration", "FILE" },
+          N_ ("Use configuration file instead of user configuration"), "FILE" },
         { null }
     };
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]