summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-11-20 18:31:55 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-11-20 19:43:18 +0000
commit20d524f4faad274f06131770096a4321d79c217b (patch)
tree8a9626d4e0a1eb03f2bb551f932feabb0cbc6fec
parentd0f89fed85d7f6c07a4d76d2e11f3a6812b63dd4 (diff)
downloadlibguestfs-20d524f4faad274f06131770096a4321d79c217b.tar.gz
libguestfs-20d524f4faad274f06131770096a4321d79c217b.tar.xz
libguestfs-20d524f4faad274f06131770096a4321d79c217b.zip
Version 1.19.62.
-rw-r--r--BUGS2
-rw-r--r--configure.ac2
-rw-r--r--po-docs/ja.po178
-rw-r--r--po-docs/libguestfs-docs.pot161
-rw-r--r--po-docs/uk.po178
-rw-r--r--po/libguestfs.pot4
6 files changed, 352 insertions, 173 deletions
diff --git a/BUGS b/BUGS
index f637704a..a9c22823 100644
--- a/BUGS
+++ b/BUGS
@@ -1,5 +1,5 @@
NOTE: This file is automatically generated from "update-bugs.sh".
-Last updated: 2012-11-19
+Last updated: 2012-11-20
This contains a local list of the bugs that are open against
libguestfs. Bugs are tracked in the Red Hat Bugzilla database
diff --git a/configure.ac b/configure.ac
index ad01e6e6..1869430d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,7 +20,7 @@
# freeform string.
m4_define([libguestfs_major], [1])
m4_define([libguestfs_minor], [19])
-m4_define([libguestfs_release], [61])
+m4_define([libguestfs_release], [62])
AC_INIT([libguestfs],libguestfs_major.libguestfs_minor.libguestfs_release)
AC_CONFIG_AUX_DIR([build-aux])
diff --git a/po-docs/ja.po b/po-docs/ja.po
index ad984983..d5cbb5ad 100644
--- a/po-docs/ja.po
+++ b/po-docs/ja.po
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: libguestfs\n"
"Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
-"POT-Creation-Date: 2012-11-19 14:45+0000\n"
+"POT-Creation-Date: 2012-11-20 19:40+0000\n"
"PO-Revision-Date: 2012-10-14 12:25+0000\n"
"Last-Translator: rjones <rjones@redhat.com>\n"
"Language-Team: Japanese <trans-ja@lists.fedoraproject.org>\n"
@@ -1281,7 +1281,7 @@ msgstr ""
#: ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41
#: ../format/virt-format.pod:177 ../fuse/guestmount.pod:398
#: ../guestfs-release-notes.pod:1853 ../inspector/virt-inspector.pod:501
-#: ../java/examples/guestfs-java.pod:45 ../lua/examples/guestfs-lua.pod:121
+#: ../java/examples/guestfs-java.pod:45 ../lua/examples/guestfs-lua.pod:138
#: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:40
#: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:340
#: ../resize/virt-resize.pod:702 ../ruby/examples/guestfs-ruby.pod:36
@@ -1332,7 +1332,7 @@ msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
#: ../appliance/libguestfs-make-fixed-appliance.pod:157
#: ../cat/virt-cat.pod:256 ../cat/virt-filesystems.pod:404
#: ../cat/virt-ls.pod:511 ../daemon/guestfsd.pod:101 ../df/virt-df.pod:265
-#: ../edit/virt-edit.pod:386 ../erlang/examples/guestfs-erlang.pod:114
+#: ../edit/virt-edit.pod:386 ../erlang/examples/guestfs-erlang.pod:115
#: ../examples/guestfs-examples.pod:50 ../examples/guestfs-faq.pod:806
#: ../examples/guestfs-performance.pod:446 ../examples/guestfs-recipes.pod:514
#: ../examples/guestfs-testing.pod:316 ../fish/guestfish.pod:1406
@@ -1340,7 +1340,7 @@ msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
#: ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55
#: ../format/virt-format.pod:191 ../fuse/guestmount.pod:413
#: ../guestfs-release-notes.pod:1868 ../inspector/virt-inspector.pod:524
-#: ../java/examples/guestfs-java.pod:63 ../lua/examples/guestfs-lua.pod:138
+#: ../java/examples/guestfs-java.pod:63 ../lua/examples/guestfs-lua.pod:156
#: ../ocaml/examples/guestfs-ocaml.pod:96 ../perl/examples/guestfs-perl.pod:58
#: ../python/examples/guestfs-python.pod:59 ../rescue/virt-rescue.pod:353
#: ../resize/virt-resize.pod:729 ../ruby/examples/guestfs-ruby.pod:53
@@ -1655,14 +1655,14 @@ msgstr ""
#. type: =head1
#: ../appliance/libguestfs-make-fixed-appliance.pod:153
-#: ../erlang/examples/guestfs-erlang.pod:110
+#: ../erlang/examples/guestfs-erlang.pod:111
#: ../examples/guestfs-examples.pod:46 ../examples/guestfs-faq.pod:802
#: ../examples/guestfs-performance.pod:442 ../examples/guestfs-recipes.pod:510
#: ../examples/guestfs-testing.pod:312 ../fish/guestfish.pod:1402
#: ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49
#: ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51
#: ../fuse/guestmount.pod:409 ../inspector/virt-inspector.pod:510
-#: ../java/examples/guestfs-java.pod:59 ../lua/examples/guestfs-lua.pod:134
+#: ../java/examples/guestfs-java.pod:59 ../lua/examples/guestfs-lua.pod:152
#: ../ocaml/examples/guestfs-ocaml.pod:92 ../perl/examples/guestfs-perl.pod:54
#: ../python/examples/guestfs-python.pod:55
#: ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:4084
@@ -1672,14 +1672,14 @@ msgstr "著者"
#. type: textblock
#: ../appliance/libguestfs-make-fixed-appliance.pod:155
-#: ../erlang/examples/guestfs-erlang.pod:112
+#: ../erlang/examples/guestfs-erlang.pod:113
#: ../examples/guestfs-examples.pod:48 ../examples/guestfs-faq.pod:804
#: ../examples/guestfs-performance.pod:444 ../examples/guestfs-recipes.pod:512
#: ../examples/guestfs-testing.pod:314 ../fish/guestfish.pod:1404
#: ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51
#: ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53
#: ../fuse/guestmount.pod:411 ../java/examples/guestfs-java.pod:61
-#: ../lua/examples/guestfs-lua.pod:136 ../ocaml/examples/guestfs-ocaml.pod:94
+#: ../lua/examples/guestfs-lua.pod:154 ../ocaml/examples/guestfs-ocaml.pod:94
#: ../perl/examples/guestfs-perl.pod:56
#: ../python/examples/guestfs-python.pod:57
#: ../ruby/examples/guestfs-ruby.pod:51 ../src/guestfs.pod:4086
@@ -4854,7 +4854,7 @@ msgid ""
msgstr ""
#. type: =head2
-#: ../erlang/examples/guestfs-erlang.pod:23 ../lua/examples/guestfs-lua.pod:23
+#: ../erlang/examples/guestfs-erlang.pod:23 ../lua/examples/guestfs-lua.pod:33
msgid "OPENING AND CLOSING THE HANDLE"
msgstr ""
@@ -4907,7 +4907,7 @@ msgstr ""
"\n"
#. type: =head2
-#: ../erlang/examples/guestfs-erlang.pod:40 ../lua/examples/guestfs-lua.pod:48
+#: ../erlang/examples/guestfs-erlang.pod:40 ../lua/examples/guestfs-lua.pod:58
msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
msgstr ""
@@ -5027,7 +5027,7 @@ msgstr ""
#. type: =head1
#: ../erlang/examples/guestfs-erlang.pod:89
#: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
-#: ../lua/examples/guestfs-lua.pod:113 ../ocaml/examples/guestfs-ocaml.pod:70
+#: ../lua/examples/guestfs-lua.pod:130 ../ocaml/examples/guestfs-ocaml.pod:70
#: ../perl/examples/guestfs-perl.pod:32
#: ../python/examples/guestfs-python.pod:34
#: ../ruby/examples/guestfs-ruby.pod:28
@@ -5037,7 +5037,7 @@ msgstr "例 1: ディスクイメージの作成"
#. type: textblock
#: ../erlang/examples/guestfs-erlang.pod:91
#: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
-#: ../lua/examples/guestfs-lua.pod:115 ../ocaml/examples/guestfs-ocaml.pod:72
+#: ../lua/examples/guestfs-lua.pod:132 ../ocaml/examples/guestfs-ocaml.pod:72
#: ../perl/examples/guestfs-perl.pod:34
#: ../python/examples/guestfs-python.pod:36
#: ../ruby/examples/guestfs-ruby.pod:30
@@ -5047,7 +5047,7 @@ msgstr "@EXAMPLE1@"
#. type: =head1
#: ../erlang/examples/guestfs-erlang.pod:93
#: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
-#: ../lua/examples/guestfs-lua.pod:117 ../ocaml/examples/guestfs-ocaml.pod:74
+#: ../lua/examples/guestfs-lua.pod:134 ../ocaml/examples/guestfs-ocaml.pod:74
#: ../perl/examples/guestfs-perl.pod:36
#: ../python/examples/guestfs-python.pod:38
#: ../ruby/examples/guestfs-ruby.pod:32
@@ -5057,7 +5057,7 @@ msgstr "例 2: 仮想マシンのディスクイメージの検査"
#. type: textblock
#: ../erlang/examples/guestfs-erlang.pod:95
#: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
-#: ../lua/examples/guestfs-lua.pod:119 ../ocaml/examples/guestfs-ocaml.pod:76
+#: ../lua/examples/guestfs-lua.pod:136 ../ocaml/examples/guestfs-ocaml.pod:76
#: ../perl/examples/guestfs-perl.pod:38
#: ../python/examples/guestfs-python.pod:40
#: ../ruby/examples/guestfs-ruby.pod:34
@@ -5066,18 +5066,23 @@ msgstr "@EXAMPLE2@"
#. type: textblock
#: ../erlang/examples/guestfs-erlang.pod:99
-#: ../lua/examples/guestfs-lua.pod:123
+#, fuzzy
+#| msgid ""
+#| "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml"
+#| "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
+#| "L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
msgid ""
-"L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
-">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
-"L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
+"L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-lua(3)"
+">, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-"
+"recipes(1)>, L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://"
+"libguestfs.org/>."
msgstr ""
"L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
"L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>。"
#. type: textblock
-#: ../erlang/examples/guestfs-erlang.pod:116
+#: ../erlang/examples/guestfs-erlang.pod:117
#: ../examples/guestfs-testing.pod:318 ../fish/virt-copy-in.pod:66
#: ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64
#: ../fish/virt-tar-out.pod:57 ../java/examples/guestfs-java.pod:65
@@ -6821,7 +6826,7 @@ msgstr "L<guestfish(1)>, L<guestfs(3)>, L<http://libguestfs.org/>."
#. type: textblock
#: ../examples/guestfs-faq.pod:808 ../examples/guestfs-performance.pod:448
-#: ../format/virt-format.pod:193 ../lua/examples/guestfs-lua.pod:140
+#: ../format/virt-format.pod:193 ../lua/examples/guestfs-lua.pod:158
msgid "Copyright (C) 2012 Red Hat Inc."
msgstr "Copyright (C) 2012 Red Hat Inc."
@@ -9121,7 +9126,7 @@ msgstr ""
#. type: textblock
#: ../examples/guestfs-testing.pod:68 ../examples/guestfs-testing.pod:175
#: ../examples/guestfs-testing.pod:188 ../examples/guestfs-testing.pod:248
-#: ../lua/examples/guestfs-lua.pod:56 ../src/guestfs.pod:3446
+#: ../lua/examples/guestfs-lua.pod:66 ../src/guestfs.pod:3446
msgid "or:"
msgstr "または:"
@@ -37149,8 +37154,8 @@ msgstr "guestfs-java - Java から libguestfs を使用する方法"
#| " g.launch ()\n"
#| "\n"
msgid ""
-" require \"guestfs\"\n"
-" g = Guestfs.create ()\n"
+" local G = require \"guestfs\"\n"
+" g = G.create ()\n"
" g:add_drive (\"test.img\", { format = \"raw\", readonly = true })\n"
" g:launch ()\n"
" devices = g:list_devices ()\n"
@@ -37180,57 +37185,84 @@ msgstr ""
"ます。 libguestfs を使用することに慣れていなければ、L<guestfs(3)> を読む必要"
"もあります。"
+#. type: =head2
+#: ../lua/examples/guestfs-lua.pod:23
+msgid "REQUIRING THE MODULE"
+msgstr ""
+
#. type: textblock
#: ../lua/examples/guestfs-lua.pod:25
+msgid ""
+"C<require \"guestfs\"> returns the module, so you have to assign it to a "
+"local variable. Typical usage is:"
+msgstr ""
+
+#. type: verbatim
+#: ../lua/examples/guestfs-lua.pod:28
+#, no-wrap
+msgid ""
+" local G = require \"guestfs\"\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../lua/examples/guestfs-lua.pod:30
+msgid ""
+"(you can use any name you want instead of C<G>, but in the examples in this "
+"man page we always use C<G>)."
+msgstr ""
+
+#. type: textblock
+#: ../lua/examples/guestfs-lua.pod:35
#, fuzzy
#| msgid "To close the handle:"
msgid "To create a new handle, call:"
msgstr "ハンドルを閉じるには:"
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:27
+#: ../lua/examples/guestfs-lua.pod:37
#, fuzzy, no-wrap
#| msgid ""
#| " {ok, G} = guestfs:create().\n"
#| "\n"
msgid ""
-" g = Guestfs.create ()\n"
+" g = G.create ()\n"
"\n"
msgstr ""
" {ok, G} = guestfs:create().\n"
"\n"
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:29
+#: ../lua/examples/guestfs-lua.pod:39
#, fuzzy
#| msgid "With a single optional argument:"
msgid "You can also use the optional arguments:"
msgstr "単一の引数の場合:"
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:31
+#: ../lua/examples/guestfs-lua.pod:41
#, no-wrap
msgid ""
-" g = Guestfs.create { environment = 0, close_on_exit = 0 }\n"
+" g = G.create { environment = 0, close_on_exit = 0 }\n"
"\n"
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:33
+#: ../lua/examples/guestfs-lua.pod:43
msgid ""
"to set the flags C<GUESTFS_CREATE_NO_ENVIRONMENT> and/or "
"C<GUESTFS_CREATE_NO_CLOSE_ON_EXIT>."
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:36
+#: ../lua/examples/guestfs-lua.pod:46
msgid ""
"The handle will be closed by the garbage collector, but you can also close "
"it explicitly by doing:"
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:39
+#: ../lua/examples/guestfs-lua.pod:49
#, fuzzy, no-wrap
#| msgid ""
#| " aug-close\n"
@@ -37243,19 +37275,19 @@ msgstr ""
"\n"
#. type: =head2
-#: ../lua/examples/guestfs-lua.pod:41
+#: ../lua/examples/guestfs-lua.pod:51
msgid "CALLING METHODS"
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:43
+#: ../lua/examples/guestfs-lua.pod:53
msgid ""
"Use the ordinary Lua convention for calling methods on the handle. For "
"example:"
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:46
+#: ../lua/examples/guestfs-lua.pod:56
#, fuzzy, no-wrap
#| msgid ""
#| " set-verbose true|false\n"
@@ -37268,7 +37300,7 @@ msgstr ""
"\n"
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:50
+#: ../lua/examples/guestfs-lua.pod:60
msgid ""
"For functions that take optional arguments, the first arguments are the non-"
"optional ones. The optional final argument is a table supplying the "
@@ -37276,7 +37308,7 @@ msgid ""
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:54
+#: ../lua/examples/guestfs-lua.pod:64
#, no-wrap
msgid ""
" g:add_drive (\"test.img\")\n"
@@ -37284,7 +37316,7 @@ msgid ""
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:58
+#: ../lua/examples/guestfs-lua.pod:68
#, no-wrap
msgid ""
" g:add_drive (\"test.img\", { format = \"raw\", readonly = true })\n"
@@ -37292,12 +37324,12 @@ msgid ""
msgstr ""
#. type: =head2
-#: ../lua/examples/guestfs-lua.pod:60
+#: ../lua/examples/guestfs-lua.pod:70
msgid "64 BIT VALUES"
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:62
+#: ../lua/examples/guestfs-lua.pod:72
msgid ""
"Currently 64 bit values must be passed as strings, and are returned as "
"strings. This is because 32 bit Lua cannot handle 64 bit integers "
@@ -37305,26 +37337,26 @@ msgid ""
msgstr ""
#. type: =head2
-#: ../lua/examples/guestfs-lua.pod:66 ../perl/examples/guestfs-perl.pod:27
+#: ../lua/examples/guestfs-lua.pod:76 ../perl/examples/guestfs-perl.pod:27
msgid "ERRORS"
msgstr "エラー"
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:68
+#: ../lua/examples/guestfs-lua.pod:78
msgid ""
"Most (but not all) errors are converted into objects (ie. tables) "
"containing the following fields:"
msgstr ""
#. type: =item
-#: ../lua/examples/guestfs-lua.pod:73
+#: ../lua/examples/guestfs-lua.pod:83
#, fuzzy
#| msgid "dmesg"
msgid "msg"
msgstr "dmesg"
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:75
+#: ../lua/examples/guestfs-lua.pod:85
#, fuzzy
#| msgid "C<Errno> can be zero. See L<guestfs(3)/guestfs_last_errno>."
msgid "The error message (corresponding to L<guestfs(3)/guestfs_last_error>)."
@@ -37332,12 +37364,12 @@ msgstr ""
"C<Errno> は 0 の可能性があります。 L<guestfs(3)/guestfs_last_errno> 参照。"
#. type: =item
-#: ../lua/examples/guestfs-lua.pod:77
+#: ../lua/examples/guestfs-lua.pod:87
msgid "code"
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:79
+#: ../lua/examples/guestfs-lua.pod:89
#, fuzzy
#| msgid "C<Errno> can be zero. See L<guestfs(3)/guestfs_last_errno>."
msgid "The C<errno> (corresponding to L<guestfs(3)/guestfs_last_errno>)."
@@ -37345,24 +37377,32 @@ msgstr ""
"C<Errno> は 0 の可能性があります。 L<guestfs(3)/guestfs_last_errno> 参照。"
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:83
+#: ../lua/examples/guestfs-lua.pod:93
+msgid ""
+"These objects also have C<__tostring> functions attached to them so you can "
+"use C<tostring> (or implicit conversion) to convert them into printable "
+"strings."
+msgstr ""
+
+#. type: textblock
+#: ../lua/examples/guestfs-lua.pod:97
msgid ""
-"Note that some errors can also be thrown as plain strings. You need to "
-"check the type."
+"Note that the library also throws some errors as plain strings. You may "
+"need to check the type."
msgstr ""
#. type: =head1
-#: ../lua/examples/guestfs-lua.pod:86 ../src/guestfs.pod:2162
+#: ../lua/examples/guestfs-lua.pod:100 ../src/guestfs.pod:2162
msgid "EVENTS"
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:88
+#: ../lua/examples/guestfs-lua.pod:102
msgid "Events can be registered by calling C<set_event_callback>:"
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:90
+#: ../lua/examples/guestfs-lua.pod:104
#, no-wrap
msgid ""
" eh = g:set_event_callback (cb, \"close\")\n"
@@ -37370,14 +37410,14 @@ msgid ""
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:92
+#: ../lua/examples/guestfs-lua.pod:106
msgid ""
"or to register a single callback for multiple events make the second "
"argument a list:"
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:95
+#: ../lua/examples/guestfs-lua.pod:109
#, no-wrap
msgid ""
" eh = g:set_event_callback (cb, { \"appliance\", \"library\", \"trace\" })\n"
@@ -37385,12 +37425,19 @@ msgid ""
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:97
+#: ../lua/examples/guestfs-lua.pod:111
+msgid ""
+"A list of all valid event types (strings) is in the global variable C<G."
+"event_all>."
+msgstr ""
+
+#. type: textblock
+#: ../lua/examples/guestfs-lua.pod:114
msgid "The callback (C<cb>) is called with the following parameters:"
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:99
+#: ../lua/examples/guestfs-lua.pod:116
#, no-wrap
msgid ""
" function cb (g, event, eh, flags, buf, array)\n"
@@ -37405,14 +37452,14 @@ msgid ""
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:108
+#: ../lua/examples/guestfs-lua.pod:125
msgid ""
"You can also remove a callback using the event handle (C<eh>) that was "
"returned when you registered the callback:"
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:111
+#: ../lua/examples/guestfs-lua.pod:128
#, fuzzy, no-wrap
#| msgid "guestfs_delete_event_callback"
msgid ""
@@ -37421,6 +37468,23 @@ msgid ""
msgstr "guestfs_delete_event_callback"
#. type: textblock
+#: ../lua/examples/guestfs-lua.pod:140
+#, fuzzy
+#| msgid ""
+#| "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml"
+#| "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
+#| "L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
+msgid ""
+"L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
+"(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
+"L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://www.lua.org/>, L<http://"
+"libguestfs.org/>."
+msgstr ""
+"L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
+">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
+"L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>。"
+
+#. type: textblock
#: ../ocaml/examples/guestfs-ocaml.pod:5
msgid "guestfs-ocaml - How to use libguestfs from OCaml"
msgstr "guestfs-ocaml - OCaml から libguestfs を使用する方法"
diff --git a/po-docs/libguestfs-docs.pot b/po-docs/libguestfs-docs.pot
index 1f8b9d4c..0b419e2d 100644
--- a/po-docs/libguestfs-docs.pot
+++ b/po-docs/libguestfs-docs.pot
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: libguestfs 1.19.61\n"
+"Project-Id-Version: libguestfs 1.19.62\n"
"Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
-"POT-Creation-Date: 2012-11-19 14:45+0000\n"
+"POT-Creation-Date: 2012-11-20 19:40+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -800,7 +800,7 @@ msgid ""
msgstr ""
#. type: =head1
-#: ../align/virt-alignment-scan.pod:375 ../appliance/libguestfs-make-fixed-appliance.pod:144 ../cat/virt-cat.pod:243 ../cat/virt-filesystems.pod:389 ../cat/virt-ls.pod:495 ../daemon/guestfsd.pod:92 ../df/virt-df.pod:253 ../edit/virt-edit.pod:368 ../erlang/examples/guestfs-erlang.pod:97 ../examples/guestfs-examples.pod:33 ../examples/guestfs-faq.pod:796 ../examples/guestfs-performance.pod:429 ../examples/guestfs-recipes.pod:496 ../examples/guestfs-testing.pod:305 ../fish/guestfish.pod:1374 ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41 ../format/virt-format.pod:177 ../fuse/guestmount.pod:398 ../guestfs-release-notes.pod:1853 ../inspector/virt-inspector.pod:501 ../java/examples/guestfs-java.pod:45 ../lua/examples/guestfs-lua.pod:121 ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:40 ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:340 ../resize/virt-resize.pod:702 ../ruby/examples/guestfs-ruby.pod:36 ../sparsify/virt-sparsify.pod:299 ../src/guestfs.pod:4031 ../sysprep/virt-sysprep.pod:480 ../test-tool/libguestfs-test-tool.pod:106 ../tools/virt-list-filesystems.pl:197 ../tools/virt-list-partitions.pl:267 ../tools/virt-make-fs.pl:627 ../tools/virt-tar.pl:294 ../tools/virt-win-reg.pl:747
+#: ../align/virt-alignment-scan.pod:375 ../appliance/libguestfs-make-fixed-appliance.pod:144 ../cat/virt-cat.pod:243 ../cat/virt-filesystems.pod:389 ../cat/virt-ls.pod:495 ../daemon/guestfsd.pod:92 ../df/virt-df.pod:253 ../edit/virt-edit.pod:368 ../erlang/examples/guestfs-erlang.pod:97 ../examples/guestfs-examples.pod:33 ../examples/guestfs-faq.pod:796 ../examples/guestfs-performance.pod:429 ../examples/guestfs-recipes.pod:496 ../examples/guestfs-testing.pod:305 ../fish/guestfish.pod:1374 ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41 ../format/virt-format.pod:177 ../fuse/guestmount.pod:398 ../guestfs-release-notes.pod:1853 ../inspector/virt-inspector.pod:501 ../java/examples/guestfs-java.pod:45 ../lua/examples/guestfs-lua.pod:138 ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:40 ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:340 ../resize/virt-resize.pod:702 ../ruby/examples/guestfs-ruby.pod:36 ../sparsify/virt-sparsify.pod:299 ../src/guestfs.pod:4031 ../sysprep/virt-sysprep.pod:480 ../test-tool/libguestfs-test-tool.pod:106 ../tools/virt-list-filesystems.pl:197 ../tools/virt-list-partitions.pl:267 ../tools/virt-make-fs.pl:627 ../tools/virt-tar.pl:294 ../tools/virt-win-reg.pl:747
msgid "SEE ALSO"
msgstr ""
@@ -822,7 +822,7 @@ msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
msgstr ""
#. type: =head1
-#: ../align/virt-alignment-scan.pod:388 ../appliance/libguestfs-make-fixed-appliance.pod:157 ../cat/virt-cat.pod:256 ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:511 ../daemon/guestfsd.pod:101 ../df/virt-df.pod:265 ../edit/virt-edit.pod:386 ../erlang/examples/guestfs-erlang.pod:114 ../examples/guestfs-examples.pod:50 ../examples/guestfs-faq.pod:806 ../examples/guestfs-performance.pod:446 ../examples/guestfs-recipes.pod:514 ../examples/guestfs-testing.pod:316 ../fish/guestfish.pod:1406 ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55 ../format/virt-format.pod:191 ../fuse/guestmount.pod:413 ../guestfs-release-notes.pod:1868 ../inspector/virt-inspector.pod:524 ../java/examples/guestfs-java.pod:63 ../lua/examples/guestfs-lua.pod:138 ../ocaml/examples/guestfs-ocaml.pod:96 ../perl/examples/guestfs-perl.pod:58 ../python/examples/guestfs-python.pod:59 ../rescue/virt-rescue.pod:353 ../resize/virt-resize.pod:729 ../ruby/examples/guestfs-ruby.pod:53 ../sparsify/virt-sparsify.pod:316 ../src/guestfs.pod:4088 ../sysprep/virt-sysprep.pod:501 ../test-tool/libguestfs-test-tool.pod:116 ../tools/virt-list-filesystems.pl:214 ../tools/virt-list-partitions.pl:283 ../tools/virt-make-fs.pl:646 ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:766
+#: ../align/virt-alignment-scan.pod:388 ../appliance/libguestfs-make-fixed-appliance.pod:157 ../cat/virt-cat.pod:256 ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:511 ../daemon/guestfsd.pod:101 ../df/virt-df.pod:265 ../edit/virt-edit.pod:386 ../erlang/examples/guestfs-erlang.pod:115 ../examples/guestfs-examples.pod:50 ../examples/guestfs-faq.pod:806 ../examples/guestfs-performance.pod:446 ../examples/guestfs-recipes.pod:514 ../examples/guestfs-testing.pod:316 ../fish/guestfish.pod:1406 ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55 ../format/virt-format.pod:191 ../fuse/guestmount.pod:413 ../guestfs-release-notes.pod:1868 ../inspector/virt-inspector.pod:524 ../java/examples/guestfs-java.pod:63 ../lua/examples/guestfs-lua.pod:156 ../ocaml/examples/guestfs-ocaml.pod:96 ../perl/examples/guestfs-perl.pod:58 ../python/examples/guestfs-python.pod:59 ../rescue/virt-rescue.pod:353 ../resize/virt-resize.pod:729 ../ruby/examples/guestfs-ruby.pod:53 ../sparsify/virt-sparsify.pod:316 ../src/guestfs.pod:4088 ../sysprep/virt-sysprep.pod:501 ../test-tool/libguestfs-test-tool.pod:116 ../tools/virt-list-filesystems.pl:214 ../tools/virt-list-partitions.pl:283 ../tools/virt-make-fs.pl:646 ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:766
msgid "COPYRIGHT"
msgstr ""
@@ -1097,12 +1097,12 @@ msgid ""
msgstr ""
#. type: =head1
-#: ../appliance/libguestfs-make-fixed-appliance.pod:153 ../erlang/examples/guestfs-erlang.pod:110 ../examples/guestfs-examples.pod:46 ../examples/guestfs-faq.pod:802 ../examples/guestfs-performance.pod:442 ../examples/guestfs-recipes.pod:510 ../examples/guestfs-testing.pod:312 ../fish/guestfish.pod:1402 ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:409 ../inspector/virt-inspector.pod:510 ../java/examples/guestfs-java.pod:59 ../lua/examples/guestfs-lua.pod:134 ../ocaml/examples/guestfs-ocaml.pod:92 ../perl/examples/guestfs-perl.pod:54 ../python/examples/guestfs-python.pod:55 ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:4084 ../sysprep/virt-sysprep.pod:495 ../test-tool/libguestfs-test-tool.pod:112
+#: ../appliance/libguestfs-make-fixed-appliance.pod:153 ../erlang/examples/guestfs-erlang.pod:111 ../examples/guestfs-examples.pod:46 ../examples/guestfs-faq.pod:802 ../examples/guestfs-performance.pod:442 ../examples/guestfs-recipes.pod:510 ../examples/guestfs-testing.pod:312 ../fish/guestfish.pod:1402 ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:409 ../inspector/virt-inspector.pod:510 ../java/examples/guestfs-java.pod:59 ../lua/examples/guestfs-lua.pod:152 ../ocaml/examples/guestfs-ocaml.pod:92 ../perl/examples/guestfs-perl.pod:54 ../python/examples/guestfs-python.pod:55 ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:4084 ../sysprep/virt-sysprep.pod:495 ../test-tool/libguestfs-test-tool.pod:112
msgid "AUTHORS"
msgstr ""
#. type: textblock
-#: ../appliance/libguestfs-make-fixed-appliance.pod:155 ../erlang/examples/guestfs-erlang.pod:112 ../examples/guestfs-examples.pod:48 ../examples/guestfs-faq.pod:804 ../examples/guestfs-performance.pod:444 ../examples/guestfs-recipes.pod:512 ../examples/guestfs-testing.pod:314 ../fish/guestfish.pod:1404 ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:411 ../java/examples/guestfs-java.pod:61 ../lua/examples/guestfs-lua.pod:136 ../ocaml/examples/guestfs-ocaml.pod:94 ../perl/examples/guestfs-perl.pod:56 ../python/examples/guestfs-python.pod:57 ../ruby/examples/guestfs-ruby.pod:51 ../src/guestfs.pod:4086 ../test-tool/libguestfs-test-tool.pod:114
+#: ../appliance/libguestfs-make-fixed-appliance.pod:155 ../erlang/examples/guestfs-erlang.pod:113 ../examples/guestfs-examples.pod:48 ../examples/guestfs-faq.pod:804 ../examples/guestfs-performance.pod:444 ../examples/guestfs-recipes.pod:512 ../examples/guestfs-testing.pod:314 ../fish/guestfish.pod:1404 ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:411 ../java/examples/guestfs-java.pod:61 ../lua/examples/guestfs-lua.pod:154 ../ocaml/examples/guestfs-ocaml.pod:94 ../perl/examples/guestfs-perl.pod:56 ../python/examples/guestfs-python.pod:57 ../ruby/examples/guestfs-ruby.pod:51 ../src/guestfs.pod:4086 ../test-tool/libguestfs-test-tool.pod:114
msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
msgstr ""
@@ -3860,7 +3860,7 @@ msgid ""
msgstr ""
#. type: =head2
-#: ../erlang/examples/guestfs-erlang.pod:23 ../lua/examples/guestfs-lua.pod:23
+#: ../erlang/examples/guestfs-erlang.pod:23 ../lua/examples/guestfs-lua.pod:33
msgid "OPENING AND CLOSING THE HANDLE"
msgstr ""
@@ -3907,7 +3907,7 @@ msgid ""
msgstr ""
#. type: =head2
-#: ../erlang/examples/guestfs-erlang.pod:40 ../lua/examples/guestfs-lua.pod:48
+#: ../erlang/examples/guestfs-erlang.pod:40 ../lua/examples/guestfs-lua.pod:58
msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
msgstr ""
@@ -4017,36 +4017,36 @@ msgid "C<Arg> is the name of the unknown argument."
msgstr ""
#. type: =head1
-#: ../erlang/examples/guestfs-erlang.pod:89 ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37 ../lua/examples/guestfs-lua.pod:113 ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:32 ../python/examples/guestfs-python.pod:34 ../ruby/examples/guestfs-ruby.pod:28
+#: ../erlang/examples/guestfs-erlang.pod:89 ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37 ../lua/examples/guestfs-lua.pod:130 ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:32 ../python/examples/guestfs-python.pod:34 ../ruby/examples/guestfs-ruby.pod:28
msgid "EXAMPLE 1: CREATE A DISK IMAGE"
msgstr ""
#. type: textblock
-#: ../erlang/examples/guestfs-erlang.pod:91 ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39 ../lua/examples/guestfs-lua.pod:115 ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:34 ../python/examples/guestfs-python.pod:36 ../ruby/examples/guestfs-ruby.pod:30
+#: ../erlang/examples/guestfs-erlang.pod:91 ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39 ../lua/examples/guestfs-lua.pod:132 ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:34 ../python/examples/guestfs-python.pod:36 ../ruby/examples/guestfs-ruby.pod:30
msgid "@EXAMPLE1@"
msgstr ""
#. type: =head1
-#: ../erlang/examples/guestfs-erlang.pod:93 ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41 ../lua/examples/guestfs-lua.pod:117 ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:36 ../python/examples/guestfs-python.pod:38 ../ruby/examples/guestfs-ruby.pod:32
+#: ../erlang/examples/guestfs-erlang.pod:93 ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41 ../lua/examples/guestfs-lua.pod:134 ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:36 ../python/examples/guestfs-python.pod:38 ../ruby/examples/guestfs-ruby.pod:32
msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
msgstr ""
#. type: textblock
-#: ../erlang/examples/guestfs-erlang.pod:95 ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43 ../lua/examples/guestfs-lua.pod:119 ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:38 ../python/examples/guestfs-python.pod:40 ../ruby/examples/guestfs-ruby.pod:34
+#: ../erlang/examples/guestfs-erlang.pod:95 ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43 ../lua/examples/guestfs-lua.pod:136 ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:38 ../python/examples/guestfs-python.pod:40 ../ruby/examples/guestfs-ruby.pod:34
msgid "@EXAMPLE2@"
msgstr ""
#. type: textblock
-#: ../erlang/examples/guestfs-erlang.pod:99 ../lua/examples/guestfs-lua.pod:123
+#: ../erlang/examples/guestfs-erlang.pod:99
msgid ""
"L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
-"L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
-"L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://www.erlang.org/>. "
-"L<http://libguestfs.org/>."
+"L<guestfs-lua(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
+"L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
+"L<http://www.erlang.org/>. L<http://libguestfs.org/>."
msgstr ""
#. type: textblock
-#: ../erlang/examples/guestfs-erlang.pod:116 ../examples/guestfs-testing.pod:318 ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57 ../java/examples/guestfs-java.pod:65 ../perl/examples/guestfs-perl.pod:60 ../sparsify/virt-sparsify.pod:318 ../sysprep/virt-sysprep.pod:503
+#: ../erlang/examples/guestfs-erlang.pod:117 ../examples/guestfs-testing.pod:318 ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57 ../java/examples/guestfs-java.pod:65 ../perl/examples/guestfs-perl.pod:60 ../sparsify/virt-sparsify.pod:318 ../sysprep/virt-sysprep.pod:503
msgid "Copyright (C) 2011-2012 Red Hat Inc."
msgstr ""
@@ -5713,7 +5713,7 @@ msgid "L<guestfish(1)>, L<guestfs(3)>, L<http://libguestfs.org/>."
msgstr ""
#. type: textblock
-#: ../examples/guestfs-faq.pod:808 ../examples/guestfs-performance.pod:448 ../format/virt-format.pod:193 ../lua/examples/guestfs-lua.pod:140
+#: ../examples/guestfs-faq.pod:808 ../examples/guestfs-performance.pod:448 ../format/virt-format.pod:193 ../lua/examples/guestfs-lua.pod:158
msgid "Copyright (C) 2012 Red Hat Inc."
msgstr ""
@@ -7730,7 +7730,7 @@ msgid ""
msgstr ""
#. type: textblock
-#: ../examples/guestfs-testing.pod:68 ../examples/guestfs-testing.pod:175 ../examples/guestfs-testing.pod:188 ../examples/guestfs-testing.pod:248 ../lua/examples/guestfs-lua.pod:56 ../src/guestfs.pod:3446
+#: ../examples/guestfs-testing.pod:68 ../examples/guestfs-testing.pod:175 ../examples/guestfs-testing.pod:188 ../examples/guestfs-testing.pod:248 ../lua/examples/guestfs-lua.pod:66 ../src/guestfs.pod:3446
msgid "or:"
msgstr ""
@@ -33602,8 +33602,8 @@ msgstr ""
#: ../lua/examples/guestfs-lua.pod:9
#, no-wrap
msgid ""
-" require \"guestfs\"\n"
-" g = Guestfs.create ()\n"
+" local G = require \"guestfs\"\n"
+" g = G.create ()\n"
" g:add_drive (\"test.img\", { format = \"raw\", readonly = true })\n"
" g:launch ()\n"
" devices = g:list_devices ()\n"
@@ -33620,48 +33620,75 @@ msgid ""
"to read L<guestfs(3)>."
msgstr ""
+#. type: =head2
+#: ../lua/examples/guestfs-lua.pod:23
+msgid "REQUIRING THE MODULE"
+msgstr ""
+
#. type: textblock
#: ../lua/examples/guestfs-lua.pod:25
+msgid ""
+"C<require \"guestfs\"> returns the module, so you have to assign it to a "
+"local variable. Typical usage is:"
+msgstr ""
+
+#. type: verbatim
+#: ../lua/examples/guestfs-lua.pod:28
+#, no-wrap
+msgid ""
+" local G = require \"guestfs\"\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../lua/examples/guestfs-lua.pod:30
+msgid ""
+"(you can use any name you want instead of C<G>, but in the examples in this "
+"man page we always use C<G>)."
+msgstr ""
+
+#. type: textblock
+#: ../lua/examples/guestfs-lua.pod:35
msgid "To create a new handle, call:"
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:27
+#: ../lua/examples/guestfs-lua.pod:37
#, no-wrap
msgid ""
-" g = Guestfs.create ()\n"
+" g = G.create ()\n"
"\n"
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:29
+#: ../lua/examples/guestfs-lua.pod:39
msgid "You can also use the optional arguments:"
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:31
+#: ../lua/examples/guestfs-lua.pod:41
#, no-wrap
msgid ""
-" g = Guestfs.create { environment = 0, close_on_exit = 0 }\n"
+" g = G.create { environment = 0, close_on_exit = 0 }\n"
"\n"
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:33
+#: ../lua/examples/guestfs-lua.pod:43
msgid ""
"to set the flags C<GUESTFS_CREATE_NO_ENVIRONMENT> and/or "
"C<GUESTFS_CREATE_NO_CLOSE_ON_EXIT>."
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:36
+#: ../lua/examples/guestfs-lua.pod:46
msgid ""
"The handle will be closed by the garbage collector, but you can also close "
"it explicitly by doing:"
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:39
+#: ../lua/examples/guestfs-lua.pod:49
#, no-wrap
msgid ""
" g:close ()\n"
@@ -33669,19 +33696,19 @@ msgid ""
msgstr ""
#. type: =head2
-#: ../lua/examples/guestfs-lua.pod:41
+#: ../lua/examples/guestfs-lua.pod:51
msgid "CALLING METHODS"
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:43
+#: ../lua/examples/guestfs-lua.pod:53
msgid ""
"Use the ordinary Lua convention for calling methods on the handle. For "
"example:"
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:46
+#: ../lua/examples/guestfs-lua.pod:56
#, no-wrap
msgid ""
" g:set_verbose (true)\n"
@@ -33689,7 +33716,7 @@ msgid ""
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:50
+#: ../lua/examples/guestfs-lua.pod:60
msgid ""
"For functions that take optional arguments, the first arguments are the "
"non-optional ones. The optional final argument is a table supplying the "
@@ -33697,7 +33724,7 @@ msgid ""
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:54
+#: ../lua/examples/guestfs-lua.pod:64
#, no-wrap
msgid ""
" g:add_drive (\"test.img\")\n"
@@ -33705,7 +33732,7 @@ msgid ""
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:58
+#: ../lua/examples/guestfs-lua.pod:68
#, no-wrap
msgid ""
" g:add_drive (\"test.img\", { format = \"raw\", readonly = true })\n"
@@ -33713,12 +33740,12 @@ msgid ""
msgstr ""
#. type: =head2
-#: ../lua/examples/guestfs-lua.pod:60
+#: ../lua/examples/guestfs-lua.pod:70
msgid "64 BIT VALUES"
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:62
+#: ../lua/examples/guestfs-lua.pod:72
msgid ""
"Currently 64 bit values must be passed as strings, and are returned as "
"strings. This is because 32 bit Lua cannot handle 64 bit integers "
@@ -33726,56 +33753,64 @@ msgid ""
msgstr ""
#. type: =head2
-#: ../lua/examples/guestfs-lua.pod:66 ../perl/examples/guestfs-perl.pod:27
+#: ../lua/examples/guestfs-lua.pod:76 ../perl/examples/guestfs-perl.pod:27
msgid "ERRORS"
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:68
+#: ../lua/examples/guestfs-lua.pod:78
msgid ""
"Most (but not all) errors are converted into objects (ie. tables) "
"containing the following fields:"
msgstr ""
#. type: =item
-#: ../lua/examples/guestfs-lua.pod:73
+#: ../lua/examples/guestfs-lua.pod:83
msgid "msg"
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:75
+#: ../lua/examples/guestfs-lua.pod:85
msgid "The error message (corresponding to L<guestfs(3)/guestfs_last_error>)."
msgstr ""
#. type: =item
-#: ../lua/examples/guestfs-lua.pod:77
+#: ../lua/examples/guestfs-lua.pod:87
msgid "code"
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:79
+#: ../lua/examples/guestfs-lua.pod:89
msgid "The C<errno> (corresponding to L<guestfs(3)/guestfs_last_errno>)."
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:83
+#: ../lua/examples/guestfs-lua.pod:93
+msgid ""
+"These objects also have C<__tostring> functions attached to them so you can "
+"use C<tostring> (or implicit conversion) to convert them into printable "
+"strings."
+msgstr ""
+
+#. type: textblock
+#: ../lua/examples/guestfs-lua.pod:97
msgid ""
-"Note that some errors can also be thrown as plain strings. You need to "
-"check the type."
+"Note that the library also throws some errors as plain strings. You may "
+"need to check the type."
msgstr ""
#. type: =head1
-#: ../lua/examples/guestfs-lua.pod:86 ../src/guestfs.pod:2162
+#: ../lua/examples/guestfs-lua.pod:100 ../src/guestfs.pod:2162
msgid "EVENTS"
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:88
+#: ../lua/examples/guestfs-lua.pod:102
msgid "Events can be registered by calling C<set_event_callback>:"
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:90
+#: ../lua/examples/guestfs-lua.pod:104
#, no-wrap
msgid ""
" eh = g:set_event_callback (cb, \"close\")\n"
@@ -33783,14 +33818,14 @@ msgid ""
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:92
+#: ../lua/examples/guestfs-lua.pod:106
msgid ""
"or to register a single callback for multiple events make the second "
"argument a list:"
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:95
+#: ../lua/examples/guestfs-lua.pod:109
#, no-wrap
msgid ""
" eh = g:set_event_callback (cb, { \"appliance\", \"library\", \"trace\" })\n"
@@ -33798,12 +33833,19 @@ msgid ""
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:97
+#: ../lua/examples/guestfs-lua.pod:111
+msgid ""
+"A list of all valid event types (strings) is in the global variable "
+"C<G.event_all>."
+msgstr ""
+
+#. type: textblock
+#: ../lua/examples/guestfs-lua.pod:114
msgid "The callback (C<cb>) is called with the following parameters:"
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:99
+#: ../lua/examples/guestfs-lua.pod:116
#, no-wrap
msgid ""
" function cb (g, event, eh, flags, buf, array)\n"
@@ -33818,14 +33860,14 @@ msgid ""
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:108
+#: ../lua/examples/guestfs-lua.pod:125
msgid ""
"You can also remove a callback using the event handle (C<eh>) that was "
"returned when you registered the callback:"
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:111
+#: ../lua/examples/guestfs-lua.pod:128
#, no-wrap
msgid ""
" g:delete_event_callback (eh)\n"
@@ -33833,6 +33875,15 @@ msgid ""
msgstr ""
#. type: textblock
+#: ../lua/examples/guestfs-lua.pod:140
+msgid ""
+"L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
+"L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
+"L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
+"L<http://www.lua.org/>, L<http://libguestfs.org/>."
+msgstr ""
+
+#. type: textblock
#: ../ocaml/examples/guestfs-ocaml.pod:5
msgid "guestfs-ocaml - How to use libguestfs from OCaml"
msgstr ""
diff --git a/po-docs/uk.po b/po-docs/uk.po
index 29eaa528..62615506 100644
--- a/po-docs/uk.po
+++ b/po-docs/uk.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: libguestfs\n"
"Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
-"POT-Creation-Date: 2012-11-19 14:45+0000\n"
+"POT-Creation-Date: 2012-11-20 19:40+0000\n"
"PO-Revision-Date: 2012-10-14 12:25+0000\n"
"Last-Translator: rjones <rjones@redhat.com>\n"
"Language-Team: Ukrainian <trans-uk@lists.fedoraproject.org>\n"
@@ -1236,7 +1236,7 @@ msgstr ""
#: ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41
#: ../format/virt-format.pod:177 ../fuse/guestmount.pod:398
#: ../guestfs-release-notes.pod:1853 ../inspector/virt-inspector.pod:501
-#: ../java/examples/guestfs-java.pod:45 ../lua/examples/guestfs-lua.pod:121
+#: ../java/examples/guestfs-java.pod:45 ../lua/examples/guestfs-lua.pod:138
#: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:40
#: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:340
#: ../resize/virt-resize.pod:702 ../ruby/examples/guestfs-ruby.pod:36
@@ -1287,7 +1287,7 @@ msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
#: ../appliance/libguestfs-make-fixed-appliance.pod:157
#: ../cat/virt-cat.pod:256 ../cat/virt-filesystems.pod:404
#: ../cat/virt-ls.pod:511 ../daemon/guestfsd.pod:101 ../df/virt-df.pod:265
-#: ../edit/virt-edit.pod:386 ../erlang/examples/guestfs-erlang.pod:114
+#: ../edit/virt-edit.pod:386 ../erlang/examples/guestfs-erlang.pod:115
#: ../examples/guestfs-examples.pod:50 ../examples/guestfs-faq.pod:806
#: ../examples/guestfs-performance.pod:446 ../examples/guestfs-recipes.pod:514
#: ../examples/guestfs-testing.pod:316 ../fish/guestfish.pod:1406
@@ -1295,7 +1295,7 @@ msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
#: ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55
#: ../format/virt-format.pod:191 ../fuse/guestmount.pod:413
#: ../guestfs-release-notes.pod:1868 ../inspector/virt-inspector.pod:524
-#: ../java/examples/guestfs-java.pod:63 ../lua/examples/guestfs-lua.pod:138
+#: ../java/examples/guestfs-java.pod:63 ../lua/examples/guestfs-lua.pod:156
#: ../ocaml/examples/guestfs-ocaml.pod:96 ../perl/examples/guestfs-perl.pod:58
#: ../python/examples/guestfs-python.pod:59 ../rescue/virt-rescue.pod:353
#: ../resize/virt-resize.pod:729 ../ruby/examples/guestfs-ruby.pod:53
@@ -1609,14 +1609,14 @@ msgstr ""
#. type: =head1
#: ../appliance/libguestfs-make-fixed-appliance.pod:153
-#: ../erlang/examples/guestfs-erlang.pod:110
+#: ../erlang/examples/guestfs-erlang.pod:111
#: ../examples/guestfs-examples.pod:46 ../examples/guestfs-faq.pod:802
#: ../examples/guestfs-performance.pod:442 ../examples/guestfs-recipes.pod:510
#: ../examples/guestfs-testing.pod:312 ../fish/guestfish.pod:1402
#: ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49
#: ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51
#: ../fuse/guestmount.pod:409 ../inspector/virt-inspector.pod:510
-#: ../java/examples/guestfs-java.pod:59 ../lua/examples/guestfs-lua.pod:134
+#: ../java/examples/guestfs-java.pod:59 ../lua/examples/guestfs-lua.pod:152
#: ../ocaml/examples/guestfs-ocaml.pod:92 ../perl/examples/guestfs-perl.pod:54
#: ../python/examples/guestfs-python.pod:55
#: ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:4084
@@ -1626,14 +1626,14 @@ msgstr "АВТОРИ"
#. type: textblock
#: ../appliance/libguestfs-make-fixed-appliance.pod:155
-#: ../erlang/examples/guestfs-erlang.pod:112
+#: ../erlang/examples/guestfs-erlang.pod:113
#: ../examples/guestfs-examples.pod:48 ../examples/guestfs-faq.pod:804
#: ../examples/guestfs-performance.pod:444 ../examples/guestfs-recipes.pod:512
#: ../examples/guestfs-testing.pod:314 ../fish/guestfish.pod:1404
#: ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51
#: ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53
#: ../fuse/guestmount.pod:411 ../java/examples/guestfs-java.pod:61
-#: ../lua/examples/guestfs-lua.pod:136 ../ocaml/examples/guestfs-ocaml.pod:94
+#: ../lua/examples/guestfs-lua.pod:154 ../ocaml/examples/guestfs-ocaml.pod:94
#: ../perl/examples/guestfs-perl.pod:56
#: ../python/examples/guestfs-python.pod:57
#: ../ruby/examples/guestfs-ruby.pod:51 ../src/guestfs.pod:4086
@@ -4654,7 +4654,7 @@ msgid ""
msgstr ""
#. type: =head2
-#: ../erlang/examples/guestfs-erlang.pod:23 ../lua/examples/guestfs-lua.pod:23
+#: ../erlang/examples/guestfs-erlang.pod:23 ../lua/examples/guestfs-lua.pod:33
msgid "OPENING AND CLOSING THE HANDLE"
msgstr ""
@@ -4701,7 +4701,7 @@ msgid ""
msgstr ""
#. type: =head2
-#: ../erlang/examples/guestfs-erlang.pod:40 ../lua/examples/guestfs-lua.pod:48
+#: ../erlang/examples/guestfs-erlang.pod:40 ../lua/examples/guestfs-lua.pod:58
msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
msgstr ""
@@ -4813,7 +4813,7 @@ msgstr "C<Аргумент> — назва невідомого аргумент
#. type: =head1
#: ../erlang/examples/guestfs-erlang.pod:89
#: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
-#: ../lua/examples/guestfs-lua.pod:113 ../ocaml/examples/guestfs-ocaml.pod:70
+#: ../lua/examples/guestfs-lua.pod:130 ../ocaml/examples/guestfs-ocaml.pod:70
#: ../perl/examples/guestfs-perl.pod:32
#: ../python/examples/guestfs-python.pod:34
#: ../ruby/examples/guestfs-ruby.pod:28
@@ -4823,7 +4823,7 @@ msgstr "ПРИКЛАД 1. СТВОРЕННЯ ОБРАЗУ ДИСКА"
#. type: textblock
#: ../erlang/examples/guestfs-erlang.pod:91
#: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
-#: ../lua/examples/guestfs-lua.pod:115 ../ocaml/examples/guestfs-ocaml.pod:72
+#: ../lua/examples/guestfs-lua.pod:132 ../ocaml/examples/guestfs-ocaml.pod:72
#: ../perl/examples/guestfs-perl.pod:34
#: ../python/examples/guestfs-python.pod:36
#: ../ruby/examples/guestfs-ruby.pod:30
@@ -4833,7 +4833,7 @@ msgstr "@EXAMPLE1@"
#. type: =head1
#: ../erlang/examples/guestfs-erlang.pod:93
#: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
-#: ../lua/examples/guestfs-lua.pod:117 ../ocaml/examples/guestfs-ocaml.pod:74
+#: ../lua/examples/guestfs-lua.pod:134 ../ocaml/examples/guestfs-ocaml.pod:74
#: ../perl/examples/guestfs-perl.pod:36
#: ../python/examples/guestfs-python.pod:38
#: ../ruby/examples/guestfs-ruby.pod:32
@@ -4843,7 +4843,7 @@ msgstr "ПРИКЛАД 2. ПЕРЕВІРКА ОБРАЗУ ДИСКА ВІРТУ
#. type: textblock
#: ../erlang/examples/guestfs-erlang.pod:95
#: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
-#: ../lua/examples/guestfs-lua.pod:119 ../ocaml/examples/guestfs-ocaml.pod:76
+#: ../lua/examples/guestfs-lua.pod:136 ../ocaml/examples/guestfs-ocaml.pod:76
#: ../perl/examples/guestfs-perl.pod:38
#: ../python/examples/guestfs-python.pod:40
#: ../ruby/examples/guestfs-ruby.pod:34
@@ -4852,18 +4852,23 @@ msgstr "@EXAMPLE2@"
#. type: textblock
#: ../erlang/examples/guestfs-erlang.pod:99
-#: ../lua/examples/guestfs-lua.pod:123
+#, fuzzy
+#| msgid ""
+#| "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml"
+#| "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
+#| "L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
msgid ""
-"L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
-">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
-"L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
+"L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-lua(3)"
+">, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-"
+"recipes(1)>, L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://"
+"libguestfs.org/>."
msgstr ""
"L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
"L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
#. type: textblock
-#: ../erlang/examples/guestfs-erlang.pod:116
+#: ../erlang/examples/guestfs-erlang.pod:117
#: ../examples/guestfs-testing.pod:318 ../fish/virt-copy-in.pod:66
#: ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64
#: ../fish/virt-tar-out.pod:57 ../java/examples/guestfs-java.pod:65
@@ -6572,7 +6577,7 @@ msgstr ""
#. type: textblock
#: ../examples/guestfs-faq.pod:808 ../examples/guestfs-performance.pod:448
-#: ../format/virt-format.pod:193 ../lua/examples/guestfs-lua.pod:140
+#: ../format/virt-format.pod:193 ../lua/examples/guestfs-lua.pod:158
msgid "Copyright (C) 2012 Red Hat Inc."
msgstr ""
@@ -8749,7 +8754,7 @@ msgstr ""
#. type: textblock
#: ../examples/guestfs-testing.pod:68 ../examples/guestfs-testing.pod:175
#: ../examples/guestfs-testing.pod:188 ../examples/guestfs-testing.pod:248
-#: ../lua/examples/guestfs-lua.pod:56 ../src/guestfs.pod:3446
+#: ../lua/examples/guestfs-lua.pod:66 ../src/guestfs.pod:3446
msgid "or:"
msgstr "або:"
@@ -35500,8 +35505,8 @@ msgstr ""
#: ../lua/examples/guestfs-lua.pod:9
#, no-wrap
msgid ""
-" require \"guestfs\"\n"
-" g = Guestfs.create ()\n"
+" local G = require \"guestfs\"\n"
+" g = G.create ()\n"
" g:add_drive (\"test.img\", { format = \"raw\", readonly = true })\n"
" g:launch ()\n"
" devices = g:list_devices ()\n"
@@ -35518,57 +35523,84 @@ msgid ""
"to read L<guestfs(3)>."
msgstr ""
+#. type: =head2
+#: ../lua/examples/guestfs-lua.pod:23
+msgid "REQUIRING THE MODULE"
+msgstr ""
+
#. type: textblock
#: ../lua/examples/guestfs-lua.pod:25
+msgid ""
+"C<require \"guestfs\"> returns the module, so you have to assign it to a "
+"local variable. Typical usage is:"
+msgstr ""
+
+#. type: verbatim
+#: ../lua/examples/guestfs-lua.pod:28
+#, no-wrap
+msgid ""
+" local G = require \"guestfs\"\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../lua/examples/guestfs-lua.pod:30
+msgid ""
+"(you can use any name you want instead of C<G>, but in the examples in this "
+"man page we always use C<G>)."
+msgstr ""
+
+#. type: textblock
+#: ../lua/examples/guestfs-lua.pod:35
#, fuzzy
#| msgid "Create a connection handle."
msgid "To create a new handle, call:"
msgstr "Створити дескриптор з’єднання."
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:27
+#: ../lua/examples/guestfs-lua.pod:37
#, fuzzy, no-wrap
#| msgid ""
#| " guestfs_h *g = guestfs_create ();\n"
#| " \n"
msgid ""
-" g = Guestfs.create ()\n"
+" g = G.create ()\n"
"\n"
msgstr ""
" guestfs_h *g = guestfs_create ();\n"
" \n"
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:29
+#: ../lua/examples/guestfs-lua.pod:39
#, fuzzy
#| msgid "You can give this option multiple times."
msgid "You can also use the optional arguments:"
msgstr "Цей параметр можна вказувати декілька разів."
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:31
+#: ../lua/examples/guestfs-lua.pod:41
#, no-wrap
msgid ""
-" g = Guestfs.create { environment = 0, close_on_exit = 0 }\n"
+" g = G.create { environment = 0, close_on_exit = 0 }\n"
"\n"
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:33
+#: ../lua/examples/guestfs-lua.pod:43
msgid ""
"to set the flags C<GUESTFS_CREATE_NO_ENVIRONMENT> and/or "
"C<GUESTFS_CREATE_NO_CLOSE_ON_EXIT>."
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:36
+#: ../lua/examples/guestfs-lua.pod:46
msgid ""
"The handle will be closed by the garbage collector, but you can also close "
"it explicitly by doing:"
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:39
+#: ../lua/examples/guestfs-lua.pod:49
#, no-wrap
msgid ""
" g:close ()\n"
@@ -35576,19 +35608,19 @@ msgid ""
msgstr ""
#. type: =head2
-#: ../lua/examples/guestfs-lua.pod:41
+#: ../lua/examples/guestfs-lua.pod:51
msgid "CALLING METHODS"
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:43
+#: ../lua/examples/guestfs-lua.pod:53
msgid ""
"Use the ordinary Lua convention for calling methods on the handle. For "
"example:"
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:46
+#: ../lua/examples/guestfs-lua.pod:56
#, fuzzy, no-wrap
#| msgid ""
#| " set-verbose true|false\n"
@@ -35601,7 +35633,7 @@ msgstr ""
"\n"
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:50
+#: ../lua/examples/guestfs-lua.pod:60
msgid ""
"For functions that take optional arguments, the first arguments are the non-"
"optional ones. The optional final argument is a table supplying the "
@@ -35609,7 +35641,7 @@ msgid ""
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:54
+#: ../lua/examples/guestfs-lua.pod:64
#, no-wrap
msgid ""
" g:add_drive (\"test.img\")\n"
@@ -35617,7 +35649,7 @@ msgid ""
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:58
+#: ../lua/examples/guestfs-lua.pod:68
#, no-wrap
msgid ""
" g:add_drive (\"test.img\", { format = \"raw\", readonly = true })\n"
@@ -35625,12 +35657,12 @@ msgid ""
msgstr ""
#. type: =head2
-#: ../lua/examples/guestfs-lua.pod:60
+#: ../lua/examples/guestfs-lua.pod:70
msgid "64 BIT VALUES"
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:62
+#: ../lua/examples/guestfs-lua.pod:72
msgid ""
"Currently 64 bit values must be passed as strings, and are returned as "
"strings. This is because 32 bit Lua cannot handle 64 bit integers "
@@ -35638,58 +35670,66 @@ msgid ""
msgstr ""
#. type: =head2
-#: ../lua/examples/guestfs-lua.pod:66 ../perl/examples/guestfs-perl.pod:27
+#: ../lua/examples/guestfs-lua.pod:76 ../perl/examples/guestfs-perl.pod:27
msgid "ERRORS"
msgstr "ПОМИЛКИ"
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:68
+#: ../lua/examples/guestfs-lua.pod:78
msgid ""
"Most (but not all) errors are converted into objects (ie. tables) "
"containing the following fields:"
msgstr ""
#. type: =item
-#: ../lua/examples/guestfs-lua.pod:73
+#: ../lua/examples/guestfs-lua.pod:83
#, fuzzy
#| msgid "dmesg"
msgid "msg"
msgstr "dmesg"
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:75
+#: ../lua/examples/guestfs-lua.pod:85
msgid "The error message (corresponding to L<guestfs(3)/guestfs_last_error>)."
msgstr ""
#. type: =item
-#: ../lua/examples/guestfs-lua.pod:77
+#: ../lua/examples/guestfs-lua.pod:87
msgid "code"
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:79
+#: ../lua/examples/guestfs-lua.pod:89
msgid "The C<errno> (corresponding to L<guestfs(3)/guestfs_last_errno>)."
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:83
+#: ../lua/examples/guestfs-lua.pod:93
+msgid ""
+"These objects also have C<__tostring> functions attached to them so you can "
+"use C<tostring> (or implicit conversion) to convert them into printable "
+"strings."
+msgstr ""
+
+#. type: textblock
+#: ../lua/examples/guestfs-lua.pod:97
msgid ""
-"Note that some errors can also be thrown as plain strings. You need to "
-"check the type."
+"Note that the library also throws some errors as plain strings. You may "
+"need to check the type."
msgstr ""
#. type: =head1
-#: ../lua/examples/guestfs-lua.pod:86 ../src/guestfs.pod:2162
+#: ../lua/examples/guestfs-lua.pod:100 ../src/guestfs.pod:2162
msgid "EVENTS"
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:88
+#: ../lua/examples/guestfs-lua.pod:102
msgid "Events can be registered by calling C<set_event_callback>:"
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:90
+#: ../lua/examples/guestfs-lua.pod:104
#, no-wrap
msgid ""
" eh = g:set_event_callback (cb, \"close\")\n"
@@ -35697,14 +35737,14 @@ msgid ""
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:92
+#: ../lua/examples/guestfs-lua.pod:106
msgid ""
"or to register a single callback for multiple events make the second "
"argument a list:"
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:95
+#: ../lua/examples/guestfs-lua.pod:109
#, no-wrap
msgid ""
" eh = g:set_event_callback (cb, { \"appliance\", \"library\", \"trace\" })\n"
@@ -35712,12 +35752,19 @@ msgid ""
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:97
+#: ../lua/examples/guestfs-lua.pod:111
+msgid ""
+"A list of all valid event types (strings) is in the global variable C<G."
+"event_all>."
+msgstr ""
+
+#. type: textblock
+#: ../lua/examples/guestfs-lua.pod:114
msgid "The callback (C<cb>) is called with the following parameters:"
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:99
+#: ../lua/examples/guestfs-lua.pod:116
#, no-wrap
msgid ""
" function cb (g, event, eh, flags, buf, array)\n"
@@ -35732,14 +35779,14 @@ msgid ""
msgstr ""
#. type: textblock
-#: ../lua/examples/guestfs-lua.pod:108
+#: ../lua/examples/guestfs-lua.pod:125
msgid ""
"You can also remove a callback using the event handle (C<eh>) that was "
"returned when you registered the callback:"
msgstr ""
#. type: verbatim
-#: ../lua/examples/guestfs-lua.pod:111
+#: ../lua/examples/guestfs-lua.pod:128
#, fuzzy, no-wrap
#| msgid "guestfs_delete_event_callback"
msgid ""
@@ -35748,6 +35795,23 @@ msgid ""
msgstr "guestfs_delete_event_callback"
#. type: textblock
+#: ../lua/examples/guestfs-lua.pod:140
+#, fuzzy
+#| msgid ""
+#| "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml"
+#| "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
+#| "L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
+msgid ""
+"L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
+"(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
+"L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://www.lua.org/>, L<http://"
+"libguestfs.org/>."
+msgstr ""
+"L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
+">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
+"L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
+
+#. type: textblock
#: ../ocaml/examples/guestfs-ocaml.pod:5
msgid "guestfs-ocaml - How to use libguestfs from OCaml"
msgstr ""
diff --git a/po/libguestfs.pot b/po/libguestfs.pot
index 5c597f21..c0a4f192 100644
--- a/po/libguestfs.pot
+++ b/po/libguestfs.pot
@@ -6,10 +6,10 @@
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: libguestfs 1.19.61\n"
+"Project-Id-Version: libguestfs 1.19.62\n"
"Report-Msgid-Bugs-To: https://bugzilla.redhat.com/enter_bug.cgi?"
"component=libguestfs&product=Virtualization+Tools\n"
-"POT-Creation-Date: 2012-11-19 14:45+0000\n"
+"POT-Creation-Date: 2012-11-20 19:40+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"