diff options
-rw-r--r-- | BUGS | 2 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | po-docs/ja.po | 140 | ||||
-rw-r--r-- | po-docs/libguestfs-docs.pot | 132 | ||||
-rw-r--r-- | po-docs/uk.po | 134 | ||||
-rw-r--r-- | po/libguestfs.pot | 4 |
6 files changed, 352 insertions, 62 deletions
@@ -1,5 +1,5 @@ NOTE: This file is automatically generated from "update-bugs.sh". -Last updated: 2012-11-17 +Last updated: 2012-11-19 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 d8ccfa98..ad01e6e6 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], [60]) +m4_define([libguestfs_release], [61]) 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 708de987..ad984983 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-17 19:54+0000\n" +"POT-Creation-Date: 2012-11-19 14:45+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:78 +#: ../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 @@ -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:95 +#: ../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 @@ -1662,7 +1662,7 @@ msgstr "" #: ../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:91 +#: ../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 @@ -1679,7 +1679,7 @@ msgstr "著者" #: ../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:93 ../ocaml/examples/guestfs-ocaml.pod:94 +#: ../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 @@ -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:70 ../ocaml/examples/guestfs-ocaml.pod:70 +#: ../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 @@ -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:72 ../ocaml/examples/guestfs-ocaml.pod:72 +#: ../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 @@ -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:74 ../ocaml/examples/guestfs-ocaml.pod:74 +#: ../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 @@ -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:76 ../ocaml/examples/guestfs-ocaml.pod:76 +#: ../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 @@ -5065,7 +5065,8 @@ msgid "@EXAMPLE2@" msgstr "@EXAMPLE2@" #. type: textblock -#: ../erlang/examples/guestfs-erlang.pod:99 ../lua/examples/guestfs-lua.pod:80 +#: ../erlang/examples/guestfs-erlang.pod:99 +#: ../lua/examples/guestfs-lua.pod:123 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)>, " @@ -6820,7 +6821,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:97 +#: ../format/virt-format.pod:193 ../lua/examples/guestfs-lua.pod:140 msgid "Copyright (C) 2012 Red Hat Inc." msgstr "Copyright (C) 2012 Red Hat Inc." @@ -37150,7 +37151,7 @@ msgstr "guestfs-java - Java から libguestfs を使用する方法" msgid "" " require \"guestfs\"\n" " g = Guestfs.create ()\n" -" g:add_drive (\"test.img\", { format = \"raw\", readonly = \"true\" })\n" +" g:add_drive (\"test.img\", { format = \"raw\", readonly = true })\n" " g:launch ()\n" " devices = g:list_devices ()\n" " g:close ()\n" @@ -37286,7 +37287,7 @@ msgstr "" #: ../lua/examples/guestfs-lua.pod:58 #, no-wrap msgid "" -" g:add_drive (\"test.img\", { format = \"raw\", readonly = \"true\" })\n" +" g:add_drive (\"test.img\", { format = \"raw\", readonly = true })\n" "\n" msgstr "" @@ -37310,10 +37311,116 @@ msgstr "エラー" #. type: textblock #: ../lua/examples/guestfs-lua.pod:68 -msgid "Errors are converted into exceptions. Use C<pcall> to catch these." +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 +#, fuzzy +#| msgid "dmesg" +msgid "msg" +msgstr "dmesg" + +#. type: textblock +#: ../lua/examples/guestfs-lua.pod:75 +#, 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>)." +msgstr "" +"C<Errno> は 0 の可能性があります。 L<guestfs(3)/guestfs_last_errno> 参照。" + +#. type: =item +#: ../lua/examples/guestfs-lua.pod:77 +msgid "code" +msgstr "" + +#. type: textblock +#: ../lua/examples/guestfs-lua.pod:79 +#, 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>)." +msgstr "" +"C<Errno> は 0 の可能性があります。 L<guestfs(3)/guestfs_last_errno> 参照。" + +#. type: textblock +#: ../lua/examples/guestfs-lua.pod:83 +msgid "" +"Note that some errors can also be thrown as plain strings. You need to " +"check the type." +msgstr "" + +#. type: =head1 +#: ../lua/examples/guestfs-lua.pod:86 ../src/guestfs.pod:2162 +msgid "EVENTS" +msgstr "" + +#. type: textblock +#: ../lua/examples/guestfs-lua.pod:88 +msgid "Events can be registered by calling C<set_event_callback>:" +msgstr "" + +#. type: verbatim +#: ../lua/examples/guestfs-lua.pod:90 +#, no-wrap +msgid "" +" eh = g:set_event_callback (cb, \"close\")\n" +"\n" msgstr "" #. type: textblock +#: ../lua/examples/guestfs-lua.pod:92 +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 +#, no-wrap +msgid "" +" eh = g:set_event_callback (cb, { \"appliance\", \"library\", \"trace\" })\n" +"\n" +msgstr "" + +#. type: textblock +#: ../lua/examples/guestfs-lua.pod:97 +msgid "The callback (C<cb>) is called with the following parameters:" +msgstr "" + +#. type: verbatim +#: ../lua/examples/guestfs-lua.pod:99 +#, no-wrap +msgid "" +" function cb (g, event, eh, flags, buf, array)\n" +" -- g is the guestfs handle\n" +" -- event is a string which is the name of the event that fired\n" +" -- flags is always zero\n" +" -- buf is the data buffer (eg. log message etc)\n" +" -- array is the array of 64 bit ints (eg. progress bar status etc)\n" +" ...\n" +" end\n" +"\n" +msgstr "" + +#. type: textblock +#: ../lua/examples/guestfs-lua.pod:108 +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 +#, fuzzy, no-wrap +#| msgid "guestfs_delete_event_callback" +msgid "" +" g:delete_event_callback (eh)\n" +"\n" +msgstr "guestfs_delete_event_callback" + +#. type: textblock #: ../ocaml/examples/guestfs-ocaml.pod:5 msgid "guestfs-ocaml - How to use libguestfs from OCaml" msgstr "guestfs-ocaml - OCaml から libguestfs を使用する方法" @@ -61504,11 +61611,6 @@ msgstr "" msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>." msgstr "guestfish は L<guestfish(1)/OPTIONAL ARGUMENTS> を参照してください。" -#. type: =head1 -#: ../src/guestfs.pod:2162 -msgid "EVENTS" -msgstr "" - #. type: =head2 #: ../src/guestfs.pod:2164 msgid "SETTING CALLBACKS TO HANDLE EVENTS" diff --git a/po-docs/libguestfs-docs.pot b/po-docs/libguestfs-docs.pot index eb69ce76..1f8b9d4c 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.60\n" +"Project-Id-Version: libguestfs 1.19.61\n" "Report-Msgid-Bugs-To: libguestfs@redhat.com\n" -"POT-Creation-Date: 2012-11-17 19:54+0000\n" +"POT-Creation-Date: 2012-11-19 14:45+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:78 ../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: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 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:95 ../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: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 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:91 ../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: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 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:93 ../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: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 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)" msgstr "" @@ -4017,27 +4017,27 @@ 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:70 ../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: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 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:72 ../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: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 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:74 ../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: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 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:76 ../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: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 msgid "@EXAMPLE2@" msgstr "" #. type: textblock -#: ../erlang/examples/guestfs-erlang.pod:99 ../lua/examples/guestfs-lua.pod:80 +#: ../erlang/examples/guestfs-erlang.pod:99 ../lua/examples/guestfs-lua.pod:123 msgid "" "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, " "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, " @@ -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:97 +#: ../examples/guestfs-faq.pod:808 ../examples/guestfs-performance.pod:448 ../format/virt-format.pod:193 ../lua/examples/guestfs-lua.pod:140 msgid "Copyright (C) 2012 Red Hat Inc." msgstr "" @@ -33604,7 +33604,7 @@ msgstr "" msgid "" " require \"guestfs\"\n" " g = Guestfs.create ()\n" -" g:add_drive (\"test.img\", { format = \"raw\", readonly = \"true\" })\n" +" g:add_drive (\"test.img\", { format = \"raw\", readonly = true })\n" " g:launch ()\n" " devices = g:list_devices ()\n" " g:close ()\n" @@ -33708,7 +33708,7 @@ msgstr "" #: ../lua/examples/guestfs-lua.pod:58 #, no-wrap msgid "" -" g:add_drive (\"test.img\", { format = \"raw\", readonly = \"true\" })\n" +" g:add_drive (\"test.img\", { format = \"raw\", readonly = true })\n" "\n" msgstr "" @@ -33732,7 +33732,104 @@ msgstr "" #. type: textblock #: ../lua/examples/guestfs-lua.pod:68 -msgid "Errors are converted into exceptions. Use C<pcall> to catch these." +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 +msgid "msg" +msgstr "" + +#. type: textblock +#: ../lua/examples/guestfs-lua.pod:75 +msgid "The error message (corresponding to L<guestfs(3)/guestfs_last_error>)." +msgstr "" + +#. type: =item +#: ../lua/examples/guestfs-lua.pod:77 +msgid "code" +msgstr "" + +#. type: textblock +#: ../lua/examples/guestfs-lua.pod:79 +msgid "The C<errno> (corresponding to L<guestfs(3)/guestfs_last_errno>)." +msgstr "" + +#. type: textblock +#: ../lua/examples/guestfs-lua.pod:83 +msgid "" +"Note that some errors can also be thrown as plain strings. You need to " +"check the type." +msgstr "" + +#. type: =head1 +#: ../lua/examples/guestfs-lua.pod:86 ../src/guestfs.pod:2162 +msgid "EVENTS" +msgstr "" + +#. type: textblock +#: ../lua/examples/guestfs-lua.pod:88 +msgid "Events can be registered by calling C<set_event_callback>:" +msgstr "" + +#. type: verbatim +#: ../lua/examples/guestfs-lua.pod:90 +#, no-wrap +msgid "" +" eh = g:set_event_callback (cb, \"close\")\n" +"\n" +msgstr "" + +#. type: textblock +#: ../lua/examples/guestfs-lua.pod:92 +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 +#, no-wrap +msgid "" +" eh = g:set_event_callback (cb, { \"appliance\", \"library\", \"trace\" })\n" +"\n" +msgstr "" + +#. type: textblock +#: ../lua/examples/guestfs-lua.pod:97 +msgid "The callback (C<cb>) is called with the following parameters:" +msgstr "" + +#. type: verbatim +#: ../lua/examples/guestfs-lua.pod:99 +#, no-wrap +msgid "" +" function cb (g, event, eh, flags, buf, array)\n" +" -- g is the guestfs handle\n" +" -- event is a string which is the name of the event that fired\n" +" -- flags is always zero\n" +" -- buf is the data buffer (eg. log message etc)\n" +" -- array is the array of 64 bit ints (eg. progress bar status etc)\n" +" ...\n" +" end\n" +"\n" +msgstr "" + +#. type: textblock +#: ../lua/examples/guestfs-lua.pod:108 +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 +#, no-wrap +msgid "" +" g:delete_event_callback (eh)\n" +"\n" msgstr "" #. type: textblock @@ -53743,11 +53840,6 @@ msgstr "" msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>." msgstr "" -#. type: =head1 -#: ../src/guestfs.pod:2162 -msgid "EVENTS" -msgstr "" - #. type: =head2 #: ../src/guestfs.pod:2164 msgid "SETTING CALLBACKS TO HANDLE EVENTS" diff --git a/po-docs/uk.po b/po-docs/uk.po index ee4a297b..29eaa528 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-17 19:54+0000\n" +"POT-Creation-Date: 2012-11-19 14:45+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:78 +#: ../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 @@ -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:95 +#: ../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 @@ -1616,7 +1616,7 @@ msgstr "" #: ../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:91 +#: ../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 @@ -1633,7 +1633,7 @@ msgstr "АВТОРИ" #: ../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:93 ../ocaml/examples/guestfs-ocaml.pod:94 +#: ../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 @@ -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:70 ../ocaml/examples/guestfs-ocaml.pod:70 +#: ../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 @@ -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:72 ../ocaml/examples/guestfs-ocaml.pod:72 +#: ../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 @@ -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:74 ../ocaml/examples/guestfs-ocaml.pod:74 +#: ../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 @@ -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:76 ../ocaml/examples/guestfs-ocaml.pod:76 +#: ../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 @@ -4851,7 +4851,8 @@ msgid "@EXAMPLE2@" msgstr "@EXAMPLE2@" #. type: textblock -#: ../erlang/examples/guestfs-erlang.pod:99 ../lua/examples/guestfs-lua.pod:80 +#: ../erlang/examples/guestfs-erlang.pod:99 +#: ../lua/examples/guestfs-lua.pod:123 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)>, " @@ -6571,7 +6572,7 @@ msgstr "" #. type: textblock #: ../examples/guestfs-faq.pod:808 ../examples/guestfs-performance.pod:448 -#: ../format/virt-format.pod:193 ../lua/examples/guestfs-lua.pod:97 +#: ../format/virt-format.pod:193 ../lua/examples/guestfs-lua.pod:140 msgid "Copyright (C) 2012 Red Hat Inc." msgstr "" @@ -35501,7 +35502,7 @@ msgstr "" msgid "" " require \"guestfs\"\n" " g = Guestfs.create ()\n" -" g:add_drive (\"test.img\", { format = \"raw\", readonly = \"true\" })\n" +" g:add_drive (\"test.img\", { format = \"raw\", readonly = true })\n" " g:launch ()\n" " devices = g:list_devices ()\n" " g:close ()\n" @@ -35619,7 +35620,7 @@ msgstr "" #: ../lua/examples/guestfs-lua.pod:58 #, no-wrap msgid "" -" g:add_drive (\"test.img\", { format = \"raw\", readonly = \"true\" })\n" +" g:add_drive (\"test.img\", { format = \"raw\", readonly = true })\n" "\n" msgstr "" @@ -35643,9 +35644,109 @@ msgstr "ПОМИЛКИ" #. type: textblock #: ../lua/examples/guestfs-lua.pod:68 -msgid "Errors are converted into exceptions. Use C<pcall> to catch these." +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 +#, fuzzy +#| msgid "dmesg" +msgid "msg" +msgstr "dmesg" + +#. type: textblock +#: ../lua/examples/guestfs-lua.pod:75 +msgid "The error message (corresponding to L<guestfs(3)/guestfs_last_error>)." +msgstr "" + +#. type: =item +#: ../lua/examples/guestfs-lua.pod:77 +msgid "code" +msgstr "" + +#. type: textblock +#: ../lua/examples/guestfs-lua.pod:79 +msgid "The C<errno> (corresponding to L<guestfs(3)/guestfs_last_errno>)." +msgstr "" + +#. type: textblock +#: ../lua/examples/guestfs-lua.pod:83 +msgid "" +"Note that some errors can also be thrown as plain strings. You need to " +"check the type." +msgstr "" + +#. type: =head1 +#: ../lua/examples/guestfs-lua.pod:86 ../src/guestfs.pod:2162 +msgid "EVENTS" +msgstr "" + +#. type: textblock +#: ../lua/examples/guestfs-lua.pod:88 +msgid "Events can be registered by calling C<set_event_callback>:" +msgstr "" + +#. type: verbatim +#: ../lua/examples/guestfs-lua.pod:90 +#, no-wrap +msgid "" +" eh = g:set_event_callback (cb, \"close\")\n" +"\n" +msgstr "" + +#. type: textblock +#: ../lua/examples/guestfs-lua.pod:92 +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 +#, no-wrap +msgid "" +" eh = g:set_event_callback (cb, { \"appliance\", \"library\", \"trace\" })\n" +"\n" +msgstr "" + +#. type: textblock +#: ../lua/examples/guestfs-lua.pod:97 +msgid "The callback (C<cb>) is called with the following parameters:" +msgstr "" + +#. type: verbatim +#: ../lua/examples/guestfs-lua.pod:99 +#, no-wrap +msgid "" +" function cb (g, event, eh, flags, buf, array)\n" +" -- g is the guestfs handle\n" +" -- event is a string which is the name of the event that fired\n" +" -- flags is always zero\n" +" -- buf is the data buffer (eg. log message etc)\n" +" -- array is the array of 64 bit ints (eg. progress bar status etc)\n" +" ...\n" +" end\n" +"\n" +msgstr "" + +#. type: textblock +#: ../lua/examples/guestfs-lua.pod:108 +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 +#, fuzzy, no-wrap +#| msgid "guestfs_delete_event_callback" +msgid "" +" g:delete_event_callback (eh)\n" +"\n" +msgstr "guestfs_delete_event_callback" + #. type: textblock #: ../ocaml/examples/guestfs-ocaml.pod:5 msgid "guestfs-ocaml - How to use libguestfs from OCaml" @@ -59080,11 +59181,6 @@ msgstr "" msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>." msgstr "" -#. type: =head1 -#: ../src/guestfs.pod:2162 -msgid "EVENTS" -msgstr "" - #. type: =head2 #: ../src/guestfs.pod:2164 msgid "SETTING CALLBACKS TO HANDLE EVENTS" diff --git a/po/libguestfs.pot b/po/libguestfs.pot index a349b3e0..5c597f21 100644 --- a/po/libguestfs.pot +++ b/po/libguestfs.pot @@ -6,10 +6,10 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: libguestfs 1.19.60\n" +"Project-Id-Version: libguestfs 1.19.61\n" "Report-Msgid-Bugs-To: https://bugzilla.redhat.com/enter_bug.cgi?" "component=libguestfs&product=Virtualization+Tools\n" -"POT-Creation-Date: 2012-11-17 19:53+0000\n" +"POT-Creation-Date: 2012-11-19 14:45+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" |