Omissions in Zenity manual
- From: Danilo Segan <danilo gnome org>
- To: gnome-doc-list gnome org
- Subject: Omissions in Zenity manual
- Date: Tue, 30 Mar 2004 13:23:20 +0200
Hi all,
Here're some bugs I found in Zenity manual while translating it to
Serbian.
Here're explanations of the bugs I usually embed in PO files (so I
can easily search for them later). Some omissions are simple typos,
some are result of copying and pasting (or, "killing and yanking" :),
and others present incorrect parameters (they may have been correct
in the past).
If you're uncomfortable with PO file syntax, take a look at the
attached patch (it's way more readable, unless you use something like
po-mode, and like pressing "S" ['follow source reference', which
takes you directly to the relevant position in XML file]).
I'm inlining it only because it might not be clear in the patch why
did I do something (like, remove a certain parameter from command
line).
# bug: s/Calender/Calendar/
# bug: s/standad/standard/
#: C/zenity.xml:239
msgid ""
"Use <command>--calender</command> to create a Calender dialog. "
"<application>Zenity</application> returns the date selected to standad "
"error. The current date will be used by the dialog if no date is given on "
"the command line."
# bug: s/Calender/Calendar/
#: C/zenity.xml:244
msgid "The Calender dialog has the following options:"
# bug: this paragraph was copied and pasted probably, and "day" is a leftover: s/day/month/
#: C/zenity.xml:269
msgid ""
"Specifies the day to be pre-selected in the Calendar dialog. The day must be "
"a number between 1 and 12."
# bug: s+%m%y+%m/%y+
#: C/zenity.xml:285
msgid ""
"Specifies the format to be returned from the Calendar dialog after the "
"selection has been made. The default format depends on your locale. The "
"format must be of <command>strftime</command> style, for example \"%A %d/%m%y\"."
# bug: --hide-text is not accepted when --warning is used
#: C/zenity.xml:411
msgid ""
"\n"
"\t\t#!/bin/bash\n"
"\n"
"\t\tFILE_TYPE=$(file -b $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS|awk '{ print "
"$1}')\n"
"\n"
"\t\tif [ \"$FILE_TYPE\" != \"PNG\" ]; then\n"
"\t\t zenity --warning --text=\"Could not rotate image :\" --hide-text\n"
"\t\tfi\n"
"\t\t"
# bug: --text is not supported it seems
#: C/zenity.xml:653
msgid ""
"\n"
"\t\tzenity --list --title=\"Choose bugs you wish to view\" \\\n"
"\t\t --text=\"Select items from the list below.\" \\\n"
"\t\t --column=\"Bug Number\" --column=\"Severity\" --column="
"\"Description\" \\\n"
"\t\t 992383 Normal \"GtkTreeView crashes on multiple selections\" \\\n"
"\t\t 293823 High \"GNOME Dictionary does not handle proxy\" \\\n"
"\t\t 393823 Critical \"Menu editing does not work in GNOME 2.0\"\n"
"\t\t"
# bug: instead of --title=$FILE, should be --filename=$FILE
#: C/zenity.xml:805
msgid ""
"\n"
"\t\t#!/bin/sh\n"
"\n"
"\t\tFILE=`zenity --file-selection --title=\"Select a file\"'\n"
"\n"
"\t\tcase $? in\n"
"\t\t 0)\n"
"\t\t\t \tzenity --text-info --title=$FILE --editable 2>/tmp/tmp.txt\n"
"\t\t\t\t\t\t\t\n"
"\t\t 1)\n"
"\t\t\t echo \"No file selected.\";;\n"
"\t\t\t-1)\n"
"\t\t\t\techo \"No file selected.\";;\n"
"\t\tesac\n"
"\t\t"
# bug: s/Infomation/Information/
#: C/zenity.xml:803
msgid ""
"The following script is an example of how to use the Text Infomation dialog: "
"<placeholder-1/>"
Cheers,
Danilo
--- C/zenity.xml~ Wed Nov 12 13:39:17 2003
+++ C/zenity.xml Tue Mar 30 13:13:13 2004
@@ -237,12 +237,12 @@
<title>Calendar Dialog</title>
<para>
- Use <command>--calender</command> to create a Calender dialog. &app; returns the
- date selected to standad error. The current date will be used by the dialog if
+ Use <command>--calendar</command> to create a Calendar dialog. &app; returns the
+ date selected to standard error. The current date will be used by the dialog if
no date is given on the command line.
</para>
<para>
- The Calender dialog has the following options:
+ The Calendar dialog has the following options:
</para>
<variablelist>
@@ -266,7 +266,7 @@
<varlistentry>
<term><varname>--month</varname>=MONTH</term>
<listitem>
- <para>Specifies the day to be pre-selected in the Calendar dialog. The day must be
+ <para>Specifies the month to be pre-selected in the Calendar dialog. The month must be
a number between 1 and 12.
</para>
</listitem>
@@ -285,7 +285,7 @@
<para>Specifies the format to be returned from the Calendar dialog after
the selection has been made. The default format depends
on your locale. The format must be of <command>strftime</command>
- style, for example "%A %d/%m%y".
+ style, for example "%A %d/%m/%y".
</para>
</listitem>
</varlistentry>
@@ -414,7 +414,7 @@
FILE_TYPE=$(file -b $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS|awk '{ print $1}')
if [ "$FILE_TYPE" != "PNG" ]; then
- zenity --warning --text="Could not rotate image :" --hide-text
+ zenity --warning --text="Could not rotate image :"
fi
</programlisting>
</para>
@@ -652,7 +652,6 @@
The following commandline is an example of how to use the List dialog:
<programlisting>
zenity --list --title="Choose bugs you wish to view" \
- --text="Select items from the list below." \
--column="Bug Number" --column="Severity" --column="Description" \
992383 Normal "GtkTreeView crashes on multiple selections" \
293823 High "GNOME Dictionary does not handle proxy" \
@@ -801,7 +800,7 @@
</variablelist>
<para>
- The following script is an example of how to use the Text Infomation dialog:
+ The following script is an example of how to use the Text Information dialog:
<programlisting>
#!/bin/sh
@@ -809,7 +808,7 @@
case $? in
0)
- zenity --text-info --title=$FILE --editable 2>/tmp/tmp.txt
+ zenity --text-info --filename=$FILE --editable 2>/tmp/tmp.txt
1)
echo "No file selected.";;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]