[gnome-bluetooth] sendto: document the "--name" option and make argument strings translatable
- From: Daniele Forsi <dforsi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] sendto: document the "--name" option and make argument strings translatable
- Date: Sun, 6 May 2012 21:47:16 +0000 (UTC)
commit 063ee7827391cfabffe907d0ea1e33380ab4c47b
Author: Daniele Forsi <dforsi src gnome org>
Date: Sun May 6 15:00:47 2012 +0200
sendto: document the "--name" option and make argument strings translatable
sendto/bluetooth-sendto.1 | 14 ++++++++++----
sendto/main.c | 6 +++---
2 files changed, 13 insertions(+), 7 deletions(-)
---
diff --git a/sendto/bluetooth-sendto.1 b/sendto/bluetooth-sendto.1
index 9ce6881..77c2cdb 100644
--- a/sendto/bluetooth-sendto.1
+++ b/sendto/bluetooth-sendto.1
@@ -1,9 +1,9 @@
-.TH BLUETOOTH-SENDTO 1 "Oct 4, 2006" "gnome-bluetooth" "Linux User's Manual"
+.TH BLUETOOTH-SENDTO 1 "May 6, 2012" "gnome-bluetooth" "Linux User's Manual"
.SH NAME
bluetooth-sendto - GTK application for transferring files over Bluetooth
.SH SYNOPSIS
.B bluetooth-sendto
-[\--device=XX:XX:XX:XX:XX:XX] [file] [file...]
+[\--device=XX:XX:XX:XX:XX:XX [\--name=NAME]] [file...]
.SH DESCRIPTION
.I bluetooth-sendto
will display a dialog for transferring files over Bluetooth.
@@ -12,10 +12,16 @@ is part of gnome-bluetooth, see also http://live.gnome.org/GnomeBluetooth
.SH OPTIONS
.TP
\--device
-Define the device address to send the file to
+Define the device address to send the file(s) to.
+If omitted a chooser will be displayed.
+.TP
+\--name
+Define the device name to send the file(s) to.
+If omitted it will be auto detected.
.TP
file
-The file(s) to send to the device
+The file(s) to send to the device.
+If omitted a chooser will be displayed.
.SH AUTHOR
Marcel Holtmann <marcel holtmann org>
.SH LICENSE
diff --git a/sendto/main.c b/sendto/main.c
index 8335930..de0e6ff 100644
--- a/sendto/main.c
+++ b/sendto/main.c
@@ -733,9 +733,9 @@ show_select_dialog(void)
static GOptionEntry options[] = {
{ "device", 0, 0, G_OPTION_ARG_STRING, &option_device,
- N_("Remote device to use"), "ADDRESS" },
+ N_("Remote device to use"), N_("ADDRESS") },
{ "name", 0, 0, G_OPTION_ARG_STRING, &option_device_name,
- N_("Remote device's name"), NULL },
+ N_("Remote device's name"), N_("NAME") },
{ "dest", 0, G_OPTION_FLAG_HIDDEN,
G_OPTION_ARG_STRING, &option_device, NULL, NULL },
{ G_OPTION_REMAINING, 0, 0,
@@ -754,7 +754,7 @@ int main(int argc, char *argv[])
error = NULL;
- if (gtk_init_with_args(&argc, &argv, "[FILE...]",
+ if (gtk_init_with_args(&argc, &argv, _("[FILE...]"),
options, GETTEXT_PACKAGE, &error) == FALSE) {
if (error != NULL) {
g_printerr("%s\n", error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]