[gnome-devel-docs] Updated German platform-demos translation
- From: Christian Kirbach <ckirbach src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] Updated German platform-demos translation
- Date: Tue, 4 Feb 2014 16:33:23 +0000 (UTC)
commit 79fb537faec30a6c24ba28cd98c3130da4e9cbd6
Author: Christian Kirbach <christian kirbach gmail com>
Date: Tue Feb 4 17:33:13 2014 +0100
Updated German platform-demos translation
platform-demos/de/de.po |21086 +++++++++++++++++++++++++++++++++--------------
1 files changed, 14795 insertions(+), 6291 deletions(-)
---
diff --git a/platform-demos/de/de.po b/platform-demos/de/de.po
index 2aa0aea..fbab97d 100644
--- a/platform-demos/de/de.po
+++ b/platform-demos/de/de.po
@@ -6,352 +6,229 @@
msgid ""
msgstr ""
"Project-Id-Version: gnome-devel-docs master\n"
-"POT-Creation-Date: 2013-03-11 13:22+0000\n"
-"PO-Revision-Date: 2013-03-12 22:56+0100\n"
-"Last-Translator: Mario Blättermann <mario blaettermann gmail com>\n"
+"POT-Creation-Date: 2014-02-04 15:04+0000\n"
+"PO-Revision-Date: 2014-01-26 19:15+0100\n"
+"Last-Translator: Benjamin Steinwender <b stbe at>\n"
"Language-Team: German <gnome-de gnome org>\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Generator: Poedit 1.6.3\n"
#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
msgctxt "_"
msgid "translator-credits"
msgstr "Mario Blättermann <mario blaettermann gmail com>, 2011, 2013"
-#: C/index.page:7(credit/name)
-msgid "GNOME Documentation Team"
-msgstr "GNOME-Dokumentationsteam"
-
-#: C/index.page:9(credit/years)
-msgid "2010, 2011"
-msgstr "2010, 2011"
-
-#: C/index.page:12(credit/name) C/message-board.c.page:14(credit/name)
-msgid "Shaun McCance"
-msgstr "Shaun McCance"
-
-#: C/index.page:14(credit/years) C/message-board.c.page:16(credit/years)
-msgid "2010"
-msgstr "2010"
-
-#: C/index.page:17(credit/name) C/guitar-tuner.c.page:18(credit/name)
-#: C/guitar-tuner.cpp.page:16(credit/name)
-#: C/guitar-tuner.py.page:18(credit/name)
-#: C/guitar-tuner.vala.page:17(credit/name)
-#: C/image-viewer.c.page:18(credit/name)
-#: C/image-viewer.cpp.page:16(credit/name)
-#: C/image-viewer.js.page:18(credit/name)
-#: C/image-viewer.py.page:18(credit/name)
-#: C/image-viewer.vala.page:18(credit/name)
-#: C/magic-mirror.vala.page:18(credit/name) C/photo-wall.c.page:17(credit/name)
-#: C/record-collection.js.page:18(credit/name)
-msgid "Johannes Schmid"
-msgstr "Johannes Schmid"
-
-#: C/index.page:19(credit/years) C/bug-filing.page:11(credit/years)
-#: C/documentation.page:12(credit/years) C/entry.py.page:22(credit/years)
-#: C/model-view-controller.py.page:17(credit/years)
-#: C/properties.py.page:17(credit/years)
-#: C/signals-callbacks.py.page:17(credit/years)
-#: C/strings.py.page:17(credit/years) C/textview.py.page:17(credit/years)
-#: C/toolbar_builder.py.page:29(credit/years) C/translate.page:12(credit/years)
-msgid "2011"
-msgstr "2011"
-
-#: C/index.page:22(credit/name) C/aboutdialog.vala.page:20(credit/name)
-#: C/beginner.py.page:14(credit/name) C/beginner.vala.page:14(credit/name)
-#: C/bug-filing.page:9(credit/name) C/button.vala.page:13(credit/name)
-#: C/c.page:10(credit/name) C/checkbutton.c.page:12(credit/name)
-#: C/checkbutton.vala.page:12(credit/name)
-#: C/colorbutton.vala.page:14(credit/name) C/combobox.vala.page:12(credit/name)
-#: C/cpp.page:10(credit/name) C/dialog.vala.page:12(credit/name)
-#: C/documentation.page:10(credit/name) C/entry.vala.page:12(credit/name)
-#: C/filechooserdialog.vala.page:15(credit/name) C/gmenu.c.page:12(credit/name)
-#: C/gmenu.js.page:12(credit/name) C/gmenu.py.page:14(credit/name)
-#: C/gmenu.vala.page:19(credit/name) C/grid.py.page:14(credit/name)
-#: C/grid.vala.page:14(credit/name)
-#: C/GtkApplicationWindow.c.page:12(credit/name)
-#: C/GtkApplicationWindow.js.page:12(credit/name)
-#: C/GtkApplicationWindow.py.page:14(credit/name)
-#: C/GtkApplicationWindow.vala.page:12(credit/name)
-#: C/guitar-tuner.vala.page:21(credit/name)
-#: C/helloWorld.js.page:19(credit/name) C/image.vala.page:12(credit/name)
-#: C/image-viewer.vala.page:26(credit/name) C/js.page:11(credit/name)
-#: C/label.vala.page:12(credit/name) C/linkbutton.vala.page:12(credit/name)
-#: C/menubar.py.page:14(credit/name) C/menubar.vala.page:14(credit/name)
-#: C/menubutton.py.page:13(credit/name) C/menubutton.vala.page:12(credit/name)
-#: C/messagedialog.vala.page:12(credit/name)
-#: C/progressbar.vala.page:12(credit/name) C/py.page:10(credit/name)
-#: C/radiobutton.vala.page:15(credit/name) C/scale.vala.page:14(credit/name)
-#: C/scrolledwindow.vala.page:13(credit/name)
-#: C/spinbutton.vala.page:14(credit/name) C/spinner.vala.page:12(credit/name)
-#: C/statusbar.vala.page:15(credit/name) C/switch.vala.page:16(credit/name)
-#: C/textview.vala.page:12(credit/name)
-#: C/togglebutton.vala.page:15(credit/name) C/toolbar.js.page:12(credit/name)
-#: C/toolbar.vala.page:13(credit/name)
-#: C/toolbar_builder.py.page:15(credit/name)
-#: C/toolbar_builder.vala.page:14(credit/name)
-#: C/treeview_simple_liststore.vala.page:14(credit/name)
-#: C/translate.page:10(credit/name) C/tutorial.py.page:14(credit/name)
-#: C/vala.page:10(credit/name) C/window.c.page:12(credit/name)
-#: C/window.py.page:14(credit/name) C/window.vala.page:12(credit/name)
-msgid "Tiffany Antopolski"
-msgstr "Tiffany Antopolski"
-
-#: C/index.page:27(page/title)
-msgid "GNOME Developer Platform Demos"
-msgstr "Demos zur GNOME-Entwicklerplattform"
-
-#: C/index.page:30(section/title)
-msgid "How to set up your development environment"
-msgstr "Einrichten Ihrer Entwicklungsumgebung"
-
-#: C/index.page:34(section/title)
-msgid "Tutorials, code samples, platform demos and more"
-msgstr ""
-
-#: C/index.page:38(section/title)
-msgid "Get Involved"
-msgstr "Mithelfen"
-
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/02_welcome_to_the_grid.js.page:94(media)
+#: C/02_welcome_to_the_grid.js.page:94
msgctxt "_"
msgid ""
"external ref='media/02_jsgrid_01.png' md5='3fdc22d361cf801f71557fdc76ae5b49'"
msgstr ""
"external ref='media/02_jsgrid_01.png' md5='3fdc22d361cf801f71557fdc76ae5b49'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/02_welcome_to_the_grid.js.page:149(media)
+#: C/02_welcome_to_the_grid.js.page:149
msgctxt "_"
msgid ""
"external ref='media/02_jsgrid_02.png' md5='07db86b0043ba5c3c24a90d7322bd81e'"
msgstr ""
"external ref='media/02_jsgrid_02.png' md5='07db86b0043ba5c3c24a90d7322bd81e'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/02_welcome_to_the_grid.js.page:166(media)
+#: C/02_welcome_to_the_grid.js.page:166
msgctxt "_"
msgid ""
"external ref='media/02_jsgrid_03.png' md5='817351e73c687d47253c56ed06b6629f'"
msgstr ""
"external ref='media/02_jsgrid_03.png' md5='817351e73c687d47253c56ed06b6629f'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/02_welcome_to_the_grid.js.page:196(media)
+#: C/02_welcome_to_the_grid.js.page:196
msgctxt "_"
msgid ""
"external ref='media/02_jsgrid_04.png' md5='eeaead27cee2851877fc3cfe66177f07'"
msgstr ""
"external ref='media/02_jsgrid_04.png' md5='eeaead27cee2851877fc3cfe66177f07'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/02_welcome_to_the_grid.js.page:205(media)
+#: C/02_welcome_to_the_grid.js.page:205
msgctxt "_"
msgid ""
"external ref='media/02_jsgrid_05.png' md5='a3ad12f432d5977fc1f66302ad5b7498'"
msgstr ""
"external ref='media/02_jsgrid_05.png' md5='a3ad12f432d5977fc1f66302ad5b7498'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/02_welcome_to_the_grid.js.page:216(media)
+#: C/02_welcome_to_the_grid.js.page:216
msgctxt "_"
msgid ""
"external ref='media/02_jsgrid_06.png' md5='450e48dbf6b8f5ce1c208e4812e1714b'"
msgstr ""
"external ref='media/02_jsgrid_06.png' md5='450e48dbf6b8f5ce1c208e4812e1714b'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/02_welcome_to_the_grid.js.page:226(media)
+#: C/02_welcome_to_the_grid.js.page:226
msgctxt "_"
msgid ""
"external ref='media/02_jsgrid_07.png' md5='0b304d70728903fbb2601d55bf00fdb9'"
msgstr ""
"external ref='media/02_jsgrid_07.png' md5='0b304d70728903fbb2601d55bf00fdb9'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/02_welcome_to_the_grid.js.page:248(media)
+#: C/02_welcome_to_the_grid.js.page:248
msgctxt "_"
msgid ""
"external ref='media/02_jsgrid_08.png' md5='78890beb47bd11360154b8ca4d50d1ff'"
msgstr ""
"external ref='media/02_jsgrid_08.png' md5='78890beb47bd11360154b8ca4d50d1ff'"
-#: C/02_welcome_to_the_grid.js.page:14(credit/name)
-#: C/03_getting_the_signal.js.page:15(credit/name)
-#: C/aboutdialog.js.page:11(credit/name) C/button.js.page:12(credit/name)
-#: C/checkbutton.js.page:12(credit/name) C/comboboxtext.js.page:14(credit/name)
-#: C/combobox.js.page:16(credit/name) C/dialog.js.page:12(credit/name)
-#: C/entry.js.page:12(credit/name) C/grid.js.page:17(credit/name)
-#: C/hellognome.js.page:11(credit/name) C/image.js.page:11(credit/name)
-#: C/label.js.page:12(credit/name) C/linkbutton.js.page:12(credit/name)
-#: C/messagedialog.js.page:15(credit/name)
-#: C/progressbar.js.page:11(credit/name) C/radiobutton.js.page:12(credit/name)
-#: C/scale.js.page:12(credit/name) C/set-up-gedit.js.page:11(credit/name)
-#: C/spinbutton.js.page:15(credit/name) C/spinner.js.page:12(credit/name)
-#: C/statusbar.js.page:12(credit/name) C/switch.js.page:12(credit/name)
-#: C/textview.js.page:16(credit/name) C/togglebutton.js.page:12(credit/name)
-#: C/treeview_simple_liststore.js.page:15(credit/name)
-#: C/window.js.page:12(credit/name)
+#. (itstool) path: credit/name
+#: C/02_welcome_to_the_grid.js.page:14 C/03_getting_the_signal.js.page:15
+#: C/aboutdialog.js.page:11 C/button.js.page:12 C/checkbutton.js.page:12
+#: C/comboboxtext.js.page:14 C/combobox.js.page:16 C/dialog.js.page:12
+#: C/entry.js.page:12 C/grid.js.page:17 C/hellognome.js.page:11
+#: C/image.js.page:11 C/label.js.page:12 C/linkbutton.js.page:12
+#: C/messagedialog.js.page:15 C/progressbar.js.page:11
+#: C/radiobutton.js.page:12 C/scale.js.page:12 C/set-up-gedit.js.page:11
+#: C/spinbutton.js.page:15 C/spinner.js.page:12 C/statusbar.js.page:12
+#: C/switch.js.page:12 C/textview.js.page:16 C/togglebutton.js.page:12
+#: C/treeview_simple_liststore.js.page:15 C/window.js.page:12
msgid "Taryn Fox"
msgstr "Taryn Fox"
-#: C/02_welcome_to_the_grid.js.page:16(credit/years)
-#: C/03_getting_the_signal.js.page:17(credit/years)
-#: C/aboutdialog.c.page:16(credit/years) C/aboutdialog.js.page:13(credit/years)
-#: C/aboutdialog.py.page:15(credit/years)
-#: C/aboutdialog.vala.page:16(credit/years) C/beginner.js.page:12(credit/years)
-#: C/button.c.page:16(credit/years) C/button.js.page:14(credit/years)
-#: C/button.py.page:16(credit/years) C/button.vala.page:15(credit/years)
-#: C/buttonbox.py.page:16(credit/years) C/checkbutton.c.page:14(credit/years)
-#: C/checkbutton.js.page:14(credit/years)
-#: C/checkbutton.py.page:15(credit/years)
-#: C/checkbutton.vala.page:14(credit/years)
-#: C/colorbutton.py.page:15(credit/years)
-#: C/colorbutton.vala.page:16(credit/years)
-#: C/comboboxtext.js.page:16(credit/years) C/combobox.js.page:18(credit/years)
-#: C/combobox.py.page:16(credit/years) C/combobox.vala.page:14(credit/years)
-#: C/combobox_multicolumn.py.page:15(credit/years)
-#: C/dialog.c.page:16(credit/years) C/dialog.js.page:14(credit/years)
-#: C/dialog.py.page:16(credit/years) C/dialog.vala.page:14(credit/years)
-#: C/entry.c.page:14(credit/years) C/entry.js.page:14(credit/years)
-#: C/entry.py.page:16(credit/years) C/entry.vala.page:14(credit/years)
-#: C/filechooserdialog.py.page:18(credit/years)
-#: C/filechooserdialog.vala.page:17(credit/years)
-#: C/fontchooserwidget.py.page:16(credit/years) C/gmenu.c.page:14(credit/years)
-#: C/gmenu.js.page:14(credit/years) C/gmenu.py.page:16(credit/years)
-#: C/gmenu.py.page:22(credit/years) C/gmenu.vala.page:15(credit/years)
-#: C/grid.c.page:14(credit/years) C/grid.js.page:14(credit/years)
-#: C/grid.py.page:16(credit/years) C/grid.py.page:22(credit/years)
-#: C/grid.vala.page:16(credit/years)
-#: C/GtkApplicationWindow.c.page:14(credit/years)
-#: C/GtkApplicationWindow.js.page:14(credit/years)
-#: C/GtkApplicationWindow.py.page:16(credit/years)
-#: C/GtkApplicationWindow.py.page:21(credit/years)
-#: C/GtkApplicationWindow.vala.page:14(credit/years)
-#: C/guitar-tuner.js.page:13(credit/years)
-#: C/hellognome.js.page:13(credit/years) C/helloWorld.js.page:16(credit/years)
-#: C/image.c.page:14(credit/years) C/image.js.page:13(credit/years)
-#: C/image.py.page:16(credit/years) C/image.vala.page:14(credit/years)
-#: C/label.c.page:15(credit/years) C/label.js.page:14(credit/years)
-#: C/label.py.page:17(credit/years) C/label.py.page:22(credit/years)
-#: C/label.vala.page:14(credit/years) C/linkbutton.c.page:14(credit/years)
-#: C/linkbutton.js.page:14(credit/years) C/linkbutton.py.page:15(credit/years)
-#: C/linkbutton.vala.page:14(credit/years) C/menubar.c.page:16(credit/years)
-#: C/menubar.py.page:16(credit/years) C/menubar.py.page:21(credit/years)
-#: C/menubar.vala.page:16(credit/years) C/menubutton.js.page:14(credit/years)
-#: C/menubutton.py.page:15(credit/years) C/menubutton.py.page:21(credit/years)
-#: C/menubutton.vala.page:14(credit/years)
-#: C/messagedialog.c.page:15(credit/years)
-#: C/messagedialog.js.page:17(credit/years)
-#: C/messagedialog.py.page:15(credit/years)
-#: C/messagedialog.vala.page:14(credit/years)
-#: C/model-view-controller.py.page:22(credit/years)
-#: C/paned.py.page:15(credit/years) C/progressbar.c.page:15(credit/years)
-#: C/progressbar.js.page:13(credit/years)
-#: C/progressbar.py.page:15(credit/years)
-#: C/progressbar.vala.page:14(credit/years)
-#: C/properties.py.page:22(credit/years) C/radiobutton.c.page:16(credit/years)
-#: C/radiobutton.js.page:14(credit/years)
-#: C/radiobutton.py.page:16(credit/years)
-#: C/radiobutton.vala.page:17(credit/years) C/scale.c.page:16(credit/years)
-#: C/scale.js.page:14(credit/years) C/scale.py.page:16(credit/years)
-#: C/scale.vala.page:16(credit/years) C/scrolledwindow.c.page:16(credit/years)
-#: C/scrolledwindow.py.page:15(credit/years)
-#: C/scrolledwindow.vala.page:15(credit/years)
-#: C/separator.py.page:16(credit/years) C/set-up-gedit.js.page:13(credit/years)
-#: C/signals-callbacks.py.page:22(credit/years)
-#: C/spinbutton.c.page:17(credit/years) C/spinbutton.js.page:17(credit/years)
-#: C/spinbutton.py.page:16(credit/years)
-#: C/spinbutton.vala.page:16(credit/years) C/spinner.c.page:15(credit/years)
-#: C/spinner.js.page:14(credit/years) C/spinner.py.page:15(credit/years)
-#: C/spinner.vala.page:14(credit/years) C/statusbar.c.page:18(credit/years)
-#: C/statusbar.js.page:14(credit/years) C/statusbar.py.page:16(credit/years)
-#: C/statusbar.vala.page:17(credit/years) C/strings.py.page:22(credit/years)
-#: C/switch.c.page:14(credit/years) C/switch.js.page:14(credit/years)
-#: C/switch.py.page:15(credit/years) C/switch.vala.page:18(credit/years)
-#: C/textview.c.page:14(credit/years) C/textview.js.page:18(credit/years)
-#: C/textview.py.page:23(credit/years) C/textview.vala.page:14(credit/years)
-#: C/togglebutton.c.page:18(credit/years)
-#: C/togglebutton.js.page:14(credit/years)
-#: C/togglebutton.py.page:15(credit/years)
-#: C/togglebutton.vala.page:17(credit/years) C/toolbar.c.page:16(credit/years)
-#: C/toolbar.js.page:14(credit/years) C/toolbar.py.page:16(credit/years)
-#: C/toolbar.vala.page:15(credit/years)
-#: C/toolbar_builder.py.page:17(credit/years)
-#: C/toolbar_builder.py.page:23(credit/years)
-#: C/toolbar_builder.vala.page:16(credit/years)
-#: C/tooltip.py.page:16(credit/years)
-#: C/treeview_advanced_liststore.py.page:15(credit/years)
-#: C/treeview_cellrenderertoggle.py.page:15(credit/years)
-#: C/treeview_simple_liststore.js.page:17(credit/years)
-#: C/treeview_simple_liststore.py.page:16(credit/years)
-#: C/treeview_simple_liststore.vala.page:16(credit/years)
-#: C/treeview_treestore.py.page:16(credit/years)
-#: C/tutorial.py.page:16(credit/years) C/weatherApp.js.page:13(credit/years)
-#: C/weatherAppMain.js.page:12(credit/years)
-#: C/weatherAutotools.js.page:12(credit/years)
-#: C/weatherGeonames.js.page:12(credit/years) C/window.c.page:14(credit/years)
-#: C/window.js.page:14(credit/years) C/window.py.page:16(credit/years)
-#: C/window.py.page:21(credit/years) C/window.vala.page:14(credit/years)
+#. (itstool) path: credit/years
+#: C/02_welcome_to_the_grid.js.page:16 C/03_getting_the_signal.js.page:17
+#: C/aboutdialog.c.page:16 C/aboutdialog.js.page:13 C/aboutdialog.py.page:15
+#: C/aboutdialog.vala.page:16 C/beginner.js.page:12 C/button.c.page:16
+#: C/button.js.page:14 C/button.py.page:16 C/button.vala.page:15
+#: C/buttonbox.py.page:16 C/checkbutton.c.page:14 C/checkbutton.js.page:14
+#: C/checkbutton.py.page:15 C/checkbutton.vala.page:14
+#: C/colorbutton.py.page:15 C/colorbutton.vala.page:16
+#: C/comboboxtext.js.page:16 C/combobox.c.page:14 C/combobox.js.page:18
+#: C/combobox.py.page:16 C/combobox.vala.page:14
+#: C/combobox_multicolumn.py.page:15 C/dialog.c.page:16 C/dialog.js.page:14
+#: C/dialog.py.page:16 C/dialog.vala.page:14 C/entry.c.page:14
+#: C/entry.js.page:14 C/entry.py.page:16 C/entry.vala.page:14
+#: C/filechooserdialog.py.page:18 C/filechooserdialog.vala.page:17
+#: C/fontchooserwidget.py.page:16 C/gmenu.c.page:14 C/gmenu.js.page:14
+#: C/gmenu.py.page:16 C/gmenu.py.page:22 C/gmenu.vala.page:15 C/grid.c.page:14
+#: C/grid.js.page:14 C/grid.py.page:16 C/grid.py.page:22 C/grid.vala.page:16
+#: C/GtkApplicationWindow.c.page:14 C/GtkApplicationWindow.js.page:14
+#: C/GtkApplicationWindow.py.page:16 C/GtkApplicationWindow.py.page:21
+#: C/GtkApplicationWindow.vala.page:14 C/guitar-tuner.js.page:13
+#: C/hellognome.js.page:13 C/hello-world.c.page:16 C/hello-world.js.page:16
+#: C/hello-world.py.page:16 C/hello-world.vala.page:16 C/image.c.page:14
+#: C/image.js.page:13 C/image.py.page:16 C/image.vala.page:14
+#: C/label.c.page:15 C/label.js.page:14 C/label.py.page:17 C/label.py.page:22
+#: C/label.vala.page:14 C/linkbutton.c.page:14 C/linkbutton.js.page:14
+#: C/linkbutton.py.page:15 C/linkbutton.vala.page:14 C/menubar.c.page:16
+#: C/menubar.py.page:16 C/menubar.py.page:21 C/menubar.vala.page:16
+#: C/menubutton.js.page:14 C/menubutton.py.page:15 C/menubutton.py.page:21
+#: C/menubutton.vala.page:14 C/messagedialog.c.page:15
+#: C/messagedialog.js.page:17 C/messagedialog.py.page:15
+#: C/messagedialog.vala.page:14 C/model-view-controller.py.page:22
+#: C/paned.c.page:14 C/paned.py.page:15 C/progressbar.c.page:15
+#: C/progressbar.js.page:13 C/progressbar.py.page:15
+#: C/progressbar.vala.page:14 C/properties.py.page:22 C/radiobutton.c.page:16
+#: C/radiobutton.js.page:14 C/radiobutton.py.page:16
+#: C/radiobutton.vala.page:17 C/response-type.page:10 C/scale.c.page:16
+#: C/scale.js.page:14 C/scale.py.page:16 C/scale.vala.page:16
+#: C/scrolledwindow.c.page:16 C/scrolledwindow.py.page:15
+#: C/scrolledwindow.vala.page:15 C/separator.py.page:16
+#: C/set-up-gedit.js.page:13 C/signals-callbacks.py.page:22
+#: C/spinbutton.c.page:17 C/spinbutton.js.page:17 C/spinbutton.py.page:16
+#: C/spinbutton.vala.page:16 C/spinner.c.page:15 C/spinner.js.page:14
+#: C/spinner.py.page:15 C/spinner.vala.page:14 C/statusbar.c.page:18
+#: C/statusbar.js.page:14 C/statusbar.py.page:16 C/statusbar.vala.page:17
+#: C/strings.py.page:22 C/switch.c.page:14 C/switch.js.page:14
+#: C/switch.py.page:15 C/switch.vala.page:18 C/textview.c.page:14
+#: C/textview.js.page:18 C/textview.py.page:23 C/textview.vala.page:14
+#: C/togglebutton.c.page:18 C/togglebutton.js.page:14
+#: C/togglebutton.py.page:15 C/togglebutton.vala.page:17 C/toolbar.c.page:16
+#: C/toolbar.js.page:14 C/toolbar.py.page:16 C/toolbar.vala.page:15
+#: C/toolbar_builder.py.page:17 C/toolbar_builder.py.page:23
+#: C/toolbar_builder.vala.page:16 C/tooltip.py.page:16
+#: C/treeview_advanced_liststore.py.page:15
+#: C/treeview_cellrenderertoggle.py.page:15
+#: C/treeview_simple_liststore.js.page:17
+#: C/treeview_simple_liststore.py.page:16
+#: C/treeview_simple_liststore.vala.page:16 C/treeview_treestore.py.page:16
+#: C/tutorial.py.page:16 C/weatherApp.js.page:13 C/weatherAppMain.js.page:12
+#: C/weatherAutotools.js.page:12 C/weatherGeonames.js.page:12
+#: C/window.c.page:14 C/window.js.page:14 C/window.py.page:16
+#: C/window.py.page:21 C/window.vala.page:14
msgid "2012"
msgstr "2012"
-#: C/02_welcome_to_the_grid.js.page:19(info/desc)
+#. (itstool) path: info/desc
+#: C/02_welcome_to_the_grid.js.page:19
msgid "Learn how to lay out UI components, like Images and Labels."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:22(page/title)
+#. (itstool) path: page/title
+#: C/02_welcome_to_the_grid.js.page:22
msgid "2. Welcome to the Grid"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:24(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/02_welcome_to_the_grid.js.page:24
msgid ""
"This tutorial will show you how to create basic widgets, or parts of the "
"GNOME user interface, like Images and Labels. You'll then learn how to "
-"arrange them all in a Grid, which lets you put widgets exactly where you want "
-"them."
+"arrange them all in a Grid, which lets you put widgets exactly where you "
+"want them."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:25(note/p)
+#. (itstool) path: note/p
+#: C/02_welcome_to_the_grid.js.page:25
msgid ""
"Have you taken <link xref=\"hellognome.js\">the first tutorial in this "
"series</link> already? You'll want to do so before continuing."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:31(section/title)
+#. (itstool) path: section/title
+#: C/02_welcome_to_the_grid.js.page:31
msgid "Going native"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:33(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:33
msgid ""
"In the last tutorial, we created what was basically a GNOME window frame for "
"a web app. All the GNOME-specific code we needed to learn revolved around "
@@ -360,7 +237,8 @@ msgid ""
"written in HTML and JavaScript, just like most pages on the web."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:34(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:34
msgid ""
"This time, we're going to use only native GNOME widgets. A widget is just a "
"thing, like a checkbox or picture, and GNOME has a wide variety of them to "
@@ -369,26 +247,30 @@ msgid ""
"web code, these are going to be 100 percent GNOME, using GTK+."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:35(note/p)
+#. (itstool) path: note/p
+#: C/02_welcome_to_the_grid.js.page:35
msgid ""
-"GTK+ stands for \"GIMP Toolkit\". It's like a toolbox of widgets that you can "
-"reach into, while building your applications. It was originally written for "
-"<link href=\"http://www.gimp.org/\">the GIMP</link>, which is a free software "
-"image editor."
+"GTK+ stands for \"GIMP Toolkit\". It's like a toolbox of widgets that you "
+"can reach into, while building your applications. It was originally written "
+"for <link href=\"http://www.gimp.org/\">the GIMP</link>, which is a free "
+"software image editor."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:39(section/title)
+#. (itstool) path: section/title
+#: C/02_welcome_to_the_grid.js.page:39
msgid "Setting up our application"
msgstr "Entwurf der Anwendung"
-#: C/02_welcome_to_the_grid.js.page:41(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:41
msgid ""
"Before we dig out any widgets from the GTK+ toolbox, we first need to write "
"the basic boilerplate code that our application requires."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:42(section/code)
-#: C/comboboxtext.js.page:30(section/code) C/textview.js.page:38(section/code)
+#. (itstool) path: section/code
+#: C/02_welcome_to_the_grid.js.page:42 C/comboboxtext.js.page:30
+#: C/textview.js.page:38
#, no-wrap
msgid ""
"\n"
@@ -398,7 +280,8 @@ msgid ""
"const Lang = imports.lang;\n"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:48(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:48
msgid ""
"This part always goes at the start of your code. Depending on what you'll be "
"doing with it, you may want to declare more imports here. What we're writing "
@@ -407,11 +290,13 @@ msgid ""
"startup signals to the requisite functions."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:49(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:49
msgid "Speaking of which:"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:50(section/code)
+#. (itstool) path: section/code
+#: C/02_welcome_to_the_grid.js.page:50
#, no-wrap
msgid ""
"\n"
@@ -438,7 +323,8 @@ msgid ""
" },\n"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:73(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:73
msgid ""
"This is the start of the application itself, and the _init function which "
"creates it. It tells _buildUI to create an ApplicationWindow, which we're "
@@ -446,13 +332,15 @@ msgid ""
"needed."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:74(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:74
msgid ""
"This part, again, is pretty much copy-and-paste, but you always want to give "
"your application a unique name."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:76(section/code)
+#. (itstool) path: section/code
+#: C/02_welcome_to_the_grid.js.page:76
#, no-wrap
msgid ""
"\n"
@@ -467,32 +355,37 @@ msgid ""
" title: \"Welcome to the Grid\"});\n"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:87(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:87
msgid ""
"Finally, we start off the _buildUI function by creating a new "
"ApplicationWindow. We specify that it goes with this application, that it "
"should appear in the center of the screen, and that there should be at least "
-"10 pixels between the outside edge and any widgets inside of it. We also give "
-"it a title, which will appear at the top of the window."
+"10 pixels between the outside edge and any widgets inside of it. We also "
+"give it a title, which will appear at the top of the window."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:91(section/title)
+#. (itstool) path: section/title
+#: C/02_welcome_to_the_grid.js.page:91
msgid "Reaching into the GTK+ toolbox"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:92(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:92
msgid ""
"What widgets should we use? Well, let's say we want to write an application "
"that looks like this:"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:96(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:96
msgid ""
-"We're going to need, at the very least, a picture and a text label to go with "
-"it. Let's start with the picture:"
+"We're going to need, at the very least, a picture and a text label to go "
+"with it. Let's start with the picture:"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:97(section/code)
+#. (itstool) path: section/code
+#: C/02_welcome_to_the_grid.js.page:97
#, no-wrap
msgid ""
"\n"
@@ -500,15 +393,17 @@ msgid ""
" this._image = new Gtk.Image ({ file: \"gnome-image.png\" });\n"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:102(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:102
msgid ""
"You can download the image file used in this example <link href=\"https://"
"live.gnome.org/TarynFox?action=AttachFile&do=get&target=gnome-image."
-"png\">here</link>. Be sure to put it in the same directory as the code you're "
-"writing."
+"png\">here</link>. Be sure to put it in the same directory as the code "
+"you're writing."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:104(section/code)
+#. (itstool) path: section/code
+#: C/02_welcome_to_the_grid.js.page:104
#, no-wrap
msgid ""
"\n"
@@ -516,37 +411,42 @@ msgid ""
" this._label = new Gtk.Label ({ label: \"Welcome to GNOME, too!\" });\n"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:108(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:108
msgid ""
-"That code adds in the label beneath. You can see how we create widgets, here; "
-"each one is a part of Gtk, and we can give it properties that customize how "
-"it behaves. In this case, we set the Image's file property to be the filename "
-"of the picture we want, and the Label's label property to be the sentence "
-"that we want beneath the picture."
+"That code adds in the label beneath. You can see how we create widgets, "
+"here; each one is a part of Gtk, and we can give it properties that "
+"customize how it behaves. In this case, we set the Image's file property to "
+"be the filename of the picture we want, and the Label's label property to be "
+"the sentence that we want beneath the picture."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:109(note/p)
+#. (itstool) path: note/p
+#: C/02_welcome_to_the_grid.js.page:109
msgid ""
"Yes, it sounds redundant for a Label to have a label property, but it's not. "
"Other widgets that contain text have a label property, so it's "
"<em>consistent</em> for the Label widget to have one too."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:110(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:110
msgid ""
"We can't just add these widgets to our window in order, though, the same way "
"HTML elements appear in the order you write them. That's because an "
"ApplicationWindow can only contain one widget."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:111(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:111
msgid ""
"How do we get around that? By making that one widget a container widget, "
"which can hold more than one widget and organize them inside it. Behold: The "
"Grid."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:112(section/code)
+#. (itstool) path: section/code
+#: C/02_welcome_to_the_grid.js.page:112
#, no-wrap
msgid ""
"\n"
@@ -554,14 +454,16 @@ msgid ""
" this._grid = new Gtk.Grid ();\n"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:117(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:117
msgid ""
"We're not giving it any properties yet. Those will come later, as we learn "
-"how to use the Grid's powers. First, let's attach the Image and Label we made "
-"to our Grid."
+"how to use the Grid's powers. First, let's attach the Image and Label we "
+"made to our Grid."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:118(section/code)
+#. (itstool) path: section/code
+#: C/02_welcome_to_the_grid.js.page:118
#, no-wrap
msgid ""
"\n"
@@ -570,32 +472,37 @@ msgid ""
" this._grid.attach (this._label, 0, 1, 1, 1);\n"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:124(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:124
msgid ""
"This code looks awfully complicated, but it's not. Here's what those numbers "
"mean:"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:126(item/p)
+#. (itstool) path: item/p
+#: C/02_welcome_to_the_grid.js.page:126
msgid ""
"The <em>first</em> number is what left-to-right position to put things in, "
"starting from 0. Any widget that uses a 0 here goes all the way to the left."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:127(item/p)
+#. (itstool) path: item/p
+#: C/02_welcome_to_the_grid.js.page:127
msgid ""
"The <em>second</em> number is what top-to-botton position to put a given "
"widget in, starting from 0. The Label goes beneath the Image, so we give the "
"Image a 0 and the Label a 1 here."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:128(item/p)
+#. (itstool) path: item/p
+#: C/02_welcome_to_the_grid.js.page:128
msgid ""
"The <em>third</em> and <em>fourth</em> numbers are how many columns and rows "
"a widget should take up. We'll see how these work in a minute."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:131(section/code)
+#. (itstool) path: section/code
+#: C/02_welcome_to_the_grid.js.page:131
#, no-wrap
msgid ""
"\n"
@@ -613,45 +520,52 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:145(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:145
msgid ""
-"Now that we've created the Grid and attached all our widgets to it, we add it "
-"to the window and tell the window to show itself, as the last part of the "
+"Now that we've created the Grid and attached all our widgets to it, we add "
+"it to the window and tell the window to show itself, as the last part of the "
"_buildUI function. As always, to finish up we create a new instance of the "
"application's class and tell it to run."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:146(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:146
msgid ""
"Save your application as welcome_to_the_grid.js. Then, to run your "
"application just open a terminal, go to the directory where your application "
"is at, and type"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:147(section/screen)
+#. (itstool) path: section/screen
+#: C/02_welcome_to_the_grid.js.page:147
#, no-wrap
msgid " <output style=\"prompt\">$ </output>gjs welcome_to_the_grid.js "
-msgstr ""
+msgstr " <output style=\"prompt\">$ </output>gjs welcome_to_the_grid.js "
-#: C/02_welcome_to_the_grid.js.page:151(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:151
msgid ""
"There we go! But wait. That doesn't look right. Why is the Label crammed up "
"next to the Image like that? That doesn't look as nice, and it makes it "
"harder to read. What can we do about this?"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:155(section/title)
+#. (itstool) path: section/title
+#: C/02_welcome_to_the_grid.js.page:155
msgid "Tweaking the Grid"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:157(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:157
msgid ""
"One thing we can do, is we can give the Label a margin_top property when we "
-"create it. This works sort of like setting a margin for an HTML element using "
-"inline CSS styling."
+"create it. This works sort of like setting a margin for an HTML element "
+"using inline CSS styling."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:158(section/code)
+#. (itstool) path: section/code
+#: C/02_welcome_to_the_grid.js.page:158
#, no-wrap
msgid ""
"\n"
@@ -661,20 +575,23 @@ msgid ""
" margin_top: 20 });\n"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:165(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:165
msgid ""
"Of course, if we do that then if we replace the Label with something else -- "
"or add in another widget -- then we have to repeat the margin_top on it too. "
"Otherwise we end up with something like this:"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:168(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:168
msgid ""
"We could give the Image a margin_bottom property, but that won't work when "
"the new Label is in a separate column. So how about we try this instead:"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:169(section/code)
+#. (itstool) path: section/code
+#: C/02_welcome_to_the_grid.js.page:169
#, no-wrap
msgid ""
"\n"
@@ -683,32 +600,37 @@ msgid ""
" row_spacing: 20 });\n"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:175(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:175
msgid ""
"That makes it so that there are always 20 pixels of space in between each "
"horizontal row."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:176(note/p)
+#. (itstool) path: note/p
+#: C/02_welcome_to_the_grid.js.page:176
msgid ""
"Yes, you can also set the column_spacing property on a Grid, or the "
"margin_left and margin_right properties on any widget. Try them out, if you "
"like!"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:180(section/title)
+#. (itstool) path: section/title
+#: C/02_welcome_to_the_grid.js.page:180
msgid "Adding more widgets"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:182(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:182
msgid ""
"If we did want to add a second Label, how would we do it so that it actually "
-"looked like it belonged there? One way is to center the Image on top, so that "
-"it's above both Labels instead of just the one on the left. That's where "
-"those other numbers in the Grid's attach method come in:"
+"looked like it belonged there? One way is to center the Image on top, so "
+"that it's above both Labels instead of just the one on the left. That's "
+"where those other numbers in the Grid's attach method come in:"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:183(section/code)
+#. (itstool) path: section/code
+#: C/02_welcome_to_the_grid.js.page:183
#, no-wrap
msgid ""
"\n"
@@ -722,53 +644,61 @@ msgid ""
" this._grid.attach (this._labelTwo, 1, 1, 1, 1);\n"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:194(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:194
msgid ""
"After we create the second Label, we attach it to the Grid to the right of "
"the first Label. Remember, the first two numbers count columns and rows from "
-"left to right and top to bottom, starting with 0. So if the first Label is in "
-"column 0 and row 1, we can put the second in column 1 and row 1 to put it to "
-"the right of the first Label."
+"left to right and top to bottom, starting with 0. So if the first Label is "
+"in column 0 and row 1, we can put the second in column 1 and row 1 to put it "
+"to the right of the first Label."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:195(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:195
msgid ""
-"Note the number 2 in the attach statement for the Image. That's what does the "
-"trick here. That number is how many columns the Image spans, remember? So "
-"when we put it together, we get something like this:"
+"Note the number 2 in the attach statement for the Image. That's what does "
+"the trick here. That number is how many columns the Image spans, remember? "
+"So when we put it together, we get something like this:"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:198(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:198
msgid "There are two things you should take note of, here."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:200(item/p)
+#. (itstool) path: item/p
+#: C/02_welcome_to_the_grid.js.page:200
msgid ""
"Setting the Image to span two columns doesn't stretch the picture itself "
"horizontally. Instead, it stretches the invisible box taken up by the Image "
"widget to fill both columns, then places the Image in the center of that box."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:201(item/p)
+#. (itstool) path: item/p
+#: C/02_welcome_to_the_grid.js.page:201
msgid ""
"Even though we've set the Grid's row_spacing and the ApplicationWindow's "
"border_width properties, we haven't yet set anything that puts a border in "
-"between the two Labels. They were separate earlier when the Image was in only "
-"one column, but now that it spans both GNOME doesn't see a reason to keep "
-"them apart."
+"between the two Labels. They were separate earlier when the Image was in "
+"only one column, but now that it spans both GNOME doesn't see a reason to "
+"keep them apart."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:204(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:204
msgid ""
"There are at least three ways we can get around that last one. First, we can "
"set a margin_left or margin_right on one of the Labels:"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:207(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:207
msgid "Second, we can set the Grid's column_homogenous property to true."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:208(section/code)
+#. (itstool) path: section/code
+#: C/02_welcome_to_the_grid.js.page:208
#, no-wrap
msgid ""
"\n"
@@ -778,17 +708,20 @@ msgid ""
" row_spacing: 20 });\n"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:215(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:215
msgid "That makes it look something like this:"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:218(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:218
msgid ""
-"And third, we can set the Grid's column_spacing property, the same way we set "
-"its row_spacing."
+"And third, we can set the Grid's column_spacing property, the same way we "
+"set its row_spacing."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:219(section/code)
+#. (itstool) path: section/code
+#: C/02_welcome_to_the_grid.js.page:219
#, no-wrap
msgid ""
"\n"
@@ -798,24 +731,28 @@ msgid ""
" row_spacing: 20 });\n"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:225(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:225
msgid "That makes it look like this:"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:230(section/title)
+#. (itstool) path: section/title
+#: C/02_welcome_to_the_grid.js.page:230
#, fuzzy
#| msgid "Loading the images"
msgid "Using stock images"
msgstr "Laden der Bilder"
-#: C/02_welcome_to_the_grid.js.page:232(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:232
msgid ""
"GNOME has a lot of stock images on hand already, that we can use if we don't "
"feel like creating our own or if we want a universally-recognized icon. "
"Here's how we create a stock image, compared to how we create a normal one:"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:233(section/code)
+#. (itstool) path: section/code
+#: C/02_welcome_to_the_grid.js.page:233
#, no-wrap
msgid ""
"\n"
@@ -826,13 +763,15 @@ msgid ""
" this._icon = new Gtk.Image ({ stock: 'gtk-about' });\n"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:240(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:240
msgid ""
"After that, we attach it to the Grid to the left of the first Label. (We "
"aren't using the second one for this example.)"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:241(section/code)
+#. (itstool) path: section/code
+#: C/02_welcome_to_the_grid.js.page:241
#, no-wrap
msgid ""
"\n"
@@ -842,21 +781,24 @@ msgid ""
" this._grid.attach (this._label, 1, 1, 1, 1);\n"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:247(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:247
msgid "That gives us this, when we run it:"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:250(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:250
msgid ""
"That's what the stock \"About\" icon looks like. You can see a list of all "
-"the stock items starting with gtk-about in <link href=\"http://developer."
-"gnome.org/gtk/2.24/gtk-Stock-Items.html#GTK-STOCK-ABOUT:CAPS\">GNOME's "
+"the stock items starting with gtk-about in <link href=\"https://developer."
+"gnome.org/gtk3/3.4/gtk3-Stock-Items.html#GTK-STOCK-ABOUT:CAPS\">GNOME's "
"developer documentation</link>. It was written for C programmers, but you "
"don't need to know C to use it; just look at the part in quotation marks, "
"like \"gtk-about\", and copy that part to use the icon next to it."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:251(note/p)
+#. (itstool) path: note/p
+#: C/02_welcome_to_the_grid.js.page:251
msgid ""
"We put single quotes around 'gtk-about' here because, unlike text strings "
"that have double quotes around them, that part will never need to be "
@@ -865,18 +807,20 @@ msgid ""
"language you speak."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:256(section/title)
-#: C/03_getting_the_signal.js.page:339(section/title)
-#: C/hellognome.js.page:186(section/title)
+#. (itstool) path: section/title
+#: C/02_welcome_to_the_grid.js.page:256 C/03_getting_the_signal.js.page:337
+#: C/hellognome.js.page:186
msgid "What's next?"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:257(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:257
msgid ""
"Before we go on to the next tutorial, let's try something a little different:"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:258(section/code)
+#. (itstool) path: section/code
+#: C/02_welcome_to_the_grid.js.page:258
#, no-wrap
msgid ""
"\n"
@@ -890,44 +834,44 @@ msgid ""
" this._grid.attach (this._button, 1, 1, 1, 1);\n"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:269(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:269
msgid ""
-"That's right, we turned the Label into a Button just by changing the name! If "
-"you run the application and click on it, though, you'll find that it doesn't "
-"do anything. How do we make our Button do something? That's what we'll find "
-"out, in <link xref=\"getting_the_signal.js\">our next tutorial</link>."
+"That's right, we turned the Label into a Button just by changing the name! "
+"If you run the application and click on it, though, you'll find that it "
+"doesn't do anything. How do we make our Button do something? That's what "
+"we'll find out, in <link xref=\"03_getting_the_signal.js\">our next "
+"tutorial</link>."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:270(section/p)
+#. (itstool) path: section/p
+#: C/02_welcome_to_the_grid.js.page:270
msgid ""
"If you like, feel free to spend some time experimenting with Grids, Labels, "
"and Images, including stock images."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:271(note/p)
+#. (itstool) path: note/p
+#: C/02_welcome_to_the_grid.js.page:271
msgid ""
-"One trick you can use to make more complex layouts is to nest Grids inside of "
-"each other. This lets you group together related widgets, and rearrange them "
-"easily. Take a look at the <link xref=\"radiobutton.js\">RadioButton</link> "
-"code sample if you'd like to see how this is done."
+"One trick you can use to make more complex layouts is to nest Grids inside "
+"of each other. This lets you group together related widgets, and rearrange "
+"them easily. Take a look at the <link xref=\"radiobutton.js\">RadioButton</"
+"link> code sample if you'd like to see how this is done."
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:275(section/title)
-#: C/checkbutton.js.page:130(section/title)
-#: C/comboboxtext.js.page:170(section/title)
-#: C/combobox.js.page:227(section/title)
-#: C/hellognome.js.page:193(section/title)
-#: C/messagedialog.js.page:183(section/title)
-#: C/radiobutton.js.page:268(section/title) C/scale.js.page:202(section/title)
-#: C/spinbutton.js.page:193(section/title)
-#: C/statusbar.js.page:215(section/title) C/switch.js.page:258(section/title)
-#: C/textview.js.page:242(section/title)
-#: C/togglebutton.js.page:147(section/title)
-#: C/treeview_simple_liststore.js.page:266(section/title)
+#. (itstool) path: section/title
+#: C/02_welcome_to_the_grid.js.page:275 C/checkbutton.js.page:130
+#: C/comboboxtext.js.page:170 C/combobox.js.page:227 C/hellognome.js.page:193
+#: C/messagedialog.js.page:183 C/radiobutton.js.page:268 C/scale.js.page:202
+#: C/spinbutton.js.page:193 C/statusbar.js.page:215 C/switch.js.page:258
+#: C/textview.js.page:242 C/togglebutton.js.page:147
+#: C/treeview_simple_liststore.js.page:266
msgid "Complete code sample"
msgstr ""
-#: C/02_welcome_to_the_grid.js.page:276(section/code)
+#. (itstool) path: section/code
+#: C/02_welcome_to_the_grid.js.page:276
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -1018,94 +962,76 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/03_getting_the_signal.js.page:36(media)
-#: C/03_getting_the_signal.js.page:352(media)
+#: C/03_getting_the_signal.js.page:36 C/03_getting_the_signal.js.page:350
msgctxt "_"
msgid ""
-"external ref='media/03_jssignal_01.png' md5='8d6ecab185f4af4534cc255d62b58b8e'"
+"external ref='media/03_jssignal_01.png' "
+"md5='8d6ecab185f4af4534cc255d62b58b8e'"
msgstr ""
-"external ref='media/03_jssignal_01.png' md5='8d6ecab185f4af4534cc255d62b58b8e'"
+"external ref='media/03_jssignal_01.png' "
+"md5='8d6ecab185f4af4534cc255d62b58b8e'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/03_getting_the_signal.js.page:156(media)
-#: C/03_getting_the_signal.js.page:358(media)
+#: C/03_getting_the_signal.js.page:156 C/03_getting_the_signal.js.page:356
msgctxt "_"
msgid ""
-"external ref='media/03_jssignal_02.png' md5='ba941390fbafc4a0f653c8f70bca92c0'"
+"external ref='media/03_jssignal_02.png' "
+"md5='ba941390fbafc4a0f653c8f70bca92c0'"
msgstr ""
-"external ref='media/03_jssignal_02.png' md5='ba941390fbafc4a0f653c8f70bca92c0'"
+"external ref='media/03_jssignal_02.png' "
+"md5='ba941390fbafc4a0f653c8f70bca92c0'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/03_getting_the_signal.js.page:160(media)
-msgctxt "_"
-msgid "external ref='media/03_jssignal_02b.png' md5='__failed__'"
-msgstr "external ref='media/03_jssignal_02b.png' md5='__failed__'"
-
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/03_getting_the_signal.js.page:232(media)
-#: C/03_getting_the_signal.js.page:364(media)
+#: C/03_getting_the_signal.js.page:230 C/03_getting_the_signal.js.page:362
msgctxt "_"
msgid ""
-"external ref='media/03_jssignal_03.png' md5='49ecf251b0bf57543c8d79a77b6f306d'"
+"external ref='media/03_jssignal_03.png' "
+"md5='49ecf251b0bf57543c8d79a77b6f306d'"
msgstr ""
-"external ref='media/03_jssignal_03.png' md5='49ecf251b0bf57543c8d79a77b6f306d'"
+"external ref='media/03_jssignal_03.png' "
+"md5='49ecf251b0bf57543c8d79a77b6f306d'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/03_getting_the_signal.js.page:303(media)
-#: C/03_getting_the_signal.js.page:370(media)
+#: C/03_getting_the_signal.js.page:301 C/03_getting_the_signal.js.page:368
msgctxt "_"
msgid ""
-"external ref='media/03_jssignal_04.png' md5='dfc5221ca15ca9fba7d3c76a73804e2d'"
+"external ref='media/03_jssignal_04.png' "
+"md5='dfc5221ca15ca9fba7d3c76a73804e2d'"
msgstr ""
-"external ref='media/03_jssignal_04.png' md5='dfc5221ca15ca9fba7d3c76a73804e2d'"
+"external ref='media/03_jssignal_04.png' "
+"md5='dfc5221ca15ca9fba7d3c76a73804e2d'"
-#: C/03_getting_the_signal.js.page:20(info/desc)
+#. (itstool) path: info/desc
+#: C/03_getting_the_signal.js.page:20
msgid "Create Buttons and other widgets that do things when you click on them."
msgstr ""
-#: C/03_getting_the_signal.js.page:23(page/title)
+#. (itstool) path: page/title
+#: C/03_getting_the_signal.js.page:23
#, fuzzy
#| msgid "Connecting the signals"
msgid "3. Getting the Signal"
msgstr "Verbinden der Signale"
-#: C/03_getting_the_signal.js.page:25(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/03_getting_the_signal.js.page:25
msgid ""
"In the last tutorial, we learned how to create widgets like Labels, Images, "
"and Buttons. Here, we'll learn how to make Buttons and other input widgets "
@@ -1113,19 +1039,22 @@ msgid ""
"when they are clicked on or interacted with."
msgstr ""
-#: C/03_getting_the_signal.js.page:31(section/title)
+#. (itstool) path: section/title
+#: C/03_getting_the_signal.js.page:31
msgid "A basic application"
msgstr "Eine erste Anwendung"
-#: C/03_getting_the_signal.js.page:32(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:32
msgid ""
-"In GNOME, widgets that you can interact with, like Buttons and Switches, send "
-"out signals when they are clicked on or activated. A Button, for instance, "
-"sends out the \"clicked\" signal when somebody clicks on it. When this "
-"happens, GNOME looks for the part in your code that says what to do."
+"In GNOME, widgets that you can interact with, like Buttons and Switches, "
+"send out signals when they are clicked on or activated. A Button, for "
+"instance, sends out the \"clicked\" signal when somebody clicks on it. When "
+"this happens, GNOME looks for the part in your code that says what to do."
msgstr ""
-#: C/03_getting_the_signal.js.page:33(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:33
msgid ""
"How do we write that code? By connecting that Button's \"clicked\" signal to "
"a callback function, which is a function you write just to handle that "
@@ -1133,11 +1062,13 @@ msgid ""
"signal is run."
msgstr ""
-#: C/03_getting_the_signal.js.page:34(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:34
msgid "Here is an extremely basic example:"
msgstr ""
-#: C/03_getting_the_signal.js.page:38(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:38
msgid ""
"This ApplicationWindow has a Button and a Label inside it, arranged in a "
"Grid. Whenever the Button is clicked, a variable that holds the number of "
@@ -1145,15 +1076,17 @@ msgid ""
"are is updated."
msgstr ""
-#: C/03_getting_the_signal.js.page:39(note/p)
+#. (itstool) path: note/p
+#: C/03_getting_the_signal.js.page:39
msgid ""
-"The cookies in this example are not the same as the cookies that you get from "
-"websites, which store your login information and may keep track of which "
-"sites you've visited. They're just imaginary treats. You may bake some real "
-"ones if you like."
+"The cookies in this example are not the same as the cookies that you get "
+"from websites, which store your login information and may keep track of "
+"which sites you've visited. They're just imaginary treats. You may bake some "
+"real ones if you like."
msgstr ""
-#: C/03_getting_the_signal.js.page:40(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:40
msgid ""
"Here is the basic, boilerplate code that goes at the start of the "
"application, before we start creating the window and widgets. Besides the "
@@ -1162,7 +1095,8 @@ msgid ""
"hold the number of cookies."
msgstr ""
-#: C/03_getting_the_signal.js.page:41(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:41
#, no-wrap
msgid ""
"\n"
@@ -1197,26 +1131,30 @@ msgid ""
" },\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:72(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:72
msgid ""
"Take a look at the part that uses our application's connect method and Lang."
"bind, to connect its activate and startup signals to the functions that "
"present the window and build the UI. We're going to do the same thing with "
-"our Button when we get to it, except that we're going to connect its \"clicked"
-"\" signal instead."
+"our Button when we get to it, except that we're going to connect its "
+"\"clicked\" signal instead."
msgstr ""
-#: C/03_getting_the_signal.js.page:76(section/title)
+#. (itstool) path: section/title
+#: C/03_getting_the_signal.js.page:76
msgid "Click the button"
msgstr ""
-#: C/03_getting_the_signal.js.page:78(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:78
msgid ""
"As usual, we'll put all the code to create our Button and other widgets "
"inside the _buildUI function, which is called when the application starts up."
msgstr ""
-#: C/03_getting_the_signal.js.page:79(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:79
#, no-wrap
msgid ""
"\n"
@@ -1224,11 +1162,13 @@ msgid ""
" _buildUI: function() {\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:84(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:84
msgid "First, we create the window itself:"
msgstr ""
-#: C/03_getting_the_signal.js.page:85(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:85
#, no-wrap
msgid ""
"\n"
@@ -1241,19 +1181,22 @@ msgid ""
" title: \"Click the button to get a cookie!\"});\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:94(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:94
msgid ""
"Note that we've set its default_height and default_width properties. These "
"let us control how tall and wide the ApplicationWindow will be, in pixels."
msgstr ""
-#: C/03_getting_the_signal.js.page:95(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:95
msgid ""
"Next, we'll create the Label that shows us the number of cookies. We can use "
"the cookies variable as part of the Label's label property."
msgstr ""
-#: C/03_getting_the_signal.js.page:96(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:96
#, no-wrap
msgid ""
"\n"
@@ -1262,7 +1205,8 @@ msgid ""
" label: \"Number of cookies: \" + cookies });\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:102(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:102
msgid ""
"Now we'll create the Button. We set its label property to show the text that "
"we want on the Button, and we connect its \"clicked\" signal to a function "
@@ -1270,7 +1214,8 @@ msgid ""
"application's UI."
msgstr ""
-#: C/03_getting_the_signal.js.page:103(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:103
#, no-wrap
msgid ""
"\n"
@@ -1281,17 +1226,19 @@ msgid ""
" this._cookieButton.connect ('clicked', Lang.bind (this, this._getACookie));\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:110(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:110
msgid ""
"Finally, we create a Grid, attach the Label and Button to it, add it to the "
"window and tell the window to show itself and its contents. That's all we "
"need inside the _buildUI function, so we close it with a bracket, as well as "
-"a comma that tells GNOME to go on to the next function. Note that even though "
-"we wrote the code for the Label first, we can still attach it to the Grid in "
-"a way that will put it on the bottom."
+"a comma that tells GNOME to go on to the next function. Note that even "
+"though we wrote the code for the Label first, we can still attach it to the "
+"Grid in a way that will put it on the bottom."
msgstr ""
-#: C/03_getting_the_signal.js.page:111(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:111
#, no-wrap
msgid ""
"\n"
@@ -1314,15 +1261,17 @@ msgid ""
" },\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:130(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:130
msgid ""
"Now, we write the _getACookie function. Whenever our Button sends out its "
"\"clicked\" signal, the code in this function will run. In this case, all it "
-"does is increase the number of cookies by 1, and update the Label to show the "
-"new number of cookies. We do this using the Label's set_label method."
+"does is increase the number of cookies by 1, and update the Label to show "
+"the new number of cookies. We do this using the Label's set_label method."
msgstr ""
-#: C/03_getting_the_signal.js.page:131(note/p)
+#. (itstool) path: note/p
+#: C/03_getting_the_signal.js.page:131
msgid ""
"Many widgets have the same properties and methods. Both Labels and Buttons, "
"for instance, have a label property that says what text is inside them, and "
@@ -1331,7 +1280,8 @@ msgid ""
"know how others like it work."
msgstr ""
-#: C/03_getting_the_signal.js.page:132(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:132
#, no-wrap
msgid ""
"\n"
@@ -1346,13 +1296,15 @@ msgid ""
"});\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:144(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:144
msgid ""
"Finally, we run the application, using the same kind of code as in our last "
"tutorial."
msgstr ""
-#: C/03_getting_the_signal.js.page:145(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:145
#, no-wrap
msgid ""
"\n"
@@ -1361,24 +1313,29 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:153(section/title)
+#. (itstool) path: section/title
+#: C/03_getting_the_signal.js.page:153
msgid "Flip the switch"
msgstr ""
-#: C/03_getting_the_signal.js.page:154(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:154
msgid ""
"Buttons aren't the only input widgets in our GTK+ toolbox. We can also use "
-"switches, like the one in this example. Switches don't have a label property, "
-"so we have to create a separate Label that says what it does to go next to it."
+"switches, like the one in this example. Switches don't have a label "
+"property, so we have to create a separate Label that says what it does to go "
+"next to it."
msgstr ""
-#: C/03_getting_the_signal.js.page:158(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:158
msgid ""
"A Switch has two positions, Off and On. When a Switch is turned on, its text "
"and background color change, so you can tell which position it's in."
msgstr ""
-#: C/03_getting_the_signal.js.page:162(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:160
msgid ""
"You may have seen Switches like these in GNOME's accessibility menu, which "
"let you turn features like large text and the on-screen keyboard on and off. "
@@ -1387,17 +1344,20 @@ msgid ""
"Button. If it's turned off, clicking the Button won't do anything."
msgstr ""
-#: C/03_getting_the_signal.js.page:163(note/p)
+#. (itstool) path: note/p
+#: C/03_getting_the_signal.js.page:161
msgid ""
"You can get to the accessibility menu by clicking on the outline of a human, "
"near your name in the upper-right corner of the screen."
msgstr ""
-#: C/03_getting_the_signal.js.page:164(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:162
msgid "Here's how we create the Switch:"
msgstr ""
-#: C/03_getting_the_signal.js.page:165(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:163
#, no-wrap
msgid ""
"\n"
@@ -1405,7 +1365,8 @@ msgid ""
" this._cookieSwitch = new Gtk.Switch ();\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:170(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:168
msgid ""
"We don't actually need to connect the Switch to anything. All we need to do "
"is write an if statement in our _getACookie function, to check to see if the "
@@ -1413,7 +1374,8 @@ msgid ""
"flip the Switch, though, we would connect its notify::active signal, like so:"
msgstr ""
-#: C/03_getting_the_signal.js.page:171(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:169
#, no-wrap
msgid ""
"\n"
@@ -1421,30 +1383,34 @@ msgid ""
" this._cookieSwitch.connect ('notify::active', Lang.bind (this, this._cookieDispenser));\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:176(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:174
msgid ""
"A Switch is set to the off position by default. If we wanted the Switch to "
"start out turned on, we would set the value of its active property to true "
"when we create it."
msgstr ""
-#: C/03_getting_the_signal.js.page:177(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:175
#, no-wrap
msgid ""
"\n"
" this._cookieSwitch = new Gtk.Switch ({ active: true });\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:181(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:179
msgid ""
"Let's just create it normally, though, and then create the Label that goes "
"with it. We want the Switch and the Label to be kept right next to each "
-"other, so we'll create a Grid just for them, then put that Grid in our larger "
-"Grid that holds all the widgets inside it. Here's what the code looks like to "
-"create all that:"
+"other, so we'll create a Grid just for them, then put that Grid in our "
+"larger Grid that holds all the widgets inside it. Here's what the code looks "
+"like to create all that:"
msgstr ""
-#: C/03_getting_the_signal.js.page:182(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:180
#, no-wrap
msgid ""
"\n"
@@ -1465,11 +1431,13 @@ msgid ""
" this._switchGrid.attach (this._cookieSwitch, 1, 0, 1, 1);\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:200(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:198
msgid "And now we arrange everything in the larger Grid like so."
msgstr ""
-#: C/03_getting_the_signal.js.page:201(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:199
#, no-wrap
msgid ""
"\n"
@@ -1479,21 +1447,24 @@ msgid ""
" this._grid.attach (this._cookieLabel, 0, 2, 1, 1);\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:208(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:206
msgid ""
-"Now we change the _getACookie function so that it checks to see if the cookie "
-"dispenser is turned on. We do that by using the Switch's get_active method. "
-"It returns true if the Switch is turned on, and false if the Switch is turned "
-"off."
+"Now we change the _getACookie function so that it checks to see if the "
+"cookie dispenser is turned on. We do that by using the Switch's get_active "
+"method. It returns true if the Switch is turned on, and false if the Switch "
+"is turned off."
msgstr ""
-#: C/03_getting_the_signal.js.page:209(note/p)
+#. (itstool) path: note/p
+#: C/03_getting_the_signal.js.page:207
msgid ""
"When a method is used in an if statement like this, the code inside the if "
"statement is executed if the method returns true."
msgstr ""
-#: C/03_getting_the_signal.js.page:210(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:208
#, no-wrap
msgid ""
"\n"
@@ -1511,20 +1482,24 @@ msgid ""
" }\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:228(section/title)
+#. (itstool) path: section/title
+#: C/03_getting_the_signal.js.page:226
msgid "Tuning the radio"
msgstr ""
-#: C/03_getting_the_signal.js.page:230(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:228
msgid ""
-"Another type of input widget we can use is called the RadioButton. You create "
-"them in groups, and then only one RadioButton in a group can be selected at a "
-"time. They're called RadioButtons because they work like the channel preset "
-"button in old-style car radios. The radio could only be tuned to one station "
-"at a time, so whenever you pressed one button in, another would pop back out."
+"Another type of input widget we can use is called the RadioButton. You "
+"create them in groups, and then only one RadioButton in a group can be "
+"selected at a time. They're called RadioButtons because they work like the "
+"channel preset button in old-style car radios. The radio could only be tuned "
+"to one station at a time, so whenever you pressed one button in, another "
+"would pop back out."
msgstr ""
-#: C/03_getting_the_signal.js.page:234(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:232
msgid ""
"First off, let's change our ApplicationWindow's name and increase its "
"border_width property, so that our widgets aren't packed in too tightly. The "
@@ -1532,7 +1507,8 @@ msgid ""
"window."
msgstr ""
-#: C/03_getting_the_signal.js.page:235(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:233
#, no-wrap
msgid ""
"\n"
@@ -1546,14 +1522,16 @@ msgid ""
" title: \"Choose the one that says 'cookie'!\"});\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:246(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:244
msgid ""
"After that, we create the RadioButtons. Remember how they're created in "
"groups? The way we do that, is we set each new RadioButton's group property "
"to the name of another RadioButton."
msgstr ""
-#: C/03_getting_the_signal.js.page:247(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:245
#, no-wrap
msgid ""
"\n"
@@ -1565,13 +1543,15 @@ msgid ""
" group: this._cookieButton });\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:256(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:254
msgid ""
"Next, we create a Grid for the RadioButtons. Remember, we don't have to "
"arrange things in Grids in the same order that we create them in."
msgstr ""
-#: C/03_getting_the_signal.js.page:257(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:255
#, no-wrap
msgid ""
"\n"
@@ -1582,18 +1562,21 @@ msgid ""
" this._radioGrid.attach (this._notCookieTwo, 0, 2, 1, 1);\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:265(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:263
msgid ""
"Normally, the RadioButton that's selected by default is the one that's the "
"name of the group. We want the first \"Not cookie\" button to be selected by "
"default, though, so we use its set_active method."
msgstr ""
-#: C/03_getting_the_signal.js.page:266(note/p)
+#. (itstool) path: note/p
+#: C/03_getting_the_signal.js.page:264
msgid "We could also set its active property to true when we create it."
msgstr ""
-#: C/03_getting_the_signal.js.page:267(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:265
#, no-wrap
msgid ""
"\n"
@@ -1601,11 +1584,13 @@ msgid ""
" this._notCookieOne.set_active (true);\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:272(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:270
msgid "Now we arrange everything in our main Grid like usual ..."
msgstr ""
-#: C/03_getting_the_signal.js.page:273(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:271
#, no-wrap
msgid ""
"\n"
@@ -1615,13 +1600,15 @@ msgid ""
" this._grid.attach (this._cookieLabel, 0, 2, 1, 1);\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:280(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:278
msgid ""
"And then we change our _getACookie function to test to see if the cookie "
"button is the one that's selected."
msgstr ""
-#: C/03_getting_the_signal.js.page:281(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:279
#, no-wrap
msgid ""
"\n"
@@ -1639,28 +1626,33 @@ msgid ""
" }\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:299(section/title)
+#. (itstool) path: section/title
+#: C/03_getting_the_signal.js.page:297
msgid "Can you spell \"cookie\"?"
msgstr ""
-#: C/03_getting_the_signal.js.page:301(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:299
msgid ""
-"The last input widget we're going to cover is the Entry widget, which is used "
-"for single-line text entry."
+"The last input widget we're going to cover is the Entry widget, which is "
+"used for single-line text entry."
msgstr ""
-#: C/03_getting_the_signal.js.page:302(note/p)
+#. (itstool) path: note/p
+#: C/03_getting_the_signal.js.page:300
msgid ""
-"If you need to be able to enter in a whole paragraph or more, like if you are "
-"building a text editor, you'll want to look at the much more customizable "
-"<link xref=\"textview.js\">TextView</link> widget."
+"If you need to be able to enter in a whole paragraph or more, like if you "
+"are building a text editor, you'll want to look at the much more "
+"customizable <link xref=\"textview.js\">TextView</link> widget."
msgstr ""
-#: C/03_getting_the_signal.js.page:305(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:303
msgid "After we change the window's name, we create the Entry widget."
msgstr ""
-#: C/03_getting_the_signal.js.page:306(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:304
#, no-wrap
msgid ""
"\n"
@@ -1668,11 +1660,13 @@ msgid ""
" this._spellCookie = new Gtk.Entry ();\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:311(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:309
msgid "Next, we arrange everything in the Grid ..."
msgstr ""
-#: C/03_getting_the_signal.js.page:312(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:310
#, no-wrap
msgid ""
"\n"
@@ -1682,24 +1676,27 @@ msgid ""
" this._grid.attach (this._cookieLabel, 0, 2, 1, 1);\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:319(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:317
msgid ""
"And now we modify _getACookie's if statement again, using the Entry's "
"get_text method to retrieve the text that you entered into it and see if you "
"spelled \"cookie\" right. We don't care whether you capitalize \"cookie\" or "
-"not, so we use JavaScript's built-in toLowerCase method to change the Entry's "
-"text to all lower case inside the if statement."
+"not, so we use JavaScript's built-in toLowerCase method to change the "
+"Entry's text to all lower case inside the if statement."
msgstr ""
-#: C/03_getting_the_signal.js.page:320(note/p)
+#. (itstool) path: note/p
+#: C/03_getting_the_signal.js.page:318
msgid ""
"An Entry widget doesn't have a label property, which is a set text string "
-"that the user can't change. (You can't normally change the label on a Button, "
-"for instance.) Instead, it has a text property, which changes to match what "
-"the user types in."
+"that the user can't change. (You can't normally change the label on a "
+"Button, for instance.) Instead, it has a text property, which changes to "
+"match what the user types in."
msgstr ""
-#: C/03_getting_the_signal.js.page:321(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:319
#, no-wrap
msgid ""
"\n"
@@ -1717,29 +1714,33 @@ msgid ""
" }\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:340(section/p)
+#. (itstool) path: section/p
+#: C/03_getting_the_signal.js.page:338
msgid ""
-"<link xref=\"04_popup_dialog_boxes.js\">Click here</link> to go on to the "
-"next tutorial. Or keep reading, if you'd like to see the complete code for "
-"each version of our cookie maker application."
+"Keep reading, if you'd like to see the complete code for each version of our "
+"cookie maker application."
msgstr ""
-#: C/03_getting_the_signal.js.page:341(note/p)
+#. (itstool) path: note/p
+#: C/03_getting_the_signal.js.page:339
msgid ""
"The main JavaScript tutorials page has <link xref=\"beginner.js#buttons"
-"\">more detailed code samples</link> for each input widget, including several "
-"not covered here."
+"\">more detailed code samples</link> for each input widget, including "
+"several not covered here."
msgstr ""
-#: C/03_getting_the_signal.js.page:346(section/title)
+#. (itstool) path: section/title
+#: C/03_getting_the_signal.js.page:344
msgid "Complete code samples"
msgstr ""
-#: C/03_getting_the_signal.js.page:351(section/title)
+#. (itstool) path: section/title
+#: C/03_getting_the_signal.js.page:349
msgid "Code sample with Button"
msgstr ""
-#: C/03_getting_the_signal.js.page:353(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:351
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -1830,11 +1831,13 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:357(section/title)
+#. (itstool) path: section/title
+#: C/03_getting_the_signal.js.page:355
msgid "Code sample with Switch"
msgstr ""
-#: C/03_getting_the_signal.js.page:359(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:357
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -1948,11 +1951,13 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:363(section/title)
+#. (itstool) path: section/title
+#: C/03_getting_the_signal.js.page:361
msgid "Code sample with RadioButton"
msgstr ""
-#: C/03_getting_the_signal.js.page:365(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:363
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -2067,11 +2072,13 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/03_getting_the_signal.js.page:369(section/title)
+#. (itstool) path: section/title
+#: C/03_getting_the_signal.js.page:367
msgid "Code sample with Entry"
msgstr ""
-#: C/03_getting_the_signal.js.page:371(section/code)
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:369
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -2173,27 +2180,13 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/aboutdialog.c.page:24(media) C/aboutdialog.js.page:20(media)
-#: C/aboutdialog.py.page:22(media) C/aboutdialog.vala.page:29(media)
+#: C/aboutdialog.c.page:24 C/aboutdialog.js.page:20 C/aboutdialog.py.page:22
+#: C/aboutdialog.vala.page:29
msgctxt "_"
msgid ""
"external ref='media/aboutdialog_GMenu.png' "
@@ -2202,49 +2195,48 @@ msgstr ""
"external ref='media/aboutdialog_GMenu.png' "
"md5='a36117a559fa98e25e2f6b3db593639f'"
-#: C/aboutdialog.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/aboutdialog.c.page:7
msgctxt "text"
msgid "AboutDialog (C)"
msgstr ""
-#: C/aboutdialog.c.page:14(credit/name) C/button.c.page:14(credit/name)
-#: C/dialog.c.page:14(credit/name) C/entry.c.page:12(credit/name)
-#: C/grid.c.page:12(credit/name) C/image.c.page:12(credit/name)
-#: C/label.c.page:13(credit/name) C/linkbutton.c.page:12(credit/name)
-#: C/menubar.c.page:14(credit/name) C/messagedialog.c.page:13(credit/name)
-#: C/progressbar.c.page:13(credit/name) C/radiobutton.c.page:14(credit/name)
-#: C/scale.c.page:14(credit/name) C/scrolledwindow.c.page:14(credit/name)
-#: C/spinbutton.c.page:15(credit/name) C/spinner.c.page:13(credit/name)
-#: C/statusbar.c.page:16(credit/name) C/switch.c.page:12(credit/name)
-#: C/textview.c.page:12(credit/name) C/togglebutton.c.page:16(credit/name)
-#: C/toolbar.c.page:14(credit/name)
+#. (itstool) path: credit/name
+#: C/aboutdialog.c.page:14 C/button.c.page:14 C/combobox.c.page:12
+#: C/dialog.c.page:14 C/entry.c.page:12 C/grid.c.page:12 C/image.c.page:12
+#: C/label.c.page:13 C/linkbutton.c.page:12 C/menubar.c.page:14
+#: C/messagedialog.c.page:13 C/progressbar.c.page:13 C/radiobutton.c.page:14
+#: C/scale.c.page:14 C/scrolledwindow.c.page:14 C/spinbutton.c.page:15
+#: C/spinner.c.page:13 C/statusbar.c.page:16 C/switch.c.page:12
+#: C/textview.c.page:12 C/togglebutton.c.page:16 C/toolbar.c.page:14
msgid "Monica Kochofar"
-msgstr ""
+msgstr "Monica Kochofar"
-#: C/aboutdialog.c.page:19(info/desc) C/aboutdialog.js.page:16(info/desc)
-#: C/aboutdialog.vala.page:25(info/desc)
-#, fuzzy
-#| msgid "Designing the application"
+#. (itstool) path: info/desc
+#: C/aboutdialog.c.page:19 C/aboutdialog.js.page:16 C/aboutdialog.vala.page:25
msgid "Display information about an application"
-msgstr "Entwurf der Anwendung"
+msgstr "Informationen zur Anwendung anzeigen"
-#: C/aboutdialog.c.page:22(page/title) C/aboutdialog.js.page:19(page/title)
-#: C/aboutdialog.py.page:21(page/title) C/aboutdialog.vala.page:28(page/title)
+#. (itstool) path: page/title
+#: C/aboutdialog.c.page:22 C/aboutdialog.js.page:19 C/aboutdialog.py.page:21
+#: C/aboutdialog.vala.page:28
msgid "AboutDialog"
msgstr ""
-#: C/aboutdialog.c.page:25(page/p) C/aboutdialog.vala.page:30(page/p)
+#. (itstool) path: page/p
+#: C/aboutdialog.c.page:25 C/aboutdialog.vala.page:30
msgid "An AboutDialog example using Gtk.ApplicationWindow and Menu"
msgstr ""
-#: C/aboutdialog.c.page:26(note/p) C/aboutdialog.vala.page:31(note/p)
-#: C/gmenu.c.page:23(note/p)
+#. (itstool) path: note/p
+#: C/aboutdialog.c.page:26 C/aboutdialog.vala.page:31 C/gmenu.c.page:23
msgid ""
"<em style=\"bold\">You need to be running Gtk3.4 or later for this to work</"
"em>"
msgstr ""
-#: C/aboutdialog.c.page:28(page/code)
+#. (itstool) path: page/code
+#: C/aboutdialog.c.page:28
#, no-wrap
msgid ""
"\n"
@@ -2416,130 +2408,131 @@ msgid ""
"}\n"
msgstr ""
-#: C/aboutdialog.c.page:30(page/p) C/aboutdialog.js.page:24(page/p)
-#: C/aboutdialog.py.page:41(section/p) C/aboutdialog.vala.page:34(page/p)
-#: C/button.c.page:29(page/p) C/button.js.page:26(page/p)
-#: C/button.py.page:52(section/p) C/buttonbox.py.page:46(section/p)
-#: C/checkbutton.c.page:25(page/p) C/checkbutton.py.page:42(section/p)
-#: C/checkbutton.vala.page:25(page/p) C/colorbutton.py.page:40(section/p)
-#: C/colorbutton.vala.page:27(page/p) C/comboboxtext.js.page:176(section/p)
-#: C/combobox.js.page:233(section/p) C/combobox.py.page:42(section/p)
-#: C/combobox.vala.page:25(page/p) C/combobox_multicolumn.py.page:41(section/p)
-#: C/dialog.c.page:29(page/p) C/dialog.js.page:25(page/p)
-#: C/dialog.py.page:46(section/p) C/dialog.vala.page:27(page/p)
-#: C/entry.c.page:27(page/p) C/entry.js.page:25(page/p)
-#: C/entry.py.page:61(section/p) C/entry.vala.page:25(page/p)
-#: C/filechooserdialog.py.page:70(section/p)
-#: C/filechooserdialog.vala.page:35(section/p)
-#: C/fontchooserwidget.py.page:44(section/p) C/gmenu.c.page:27(page/p)
-#: C/gmenu.js.page:25(page/p) C/gmenu.py.page:77(section/p)
-#: C/gmenu.vala.page:37(page/p) C/grid.c.page:27(page/p)
-#: C/grid.js.page:29(page/p) C/grid.py.page:54(section/p)
-#: C/grid.vala.page:27(page/p) C/GtkApplicationWindow.c.page:25(page/p)
-#: C/GtkApplicationWindow.js.page:26(page/p)
-#: C/GtkApplicationWindow.py.page:50(section/p)
-#: C/GtkApplicationWindow.vala.page:26(page/p) C/image.c.page:28(page/p)
-#: C/image.js.page:27(page/p) C/image.py.page:100(section/p)
-#: C/image.vala.page:27(page/p) C/label.c.page:32(page/p)
-#: C/label.js.page:25(page/p) C/label.py.page:87(section/p)
-#: C/label.vala.page:26(page/p) C/linkbutton.c.page:27(page/p)
-#: C/linkbutton.js.page:25(page/p) C/linkbutton.py.page:44(section/p)
-#: C/linkbutton.vala.page:25(page/p) C/menubar.c.page:32(page/p)
-#: C/menubar.py.page:183(section/p) C/menubar.vala.page:187(section/p)
-#: C/menubutton.js.page:28(page/p) C/menubutton.py.page:53(section/p)
-#: C/menubutton.vala.page:28(page/p) C/messagedialog.c.page:31(page/p)
-#: C/messagedialog.js.page:189(section/p) C/messagedialog.py.page:54(section/p)
-#: C/messagedialog.vala.page:26(page/p) C/paned.py.page:39(section/p)
-#: C/progressbar.c.page:28(page/p) C/progressbar.js.page:34(page/p)
-#: C/progressbar.py.page:54(section/p) C/progressbar.vala.page:25(page/p)
-#: C/radiobutton.c.page:29(page/p) C/radiobutton.py.page:46(section/p)
-#: C/radiobutton.vala.page:28(page/p) C/scale.c.page:29(page/p)
-#: C/scale.py.page:54(section/p) C/scale.vala.page:27(page/p)
-#: C/scrolledwindow.c.page:29(page/p) C/scrolledwindow.py.page:42(section/p)
-#: C/scrolledwindow.vala.page:26(page/p) C/separator.py.page:36(section/p)
-#: C/spinbutton.c.page:30(page/p) C/spinbutton.py.page:46(section/p)
-#: C/spinbutton.vala.page:27(page/p) C/spinner.c.page:28(page/p)
-#: C/spinner.js.page:25(page/p) C/spinner.py.page:39(section/p)
-#: C/spinner.vala.page:25(page/p) C/statusbar.c.page:31(page/p)
-#: C/statusbar.py.page:50(section/p) C/statusbar.vala.page:28(page/p)
-#: C/switch.c.page:28(page/p) C/switch.py.page:42(section/p)
-#: C/switch.vala.page:31(page/p) C/textview.c.page:31(page/p)
-#: C/textview.py.page:93(section/p) C/textview.vala.page:30(page/p)
-#: C/togglebutton.c.page:31(page/p) C/togglebutton.py.page:41(section/p)
-#: C/togglebutton.vala.page:28(page/p) C/toolbar.c.page:30(page/p)
-#: C/toolbar.js.page:26(page/p) C/toolbar.py.page:52(section/p)
-#: C/toolbar.vala.page:29(page/p) C/toolbar_builder.py.page:191(section/p)
-#: C/toolbar_builder.vala.page:146(page/p) C/tooltip.py.page:55(section/p)
-#: C/treeview_advanced_liststore.py.page:41(section/p)
-#: C/treeview_cellrenderertoggle.py.page:41(section/p)
-#: C/treeview_simple_liststore.js.page:272(section/p)
-#: C/treeview_simple_liststore.py.page:42(section/p)
-#: C/treeview_simple_liststore.vala.page:27(page/p)
-#: C/treeview_treestore.py.page:41(section/p) C/window.c.page:29(page/p)
-#: C/window.py.page:61(section/p) C/window.vala.page:33(page/p)
+#. (itstool) path: page/p
+#. (itstool) path: section/p
+#: C/aboutdialog.c.page:30 C/aboutdialog.js.page:24 C/aboutdialog.py.page:41
+#: C/aboutdialog.vala.page:34 C/button.c.page:29 C/button.js.page:26
+#: C/button.py.page:52 C/buttonbox.js.page:35 C/buttonbox.py.page:46
+#: C/checkbutton.c.page:25 C/checkbutton.py.page:42 C/checkbutton.vala.page:25
+#: C/colorbutton.js.page:33 C/colorbutton.py.page:40
+#: C/colorbutton.vala.page:27 C/comboboxtext.js.page:176 C/combobox.c.page:30
+#: C/combobox.js.page:233 C/combobox.py.page:42 C/combobox.vala.page:25
+#: C/combobox_multicolumn.py.page:41 C/combobox_multicolumn.vala.page:35
+#: C/dialog.c.page:29 C/dialog.js.page:25 C/dialog.py.page:46
+#: C/dialog.vala.page:27 C/entry.c.page:27 C/entry.js.page:25
+#: C/entry.py.page:61 C/entry.vala.page:25 C/filechooserdialog.py.page:70
+#: C/filechooserdialog.vala.page:35 C/fontchooserwidget.js.page:34
+#: C/fontchooserwidget.py.page:44 C/fontchooserwidget.vala.page:34
+#: C/gmenu.c.page:27 C/gmenu.js.page:25 C/gmenu.py.page:77
+#: C/gmenu.vala.page:37 C/grid.c.page:27 C/grid.js.page:29 C/grid.py.page:54
+#: C/grid.vala.page:27 C/GtkApplicationWindow.c.page:25
+#: C/GtkApplicationWindow.js.page:26 C/GtkApplicationWindow.py.page:50
+#: C/GtkApplicationWindow.vala.page:26 C/image.c.page:28 C/image.js.page:27
+#: C/image.py.page:100 C/image.vala.page:27 C/label.c.page:32
+#: C/label.js.page:25 C/label.py.page:87 C/label.vala.page:26
+#: C/linkbutton.c.page:27 C/linkbutton.js.page:25 C/linkbutton.py.page:44
+#: C/linkbutton.vala.page:25 C/menubar.c.page:32 C/menubar.py.page:183
+#: C/menubar.vala.page:187 C/menubutton.c.page:35 C/menubutton.js.page:28
+#: C/menubutton.py.page:53 C/menubutton.vala.page:28 C/messagedialog.c.page:31
+#: C/messagedialog.js.page:189 C/messagedialog.py.page:54
+#: C/messagedialog.vala.page:26 C/paned.c.page:33 C/paned.js.page:33
+#: C/paned.py.page:39 C/paned.vala.page:33 C/progressbar.c.page:28
+#: C/progressbar.js.page:34 C/progressbar.py.page:54
+#: C/progressbar.vala.page:25 C/radiobutton.c.page:29 C/radiobutton.py.page:46
+#: C/radiobutton.vala.page:28 C/scale.c.page:29 C/scale.py.page:54
+#: C/scale.vala.page:27 C/scrolledwindow.c.page:29 C/scrolledwindow.js.page:33
+#: C/scrolledwindow.py.page:42 C/scrolledwindow.vala.page:26
+#: C/separator.c.page:35 C/separator.py.page:36 C/separator.vala.page:37
+#: C/spinbutton.c.page:30 C/spinbutton.py.page:46 C/spinbutton.vala.page:27
+#: C/spinner.c.page:28 C/spinner.js.page:25 C/spinner.py.page:39
+#: C/spinner.vala.page:25 C/statusbar.c.page:31 C/statusbar.py.page:50
+#: C/statusbar.vala.page:28 C/switch.c.page:28 C/switch.py.page:42
+#: C/switch.vala.page:31 C/textview.c.page:31 C/textview.py.page:93
+#: C/textview.vala.page:30 C/togglebutton.c.page:31 C/togglebutton.py.page:41
+#: C/togglebutton.vala.page:28 C/toolbar.c.page:30 C/toolbar.js.page:26
+#: C/toolbar.py.page:52 C/toolbar.vala.page:29 C/toolbar_builder.py.page:191
+#: C/toolbar_builder.vala.page:146 C/tooltip.c.page:35 C/tooltip.js.page:34
+#: C/tooltip.py.page:56 C/tooltip.vala.page:35
+#: C/treeview_advanced_liststore.py.page:41
+#: C/treeview_cellrenderertoggle.py.page:41
+#: C/treeview_simple_liststore.js.page:272
+#: C/treeview_simple_liststore.py.page:42
+#: C/treeview_simple_liststore.vala.page:27 C/treeview_treestore.py.page:41
+#: C/window.c.page:29 C/window.py.page:61 C/window.vala.page:33
msgid "In this sample we used the following:"
msgstr ""
-#: C/aboutdialog.c.page:34(item/p) C/button.c.page:33(item/p)
-#: C/dialog.c.page:33(item/p) C/entry.c.page:31(item/p)
-#: C/grid.c.page:31(item/p) C/GtkApplicationWindow.c.page:29(item/p)
-#: C/image.c.page:32(item/p) C/label.c.page:36(item/p)
-#: C/linkbutton.c.page:31(item/p) C/messagedialog.c.page:35(item/p)
-#: C/progressbar.c.page:32(item/p) C/radiobutton.c.page:33(item/p)
-#: C/scale.c.page:33(item/p) C/spinbutton.c.page:34(item/p)
-#: C/spinner.c.page:32(item/p) C/statusbar.c.page:35(item/p)
-#: C/switch.c.page:32(item/p) C/textview.c.page:35(item/p)
-#: C/togglebutton.c.page:35(item/p) C/window.c.page:33(item/p)
+#. (itstool) path: item/p
+#: C/aboutdialog.c.page:34 C/button.c.page:33 C/combobox.c.page:34
+#: C/dialog.c.page:33 C/entry.c.page:31 C/grid.c.page:31
+#: C/GtkApplicationWindow.c.page:29 C/image.c.page:32 C/label.c.page:36
+#: C/linkbutton.c.page:31 C/messagedialog.c.page:35 C/progressbar.c.page:32
+#: C/radiobutton.c.page:33 C/scale.c.page:33 C/spinbutton.c.page:34
+#: C/spinner.c.page:32 C/statusbar.c.page:35 C/switch.c.page:32
+#: C/textview.c.page:35 C/togglebutton.c.page:35 C/window.c.page:33
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/3.4/GtkApplication.html"
"\">GtkApplication</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/3.4/GtkApplication.html"
+"\">GtkApplication</link>"
-#: C/aboutdialog.c.page:35(item/p) C/button.c.page:34(item/p)
-#: C/dialog.c.page:34(item/p) C/entry.c.page:32(item/p)
-#: C/grid.c.page:32(item/p) C/linkbutton.c.page:32(item/p)
-#: C/messagedialog.c.page:37(item/p) C/progressbar.c.page:33(item/p)
-#: C/radiobutton.c.page:34(item/p) C/scale.c.page:34(item/p)
-#: C/spinbutton.c.page:35(item/p) C/spinner.c.page:33(item/p)
-#: C/statusbar.c.page:36(item/p) C/switch.c.page:33(item/p)
-#: C/textview.c.page:36(item/p) C/togglebutton.c.page:36(item/p)
-#: C/window.c.page:34(item/p)
+#. (itstool) path: item/p
+#: C/aboutdialog.c.page:35 C/button.c.page:34 C/combobox.c.page:35
+#: C/dialog.c.page:34 C/entry.c.page:32 C/grid.c.page:32
+#: C/linkbutton.c.page:32 C/messagedialog.c.page:37 C/progressbar.c.page:33
+#: C/radiobutton.c.page:34 C/scale.c.page:34 C/spinbutton.c.page:35
+#: C/spinner.c.page:33 C/statusbar.c.page:36 C/switch.c.page:33
+#: C/textview.c.page:36 C/togglebutton.c.page:36 C/window.c.page:34
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/3.4/GtkWindow.html\">GtkWindow</"
"link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/3.4/GtkWindow.html\">GtkWindow</"
+"link>"
-#: C/aboutdialog.c.page:36(item/p)
+#. (itstool) path: item/p
+#: C/aboutdialog.c.page:36
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkAboutDialog.html"
"\">GtkAboutDialog</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkAboutDialog.html"
+"\">GtkAboutDialog</link>"
-#: C/aboutdialog.c.page:37(item/p) C/aboutdialog.py.page:47(item/p)
-#: C/messagedialog.c.page:41(item/p) C/messagedialog.py.page:63(item/p)
+#. (itstool) path: item/p
+#: C/aboutdialog.c.page:37 C/aboutdialog.py.page:47 C/messagedialog.c.page:41
+#: C/messagedialog.py.page:63
msgid ""
"<link href=\"http://developer.gnome.org/gio/stable/GMenu.html\">GMenu</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gio/stable/GMenu.html\">GMenu</link>"
-#: C/aboutdialog.c.page:38(item/p) C/messagedialog.c.page:40(item/p)
+#. (itstool) path: item/p
+#: C/aboutdialog.c.page:38 C/messagedialog.c.page:40
msgid ""
"<link href=\"http://developer.gnome.org/gio/stable/GActionMap.html"
"\">GActionMap</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gio/stable/GActionMap.html"
+"\">GActionMap</link>"
-#: C/aboutdialog.js.page:6(info/title)
+#. (itstool) path: info/title
+#: C/aboutdialog.js.page:6
msgctxt "text"
msgid "AboutDialog (JavaScript)"
msgstr ""
-#: C/aboutdialog.js.page:21(page/p)
+#. (itstool) path: page/p
+#: C/aboutdialog.js.page:21
msgid ""
"A modal dialog window which shows information about an application and its "
"creators. This one is triggered by clicking \"About\" in the application's "
"menu, which is normally a good place to put it."
msgstr ""
-#: C/aboutdialog.js.page:23(page/code)
+#. (itstool) path: page/code
+#: C/aboutdialog.js.page:23
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -2646,162 +2639,155 @@ msgid ""
"app.application.run(ARGV);\n"
msgstr ""
-#: C/aboutdialog.js.page:28(item/p) C/gmenu.c.page:31(item/p)
-#: C/gmenu.js.page:29(item/p) C/gmenu.py.page:79(item/p)
-#: C/messagedialog.js.page:193(item/p) C/switch.js.page:265(item/p)
+#. (itstool) path: item/p
+#: C/aboutdialog.js.page:28 C/gmenu.c.page:31 C/gmenu.js.page:29
+#: C/gmenu.py.page:79 C/messagedialog.js.page:193 C/switch.js.page:265
msgid ""
-"<link href=\"http://developer.gnome.org/gio/unstable/GMenu.html\">GMenu</link>"
+"<link href=\"http://developer.gnome.org/gio/unstable/GMenu.html\">GMenu</"
+"link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gio/unstable/GMenu.html\">GMenu</"
+"link>"
-#: C/aboutdialog.js.page:29(item/p) C/filechooserdialog.py.page:79(item/p)
-#: C/gmenu.c.page:32(item/p) C/gmenu.js.page:30(item/p)
-#: C/gmenu.py.page:80(item/p) C/menubar.c.page:38(item/p)
-#: C/messagedialog.js.page:194(item/p) C/messagedialog.py.page:61(item/p)
-#: C/switch.js.page:266(item/p)
+#. (itstool) path: item/p
+#: C/aboutdialog.js.page:29 C/filechooserdialog.py.page:79 C/gmenu.c.page:32
+#: C/gmenu.js.page:30 C/gmenu.py.page:80 C/menubar.c.page:38
+#: C/messagedialog.js.page:194 C/messagedialog.py.page:61 C/switch.js.page:266
msgid ""
"<link href=\"http://developer.gnome.org/gio/stable/GSimpleAction.html"
"\">GSimpleAction</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gio/stable/GSimpleAction.html"
+"\">GSimpleAction</link>"
-#: C/aboutdialog.js.page:30(item/p)
+#. (itstool) path: item/p
+#: C/aboutdialog.js.page:30
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.AboutDialog."
"html\">Gtk.AboutDialog</link>"
msgstr ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.AboutDialog."
+"html\">Gtk.AboutDialog</link>"
-#: C/aboutdialog.js.page:31(item/p) C/button.js.page:30(item/p)
-#: C/checkbutton.js.page:137(item/p) C/comboboxtext.js.page:180(item/p)
-#: C/combobox.js.page:237(item/p) C/dialog.js.page:29(item/p)
-#: C/entry.js.page:29(item/p) C/grid.js.page:33(item/p)
-#: C/GtkApplicationWindow.js.page:30(item/p) C/image.js.page:31(item/p)
-#: C/label.js.page:29(item/p) C/linkbutton.js.page:29(item/p)
-#: C/messagedialog.js.page:195(item/p) C/progressbar.js.page:39(item/p)
-#: C/radiobutton.js.page:275(item/p) C/scale.js.page:210(item/p)
-#: C/spinbutton.js.page:201(item/p) C/spinner.js.page:30(item/p)
-#: C/statusbar.js.page:222(item/p) C/switch.js.page:267(item/p)
-#: C/textview.js.page:249(item/p) C/togglebutton.js.page:154(item/p)
-#: C/treeview_simple_liststore.js.page:276(item/p) C/window.js.page:38(item/p)
+#. (itstool) path: item/p
+#: C/aboutdialog.js.page:31 C/button.js.page:30 C/checkbutton.js.page:137
+#: C/comboboxtext.js.page:180 C/combobox.js.page:237 C/dialog.js.page:29
+#: C/entry.js.page:29 C/grid.js.page:33 C/GtkApplicationWindow.js.page:30
+#: C/image.js.page:31 C/label.js.page:29 C/linkbutton.js.page:29
+#: C/messagedialog.js.page:195 C/progressbar.js.page:39
+#: C/radiobutton.js.page:275 C/scale.js.page:210 C/spinbutton.js.page:201
+#: C/spinner.js.page:30 C/statusbar.js.page:222 C/switch.js.page:267
+#: C/textview.js.page:249 C/togglebutton.js.page:154
+#: C/treeview_simple_liststore.js.page:276 C/window.js.page:38
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Application."
"html\">Gtk.Application</link>"
msgstr ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Application."
+"html\">Gtk.Application</link>"
-#: C/aboutdialog.js.page:32(item/p) C/button.js.page:31(item/p)
-#: C/checkbutton.js.page:138(item/p) C/comboboxtext.js.page:181(item/p)
-#: C/combobox.js.page:238(item/p) C/dialog.js.page:30(item/p)
-#: C/entry.js.page:30(item/p) C/grid.js.page:34(item/p)
-#: C/GtkApplicationWindow.js.page:31(item/p) C/image.js.page:32(item/p)
-#: C/label.js.page:30(item/p) C/linkbutton.js.page:30(item/p)
-#: C/messagedialog.js.page:196(item/p) C/progressbar.js.page:40(item/p)
-#: C/radiobutton.js.page:276(item/p) C/scale.js.page:211(item/p)
-#: C/spinbutton.js.page:202(item/p) C/spinner.js.page:31(item/p)
-#: C/statusbar.js.page:223(item/p) C/switch.js.page:268(item/p)
-#: C/textview.js.page:250(item/p) C/togglebutton.js.page:155(item/p)
-#: C/treeview_simple_liststore.js.page:277(item/p)
+#. (itstool) path: item/p
+#: C/aboutdialog.js.page:32 C/button.js.page:31 C/checkbutton.js.page:138
+#: C/comboboxtext.js.page:181 C/combobox.js.page:238 C/dialog.js.page:30
+#: C/entry.js.page:30 C/grid.js.page:34 C/GtkApplicationWindow.js.page:31
+#: C/image.js.page:32 C/label.js.page:30 C/linkbutton.js.page:30
+#: C/messagedialog.js.page:196 C/progressbar.js.page:40
+#: C/radiobutton.js.page:276 C/scale.js.page:211 C/spinbutton.js.page:202
+#: C/spinner.js.page:31 C/statusbar.js.page:223 C/switch.js.page:268
+#: C/textview.js.page:250 C/togglebutton.js.page:155
+#: C/treeview_simple_liststore.js.page:277
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkApplicationWindow.html"
"\">Gtk.ApplicationWindow</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkApplicationWindow.html"
+"\">Gtk.ApplicationWindow</link>"
-#: C/aboutdialog.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/aboutdialog.py.page:7
msgctxt "text"
msgid "AboutDialog (Python)"
msgstr ""
-#: C/aboutdialog.py.page:13(credit/name) C/beginner.c.page:19(credit/name)
-#: C/beginner.js.page:15(credit/name) C/beginner.py.page:18(credit/name)
-#: C/beginner.vala.page:18(credit/name) C/button.py.page:14(credit/name)
-#: C/buttonbox.py.page:14(credit/name) C/checkbutton.py.page:13(credit/name)
-#: C/colorbutton.py.page:13(credit/name) C/combobox.py.page:14(credit/name)
-#: C/combobox_multicolumn.py.page:13(credit/name)
-#: C/dialog.py.page:14(credit/name) C/entry.py.page:14(credit/name)
-#: C/filechooserdialog.py.page:16(credit/name)
-#: C/fontchooserwidget.py.page:14(credit/name) C/gmenu.py.page:20(credit/name)
-#: C/grid.py.page:20(credit/name)
-#: C/GtkApplicationWindow.py.page:19(credit/name)
-#: C/guitar-tuner.c.page:22(credit/name)
-#: C/guitar-tuner.cpp.page:20(credit/name)
-#: C/guitar-tuner.py.page:22(credit/name)
-#: C/guitar-tuner.py.page:27(credit/name)
-#: C/guitar-tuner.vala.page:25(credit/name) C/image.py.page:14(credit/name)
-#: C/image-viewer.c.page:22(credit/name)
-#: C/image-viewer.cpp.page:20(credit/name)
-#: C/image-viewer.js.page:22(credit/name)
-#: C/image-viewer.py.page:22(credit/name)
-#: C/image-viewer.vala.page:30(credit/name) C/js.page:15(credit/name)
-#: C/label.py.page:15(credit/name) C/linkbutton.py.page:13(credit/name)
-#: C/magic-mirror.vala.page:22(credit/name) C/menubar.py.page:19(credit/name)
-#: C/menubutton.py.page:19(credit/name) C/message-board.c.page:19(credit/name)
-#: C/messagedialog.py.page:13(credit/name)
-#: C/model-view-controller.py.page:20(credit/name)
-#: C/paned.py.page:13(credit/name) C/photo-wall.c.page:21(credit/name)
-#: C/progressbar.py.page:13(credit/name) C/properties.py.page:20(credit/name)
-#: C/py.page:14(credit/name) C/radiobutton.py.page:14(credit/name)
-#: C/record-collection.js.page:22(credit/name) C/scale.py.page:14(credit/name)
-#: C/scrolledwindow.py.page:13(credit/name) C/separator.py.page:14(credit/name)
-#: C/signals-callbacks.py.page:20(credit/name)
-#: C/spinbutton.py.page:14(credit/name) C/spinner.py.page:13(credit/name)
-#: C/statusbar.py.page:14(credit/name) C/strings.py.page:20(credit/name)
-#: C/switch.py.page:13(credit/name) C/textview.py.page:21(credit/name)
-#: C/togglebutton.py.page:13(credit/name) C/toolbar.py.page:14(credit/name)
-#: C/toolbar_builder.py.page:21(credit/name) C/tooltip.py.page:14(credit/name)
-#: C/treeview_advanced_liststore.py.page:13(credit/name)
-#: C/treeview_cellrenderertoggle.py.page:13(credit/name)
-#: C/treeview_simple_liststore.py.page:14(credit/name)
-#: C/treeview_treestore.py.page:14(credit/name)
-#: C/tutorial.py.page:19(credit/name) C/vala.page:14(credit/name)
-#: C/weatherApp.js.page:16(credit/name) C/window.py.page:19(credit/name)
+#. (itstool) path: credit/name
+#: C/aboutdialog.py.page:13 C/beginner.c.page:19 C/beginner.js.page:15
+#: C/beginner.py.page:18 C/beginner.vala.page:18 C/button.py.page:14
+#: C/buttonbox.py.page:14 C/checkbutton.py.page:13 C/colorbutton.py.page:13
+#: C/combobox.py.page:14 C/combobox_multicolumn.py.page:13 C/dialog.py.page:14
+#: C/entry.py.page:14 C/filechooserdialog.py.page:16
+#: C/fontchooserwidget.py.page:14 C/gmenu.py.page:20 C/grid.py.page:20
+#: C/GtkApplicationWindow.py.page:19 C/guitar-tuner.c.page:22
+#: C/guitar-tuner.cpp.page:20 C/guitar-tuner.py.page:22
+#: C/guitar-tuner.py.page:27 C/guitar-tuner.vala.page:25 C/image.py.page:14
+#: C/image-viewer.c.page:22 C/image-viewer.cpp.page:20
+#: C/image-viewer.js.page:22 C/image-viewer.py.page:22
+#: C/image-viewer.vala.page:30 C/js.page:15 C/label.py.page:15
+#: C/linkbutton.py.page:13 C/magic-mirror.vala.page:22 C/menubar.py.page:19
+#: C/menubutton.py.page:19 C/message-board.c.page:19
+#: C/messagedialog.py.page:13 C/model-view-controller.py.page:20
+#: C/paned.py.page:13 C/photo-wall.c.page:21 C/progressbar.py.page:13
+#: C/properties.py.page:20 C/py.page:14 C/radiobutton.py.page:14
+#: C/record-collection.js.page:22 C/scale.py.page:14
+#: C/scrolledwindow.py.page:13 C/separator.py.page:14
+#: C/signals-callbacks.py.page:20 C/spinbutton.py.page:14 C/spinner.py.page:13
+#: C/statusbar.py.page:14 C/strings.py.page:20 C/switch.py.page:13
+#: C/textview.py.page:21 C/togglebutton.py.page:13 C/toolbar.py.page:14
+#: C/toolbar_builder.py.page:21 C/tooltip.py.page:14
+#: C/treeview_advanced_liststore.py.page:13
+#: C/treeview_cellrenderertoggle.py.page:13
+#: C/treeview_simple_liststore.py.page:14 C/treeview_treestore.py.page:14
+#: C/tutorial.py.page:19 C/vala.page:14 C/weatherApp.js.page:16
+#: C/window.py.page:19
msgid "Marta Maria Casetti"
msgstr ""
-#: C/aboutdialog.py.page:18(info/desc)
+#. (itstool) path: info/desc
+#: C/aboutdialog.py.page:18
msgid "A window that displays information about an application"
msgstr ""
-#: C/aboutdialog.py.page:23(page/p)
-msgid ""
-"An AboutDialog example using Gtk.ApplicationWindow and Menu (the \"about\" is "
-"displayed if \"About\" in the menu is selected)."
-msgstr ""
-
-#: C/aboutdialog.py.page:28(section/title) C/button.py.page:30(section/title)
-#: C/buttonbox.py.page:30(section/title)
-#: C/checkbutton.py.page:28(section/title)
-#: C/colorbutton.py.page:28(section/title) C/combobox.py.page:29(section/title)
-#: C/combobox_multicolumn.py.page:28(section/title)
-#: C/dialog.py.page:29(section/title) C/entry.py.page:34(section/title)
-#: C/filechooserdialog.py.page:52(section/title)
-#: C/fontchooserwidget.py.page:30(section/title)
-#: C/gmenu.py.page:35(section/title) C/grid.py.page:36(section/title)
-#: C/GtkApplicationWindow.py.page:34(section/title)
-#: C/image.py.page:33(section/title) C/label.py.page:35(section/title)
-#: C/linkbutton.py.page:29(section/title)
-#: C/menubutton.py.page:36(section/title)
-#: C/messagedialog.py.page:28(section/title) C/paned.py.page:28(section/title)
-#: C/progressbar.py.page:38(section/title)
-#: C/radiobutton.py.page:29(section/title) C/scale.py.page:29(section/title)
-#: C/scrolledwindow.py.page:28(section/title)
-#: C/separator.py.page:30(section/title) C/spinbutton.py.page:29(section/title)
-#: C/spinner.py.page:28(section/title) C/statusbar.py.page:29(section/title)
-#: C/switch.py.page:30(section/title) C/textview.py.page:43(section/title)
-#: C/togglebutton.py.page:28(section/title) C/toolbar.py.page:30(section/title)
-#: C/toolbar_builder.py.page:163(section/title)
-#: C/tooltip.py.page:29(section/title)
-#: C/treeview_advanced_liststore.py.page:28(section/title)
-#: C/treeview_cellrenderertoggle.py.page:28(section/title)
-#: C/treeview_simple_liststore.py.page:29(section/title)
-#: C/treeview_treestore.py.page:29(section/title)
-#: C/window.py.page:44(section/title)
+#. (itstool) path: page/p
+#: C/aboutdialog.py.page:23
+msgid ""
+"An AboutDialog example using Gtk.ApplicationWindow and Menu (the \"about\" "
+"is displayed if \"About\" in the menu is selected)."
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/aboutdialog.py.page:28 C/button.py.page:30 C/buttonbox.js.page:29
+#: C/buttonbox.py.page:30 C/checkbutton.py.page:28 C/colorbutton.js.page:27
+#: C/colorbutton.py.page:28 C/combobox.py.page:29
+#: C/combobox_multicolumn.py.page:28 C/combobox_multicolumn.vala.page:28
+#: C/dialog.py.page:29 C/entry.py.page:34 C/filechooserdialog.py.page:52
+#: C/fontchooserwidget.js.page:28 C/fontchooserwidget.py.page:30
+#: C/fontchooserwidget.vala.page:28 C/gmenu.py.page:35 C/grid.py.page:36
+#: C/GtkApplicationWindow.py.page:34 C/image.py.page:33 C/label.py.page:35
+#: C/linkbutton.py.page:29 C/menubutton.c.page:29 C/menubutton.py.page:36
+#: C/messagedialog.py.page:28 C/paned.c.page:27 C/paned.js.page:27
+#: C/paned.py.page:28 C/paned.vala.page:27 C/progressbar.py.page:38
+#: C/radiobutton.py.page:29 C/scale.py.page:29 C/scrolledwindow.js.page:27
+#: C/scrolledwindow.py.page:28 C/separator.c.page:29 C/separator.py.page:30
+#: C/separator.vala.page:31 C/spinbutton.py.page:29 C/spinner.py.page:28
+#: C/statusbar.py.page:29 C/switch.py.page:30 C/textview.py.page:43
+#: C/togglebutton.py.page:28 C/toolbar.py.page:30
+#: C/toolbar_builder.py.page:163 C/tooltip.c.page:29 C/tooltip.js.page:28
+#: C/tooltip.py.page:30 C/tooltip.vala.page:29
+#: C/treeview_advanced_liststore.py.page:28
+#: C/treeview_cellrenderertoggle.py.page:28
+#: C/treeview_simple_liststore.py.page:29 C/treeview_treestore.py.page:29
+#: C/window.py.page:44
msgid "Code used to generate this example"
msgstr ""
-#: C/aboutdialog.py.page:30(section/code)
+#. (itstool) path: section/code
+#: C/aboutdialog.py.page:30
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import Gio\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
"\n"
" # constructor for a window (the parent window)\n"
@@ -2827,14 +2813,16 @@ msgid ""
"\n"
" # we fill in the aboutdialog\n"
" aboutdialog.set_program_name(\"AboutDialog Example\")\n"
-" aboutdialog.set_copyright(\"Copyright \\xc2\\xa9 2012 GNOME Documentation Team\")\n"
+" aboutdialog.set_copyright(\n"
+" \"Copyright \\xc2\\xa9 2012 GNOME Documentation Team\")\n"
" aboutdialog.set_authors(authors)\n"
" aboutdialog.set_documenters(documenters)\n"
" aboutdialog.set_website(\"http://developer.gnome.org\")\n"
" aboutdialog.set_website_label(\"GNOME Developer Website\")\n"
"\n"
" # we do not want to show the title, which by default would be \"About AboutDialog Example\"\n"
-" # we have to reset the title of the messagedialog window after setting the program name\n"
+" # we have to reset the title of the messagedialog window after setting\n"
+" # the program name\n"
" aboutdialog.set_title(\"\")\n"
"\n"
" # to close the aboutdialog when \"close\" is clicked we connect the\n"
@@ -2847,7 +2835,9 @@ msgid ""
" def on_close(self, action, parameter):\n"
" action.destroy()\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -2858,17 +2848,17 @@ msgid ""
" def quit_cb(self, action, parameter):\n"
" self.quit()\n"
"\n"
-" def do_startup (self):\n"
+" def do_startup(self):\n"
" Gtk.Application.do_startup(self)\n"
"\n"
" # create a menu (a Gio.Menu)\n"
" menu = Gio.Menu()\n"
" # append a menu item with label \"About\" and action \"app.about\"\n"
-" menu.append (\"About\", \"app.about\")\n"
+" menu.append(\"About\", \"app.about\")\n"
" # append a menu item with label \"Quit\" and action \"app.quit\"\n"
" menu.append(\"Quit\", \"app.quit\")\n"
" # set menu as the menu for the application\n"
-" self.set_app_menu (menu)\n"
+" self.set_app_menu(menu)\n"
"\n"
" # a new simpleaction - for the application\n"
" quit_action = Gio.SimpleAction.new(\"quit\", None)\n"
@@ -2880,80 +2870,119 @@ msgid ""
"sys.exit(exit_status)\n"
msgstr ""
-#: C/aboutdialog.py.page:35(section/title)
+#. (itstool) path: section/title
+#: C/aboutdialog.py.page:35
msgid "Useful methods for an AboutDialog widget"
msgstr ""
-#: C/aboutdialog.py.page:36(section/p)
+#. (itstool) path: section/p
+#: C/aboutdialog.py.page:36
msgid ""
"In line 15 the signal <code>\"activate\"</code> is connected to the callback "
-"function <code>about_cb()</code> using <code><var>widget</var>.connect"
-"(<var>signal</var>, <var>callback function</var>)</code>. See <link xref="
-"\"signals-callbacks.py\"/> for a more detailed explanation."
-msgstr ""
-
-#: C/aboutdialog.py.page:40(section/title) C/button.py.page:51(section/title)
-#: C/buttonbox.py.page:45(section/title)
-#: C/checkbutton.py.page:41(section/title)
-#: C/colorbutton.py.page:39(section/title) C/combobox.py.page:41(section/title)
-#: C/combobox_multicolumn.py.page:40(section/title)
-#: C/dialog.py.page:45(section/title) C/entry.py.page:60(section/title)
-#: C/filechooserdialog.py.page:69(section/title)
-#: C/fontchooserwidget.py.page:43(section/title)
-#: C/gmenu.py.page:76(section/title) C/grid.py.page:53(section/title)
-#: C/GtkApplicationWindow.py.page:49(section/title)
-#: C/image.py.page:99(section/title) C/label.py.page:86(section/title)
-#: C/linkbutton.py.page:43(section/title) C/menubar.py.page:182(section/title)
-#: C/menubutton.py.page:52(section/title)
-#: C/messagedialog.py.page:53(section/title) C/paned.py.page:38(section/title)
-#: C/progressbar.py.page:53(section/title)
-#: C/radiobutton.py.page:45(section/title) C/scale.py.page:53(section/title)
-#: C/scrolledwindow.py.page:41(section/title)
-#: C/spinbutton.py.page:45(section/title) C/spinner.py.page:38(section/title)
-#: C/statusbar.py.page:49(section/title) C/switch.py.page:41(section/title)
-#: C/textview.py.page:92(section/title)
-#: C/togglebutton.py.page:40(section/title) C/toolbar.py.page:51(section/title)
-#: C/toolbar_builder.py.page:190(section/title)
-#: C/tooltip.py.page:54(section/title)
-#: C/treeview_advanced_liststore.py.page:40(section/title)
-#: C/treeview_cellrenderertoggle.py.page:40(section/title)
-#: C/treeview_simple_liststore.py.page:41(section/title)
-#: C/treeview_treestore.py.page:40(section/title)
-#: C/window.py.page:59(section/title)
+"function <code>about_cb()</code> using <code><var>widget</var>."
+"connect(<var>signal</var>, <var>callback function</var>)</code>. See <link "
+"xref=\"signals-callbacks.py\"/> for a more detailed explanation."
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/aboutdialog.py.page:40 C/button.py.page:51 C/buttonbox.js.page:34
+#: C/buttonbox.py.page:45 C/checkbutton.py.page:41 C/colorbutton.js.page:32
+#: C/colorbutton.py.page:39 C/combobox.py.page:41
+#: C/combobox_multicolumn.py.page:40 C/combobox_multicolumn.vala.page:34
+#: C/dialog.py.page:45 C/entry.py.page:60 C/filechooserdialog.py.page:69
+#: C/fontchooserwidget.js.page:33 C/fontchooserwidget.py.page:43
+#: C/fontchooserwidget.vala.page:33 C/gmenu.py.page:76 C/grid.py.page:53
+#: C/GtkApplicationWindow.py.page:49 C/image.py.page:99 C/label.py.page:86
+#: C/linkbutton.py.page:43 C/menubar.py.page:182 C/menubutton.c.page:34
+#: C/menubutton.py.page:52 C/messagedialog.py.page:53 C/paned.c.page:32
+#: C/paned.js.page:32 C/paned.py.page:38 C/paned.vala.page:32
+#: C/progressbar.py.page:53 C/radiobutton.py.page:45 C/scale.py.page:53
+#: C/scrolledwindow.js.page:32 C/scrolledwindow.py.page:41
+#: C/spinbutton.py.page:45 C/spinner.py.page:38 C/statusbar.py.page:49
+#: C/switch.py.page:41 C/textview.py.page:92 C/togglebutton.py.page:40
+#: C/toolbar.py.page:51 C/toolbar_builder.py.page:190 C/tooltip.c.page:34
+#: C/tooltip.js.page:33 C/tooltip.py.page:55 C/tooltip.vala.page:34
+#: C/treeview_advanced_liststore.py.page:40
+#: C/treeview_cellrenderertoggle.py.page:40
+#: C/treeview_simple_liststore.py.page:41 C/treeview_treestore.py.page:40
+#: C/window.py.page:59
msgid "API References"
msgstr ""
-#: C/aboutdialog.py.page:45(item/p)
+#. (itstool) path: item/p
+#: C/aboutdialog.py.page:45
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkAboutDialog.html"
"\">GtkAboutDialog</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkAboutDialog.html"
+"\">GtkAboutDialog</link>"
-#: C/aboutdialog.py.page:46(item/p) C/checkbutton.py.page:45(item/p)
-#: C/grid.py.page:57(item/p) C/GtkApplicationWindow.py.page:55(item/p)
+#. (itstool) path: item/p
+#: C/aboutdialog.py.page:46 C/checkbutton.py.page:45 C/grid.py.page:57
+#: C/GtkApplicationWindow.py.page:55 C/separator.c.page:37
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkApplicationWindow."
"html\">GtkApplicationWindow</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkApplicationWindow."
+"html\">GtkApplicationWindow</link>"
-#: C/aboutdialog.py.page:48(item/p) C/checkbutton.py.page:44(item/p)
-#: C/grid.py.page:56(item/p) C/GtkApplicationWindow.py.page:54(item/p)
-#: C/messagedialog.py.page:64(item/p) C/window.py.page:63(item/p)
+#. (itstool) path: item/p
+#: C/aboutdialog.py.page:48 C/checkbutton.py.page:44 C/grid.py.page:56
+#: C/GtkApplicationWindow.py.page:54 C/messagedialog.py.page:64
+#: C/window.py.page:63
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkApplication.html"
"\">GtkApplication</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkApplication.html"
+"\">GtkApplication</link>"
-#: C/aboutdialog.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/aboutdialog.vala.page:7
msgctxt "text"
msgid "AboutDialog (Vala)"
msgstr ""
-#: C/aboutdialog.vala.page:14(credit/name) C/gmenu.vala.page:13(credit/name)
+#. (itstool) path: credit/name
+#: C/aboutdialog.vala.page:14 C/gmenu.vala.page:13
msgid "Ryan Lortie"
-msgstr ""
+msgstr "Ryan Lortie"
+
+#. (itstool) path: credit/name
+#: C/aboutdialog.vala.page:20 C/beginner.py.page:14 C/beginner.vala.page:14
+#: C/bug-filing.page:9 C/button.vala.page:13 C/c.page:10
+#: C/checkbutton.c.page:12 C/checkbutton.vala.page:12
+#: C/colorbutton.vala.page:14 C/combobox.c.page:17 C/combobox.vala.page:12
+#: C/combobox_multicolumn.vala.page:13 C/cpp.page:10 C/dialog.vala.page:12
+#: C/documentation.page:10 C/entry.vala.page:12
+#: C/filechooserdialog.vala.page:15 C/gmenu.c.page:12 C/gmenu.js.page:12
+#: C/gmenu.py.page:14 C/gmenu.vala.page:19 C/grid.py.page:14
+#: C/grid.vala.page:14 C/GtkApplicationWindow.c.page:12
+#: C/GtkApplicationWindow.js.page:12 C/GtkApplicationWindow.py.page:14
+#: C/GtkApplicationWindow.vala.page:12 C/guitar-tuner.vala.page:21
+#: C/hello-world.c.page:19 C/hello-world.js.page:19 C/hello-world.py.page:19
+#: C/hello-world.vala.page:19 C/image.vala.page:12 C/image-viewer.vala.page:26
+#: C/index.page:22 C/js.page:11 C/label.vala.page:12 C/linkbutton.vala.page:12
+#: C/menubar.py.page:14 C/menubar.vala.page:14 C/menubutton.c.page:12
+#: C/menubutton.py.page:13 C/menubutton.vala.page:12
+#: C/messagedialog.vala.page:12 C/paned.c.page:12 C/paned.vala.page:12
+#: C/progressbar.vala.page:12 C/py.page:10 C/radiobutton.vala.page:15
+#: C/response-type.page:8 C/scale.vala.page:14 C/scrolledwindow.vala.page:13
+#: C/separator.c.page:13 C/separator.vala.page:15 C/spinbutton.vala.page:14
+#: C/spinner.vala.page:12 C/statusbar.vala.page:15 C/switch.vala.page:16
+#: C/textview.vala.page:12 C/togglebutton.vala.page:15 C/toolbar.js.page:12
+#: C/toolbar.vala.page:13 C/toolbar_builder.py.page:15
+#: C/toolbar_builder.vala.page:14 C/tooltip.c.page:13 C/tooltip.vala.page:13
+#: C/treeview_simple_liststore.vala.page:14 C/translate.page:10
+#: C/tutorial.py.page:14 C/vala.page:10 C/window.c.page:12 C/window.py.page:14
+#: C/window.vala.page:12
+msgid "Tiffany Antopolski"
+msgstr "Tiffany Antopolski"
-#: C/aboutdialog.vala.page:33(page/code)
+#. (itstool) path: page/code
+#: C/aboutdialog.vala.page:33
#, no-wrap
msgid ""
"/* A window in the application */\n"
@@ -3023,258 +3052,295 @@ msgid ""
"}\n"
msgstr ""
-#: C/aboutdialog.vala.page:38(item/p) C/gmenu.vala.page:41(item/p)
-#: C/window.vala.page:37(item/p)
+#. (itstool) path: item/p
+#: C/aboutdialog.vala.page:38 C/gmenu.vala.page:41 C/window.vala.page:37
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Application.html\">Gtk."
"Application</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Application.html\">Gtk."
+"Application</link>"
-#: C/aboutdialog.vala.page:39(item/p) C/gmenu.vala.page:42(item/p)
-#: C/GtkApplicationWindow.vala.page:31(item/p) C/label.vala.page:31(item/p)
+#. (itstool) path: item/p
+#: C/aboutdialog.vala.page:39 C/gmenu.vala.page:42
+#: C/GtkApplicationWindow.vala.page:31 C/label.vala.page:31
msgid ""
-"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ApplicationWindow.html\">Gtk."
-"ApplicationWindow</link>"
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ApplicationWindow.html"
+"\">Gtk.ApplicationWindow</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ApplicationWindow.html"
+"\">Gtk.ApplicationWindow</link>"
-#: C/aboutdialog.vala.page:40(item/p)
+#. (itstool) path: item/p
+#: C/aboutdialog.vala.page:40
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Window.set_default_size.html"
"\">set_default_size</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Window.set_default_size.html"
+"\">set_default_size</link>"
-#: C/audio-player.vala.page:9(info/desc)
+#. (itstool) path: info/desc
+#: C/audio-player.vala.page:9
msgid "Coming soon..."
msgstr ""
-#: C/audio-player.vala.page:13(credit/name)
-#: C/getting-ready.page:11(credit/name) C/guitar-tuner.c.page:14(credit/name)
-#: C/guitar-tuner.cpp.page:12(credit/name)
-#: C/guitar-tuner.py.page:14(credit/name)
-#: C/guitar-tuner.vala.page:13(credit/name)
-#: C/image-viewer.c.page:14(credit/name)
-#: C/image-viewer.cpp.page:12(credit/name)
-#: C/image-viewer.vala.page:14(credit/name)
-#: C/record-collection.js.page:14(credit/name)
+#. (itstool) path: credit/name
+#: C/audio-player.vala.page:13 C/getting-ready.page:11
+#: C/guitar-tuner.c.page:14 C/guitar-tuner.cpp.page:12
+#: C/guitar-tuner.py.page:14 C/guitar-tuner.vala.page:13
+#: C/image-viewer.c.page:14 C/image-viewer.cpp.page:12
+#: C/image-viewer.vala.page:14 C/record-collection.js.page:14
msgid "GNOME Documentation Project"
msgstr "GNOME-Dokumentationsprojekt"
-#: C/audio-player.vala.page:18(page/title)
+#. (itstool) path: page/title
+#: C/audio-player.vala.page:18
msgid "Audio player"
-msgstr ""
+msgstr "Musikwiedergabe"
-#: C/beginner.c.page:8(info/title)
+#. (itstool) path: info/title
+#: C/beginner.c.page:8
msgctxt "text"
msgid "Tutorial for beginners (C)"
-msgstr ""
+msgstr "Tutorien für Einsteiger (C)"
-#: C/beginner.c.page:12(info/desc) C/beginner.vala.page:12(info/desc)
+#. (itstool) path: info/desc
+#: C/beginner.c.page:12 C/beginner.vala.page:12
msgid ""
"A beginner's guide to GUI programming using GTK+, including code samples and "
"practice exercises."
msgstr ""
-#: C/beginner.c.page:21(credit/years) C/beginner.js.page:17(credit/years)
-#: C/beginner.py.page:20(credit/years) C/beginner.vala.page:20(credit/years)
-#: C/guitar-tuner.c.page:24(credit/years)
-#: C/guitar-tuner.cpp.page:22(credit/years)
-#: C/guitar-tuner.py.page:24(credit/years)
-#: C/guitar-tuner.py.page:29(credit/years)
-#: C/guitar-tuner.vala.page:27(credit/years)
-#: C/image-viewer.c.page:24(credit/years)
-#: C/image-viewer.cpp.page:22(credit/years)
-#: C/image-viewer.js.page:24(credit/years)
-#: C/image-viewer.py.page:24(credit/years)
-#: C/image-viewer.vala.page:32(credit/years) C/js.page:17(credit/years)
-#: C/magic-mirror.vala.page:24(credit/years)
-#: C/message-board.c.page:21(credit/years) C/photo-wall.c.page:23(credit/years)
-#: C/py.page:16(credit/years) C/record-collection.js.page:24(credit/years)
-#: C/tutorial.py.page:26(credit/years) C/vala.page:16(credit/years)
-#: C/weatherApp.js.page:18(credit/years)
+#. (itstool) path: credit/years
+#: C/beginner.c.page:21 C/beginner.js.page:17 C/beginner.py.page:20
+#: C/beginner.vala.page:20 C/buttonbox.js.page:15 C/colorbutton.js.page:14
+#: C/combobox_multicolumn.vala.page:15 C/fontchooserwidget.js.page:14
+#: C/fontchooserwidget.vala.page:14 C/guitar-tuner.c.page:24
+#: C/guitar-tuner.cpp.page:22 C/guitar-tuner.py.page:24
+#: C/guitar-tuner.py.page:29 C/guitar-tuner.vala.page:27
+#: C/image-viewer.c.page:24 C/image-viewer.cpp.page:22
+#: C/image-viewer.js.page:24 C/image-viewer.py.page:24
+#: C/image-viewer.vala.page:32 C/js.page:17 C/magic-mirror.vala.page:24
+#: C/menubutton.c.page:14 C/message-board.c.page:21 C/paned.js.page:14
+#: C/paned.vala.page:14 C/photo-wall.c.page:23 C/py.page:16
+#: C/record-collection.js.page:24 C/scrolledwindow.js.page:14
+#: C/separator.c.page:15 C/separator.vala.page:17 C/tooltip.c.page:15
+#: C/tooltip.js.page:15 C/tooltip.vala.page:15 C/tutorial.py.page:26
+#: C/vala.page:16 C/weatherApp.js.page:18
msgid "2013"
-msgstr ""
+msgstr "2013"
-#: C/beginner.c.page:25(page/title) C/beginner.js.page:23(page/title)
-#: C/beginner.vala.page:24(page/title)
+#. (itstool) path: page/title
+#: C/beginner.c.page:25 C/beginner.js.page:23 C/beginner.vala.page:24
msgid "Tutorial for beginners and code samples"
msgstr ""
-#: C/beginner.c.page:27(synopsis/p) C/beginner.vala.page:26(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/beginner.c.page:27 C/beginner.vala.page:26
msgid ""
"Although these tutorials are designed for beginners, we can't cover all the "
"basics. Before attempting to follow these tutorials, you are expected to be "
"familiar with the following concepts:"
msgstr ""
-#: C/beginner.c.page:29(item/p) C/beginner.vala.page:28(item/p)
+#. (itstool) path: item/p
+#: C/beginner.c.page:29 C/beginner.vala.page:28
msgid "Object oriented programming"
msgstr ""
-#: C/beginner.c.page:30(item/p)
+#. (itstool) path: item/p
+#: C/beginner.c.page:30
msgid "The C programming language"
-msgstr ""
+msgstr "Programmieren in C"
-#: C/beginner.c.page:34(synopsis/p) C/beginner.vala.page:37(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/beginner.c.page:34 C/beginner.vala.page:37
msgid ""
"By following these tutorials you will learn the basics of GUI programming "
"using GTK+."
msgstr ""
-#: C/beginner.c.page:38(section/title) C/beginner.js.page:41(section/title)
-#: C/beginner.vala.page:41(section/title)
+#. (itstool) path: section/title
+#: C/beginner.c.page:38 C/beginner.js.page:41 C/beginner.vala.page:41
msgid "Tutorials"
-msgstr ""
+msgstr "Einführungen"
-#: C/beginner.c.page:42(section/title) C/beginner.js.page:45(section/title)
-#: C/beginner.vala.page:45(section/title) C/py.page:31(section/title)
+#. (itstool) path: section/title
+#: C/beginner.c.page:42 C/beginner.js.page:45 C/beginner.vala.page:45
+#: C/py.page:31
msgid "Code samples"
msgstr ""
-#: C/beginner.c.page:43(section/p) C/beginner.js.page:47(section/p)
-#: C/beginner.vala.page:46(section/p)
+#. (itstool) path: section/p
+#: C/beginner.c.page:43 C/beginner.js.page:47 C/beginner.vala.page:46
msgid "To run the code samples:"
msgstr ""
-#: C/beginner.c.page:47(item/p)
+#. (itstool) path: item/p
+#: C/beginner.c.page:47
msgid "Copy and paste the code into <var>filename</var>.c"
msgstr ""
-#: C/beginner.c.page:48(item/p) C/beginner.c.page:61(item/p)
-#: C/beginner.vala.page:51(item/p)
+#. (itstool) path: item/p
+#: C/beginner.c.page:48 C/beginner.c.page:61 C/beginner.vala.page:51
msgid "In the terminal type:"
msgstr ""
-#: C/beginner.c.page:49(item/screen)
+#. (itstool) path: item/screen
+#: C/beginner.c.page:49
#, no-wrap
msgid "gcc <var>filename</var>.c `pkg-config --cflags --libs gtk+-3.0` -o <var>filename</var>\n"
-msgstr ""
+msgstr "gcc <var>filename</var>.c `pkg-config --cflags --libs gtk+-3.0` -o <var>filename</var>\n"
-#: C/beginner.c.page:51(item/screen) C/beginner.c.page:65(item/screen)
-#: C/beginner.vala.page:53(item/screen)
+#. (itstool) path: item/screen
+#: C/beginner.c.page:51 C/beginner.c.page:65 C/beginner.vala.page:53
#, no-wrap
msgid "./<var>filename</var>"
-msgstr ""
+msgstr "./<var>filename</var>"
-#: C/beginner.c.page:55(note/p)
+#. (itstool) path: note/p
+#: C/beginner.c.page:55
msgid ""
"For more information about compiling GTK+ programs see <link href=\"http://"
-"developer.gnome.org/gtk3/3.4/gtk-compiling.html\">Compiling GTK+ Applications "
-"on UNIX</link>."
+"developer.gnome.org/gtk3/3.4/gtk-compiling.html\">Compiling GTK+ "
+"Applications on UNIX</link>."
msgstr ""
-#: C/beginner.c.page:59(section/p)
+#. (itstool) path: section/p
+#: C/beginner.c.page:59
msgid "You can also use the Vala compiler to compile these samples:"
msgstr ""
-#: C/beginner.c.page:62(item/screen)
+#. (itstool) path: item/screen
+#: C/beginner.c.page:62
#, no-wrap
msgid "valac --pkg gtk+-3.0 <var>filename</var>.c"
-msgstr ""
+msgstr "valac --pkg gtk+-3.0 <var>filename</var>.c"
-#: C/beginner.c.page:64(item/p)
+#. (itstool) path: item/p
+#: C/beginner.c.page:64
+#, fuzzy
msgid "To run:"
-msgstr ""
+msgstr "Ausführen bis"
-#: C/beginner.c.page:68(section/title) C/beginner.js.page:54(section/title)
-#: C/beginner.py.page:31(section/title) C/beginner.vala.page:57(section/title)
+#. (itstool) path: section/title
+#: C/beginner.c.page:68 C/beginner.js.page:54 C/beginner.py.page:31
+#: C/beginner.vala.page:57
msgid "Windows"
-msgstr ""
+msgstr "Fenster"
-#: C/beginner.c.page:71(section/title) C/beginner.js.page:56(section/title)
-#: C/beginner.py.page:33(section/title) C/beginner.vala.page:60(section/title)
+#. (itstool) path: section/title
+#: C/beginner.c.page:71 C/beginner.js.page:56 C/beginner.py.page:33
+#: C/beginner.vala.page:60
msgid "Display widgets"
msgstr ""
-#: C/beginner.c.page:73(section/title) C/beginner.js.page:58(section/title)
-#: C/beginner.py.page:35(section/title) C/beginner.vala.page:62(section/title)
+#. (itstool) path: section/title
+#: C/beginner.c.page:73 C/beginner.js.page:58 C/beginner.py.page:35
+#: C/beginner.vala.page:62
msgid "Buttons and toggles"
msgstr ""
-#: C/beginner.c.page:75(section/title) C/beginner.js.page:60(section/title)
-#: C/beginner.py.page:37(section/title) C/beginner.vala.page:64(section/title)
+#. (itstool) path: section/title
+#: C/beginner.c.page:75 C/beginner.js.page:60 C/beginner.py.page:37
+#: C/beginner.vala.page:64
msgid "Numeric and text data entry"
msgstr ""
-#: C/beginner.c.page:77(section/title) C/beginner.js.page:62(section/title)
-#: C/beginner.py.page:39(section/title) C/beginner.vala.page:66(section/title)
+#. (itstool) path: section/title
+#: C/beginner.c.page:77 C/beginner.js.page:62 C/beginner.py.page:39
+#: C/beginner.vala.page:66
msgid "Multiline text editor"
-msgstr ""
+msgstr "Ein mehrzeiliger Texteditor"
-#: C/beginner.c.page:79(section/title) C/beginner.js.page:64(section/title)
-#: C/beginner.py.page:41(section/title) C/beginner.vala.page:68(section/title)
+#. (itstool) path: section/title
+#: C/beginner.c.page:79 C/beginner.js.page:64 C/beginner.py.page:41
+#: C/beginner.vala.page:68
msgid "Menu, combo box and toolbar widgets"
msgstr ""
-#: C/beginner.c.page:81(section/title) C/beginner.js.page:66(section/title)
-#: C/beginner.py.page:43(section/title) C/beginner.vala.page:70(section/title)
+#. (itstool) path: section/title
+#: C/beginner.c.page:81 C/beginner.js.page:66 C/beginner.py.page:43
+#: C/beginner.vala.page:70
msgid "TreeView widget"
msgstr ""
-#: C/beginner.c.page:83(section/title) C/beginner.js.page:68(section/title)
-#: C/beginner.py.page:45(section/title) C/beginner.vala.page:72(section/title)
-#: C/tutorial.py.page:126(steps/title)
+#. (itstool) path: section/title
+#. (itstool) path: steps/title
+#: C/beginner.c.page:83 C/beginner.js.page:68 C/beginner.py.page:45
+#: C/beginner.vala.page:72 C/tutorial.py.page:126
#, fuzzy
#| msgid "Selecting"
msgid "Selectors"
msgstr "Auswählen"
-#: C/beginner.c.page:84(section/title) C/beginner.js.page:69(section/title)
-#: C/beginner.py.page:46(section/title) C/beginner.vala.page:73(section/title)
+#. (itstool) path: section/title
+#: C/beginner.c.page:84 C/beginner.js.page:69 C/beginner.py.page:46
+#: C/beginner.vala.page:73
msgid "File selectors"
msgstr ""
-#: C/beginner.c.page:86(section/title) C/beginner.js.page:71(section/title)
-#: C/beginner.py.page:48(section/title) C/beginner.vala.page:75(section/title)
+#. (itstool) path: section/title
+#: C/beginner.c.page:86 C/beginner.js.page:71 C/beginner.py.page:48
+#: C/beginner.vala.page:75
msgid "Font selectors"
msgstr ""
-#: C/beginner.c.page:88(section/title) C/beginner.js.page:73(section/title)
-#: C/beginner.py.page:50(section/title) C/beginner.vala.page:77(section/title)
+#. (itstool) path: section/title
+#: C/beginner.c.page:88 C/beginner.js.page:73 C/beginner.py.page:50
+#: C/beginner.vala.page:77
msgid "Color Selectors"
-msgstr ""
+msgstr "Farbwähler"
-#: C/beginner.c.page:91(section/title) C/beginner.js.page:76(section/title)
-#: C/beginner.py.page:53(section/title) C/beginner.vala.page:80(section/title)
+#. (itstool) path: section/title
+#: C/beginner.c.page:91 C/beginner.js.page:76 C/beginner.py.page:53
+#: C/beginner.vala.page:80
msgid "Layout containers"
msgstr ""
-#: C/beginner.c.page:93(section/title) C/beginner.js.page:78(section/title)
-#: C/beginner.py.page:55(section/title) C/beginner.vala.page:82(section/title)
+#. (itstool) path: section/title
+#: C/beginner.c.page:93 C/beginner.js.page:78 C/beginner.py.page:55
+#: C/beginner.vala.page:82
msgid "Ornaments"
msgstr ""
-#: C/beginner.c.page:95(section/title) C/beginner.js.page:80(section/title)
-#: C/beginner.py.page:57(section/title) C/beginner.vala.page:84(section/title)
+#. (itstool) path: section/title
+#: C/beginner.c.page:95 C/beginner.js.page:80 C/beginner.py.page:57
+#: C/beginner.vala.page:84
msgid "Scrolling"
-msgstr ""
+msgstr "Bildlauf"
-#: C/beginner.c.page:97(section/title) C/beginner.js.page:82(section/title)
-#: C/beginner.py.page:59(section/title) C/beginner.vala.page:86(section/title)
+#. (itstool) path: section/title
+#: C/beginner.c.page:97 C/beginner.js.page:82 C/beginner.py.page:59
+#: C/beginner.vala.page:86
msgid "Miscellaneous"
-msgstr ""
+msgstr "Verschiedenes"
-#: C/beginner.c.page:102(section/title) C/beginner.js.page:87(section/title)
-#: C/beginner.vala.page:91(section/title)
-#: C/menubar.vala.page:197(section/title)
+#. (itstool) path: section/title
+#: C/beginner.c.page:102 C/beginner.js.page:87 C/beginner.vala.page:91
+#: C/menubar.vala.page:197
msgid "Exercises"
msgstr ""
-#: C/beginner.js.page:10(credit/name) C/grid.js.page:12(credit/name)
-#: C/guitar-tuner.js.page:11(credit/name) C/helloWorld.js.page:14(credit/name)
-#: C/weatherApp.js.page:11(credit/name)
-#: C/weatherAppMain.js.page:10(credit/name)
-#: C/weatherAutotools.js.page:10(credit/name)
-#: C/weatherGeonames.js.page:10(credit/name)
+#. (itstool) path: credit/name
+#: C/beginner.js.page:10 C/grid.js.page:12 C/guitar-tuner.js.page:11
+#: C/hello-world.c.page:14 C/hello-world.js.page:14 C/hello-world.py.page:14
+#: C/hello-world.vala.page:14 C/weatherApp.js.page:11
+#: C/weatherAppMain.js.page:10 C/weatherAutotools.js.page:10
+#: C/weatherGeonames.js.page:10
msgid "Susanna Huhtanen"
msgstr "Susanna Huhtanen"
-#: C/beginner.js.page:20(info/desc)
+#. (itstool) path: info/desc
+#: C/beginner.js.page:20
msgid ""
"A beginner's guide to writing GNOME applications in JavaScript, including "
"code samples and practice exercises."
msgstr ""
-#: C/beginner.js.page:25(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/beginner.js.page:25
msgid ""
"JavaScript is one of the most popular programming languages on the web. It's "
"not just for the web, though. If you have even a basic understanding of "
@@ -3284,7 +3350,8 @@ msgid ""
"\">GNOME Shell</link>, the most basic part of GNOME."
msgstr ""
-#: C/beginner.js.page:26(note/p)
+#. (itstool) path: note/p
+#: C/beginner.js.page:26
msgid ""
"GNOME Shell is what you see when you click on \"Activities\" in the top-left "
"corner of your screen. It also controls the clock and the rest of the top "
@@ -3293,11 +3360,13 @@ msgid ""
"which give it new features or change the way it does things."
msgstr ""
-#: C/beginner.js.page:30(section/title)
+#. (itstool) path: section/title
+#: C/beginner.js.page:30
msgid "Getting Started"
msgstr "Erste Schritte"
-#: C/beginner.js.page:31(section/p)
+#. (itstool) path: section/p
+#: C/beginner.js.page:31
msgid ""
"These tutorials are designed for people who already know how to write in "
"JavaScript, and who have GNOME installed on their computers already, but who "
@@ -3306,7 +3375,8 @@ msgid ""
"resources first:"
msgstr ""
-#: C/beginner.js.page:33(item/p)
+#. (itstool) path: item/p
+#: C/beginner.js.page:33
msgid ""
"<link href=\"http://eloquentjavascript.net/contents.html\">Eloquent "
"JavaScript</link> is a free, Creative Commons-licensed book, which explains "
@@ -3314,20 +3384,23 @@ msgid ""
"for the web, you only need to read up to chapter 10 or so."
msgstr ""
-#: C/beginner.js.page:34(item/p)
+#. (itstool) path: item/p
+#: C/beginner.js.page:34
msgid ""
"<link href=\"http://www.gnome.org/getting-gnome/\">Download GNOME</link> as "
"part of a distribution, like Fedora, openSUSE, or Ubuntu. Each distribution "
"has its own instructions for how to get GNOME."
msgstr ""
-#: C/beginner.js.page:35(item/p)
+#. (itstool) path: item/p
+#: C/beginner.js.page:35
msgid ""
"<link xref=\"set-up-gedit.js\">Set up gedit</link> for writing applications. "
"GNOME's text editor, gedit, is sometimes just called \"text editor\"."
msgstr ""
-#: C/beginner.js.page:46(section/p)
+#. (itstool) path: section/p
+#: C/beginner.js.page:46
msgid ""
"These samples show how to use widgets in your GNOME applications. Each one "
"demonstrates a complete application which showcases the featured widget. At "
@@ -3335,103 +3408,130 @@ msgid ""
"material."
msgstr ""
-#: C/beginner.js.page:49(item/p)
+#. (itstool) path: item/p
+#: C/beginner.js.page:49
msgid "Copy and paste the code into <var>filename</var>.js"
msgstr ""
-#: C/beginner.js.page:50(item/p)
+#. (itstool) path: item/p
+#: C/beginner.js.page:50
msgid "In the terminal, type:"
msgstr ""
-#: C/beginner.js.page:51(item/screen)
+#. (itstool) path: item/screen
+#: C/beginner.js.page:51
#, no-wrap
msgid "gjs <var>filename</var>.js"
-msgstr ""
+msgstr "gjs <var>filename</var>.js"
-#: C/beginner.py.page:8(info/title)
+#. (itstool) path: info/title
+#: C/beginner.py.page:8
msgctxt "text"
msgid "GTK+ widgets sample code (Python)"
msgstr ""
-#: C/beginner.py.page:12(info/desc)
+#. (itstool) path: info/desc
+#: C/beginner.py.page:12
msgid ""
"A guide to GUI programming using GTK+, including code samples and practice "
"exercises."
msgstr ""
-#: C/beginner.py.page:24(page/title)
+#. (itstool) path: page/title
+#: C/beginner.py.page:24
msgid "GTK+ widgets sample code"
msgstr ""
-#: C/beginner.py.page:26(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/beginner.py.page:26
msgid ""
-"If you are a beginner and you would like a tutorial to guide you step by step "
-"in an exploration of what you can do with GTK+ 3, you should go to the <link "
-"xref=\"tutorial.py\"/> page. If you are looking for a specific widget, you "
-"can find it in the sections below."
+"If you are a beginner and you would like a tutorial to guide you step by "
+"step in an exploration of what you can do with GTK+ 3, you should go to the "
+"<link xref=\"tutorial.py\"/> page. If you are looking for a specific widget, "
+"you can find it in the sections below."
msgstr ""
-#: C/beginner.py.page:63(section/title)
+#. (itstool) path: section/title
+#: C/beginner.py.page:63
msgid "Theory pages"
msgstr ""
-#: C/beginner.vala.page:8(info/title)
+#. (itstool) path: info/title
+#: C/beginner.vala.page:8
msgctxt "text"
msgid "Tutorial for beginners (Vala)"
msgstr ""
-#: C/beginner.vala.page:29(item/p)
+#. (itstool) path: item/p
+#: C/beginner.vala.page:29
msgid "The Vala programming language:"
msgstr ""
-#: C/beginner.vala.page:31(item/p)
+#. (itstool) path: item/p
+#: C/beginner.vala.page:31
msgid ""
"<link href=\"https://live.gnome.org/Vala/Tutorial\">The Vala Tutorial</link>"
msgstr ""
-#: C/beginner.vala.page:32(item/p)
+#. (itstool) path: item/p
+#: C/beginner.vala.page:32
msgid ""
"<link href=\"https://live.gnome.org/Vala/Documentation#Sample_Code\">Sample "
"Vala code</link>"
msgstr ""
-#: C/beginner.vala.page:50(item/p)
+#. (itstool) path: item/p
+#: C/beginner.vala.page:50
msgid "Copy and paste the code into <var>filename</var>.vala"
msgstr ""
-#: C/beginner.vala.page:52(item/screen)
+#. (itstool) path: item/screen
+#: C/beginner.vala.page:52
#, no-wrap
msgid "valac --pkg gtk+-3.0 <var>filename</var>.vala"
-msgstr ""
+msgstr "valac --pkg gtk+-3.0 <var>filename</var>.vala"
+
+#. (itstool) path: credit/years
+#: C/bug-filing.page:11 C/documentation.page:12 C/entry.py.page:22
+#: C/index.page:19 C/model-view-controller.py.page:17 C/properties.py.page:17
+#: C/signals-callbacks.py.page:17 C/strings.py.page:17 C/textview.py.page:17
+#: C/toolbar_builder.py.page:29 C/translate.page:12
+msgid "2011"
+msgstr "2011"
-#: C/bug-filing.page:14(license/p) C/documentation.page:15(license/p)
-#: C/translate.page:19(license/p)
+#. (itstool) path: license/p
+#: C/bug-filing.page:14 C/documentation.page:15 C/translate.page:19
msgid "Creative Commons Share Alike 3.0"
msgstr "Creative Commons Share Alike 3.0"
-#: C/bug-filing.page:18(page/title)
+#. (itstool) path: page/title
+#: C/bug-filing.page:18
msgid "Help make <app>GNOME Developer Tutorials</app> better"
msgstr ""
-#: C/bug-filing.page:21(section/title)
+#. (itstool) path: section/title
+#: C/bug-filing.page:21
msgid "Report a bug or suggest an improvement"
msgstr ""
-#: C/bug-filing.page:22(section/p)
+#. (itstool) path: section/p
+#: C/bug-filing.page:22
msgid ""
-"<app>GNOME Developer Tutorials</app> are maintained by a volunteer community. "
-"You are welcome to participate. If you notice a problem you can file a "
-"<em>bug report</em>. To file a bug, go to <link href=\"https://bugzilla.gnome."
-"org/\"/>."
+"<app>GNOME Developer Tutorials</app> are maintained by a volunteer "
+"community. You are welcome to participate. If you notice a problem you can "
+"file a <em>bug report</em>. To file a bug, go to <link href=\"https://"
+"bugzilla.gnome.org/\"/>."
msgstr ""
-#: C/bug-filing.page:25(section/p)
+#. (itstool) path: section/p
+#: C/bug-filing.page:25
msgid ""
"This is a bug tracking system where users and developers can file details "
"about bugs, crashes and request enhancements."
msgstr ""
-#: C/bug-filing.page:28(section/p)
+#. (itstool) path: section/p
+#: C/bug-filing.page:28
msgid ""
"To participate you need an account which will give you the ability to gain "
"access, file bugs, and make comments. Also, you need to register so you can "
@@ -3439,83 +3539,79 @@ msgid ""
"have an account, just click on the <gui>New Account</gui> link to create one."
msgstr ""
-#: C/bug-filing.page:31(section/p)
+#. (itstool) path: section/p
+#: C/bug-filing.page:31
msgid ""
"Once you have an account, log in, click on <guiseq><gui>File a Bug</"
"gui><gui>All</gui><gui>gnome-devel-docs</gui></guiseq>. Before reporting a "
"bug, please read the <link href=\"https://bugzilla.gnome.org/page.cgi?id=bug-"
-"writing.html\">bug writing guidelines</link>, and please <link href=\"https://"
-"bugzilla.gnome.org/browse.cgi?product=gnome-games\">browse</link> for the bug "
-"to see if it already exists."
+"writing.html\">bug writing guidelines</link>, and please <link href="
+"\"https://bugzilla.gnome.org/browse.cgi?product=gnome-games\">browse</link> "
+"for the bug to see if it already exists."
msgstr ""
-#: C/bug-filing.page:35(section/p)
+#. (itstool) path: section/p
+#: C/bug-filing.page:35
msgid ""
"To file your bug, choose the component <gui>platform-demos</gui> in the "
"<gui>Component</gui> menu."
msgstr ""
-#: C/bug-filing.page:38(section/p)
+#. (itstool) path: section/p
+#: C/bug-filing.page:38
msgid ""
"If you are requesting a new feature, choose <gui>enhancement</gui> in the "
"<gui>Severity</gui> menu. Fill in the Summary and Description sections and "
"click <gui>Commit</gui>."
msgstr ""
+"Falls Sie eine Anfrage nach einem neuen Funktionsmerkmal stellen, wählen Sie "
+"<gui>enhancement</gui> im Menü <gui>Severity</gui>. Füllen Sie die Felder "
+"»Summary« und »Description« aus und klicken Sie auf <gui>Commit</gui>."
-#: C/bug-filing.page:42(section/p)
+#. (itstool) path: section/p
+#: C/bug-filing.page:42
msgid ""
"Your report will be given an ID number, and its status will be updated as it "
"is being dealt with. Thanks for helping make <app>GNOME Developer Tutorials</"
"app> better!"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/button.c.page:24(media) C/button.js.page:21(media)
-#: C/button.py.page:24(media) C/button.vala.page:23(media)
+#: C/button.c.page:24 C/button.js.page:21 C/button.py.page:24
+#: C/button.vala.page:23
msgctxt "_"
msgid "external ref='media/button.png' md5='8d69efbb3a0d3e043af6139b6492171c'"
msgstr "external ref='media/button.png' md5='8d69efbb3a0d3e043af6139b6492171c'"
-#: C/button.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/button.c.page:7
msgctxt "text"
msgid "Button (C)"
-msgstr ""
+msgstr "Knopf (C)"
-#: C/button.c.page:19(info/desc) C/button.py.page:19(info/desc)
-#: C/button.vala.page:18(info/desc)
+#. (itstool) path: info/desc
+#: C/button.c.page:19 C/button.py.page:19 C/button.vala.page:18
msgid "A button widget which emits a signal when clicked"
msgstr ""
-#: C/button.c.page:22(page/title) C/button.js.page:20(page/title)
-#: C/button.py.page:22(page/title)
+#. (itstool) path: page/title
+#: C/button.c.page:22 C/button.js.page:20 C/button.py.page:22
msgid "Button"
-msgstr ""
+msgstr "Knopf"
-#: C/button.c.page:25(page/p)
+#. (itstool) path: page/p
+#: C/button.c.page:25
msgid ""
-"A button widget connected to a callback function that reverses its label when "
-"clicked."
+"A button widget connected to a callback function that reverses its label "
+"when clicked."
msgstr ""
-#: C/button.c.page:27(page/code)
+#. (itstool) path: page/code
+#: C/button.c.page:27
#, no-wrap
msgid ""
"\n"
@@ -3584,35 +3680,40 @@ msgid ""
"}\n"
msgstr ""
-#: C/button.c.page:35(item/p) C/buttonbox.py.page:50(item/p)
-#: C/grid.c.page:34(item/p)
+#. (itstool) path: item/p
+#: C/button.c.page:35 C/buttonbox.py.page:50 C/grid.c.page:34
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkButton.html"
"\">GtkButton</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkButton.html"
+"\">GtkButton</link>"
-#: C/button.c.page:36(item/p)
+#. (itstool) path: item/p
+#: C/button.c.page:36
msgid ""
-"<link href=\"http://developer.gnome.org/glib/stable/glib-Unicode-Manipulation."
-"html#g-utf8-strreverse\">Unicode Manipulation</link>"
+"<link href=\"http://developer.gnome.org/glib/stable/glib-Unicode-"
+"Manipulation.html#g-utf8-strreverse\">Unicode Manipulation</link>"
msgstr ""
-#: C/button.js.page:7(info/title)
-#, fuzzy
-#| msgid "JavaScript"
+#. (itstool) path: info/title
+#: C/button.js.page:7
msgctxt "text"
msgid "Button (JavaScript)"
-msgstr "JavaScript"
+msgstr "Knops (JavaScript)"
-#: C/button.js.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/button.js.page:17
msgid "A button which can be connected to other widgets"
msgstr ""
-#: C/button.js.page:22(page/p)
+#. (itstool) path: page/p
+#: C/button.js.page:22
msgid "A button widget that changes its label when you click it."
msgstr ""
-#: C/button.js.page:24(page/code)
+#. (itstool) path: page/code
+#: C/button.js.page:24
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -3680,29 +3781,76 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/button.js.page:32(item/p) C/grid.js.page:35(item/p)
+#. (itstool) path: item/p
+#: C/button.js.page:32 C/grid.js.page:35
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Button.html"
"\">Gtk.Button</link>"
msgstr ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Button.html"
+"\">Gtk.Button</link>"
-#: C/button.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/button.py.page:7
msgctxt "text"
msgid "Button (Python)"
msgstr ""
-#: C/button.py.page:25(page/p) C/button.vala.page:24(page/p)
+#. (itstool) path: page/p
+#: C/button.py.page:25 C/button.vala.page:24
msgid "A button widget connected to a simple callback function."
msgstr ""
-#: C/button.py.page:31(section/code)
-#, no-wrap
+#. (itstool) path: section/code
+#: C/button.py.page:31
+#, fuzzy, no-wrap
+#| msgid ""
+#| "from gi.repository import Gtk\n"
+#| "import sys\n"
+#| "\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"ScrolledWindow Example\", application=app)\n"
+#| " self.set_default_size(200, 200)\n"
+#| "\n"
+#| " # the scrolledwindow\n"
+#| " scrolled_window = Gtk.ScrolledWindow()\n"
+#| " scrolled_window.set_border_width(10)\n"
+#| " # there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
+#| " scrolled_window.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\n"
+#| "\n"
+#| " # an image - slightly larger than the window...\n"
+#| " image = Gtk.Image()\n"
+#| " image.set_from_file(\"gnome-image.png\")\n"
+#| "\n"
+#| " # add the image to the scrolledwindow\n"
+#| " scrolled_window.add_with_viewport(image)\n"
+#| "\n"
+#| " # add the scrolledwindow to the window\n"
+#| " self.add(scrolled_window)\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " win = MyWindow(self)\n"
+#| " win.show_all()\n"
+#| "\n"
+#| " def do_startup(self):\n"
+#| " Gtk.Application.do_startup(self)\n"
+#| "\n"
+#| "app = MyApplication()\n"
+#| "exit_status = app.run(sys.argv)\n"
+#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
" # a window\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"GNOME Button\", application=app)\n"
" self.set_default_size(250, 50)\n"
@@ -3721,7 +3869,9 @@ msgid ""
" def do_clicked(self, button):\n"
" print \"You clicked me!\"\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -3729,19 +3879,59 @@ msgid ""
" win = MyWindow(self)\n"
" win.show_all()\n"
"\n"
-" def do_startup (self):\n"
-" Gtk.Application.do_startup (self)\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
"\n"
"app = MyApplication()\n"
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
msgstr ""
+"from gi.repository import Gtk\n"
+"import sys\n"
+"\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"ScrolledWindow Example\", application=app)\n"
+" self.set_default_size(200, 200)\n"
+"\n"
+" # the scrolledwindow\n"
+" scrolled_window = Gtk.ScrolledWindow()\n"
+" scrolled_window.set_border_width(10)\n"
+" # there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
+" scrolled_window.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\n"
+"\n"
+" # an image - slightly larger than the window...\n"
+" image = Gtk.Image()\n"
+" image.set_from_file(\"gnome-image.png\")\n"
+"\n"
+" # add the image to the scrolledwindow\n"
+" scrolled_window.add_with_viewport(image)\n"
+"\n"
+" # add the scrolledwindow to the window\n"
+" self.add(scrolled_window)\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
+"\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)\n"
-#: C/button.py.page:35(section/title)
+#. (itstool) path: section/title
+#: C/button.py.page:35
msgid "Useful methods for a Button widget"
msgstr ""
-#: C/button.py.page:36(section/p)
+#. (itstool) path: section/p
+#: C/button.py.page:36
msgid ""
"In line 16 the <code>\"clicked\"</code> signal from the button is connected "
"to the callback function <code>do_clicked()</code> using <code><var>widget</"
@@ -3749,25 +3939,31 @@ msgid ""
"<link xref=\"signals-callbacks.py\"/> for a more detailed explanation."
msgstr ""
-#: C/button.py.page:38(item/p)
+#. (itstool) path: item/p
+#: C/button.py.page:38
msgid ""
"<code>set_relief(Gtk.ReliefStyle.NONE)</code> sets to none the relief style "
"of the edges of the Gtk.Button - as opposed to <code>Gtk.ReliefStyle.NORMAL</"
"code>."
msgstr ""
-#: C/button.py.page:39(item/p)
+#. (itstool) path: item/p
+#: C/button.py.page:39
msgid ""
"If the label of the button is a <link href=\"http://developer.gnome.org/gtk3/"
-"unstable/gtk3-Stock-Items.html\">stock icon</link>, <code>set_use_stock(True)"
-"</code> sets the label as the name of the corresponding stock icon."
+"unstable/gtk3-Stock-Items.html\">stock icon</link>, "
+"<code>set_use_stock(True)</code> sets the label as the name of the "
+"corresponding stock icon."
msgstr ""
-#: C/button.py.page:40(item/p)
-msgid "To set an image (e.g. a stock image) for the button <code>button</code>:"
+#. (itstool) path: item/p
+#: C/button.py.page:40
+msgid ""
+"To set an image (e.g. a stock image) for the button <code>button</code>:"
msgstr ""
-#: C/button.py.page:41(item/code)
+#. (itstool) path: item/code
+#: C/button.py.page:41
#, no-wrap
msgid ""
"\n"
@@ -3776,46 +3972,51 @@ msgid ""
"button.set_image(image)"
msgstr ""
-#: C/button.py.page:45(item/p)
+#. (itstool) path: item/p
+#: C/button.py.page:45
msgid ""
"You should not set a label for the button after this, otherwise it will show "
"the label and not the image."
msgstr ""
-#: C/button.py.page:46(item/p)
+#. (itstool) path: item/p
+#: C/button.py.page:46
msgid ""
"If we use <code>set_focus_on_click(False)</code> the button will not grab "
"focus when it is clicked by the mouse. This could be useful in places like "
-"toolbars, so that the keyboard focus is not removed from the main area of the "
-"application."
+"toolbars, so that the keyboard focus is not removed from the main area of "
+"the application."
msgstr ""
-#: C/button.py.page:54(item/p)
+#. (itstool) path: item/p
+#: C/button.py.page:54
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkButton.html"
"\">GtkButton</link>"
msgstr ""
-#: C/button.py.page:55(item/p) C/dialog.py.page:51(item/p)
-#: C/image.py.page:103(item/p) C/label.py.page:90(item/p)
-#: C/linkbutton.py.page:46(item/p) C/messagedialog.py.page:60(item/p)
-#: C/radiobutton.py.page:48(item/p) C/separator.py.page:38(item/p)
-#: C/window.py.page:64(item/p)
+#. (itstool) path: item/p
+#: C/button.py.page:55 C/dialog.py.page:51 C/image.py.page:103
+#: C/label.py.page:90 C/linkbutton.py.page:46 C/messagedialog.py.page:60
+#: C/radiobutton.py.page:48 C/separator.py.page:38 C/window.py.page:64
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkWindow.html"
"\">GtkWindow</link>"
msgstr ""
-#: C/button.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/button.vala.page:7
msgctxt "text"
msgid "Button (Vala)"
msgstr ""
-#: C/button.vala.page:21(page/title)
+#. (itstool) path: page/title
+#: C/button.vala.page:21
msgid "Button widget"
msgstr ""
-#: C/button.vala.page:26(page/code)
+#. (itstool) path: page/code
+#: C/button.vala.page:26
#, no-wrap
msgid ""
"\n"
@@ -3863,17 +4064,19 @@ msgid ""
"}\n"
msgstr ""
-#: C/button.vala.page:28(page/p)
+#. (itstool) path: page/p
+#: C/button.vala.page:28
msgid ""
"In this sample we used the following: <link href=\"http://www.valadoc.org/gtk"
"+-3.0/Gtk.Button.html\">Gtk.Button</link>"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/buttonbox.py.page:24(media)
+#: C/buttonbox.js.page:23 C/buttonbox.py.page:24
msgctxt "_"
msgid ""
"external ref='media/buttonbox_calculator.png' "
@@ -3882,30 +4085,284 @@ msgstr ""
"external ref='media/buttonbox_calculator.png' "
"md5='ce0de08b7ac66f517290e33e6d33d508'"
-#: C/buttonbox.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/buttonbox.js.page:7
+#, fuzzy
+#| msgid "JavaScript"
msgctxt "text"
-msgid "ButtonBox (Python)"
+msgid "ButtonBox (JavaScript)"
+msgstr "JavaScript"
+
+#. (itstool) path: credit/name
+#: C/buttonbox.js.page:13 C/colorbutton.js.page:12
+#: C/fontchooserwidget.js.page:12 C/paned.js.page:12
+#: C/scrolledwindow.js.page:12 C/tooltip.js.page:13
+msgid "Meg Ford"
msgstr ""
-#: C/buttonbox.py.page:19(info/desc)
+#. (itstool) path: info/desc
+#: C/buttonbox.js.page:18 C/buttonbox.py.page:19
msgid "A container for arranging buttons"
msgstr ""
-#: C/buttonbox.py.page:22(page/title) C/tutorial.py.page:91(steps/title)
+#. (itstool) path: page/title
+#. (itstool) path: steps/title
+#: C/buttonbox.js.page:21 C/buttonbox.py.page:22 C/tutorial.py.page:91
msgid "ButtonBox"
msgstr ""
-#: C/buttonbox.py.page:25(page/p)
+#. (itstool) path: page/p
+#: C/buttonbox.js.page:24 C/buttonbox.py.page:25
msgid "A calculator - the buttons are enclosed in horizontal ButtonBoxes."
msgstr ""
-#: C/buttonbox.py.page:31(section/code)
+#. (itstool) path: section/code
+#: C/buttonbox.js.page:30
+#, no-wrap
+msgid ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const GObject = imports.gi.GObject;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"\n"
+"const ButtonBoxExample = new Lang.Class ({\n"
+" Name: 'ButtonBox Example',\n"
+"\n"
+" // Create the application itthis\n"
+" _init: function () {\n"
+" this.application = new Gtk.Application({ application_id: 'org.example.jsbuttonbox' });\n"
+"\n"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Callback function for 'activate' signal presents windows when active\n"
+" _onActivate: function() {\n"
+" this.window.present();\n"
+" },\n"
+"\n"
+" // Callback function for 'startup' signal builds the UI\n"
+" _onStartup: function() {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+" // Build the application's UI\n"
+" _buildUI: function() {\n"
+" // Create the application window\n"
+" this.window = new Gtk.ApplicationWindow ({ application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" title: \"Calculator\",\n"
+" default_width: 350,\n"
+" default_height: 200,\n"
+" border_width: 10 });\n"
+" this.entry = new Gtk.Entry();\n"
+" this.entry.set_text('0');\n"
+" // text aligned on the right\n"
+" this.entry.set_alignment(1);\n"
+" // the text in the entry cannot be modified by writing in it\n"
+" this.entry.set_can_focus(false);\n"
+"\n"
+" // a grid\n"
+" this.grid = new Gtk.Grid();\n"
+" this.grid.set_row_spacing(5);\n"
+" \n"
+" // to attach the entry\n"
+" this.grid.attach(this.entry, 0, 0, 1, 1);\n"
+" \n"
+" // the labels for the buttons\n"
+" this.buttons = [ 7, 8, 9, '/', 4, 5, 6, '*', 1, 2, 3, '-', 'C', 0, '=', '+' ];\n"
+" \n"
+" // each row is a ButtonBox, attached to the grid \n"
+" for (i = 0; i < 4; i++) {\n"
+" this.hbox = Gtk.ButtonBox.new(Gtk.Orientation.HORIZONTAL);\n"
+" this.hbox.set_spacing(5);\n"
+" this.grid.attach(this.hbox, 0, i + 1, 1, 1);\n"
+" // each ButtonBox has 4 buttons, connected to the callback function\n"
+" for (j= 0; j < 4; j++) {\n"
+" this.button = new Gtk.Button();\n"
+" this.buttonLabel = (this.buttons[i * 4 + j].toString());\n"
+" this.button.set_label(this.buttonLabel);\n"
+" this.button.set_can_focus(false);\n"
+" this.button.connect(\"clicked\", Lang.bind(this, this._buttonClicked, this.button));\n"
+" this.hbox.add(this.button);\n"
+" }\n"
+" }\n"
+" \n"
+" // some variables for the calculations\n"
+" this.firstNumber = 0;\n"
+" this.secondNumber = 0;\n"
+" this.counter = 0;\n"
+" this.operation = \"\";\n"
+"\n"
+" // add the grid to the window\n"
+" this.window.add(this.grid);\n"
+" this.window.show_all();\n"
+" },\n"
+"\n"
+" // callback function for all the buttons\n"
+" _buttonClicked: function(button) {\n"
+" this.button = button;\n"
+" // for the operations\n"
+" if (this.button.get_label() == '+') {\n"
+" this.counter += 1 \n"
+" if (this.counter > 1)\n"
+" this._doOperation();\n"
+" this.entry.set_text('0');\n"
+" this.operation = \"plus\";\n"
+" }\n"
+"\n"
+" else if (this.button.get_label() == '-') {\n"
+" this.counter += 1;\n"
+" if (this.counter > 1)\n"
+" this._doOperation();\n"
+" this.entry.set_text('0');\n"
+" this.operation = \"minus\";\n"
+" }\n"
+"\n"
+" else if (this.button.get_label() == '*') {\n"
+" this.counter += 1; \n"
+" if (this.counter > 1)\n"
+" this._doOperation();\n"
+" this.entry.set_text('0');\n"
+" this.operation = \"multiplication\";\n"
+" }\n"
+"\n"
+" else if (this.button.get_label() == '/') {\n"
+" this.counter += 1 \n"
+" if (this.counter > 1)\n"
+" this._doOperation();\n"
+" this.entry.set_text('0');\n"
+" this.operation = \"division\";\n"
+" }\n"
+"\n"
+" // for =\n"
+" else if (this.button.get_label() == '=') {\n"
+" this._doOperation();\n"
+" this.entry.set_text(this.firstNumber.toString());\n"
+" this.counter = 1;\n"
+" }\n"
+"\n"
+" // for Cancel\n"
+" else if (this.button.get_label() == 'C') {\n"
+" this.firstNumber = 0;\n"
+" this.secondNumber = 0;\n"
+" this.counter = 0;\n"
+" this.entry.set_text('0');\n"
+" this.operation = \"\";\n"
+" }\n"
+"\n"
+" // for a digit button\n"
+" else {\n"
+" this.newDigit = parseInt(this.button.get_label());\n"
+" if (this.entry.get_text() == \"error\")\n"
+" this.number = 0;\n"
+" else\n"
+" this.number = parseInt(this.entry.get_text());\n"
+" this.number = this.number * 10 + this.newDigit; \n"
+" if (this.counter == 0)\n"
+" this.firstNumber = this.number;\n"
+" else\n"
+" this.secondNumber = this.number;\n"
+" this.entry.set_text(this.number.toString());\n"
+" }\n"
+" },\n"
+"\n"
+" _doOperation: function() {\n"
+" if (this.operation == \"plus\") {\n"
+" this.firstNumber += this.secondNumber;\n"
+" } else if (this.operation == \"minus\") {\n"
+" this.firstNumber -= this.secondNumber;\n"
+" } else if (this.operation == \"multiplication\") {\n"
+" this.firstNumber *= this.secondNumber;\n"
+" } else if (this.operation == \"division\") {\n"
+" if (this.secondNumber != 0) {\n"
+" this.firstNumber /= this.secondNumber;\n"
+" } else {\n"
+" this.firstNumber = 0; \n"
+" this.secondNumber = 0;\n"
+" this.counter = 0; \n"
+" this.entry.set_text(\"error\");\n"
+" this.operation = \"\";\n"
+"\n"
+" return\n"
+" }\n"
+" } else {\n"
+" this.firstNumber = 0;\n"
+" this.secondNumber = 0;\n"
+" this.counter = 0;\n"
+" this.entry.set_text(\"error\");\n"
+" }\n"
+" }\n"
+"});\n"
+"\n"
+"// Run the application\n"
+"let app = new ButtonBoxExample();\n"
+"app.application.run (ARGV);\n"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/buttonbox.js.page:37
+msgid ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.ButtonBox.html"
+"\">GtkButtonBox</link>"
+msgstr ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.ButtonBox.html"
+"\">GtkButtonBox</link>"
+
+#. (itstool) path: item/p
+#: C/buttonbox.js.page:38
+msgid ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Box.html"
+"\">GtkBox</link>"
+msgstr ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Box.html"
+"\">GtkBox</link>"
+
+#. (itstool) path: item/p
+#: C/buttonbox.js.page:39
+msgid ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Button.html"
+"\">GtkButton</link>"
+msgstr ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Button.html"
+"\">GtkButton</link>"
+
+#. (itstool) path: item/p
+#: C/buttonbox.js.page:40
+msgid ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Entry.html"
+"\">GtkEntry</link>"
+msgstr ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Entry.html"
+"\">GtkEntry</link>"
+
+#. (itstool) path: item/p
+#: C/buttonbox.js.page:41
+msgid ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Grid.html"
+"\">GtkGrid</link>"
+msgstr ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Grid.html"
+"\">GtkGrid</link>"
+
+#. (itstool) path: info/title
+#: C/buttonbox.py.page:7
+msgctxt "text"
+msgid "ButtonBox (Python)"
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/buttonbox.py.page:31
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"Calculator\", application=app)\n"
" self.set_default_size(350, 200)\n"
@@ -3923,17 +4380,17 @@ msgid ""
" # a grid\n"
" grid = Gtk.Grid()\n"
" grid.set_row_spacing(5)\n"
-" \n"
+"\n"
" # to attach the entry\n"
" grid.attach(self.entry, 0, 0, 1, 1)\n"
-" \n"
+"\n"
" # the labels for the buttons\n"
-" buttons = [ 7, 8, 9, '/',\n"
-" 4, 5, 6, '*',\n"
-" 1, 2, 3, '-',\n"
-" 'C', 0, '=', '+' ]\n"
-" \n"
-" # each row is a ButtonBox, attached to the grid \n"
+" buttons = [7, 8, 9, '/',\n"
+" 4, 5, 6, '*',\n"
+" 1, 2, 3, '-',\n"
+" 'C', 0, '=', '+']\n"
+"\n"
+" # each row is a ButtonBox, attached to the grid\n"
" for i in range(4):\n"
" hbox = Gtk.ButtonBox.new(Gtk.Orientation.HORIZONTAL)\n"
" hbox.set_spacing(5)\n"
@@ -3944,7 +4401,7 @@ msgid ""
" button.set_can_focus(False)\n"
" button.connect(\"clicked\", self.button_clicked)\n"
" hbox.add(button)\n"
-" \n"
+"\n"
" # some variables for the calculations\n"
" self.first_number = 0\n"
" self.second_number = 0\n"
@@ -3958,25 +4415,25 @@ msgid ""
" def button_clicked(self, button):\n"
" # for the operations\n"
" if button.get_label() == '+':\n"
-" self.counter += 1 \n"
+" self.counter += 1\n"
" if self.counter > 1:\n"
" self.do_operation()\n"
" self.entry.set_text('0')\n"
" self.operation = \"plus\"\n"
" elif button.get_label() == '-':\n"
-" self.counter += 1 \n"
+" self.counter += 1\n"
" if self.counter > 1:\n"
" self.do_operation()\n"
" self.entry.set_text('0')\n"
" self.operation = \"minus\"\n"
" elif button.get_label() == '*':\n"
-" self.counter += 1 \n"
+" self.counter += 1\n"
" if self.counter > 1:\n"
" self.do_operation()\n"
" self.entry.set_text('0')\n"
" self.operation = \"multiplication\"\n"
" elif button.get_label() == '/':\n"
-" self.counter += 1 \n"
+" self.counter += 1\n"
" if self.counter > 1:\n"
" self.do_operation()\n"
" self.entry.set_text('0')\n"
@@ -4000,7 +4457,7 @@ msgid ""
" number = 0\n"
" else:\n"
" number = int(self.entry.get_text())\n"
-" number = number * 10 + new_digit \n"
+" number = number * 10 + new_digit\n"
" if self.counter == 0:\n"
" self.first_number = number\n"
" else:\n"
@@ -4029,8 +4486,10 @@ msgid ""
" self.second_number = 0\n"
" self.counter = 0\n"
" self.entry.set_text('error')\n"
-" \n"
+"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -4046,11 +4505,13 @@ msgid ""
"sys.exit(exit_status)\n"
msgstr ""
-#: C/buttonbox.py.page:35(section/title)
+#. (itstool) path: section/title
+#: C/buttonbox.py.page:35
msgid "Uselful methods for a ButtonBox widget"
msgstr ""
-#: C/buttonbox.py.page:37(item/p)
+#. (itstool) path: item/p
+#: C/buttonbox.py.page:37
msgid ""
"The layout of the ButtonBox are set with <code>set_layout(layout)</code>, "
"where <code>layout</code> can be <code>Gtk.ButtonBoxStyle.SPREAD</code> "
@@ -4061,127 +4522,131 @@ msgid ""
"<code>Gtk.ButtonBoxStyle.CENTER</code> (buttons are centered in the box)."
msgstr ""
-#: C/buttonbox.py.page:38(item/p)
+#. (itstool) path: item/p
+#: C/buttonbox.py.page:38
msgid ""
"<code>set_child_secondary(button, is_secondary)</code> sets whether "
-"<code>button</code> should appear in a secondary group of children. A typical "
-"use of a secondary child is the help button in a dialog. This group appears "
-"after the other children if the style is <code>START</code>, <code>SPREAD</"
-"code> or <code>EDGE</code>, and before the other children if the style is "
-"<code>END</code>. If the style is <code>START</code> or <code>END</code>, "
-"then the secondary children are aligned at the other end of the button box "
-"from the main children. For the other styles, they appear immediately next to "
-"the main children."
+"<code>button</code> should appear in a secondary group of children. A "
+"typical use of a secondary child is the help button in a dialog. This group "
+"appears after the other children if the style is <code>START</code>, "
+"<code>SPREAD</code> or <code>EDGE</code>, and before the other children if "
+"the style is <code>END</code>. If the style is <code>START</code> or "
+"<code>END</code>, then the secondary children are aligned at the other end "
+"of the button box from the main children. For the other styles, they appear "
+"immediately next to the main children."
msgstr ""
-#: C/buttonbox.py.page:39(item/p)
+#. (itstool) path: item/p
+#: C/buttonbox.py.page:39
msgid ""
"<code>set_child_non_homogeneous(button, is_non_homogeneous)</code> sets "
"whether the child is exempted from homogeous sizing. Default value is "
"<code>False</code>."
msgstr ""
-#: C/buttonbox.py.page:40(item/p)
+#. (itstool) path: item/p
+#: C/buttonbox.py.page:40
msgid ""
"<code>set_spacing(spacing)</code> sets the spacing, in pixels, between the "
"buttons of the box."
msgstr ""
-#: C/buttonbox.py.page:48(item/p)
+#. (itstool) path: item/p
+#: C/buttonbox.py.page:48
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkButtonBox.html"
"\">GtkButtonBox</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkButtonBox.html"
+"\">GtkButtonBox</link>"
-#: C/buttonbox.py.page:49(item/p)
+#. (itstool) path: item/p
+#: C/buttonbox.py.page:49
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkBox.html\">GtkBox</"
"link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkBox.html\">GtkBox</"
+"link>"
-#: C/buttonbox.py.page:51(item/p) C/entry.c.page:33(item/p)
+#. (itstool) path: item/p
+#: C/buttonbox.py.page:51 C/entry.c.page:33
msgid ""
-"<link href=\"http://developer.gnome.org/gtk3/stable/GtkEntry.html\">GtkEntry</"
-"link>"
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkEntry.html"
+"\">GtkEntry</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkEntry.html"
+"\">GtkEntry</link>"
-#: C/buttonbox.py.page:52(item/p) C/grid.c.page:35(item/p)
-#: C/radiobutton.c.page:36(item/p) C/spinbutton.c.page:39(item/p)
-#: C/statusbar.c.page:39(item/p) C/switch.c.page:36(item/p)
-#: C/togglebutton.c.page:39(item/p)
+#. (itstool) path: item/p
+#: C/buttonbox.py.page:52 C/grid.c.page:35 C/radiobutton.c.page:36
+#: C/spinbutton.c.page:39 C/statusbar.c.page:39 C/switch.c.page:36
+#: C/togglebutton.c.page:39
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkGrid.html\">GtkGrid</"
"link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkGrid.html\">GtkGrid</"
+"link>"
-#: C/c.page:6(info/title)
+#. (itstool) path: info/title
+#: C/c.page:6
msgctxt "link"
msgid "C"
msgstr "C"
-#: C/c.page:15(page/title)
+#. (itstool) path: page/title
+#: C/c.page:15
msgid "Tutorials, code samples and plaform demos in C"
msgstr ""
-#: C/c.page:20(section/title) C/vala.page:25(section/title)
+#. (itstool) path: section/title
+#: C/c.page:20 C/vala.page:25
msgid "Code samples and tutorial"
msgstr ""
-#: C/c.page:27(section/title) C/cpp.page:20(section/title)
-#: C/js.page:35(section/title) C/py.page:38(section/title)
-#: C/vala.page:29(section/title)
-#, fuzzy
-#| msgid "Designing the application"
+#. (itstool) path: section/title
+#: C/c.page:27 C/cpp.page:20 C/js.page:35 C/py.page:38 C/vala.page:29
msgid "Examples of applications"
-msgstr "Entwurf der Anwendung"
+msgstr "Anwendungsbeispiele"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/checkbutton.c.page:21(media) C/checkbutton.js.page:21(media)
-#: C/checkbutton.py.page:22(media) C/checkbutton.vala.page:21(media)
+#: C/checkbutton.c.page:21 C/checkbutton.js.page:21 C/checkbutton.py.page:22
+#: C/checkbutton.vala.page:21
msgctxt "_"
msgid ""
"external ref='media/checkbutton.png' md5='7921a6812c87dd2b3781f4fad241e858'"
msgstr ""
"external ref='media/checkbutton.png' md5='7921a6812c87dd2b3781f4fad241e858'"
-#: C/checkbutton.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/checkbutton.c.page:7
msgctxt "text"
msgid "CheckButton (C)"
msgstr ""
-#: C/checkbutton.c.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/checkbutton.c.page:17
msgid "Create widgets with a discrete ToggleButton"
msgstr ""
-#: C/checkbutton.c.page:20(page/title) C/checkbutton.js.page:20(page/title)
-#: C/checkbutton.py.page:21(page/title) C/checkbutton.vala.page:20(page/title)
+#. (itstool) path: page/title
+#: C/checkbutton.c.page:20 C/checkbutton.js.page:20 C/checkbutton.py.page:21
+#: C/checkbutton.vala.page:20
msgid "CheckButton"
msgstr ""
-#: C/checkbutton.c.page:22(page/p) C/checkbutton.py.page:23(page/p)
-#: C/checkbutton.vala.page:22(page/p)
+#. (itstool) path: page/p
+#: C/checkbutton.c.page:22 C/checkbutton.py.page:23 C/checkbutton.vala.page:22
msgid "This CheckButton toggles the title."
msgstr ""
-#: C/checkbutton.c.page:24(page/code)
+#. (itstool) path: page/code
+#: C/checkbutton.c.page:24
#, no-wrap
msgid ""
"#include <gtk/gtk.h>\n"
@@ -4232,56 +4697,56 @@ msgid ""
"}\n"
msgstr ""
-#: C/checkbutton.c.page:29(item/p)
+#. (itstool) path: item/p
+#: C/checkbutton.c.page:29
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/3.2/GtkCheckButton.html"
"\">GtkCheckButton</link>"
msgstr ""
-#: C/checkbutton.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/checkbutton.js.page:7
#, fuzzy
#| msgid "Classes in JavaScript"
msgctxt "text"
msgid "CheckButton (JavaScript)"
msgstr "Klassen in JavaScript"
-#: C/checkbutton.js.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/checkbutton.js.page:17
msgid "A box which can be checked or unchecked"
msgstr ""
-#: C/checkbutton.js.page:22(page/p)
+#. (itstool) path: page/p
+#: C/checkbutton.js.page:22
msgid ""
"This application has a CheckButton. Whether the box is checked dictates "
"whether the window's title bar shows anything."
msgstr ""
-#: C/checkbutton.js.page:23(page/p)
+#. (itstool) path: page/p
+#: C/checkbutton.js.page:23
msgid ""
"A CheckButton sends the \"toggled\" signal when it's checked or unchecked. "
"While it's checked, the \"active\" property is true. While it's not, \"active"
"\" tests as false."
msgstr ""
-#: C/checkbutton.js.page:27(section/title)
-#: C/comboboxtext.js.page:29(section/title)
-#: C/combobox.js.page:32(section/title)
-#: C/guitar-tuner.js.page:54(section/title)
-#: C/helloWorld.js.page:52(section/title)
-#: C/messagedialog.js.page:30(section/title)
-#: C/radiobutton.js.page:27(section/title) C/scale.js.page:27(section/title)
-#: C/spinbutton.js.page:30(section/title) C/statusbar.js.page:27(section/title)
-#: C/switch.js.page:34(section/title) C/textview.js.page:37(section/title)
-#: C/togglebutton.js.page:27(section/title)
-#: C/treeview_simple_liststore.js.page:36(section/title)
-#: C/weatherAppMain.js.page:40(section/title)
+#. (itstool) path: section/title
+#: C/checkbutton.js.page:27 C/comboboxtext.js.page:29 C/combobox.js.page:32
+#: C/guitar-tuner.js.page:54 C/hello-world.c.page:43 C/hello-world.js.page:52
+#: C/hello-world.py.page:45 C/messagedialog.js.page:30
+#: C/radiobutton.js.page:27 C/scale.js.page:27 C/spinbutton.js.page:30
+#: C/statusbar.js.page:27 C/switch.js.page:34 C/textview.js.page:37
+#: C/togglebutton.js.page:27 C/treeview_simple_liststore.js.page:36
+#: C/weatherAppMain.js.page:40
msgid "Libraries to import"
msgstr ""
-#: C/checkbutton.js.page:28(section/code)
-#: C/messagedialog.js.page:31(section/code)
-#: C/radiobutton.js.page:28(section/code) C/scale.js.page:28(section/code)
-#: C/spinbutton.js.page:31(section/code) C/statusbar.js.page:28(section/code)
-#: C/switch.js.page:35(section/code) C/togglebutton.js.page:28(section/code)
+#. (itstool) path: section/code
+#: C/checkbutton.js.page:28 C/messagedialog.js.page:31
+#: C/radiobutton.js.page:28 C/scale.js.page:28 C/spinbutton.js.page:31
+#: C/statusbar.js.page:28 C/switch.js.page:35 C/togglebutton.js.page:28
#, no-wrap
msgid ""
"\n"
@@ -4292,32 +4757,29 @@ msgid ""
"const Lang = imports.lang;\n"
msgstr ""
-#: C/checkbutton.js.page:35(section/p) C/comboboxtext.js.page:36(section/p)
-#: C/combobox.js.page:40(section/p) C/messagedialog.js.page:38(section/p)
-#: C/radiobutton.js.page:35(section/p) C/scale.js.page:35(section/p)
-#: C/spinbutton.js.page:38(section/p) C/statusbar.js.page:35(section/p)
-#: C/switch.js.page:42(section/p) C/textview.js.page:44(section/p)
-#: C/togglebutton.js.page:35(section/p)
-#: C/treeview_simple_liststore.js.page:45(section/p)
+#. (itstool) path: section/p
+#: C/checkbutton.js.page:35 C/comboboxtext.js.page:36 C/combobox.js.page:40
+#: C/messagedialog.js.page:38 C/radiobutton.js.page:35 C/scale.js.page:35
+#: C/spinbutton.js.page:38 C/statusbar.js.page:35 C/switch.js.page:42
+#: C/textview.js.page:44 C/togglebutton.js.page:35
+#: C/treeview_simple_liststore.js.page:45
msgid ""
"These are the libraries we need to import for this application to run. "
-"Remember that the line which tells GNOME that we're using Gjs always needs to "
-"go at the start."
-msgstr ""
-
-#: C/checkbutton.js.page:39(section/title)
-#: C/comboboxtext.js.page:40(section/title)
-#: C/combobox.js.page:44(section/title)
-#: C/messagedialog.js.page:42(section/title)
-#: C/radiobutton.js.page:39(section/title) C/scale.js.page:39(section/title)
-#: C/spinbutton.js.page:42(section/title) C/statusbar.js.page:39(section/title)
-#: C/switch.js.page:46(section/title) C/textview.js.page:48(section/title)
-#: C/togglebutton.js.page:39(section/title)
-#: C/treeview_simple_liststore.js.page:49(section/title)
+"Remember that the line which tells GNOME that we're using Gjs always needs "
+"to go at the start."
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/checkbutton.js.page:39 C/comboboxtext.js.page:40 C/combobox.js.page:44
+#: C/messagedialog.js.page:42 C/radiobutton.js.page:39 C/scale.js.page:39
+#: C/spinbutton.js.page:42 C/statusbar.js.page:39 C/switch.js.page:46
+#: C/textview.js.page:48 C/togglebutton.js.page:39
+#: C/treeview_simple_liststore.js.page:49
msgid "Creating the application window"
msgstr "Entwurf des Anwendungsfensters"
-#: C/checkbutton.js.page:40(section/code)
+#. (itstool) path: section/code
+#: C/checkbutton.js.page:40
#, no-wrap
msgid ""
"\n"
@@ -4347,14 +4809,17 @@ msgid ""
" },\n"
msgstr ""
-#: C/checkbutton.js.page:66(section/p)
+#. (itstool) path: section/p
+#: C/checkbutton.js.page:66
msgid ""
"All the code for this sample goes in the CheckButtonExample class. The above "
-"code creates a <link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk."
-"Application.html\">Gtk.Application</link> for our widgets and window to go in."
+"code creates a <link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/"
+"Gtk.Application.html\">Gtk.Application</link> for our widgets and window to "
+"go in."
msgstr ""
-#: C/checkbutton.js.page:67(section/code)
+#. (itstool) path: section/code
+#: C/checkbutton.js.page:67
#, no-wrap
msgid ""
"\n"
@@ -4371,7 +4836,8 @@ msgid ""
" title: \"CheckButton Example\"});\n"
msgstr ""
-#: C/checkbutton.js.page:80(section/p)
+#. (itstool) path: section/p
+#: C/checkbutton.js.page:80
msgid ""
"The _buildUI function is where we put all the code to create the "
"application's user interface. The first step is creating a new <link href="
@@ -4379,11 +4845,13 @@ msgid ""
"widgets into."
msgstr ""
-#: C/checkbutton.js.page:84(section/title)
+#. (itstool) path: section/title
+#: C/checkbutton.js.page:84
msgid "Creating the checkbutton"
msgstr ""
-#: C/checkbutton.js.page:85(section/code)
+#. (itstool) path: section/code
+#: C/checkbutton.js.page:85
#, no-wrap
msgid ""
"\n"
@@ -4398,7 +4866,8 @@ msgid ""
" this._button.connect (\"toggled\", Lang.bind (this, this._toggledCB));\n"
msgstr ""
-#: C/checkbutton.js.page:96(section/p)
+#. (itstool) path: section/p
+#: C/checkbutton.js.page:96
msgid ""
"This code creates the checkbutton itself. The label next to the checkbutton "
"is created by giving the checkbutton the \"label\" property and assigning a "
@@ -4408,8 +4877,8 @@ msgid ""
"call the _toggledCB function."
msgstr ""
-#: C/checkbutton.js.page:97(section/code)
-#: C/radiobutton.js.page:169(section/code)
+#. (itstool) path: section/code
+#: C/checkbutton.js.page:97 C/radiobutton.js.page:169
#, no-wrap
msgid ""
"\n"
@@ -4418,17 +4887,20 @@ msgid ""
" },\n"
msgstr ""
-#: C/checkbutton.js.page:102(section/p)
+#. (itstool) path: section/p
+#: C/checkbutton.js.page:102
msgid ""
"This code finishes up creating the UI, by telling the window to show itself "
"and all child widgets (which is just the checkbutton in this case)."
msgstr ""
-#: C/checkbutton.js.page:106(section/title)
+#. (itstool) path: section/title
+#: C/checkbutton.js.page:106
msgid "Function which handles the checkbutton's toggling"
msgstr ""
-#: C/checkbutton.js.page:107(section/code)
+#. (itstool) path: section/code
+#: C/checkbutton.js.page:107
#, no-wrap
msgid ""
"\n"
@@ -4445,16 +4917,18 @@ msgid ""
"});\n"
msgstr ""
-#: C/checkbutton.js.page:120(section/p)
+#. (itstool) path: section/p
+#: C/checkbutton.js.page:120
msgid ""
"If the checkbutton is toggled from on to off, we want the window title to "
"disappear. If it's toggled from off to on, we want it to reappear. We can "
-"tell which way it was toggled by testing to see whether it's active (checked) "
-"or not afterwards. A simple if / else statement which calls the checkbutton's "
-"get_active() method will work for this."
+"tell which way it was toggled by testing to see whether it's active "
+"(checked) or not afterwards. A simple if / else statement which calls the "
+"checkbutton's get_active() method will work for this."
msgstr ""
-#: C/checkbutton.js.page:121(section/code)
+#. (itstool) path: section/code
+#: C/checkbutton.js.page:121
#, no-wrap
msgid ""
"\n"
@@ -4463,13 +4937,15 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/checkbutton.js.page:126(section/p)
+#. (itstool) path: section/p
+#: C/checkbutton.js.page:126
msgid ""
"Finally, we create a new instance of the finished CheckButtonExample class, "
"and set the application running."
msgstr ""
-#: C/checkbutton.js.page:131(section/code)
+#. (itstool) path: section/code
+#: C/checkbutton.js.page:131
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -4550,42 +5026,103 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/checkbutton.js.page:135(section/title)
-#: C/comboboxtext.js.page:175(section/title)
-#: C/combobox.js.page:232(section/title)
-#: C/messagedialog.js.page:188(section/title)
-#: C/radiobutton.js.page:273(section/title) C/scale.js.page:207(section/title)
-#: C/spinbutton.js.page:198(section/title)
-#: C/statusbar.js.page:220(section/title) C/switch.js.page:263(section/title)
-#: C/textview.js.page:247(section/title)
-#: C/togglebutton.js.page:152(section/title)
-#: C/treeview_simple_liststore.js.page:271(section/title)
+#. (itstool) path: section/title
+#: C/checkbutton.js.page:135 C/comboboxtext.js.page:175 C/combobox.js.page:232
+#: C/messagedialog.js.page:188 C/radiobutton.js.page:273 C/scale.js.page:207
+#: C/spinbutton.js.page:198 C/statusbar.js.page:220 C/switch.js.page:263
+#: C/textview.js.page:247 C/togglebutton.js.page:152
+#: C/treeview_simple_liststore.js.page:271
msgid "In-depth documentation"
msgstr ""
-#: C/checkbutton.js.page:139(item/p)
+#. (itstool) path: item/p
+#: C/checkbutton.js.page:139
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.CheckButton."
"html\">Gtk.CheckButton</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.CheckButton."
+"html\">Gtk.CheckButton</link>"
-#: C/checkbutton.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/checkbutton.py.page:7
msgctxt "text"
msgid "CheckButton (Python)"
msgstr ""
-#: C/checkbutton.py.page:18(info/desc)
+#. (itstool) path: info/desc
+#: C/checkbutton.py.page:18
msgid "A toggle button in a window"
msgstr ""
-#: C/checkbutton.py.page:30(section/code)
-#, no-wrap
+#. (itstool) path: section/code
+#: C/checkbutton.py.page:30
+#, fuzzy, no-wrap
+#| msgid ""
+#| "from gi.repository import Gtk\n"
+#| "import sys\n"
+#| "\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " # a window\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"Switch Example\", application=app)\n"
+#| " self.set_default_size(300, 100)\n"
+#| " self.set_border_width(10)\n"
+#| "\n"
+#| " # a switch\n"
+#| " switch = Gtk.Switch()\n"
+#| " # turned on by default\n"
+#| " switch.set_active(True)\n"
+#| " # connect the signal notify::active emitted by the switch\n"
+#| " # to the callback function activate_cb\n"
+#| " switch.connect(\"notify::active\", self.activate_cb)\n"
+#| "\n"
+#| " # a label\n"
+#| " label = Gtk.Label()\n"
+#| " label.set_text(\"Title\")\n"
+#| "\n"
+#| " # a grid to allocate the widgets\n"
+#| " grid = Gtk.Grid()\n"
+#| " grid.set_column_spacing (10);\n"
+#| " grid.attach (label, 0, 0, 1, 1);\n"
+#| " grid.attach (switch, 1, 0, 1, 1);\n"
+#| "\n"
+#| " # add the grid to the window\n"
+#| " self.add(grid)\n"
+#| "\n"
+#| " # Callback function. Since the signal is notify::active\n"
+#| " # we need the argument 'active'\n"
+#| " def activate_cb(self, button, active):\n"
+#| " # if the button (i.e. the switch) is active, set the title\n"
+#| " # of the window to \"Switch Example\"\n"
+#| " if button.get_active():\n"
+#| " self.set_title(\"Switch Example\")\n"
+#| " # else, set it to \"\" (empty string)\n"
+#| " else:\n"
+#| " self.set_title(\"\")\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " win = MyWindow(self)\n"
+#| " win.show_all()\n"
+#| "\n"
+#| " def do_startup(self):\n"
+#| " Gtk.Application.do_startup(self)\n"
+#| "\n"
+#| "app = MyApplication()\n"
+#| "exit_status = app.run(sys.argv)\n"
+#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
" # a window\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"CheckButton Example\", application=app)\n"
" self.set_default_size(300, 100)\n"
@@ -4614,7 +5151,9 @@ msgid ""
" else:\n"
" self.set_title(\"\")\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -4629,41 +5168,104 @@ msgid ""
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
msgstr ""
+"from gi.repository import Gtk\n"
+"import sys\n"
+"\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+" # a window\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"Switch Example\", application=app)\n"
+" self.set_default_size(300, 100)\n"
+" self.set_border_width(10)\n"
+"\n"
+" # a switch\n"
+" switch = Gtk.Switch()\n"
+" # turned on by default\n"
+" switch.set_active(True)\n"
+" # connect the signal notify::active emitted by the switch\n"
+" # to the callback function activate_cb\n"
+" switch.connect(\"notify::active\", self.activate_cb)\n"
+"\n"
+" # a label\n"
+" label = Gtk.Label()\n"
+" label.set_text(\"Title\")\n"
+"\n"
+" # a grid to allocate the widgets\n"
+" grid = Gtk.Grid()\n"
+" grid.set_column_spacing (10);\n"
+" grid.attach (label, 0, 0, 1, 1);\n"
+" grid.attach (switch, 1, 0, 1, 1);\n"
+"\n"
+" # add the grid to the window\n"
+" self.add(grid)\n"
+"\n"
+" # Callback function. Since the signal is notify::active\n"
+" # we need the argument 'active'\n"
+" def activate_cb(self, button, active):\n"
+" # if the button (i.e. the switch) is active, set the title\n"
+" # of the window to \"Switch Example\"\n"
+" if button.get_active():\n"
+" self.set_title(\"Switch Example\")\n"
+" # else, set it to \"\" (empty string)\n"
+" else:\n"
+" self.set_title(\"\")\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
+"\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)\n"
-#: C/checkbutton.py.page:35(section/title)
+#. (itstool) path: section/title
+#: C/checkbutton.py.page:35
msgid "Useful methods for a CheckButton widget"
msgstr ""
-#: C/checkbutton.py.page:36(section/p)
+#. (itstool) path: section/p
+#: C/checkbutton.py.page:36
msgid ""
"In line 17 the <code>\"toggled\"</code> signal is connected to the callback "
-"function <code>toggled_cb()</code> using <code><var>widget</var>.connect"
-"(<var>signal</var>, <var>callback function</var>)</code>. See <link xref="
-"\"signals-callbacks.py\"/> for a more detailed explanation."
+"function <code>toggled_cb()</code> using <code><var>widget</var>."
+"connect(<var>signal</var>, <var>callback function</var>)</code>. See <link "
+"xref=\"signals-callbacks.py\"/> for a more detailed explanation."
msgstr ""
-#: C/checkbutton.py.page:46(item/p) C/togglebutton.py.page:43(item/p)
+#. (itstool) path: item/p
+#: C/checkbutton.py.page:46 C/togglebutton.py.page:43
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkToggleButton.html"
"\">GtkToggleButton</link>"
msgstr ""
-#: C/checkbutton.py.page:47(item/p)
+#. (itstool) path: item/p
+#: C/checkbutton.py.page:47
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkCheckButton.html"
"\">GtkCheckButton</link>"
msgstr ""
-#: C/checkbutton.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/checkbutton.vala.page:7
msgctxt "text"
msgid "CheckButton (Vala)"
msgstr ""
-#: C/checkbutton.vala.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/checkbutton.vala.page:17
msgid "Create widgets with a disrete toggle button"
msgstr ""
-#: C/checkbutton.vala.page:24(page/code)
+#. (itstool) path: page/code
+#: C/checkbutton.vala.page:24
#, no-wrap
msgid ""
"/* A window in the application */\n"
@@ -4720,55 +5322,216 @@ msgid ""
"}\n"
msgstr ""
-#: C/checkbutton.vala.page:29(item/p)
+#. (itstool) path: item/p
+#: C/checkbutton.vala.page:29
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.CheckButton.html\">Gtk."
"CheckButton</link>"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/colorbutton.py.page:22(media) C/colorbutton.vala.page:23(media)
+#: C/colorbutton.js.page:21 C/colorbutton.py.page:22
+#: C/colorbutton.vala.page:23
msgctxt "_"
msgid ""
"external ref='media/colorbutton.png' md5='904539d26fe367bf99f9a0961cfc9a03'"
msgstr ""
"external ref='media/colorbutton.png' md5='904539d26fe367bf99f9a0961cfc9a03'"
-#: C/colorbutton.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/colorbutton.js.page:7
+#, fuzzy
+#| msgid "JavaScript"
msgctxt "text"
-msgid "ColorButton (Python)"
-msgstr ""
+msgid "ColorButton (JavaScript)"
+msgstr "JavaScript"
-#: C/colorbutton.py.page:18(info/desc) C/colorbutton.vala.page:19(info/desc)
+#. (itstool) path: info/desc
+#: C/colorbutton.js.page:17 C/colorbutton.py.page:18
+#: C/colorbutton.vala.page:19
msgid "A button to launch a color selection dialog"
msgstr ""
-#: C/colorbutton.py.page:21(page/title) C/colorbutton.vala.page:22(page/title)
+#. (itstool) path: page/title
+#: C/colorbutton.js.page:20 C/colorbutton.py.page:21
+#: C/colorbutton.vala.page:22
msgid "ColorButton"
msgstr ""
-#: C/colorbutton.py.page:23(page/p)
+#. (itstool) path: page/p
+#: C/colorbutton.js.page:22 C/colorbutton.py.page:23
msgid ""
-"This ColorButton launches a color selection dialog and prints in the terminal "
-"the RGB values of the color selected."
+"This ColorButton launches a color selection dialog and prints in the "
+"terminal the RGB values of the color selected."
msgstr ""
-#: C/colorbutton.py.page:29(section/code)
+#. (itstool) path: section/code
+#: C/colorbutton.js.page:28
#, no-wrap
msgid ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const Gdk = imports.gi.Gdk;\n"
+"const GObject = imports.gi.GObject;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"\n"
+"const ColorbuttonExample = new Lang.Class ({\n"
+" Name: 'Colorbutton Example',\n"
+"\n"
+" // Create the application itself\n"
+" _init: function () {\n"
+" this.application = new Gtk.Application ({ application_id: 'org.example.jscolorbutton' });\n"
+"\n"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Callback function for 'activate' signal presents windows when active\n"
+" _onActivate: function() {\n"
+" this.window.present();\n"
+" },\n"
+"\n"
+" // Callback function for 'startup' signal builds the UI\n"
+" _onStartup: function () {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+" // Build the application's UI\n"
+" _buildUI: function () {\n"
+"\n"
+" // Create the application window\n"
+" this.window = new Gtk.ApplicationWindow ({ application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" title: \"ColorButton\",\n"
+" default_width: 150,\n"
+" default_height: 50,\n"
+" border_width: 10 });\n"
+"\n"
+" this.button = new Gtk.ColorButton();\n"
+" this.color = new Gdk.RGBA();\n"
+" this.color.red = 0.0;\n"
+" this.color.green = 0.0;\n"
+" this.color.blue = 1.0;\n"
+" this.color.alpha = 0.5;\n"
+" this.button.set_rgba(this.color);\n"
+" this.button.connect(\"color-set\", Lang.bind(this, this.onColorChosen));\n"
+" this.label = new Gtk.Label();\n"
+" this.label.set_text(\"Click to choose a color\");\n"
+"\n"
+" let grid = new Gtk.Grid();\n"
+" grid.attach(this.button, 0, 0, 2, 1);\n"
+" grid.attach(this.label, 0, 1, 2, 1);\n"
+" this.window.add(grid);\n"
+" this.window.show_all();\n"
+" },\n"
+"\n"
+" onColorChosen: function() {\n"
+" let colorName = this.color.to_string();\n"
+" this.label.set_text(\"You chose the color \" + colorName);\n"
+" }\n"
+"});\n"
+"\n"
+"// Run the application\n"
+"let app = new ColorbuttonExample ();\n"
+"app.application.run (ARGV);\n"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/colorbutton.js.page:35
+msgid ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.ColorButton."
+"html\">GtkColorButton</link>"
+msgstr ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.ColorButton."
+"html\">GtkColorButton</link>"
+
+#. (itstool) path: item/p
+#: C/colorbutton.js.page:36 C/colorbutton.py.page:44
+msgid ""
+"<link href=\"http://developer.gnome.org/gdk3/stable/gdk3-RGBA-Colors.html"
+"\">RGBA Colors</link>"
+msgstr ""
+
+#. (itstool) path: info/title
+#: C/colorbutton.py.page:7
+msgctxt "text"
+msgid "ColorButton (Python)"
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/colorbutton.py.page:29
+#, fuzzy, no-wrap
+#| msgid ""
+#| "from gi.repository import Gtk\n"
+#| "import sys\n"
+#| "\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " # a window\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"Switch Example\", application=app)\n"
+#| " self.set_default_size(300, 100)\n"
+#| " self.set_border_width(10)\n"
+#| "\n"
+#| " # a switch\n"
+#| " switch = Gtk.Switch()\n"
+#| " # turned on by default\n"
+#| " switch.set_active(True)\n"
+#| " # connect the signal notify::active emitted by the switch\n"
+#| " # to the callback function activate_cb\n"
+#| " switch.connect(\"notify::active\", self.activate_cb)\n"
+#| "\n"
+#| " # a label\n"
+#| " label = Gtk.Label()\n"
+#| " label.set_text(\"Title\")\n"
+#| "\n"
+#| " # a grid to allocate the widgets\n"
+#| " grid = Gtk.Grid()\n"
+#| " grid.set_column_spacing (10);\n"
+#| " grid.attach (label, 0, 0, 1, 1);\n"
+#| " grid.attach (switch, 1, 0, 1, 1);\n"
+#| "\n"
+#| " # add the grid to the window\n"
+#| " self.add(grid)\n"
+#| "\n"
+#| " # Callback function. Since the signal is notify::active\n"
+#| " # we need the argument 'active'\n"
+#| " def activate_cb(self, button, active):\n"
+#| " # if the button (i.e. the switch) is active, set the title\n"
+#| " # of the window to \"Switch Example\"\n"
+#| " if button.get_active():\n"
+#| " self.set_title(\"Switch Example\")\n"
+#| " # else, set it to \"\" (empty string)\n"
+#| " else:\n"
+#| " self.set_title(\"\")\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " win = MyWindow(self)\n"
+#| " win.show_all()\n"
+#| "\n"
+#| " def do_startup(self):\n"
+#| " Gtk.Application.do_startup(self)\n"
+#| "\n"
+#| "app = MyApplication()\n"
+#| "exit_status = app.run(sys.argv)\n"
+#| "sys.exit(exit_status)\n"
+msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import Gdk\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"ColorButton\", application=app)\n"
" self.set_default_size(150, 50)\n"
@@ -4802,7 +5565,9 @@ msgid ""
" def on_color_chosen(self, user_data):\n"
" print \"You chose the color: \" + self.button.get_rgba().to_string()\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -4810,61 +5575,123 @@ msgid ""
" win = MyWindow(self)\n"
" win.show_all()\n"
"\n"
-" def do_startup (self):\n"
-" Gtk.Application.do_startup (self)\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
"\n"
"app = MyApplication()\n"
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
msgstr ""
+"from gi.repository import Gtk\n"
+"import sys\n"
+"\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+" # a window\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"Switch Example\", application=app)\n"
+" self.set_default_size(300, 100)\n"
+" self.set_border_width(10)\n"
+"\n"
+" # a switch\n"
+" switch = Gtk.Switch()\n"
+" # turned on by default\n"
+" switch.set_active(True)\n"
+" # connect the signal notify::active emitted by the switch\n"
+" # to the callback function activate_cb\n"
+" switch.connect(\"notify::active\", self.activate_cb)\n"
+"\n"
+" # a label\n"
+" label = Gtk.Label()\n"
+" label.set_text(\"Title\")\n"
+"\n"
+" # a grid to allocate the widgets\n"
+" grid = Gtk.Grid()\n"
+" grid.set_column_spacing (10);\n"
+" grid.attach (label, 0, 0, 1, 1);\n"
+" grid.attach (switch, 1, 0, 1, 1);\n"
+"\n"
+" # add the grid to the window\n"
+" self.add(grid)\n"
+"\n"
+" # Callback function. Since the signal is notify::active\n"
+" # we need the argument 'active'\n"
+" def activate_cb(self, button, active):\n"
+" # if the button (i.e. the switch) is active, set the title\n"
+" # of the window to \"Switch Example\"\n"
+" if button.get_active():\n"
+" self.set_title(\"Switch Example\")\n"
+" # else, set it to \"\" (empty string)\n"
+" else:\n"
+" self.set_title(\"\")\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
+"\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)\n"
-#: C/colorbutton.py.page:33(section/title)
+#. (itstool) path: section/title
+#: C/colorbutton.py.page:33
msgid "Useful methods for a ColorButton widget"
msgstr ""
-#: C/colorbutton.py.page:34(section/p)
+#. (itstool) path: section/p
+#: C/colorbutton.py.page:34
msgid ""
"<code>set_color(color)</code>, where the <code>color</code> is defined as in "
"the example, sets the color of the ColorButton, which by default is black. "
"<code>get_color()</code> returns the color."
msgstr ""
-#: C/colorbutton.py.page:35(section/p)
+#. (itstool) path: section/p
+#: C/colorbutton.py.page:35
msgid ""
-"In line 23 the <code>\"color-set\"</code> signal is connected to the callback "
-"function <code>on_color_chosen()</code> using <code><var>widget</var>.connect"
-"(<var>signal</var>, <var>callback function</var>)</code>. See <link xref="
-"\"signals-callbacks.py\"/> for a more detailed explanation."
+"In line 23 the <code>\"color-set\"</code> signal is connected to the "
+"callback function <code>on_color_chosen()</code> using <code><var>widget</"
+"var>.connect(<var>signal</var>, <var>callback function</var>)</code>. See "
+"<link xref=\"signals-callbacks.py\"/> for a more detailed explanation."
msgstr ""
-#: C/colorbutton.py.page:42(item/p)
+#. (itstool) path: item/p
+#: C/colorbutton.py.page:42
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkColorButton.html"
"\">GtkColorButton</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkColorButton.html"
+"\">GtkColorButton</link>"
-#: C/colorbutton.py.page:43(item/p)
+#. (itstool) path: item/p
+#: C/colorbutton.py.page:43
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkColorChooser.html"
"\">GtkColorChooser</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkColorChooser.html"
+"\">GtkColorChooser</link>"
-#: C/colorbutton.py.page:44(item/p)
-msgid ""
-"<link href=\"http://developer.gnome.org/gdk3/stable/gdk3-RGBA-Colors.html"
-"\">RGBA Colors</link>"
-msgstr ""
-
-#: C/colorbutton.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/colorbutton.vala.page:7
msgctxt "text"
msgid "ColorButton (Vala)"
msgstr ""
-#: C/colorbutton.vala.page:24(page/p)
+#. (itstool) path: page/p
+#: C/colorbutton.vala.page:24
msgid "RGB values of the selected color are shown in the label."
msgstr ""
-#: C/colorbutton.vala.page:26(page/code)
+#. (itstool) path: page/code
+#: C/colorbutton.vala.page:26
#, no-wrap
msgid ""
"/* This is the application. */\n"
@@ -4908,51 +5735,52 @@ msgid ""
"}\n"
msgstr ""
-#: C/colorbutton.vala.page:31(item/p)
+#. (itstool) path: item/p
+#: C/colorbutton.vala.page:31
msgid ""
"<link href=\"http://valadoc.org/gtk+-3.0/Gtk.ColorButton.html\">Gtk."
"ColorButton</link>"
msgstr ""
+"<link href=\"http://valadoc.org/gtk+-3.0/Gtk.ColorButton.html\">Gtk."
+"ColorButton</link>"
-#: C/colorbutton.vala.page:32(item/p)
+#. (itstool) path: item/p
+#: C/colorbutton.vala.page:32
msgid "<link href=\"http://valadoc.org/gdk-3.0/Gdk.RGBA.html\">Gdk.RGBA</link>"
msgstr ""
+"<link href=\"http://valadoc.org/gdk-3.0/Gdk.RGBA.html\">Gdk.RGBA</link>"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/comboboxtext.js.page:23(media) C/combobox.py.page:23(media)
-#: C/combobox.vala.page:21(media)
+#: C/comboboxtext.js.page:23 C/combobox.c.page:25 C/combobox.py.page:23
+#: C/combobox.vala.page:21
msgctxt "_"
-msgid "external ref='media/combobox.png' md5='ab9e91bc1a58fe866cb00dd52159251d'"
+msgid ""
+"external ref='media/combobox.png' md5='ab9e91bc1a58fe866cb00dd52159251d'"
msgstr ""
"external ref='media/combobox.png' md5='ab9e91bc1a58fe866cb00dd52159251d'"
-#: C/comboboxtext.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/comboboxtext.js.page:7
msgctxt "text"
msgid "ComboBoxText (JavaScript)"
msgstr ""
-#: C/comboboxtext.js.page:19(info/desc)
+#. (itstool) path: info/desc
+#: C/comboboxtext.js.page:19
msgid "A text-only drop-down menu"
msgstr ""
-#: C/comboboxtext.js.page:22(page/title)
+#. (itstool) path: page/title
+#: C/comboboxtext.js.page:22
msgid "ComboBoxText"
msgstr ""
-#: C/comboboxtext.js.page:24(page/p)
+#. (itstool) path: page/p
+#: C/comboboxtext.js.page:24
msgid ""
"A ComboBox is a drop-down menu. The difference between a <link xref="
"\"combobox.js\">ComboBox</link> and a ComboBoxText is that a ComboBoxText "
@@ -4961,14 +5789,16 @@ msgid ""
"options, or pictures to go alongside each choice."
msgstr ""
-#: C/comboboxtext.js.page:25(note/p)
+#. (itstool) path: note/p
+#: C/comboboxtext.js.page:25
msgid ""
"Unless you need the added features of a full ComboBox, or are comfortable "
"working with ListStores and TreeStores, you may find it a lot simpler to use "
"a ComboBoxText whenever possible."
msgstr ""
-#: C/comboboxtext.js.page:41(section/code)
+#. (itstool) path: section/code
+#: C/comboboxtext.js.page:41
#, no-wrap
msgid ""
"\n"
@@ -4996,7 +5826,8 @@ msgid ""
" },\n"
msgstr ""
-#: C/comboboxtext.js.page:65(section/p) C/messagedialog.js.page:69(section/p)
+#. (itstool) path: section/p
+#: C/comboboxtext.js.page:65 C/messagedialog.js.page:69
msgid ""
"All the code for this sample goes in the MessageDialogExample class. The "
"above code creates a <link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/"
@@ -5004,7 +5835,8 @@ msgid ""
"to go in."
msgstr ""
-#: C/comboboxtext.js.page:66(section/code) C/combobox.js.page:70(section/code)
+#. (itstool) path: section/code
+#: C/comboboxtext.js.page:66 C/combobox.js.page:70
#, no-wrap
msgid ""
"\n"
@@ -5020,12 +5852,11 @@ msgid ""
" border_width: 10 });\n"
msgstr ""
-#: C/comboboxtext.js.page:78(section/p) C/combobox.js.page:82(section/p)
-#: C/messagedialog.js.page:83(section/p) C/radiobutton.js.page:78(section/p)
-#: C/scale.js.page:77(section/p) C/spinbutton.js.page:80(section/p)
-#: C/switch.js.page:87(section/p) C/textview.js.page:87(section/p)
-#: C/togglebutton.js.page:80(section/p)
-#: C/treeview_simple_liststore.js.page:89(section/p)
+#. (itstool) path: section/p
+#: C/comboboxtext.js.page:78 C/combobox.js.page:82 C/messagedialog.js.page:83
+#: C/radiobutton.js.page:78 C/scale.js.page:77 C/spinbutton.js.page:80
+#: C/switch.js.page:87 C/textview.js.page:87 C/togglebutton.js.page:80
+#: C/treeview_simple_liststore.js.page:89
msgid ""
"The _buildUI function is where we put all the code to create the "
"application's user interface. The first step is creating a new <link xref="
@@ -5033,11 +5864,13 @@ msgid ""
"widgets into."
msgstr ""
-#: C/comboboxtext.js.page:82(section/title)
+#. (itstool) path: section/title
+#: C/comboboxtext.js.page:82
msgid "Creating the ComboBoxText"
msgstr ""
-#: C/comboboxtext.js.page:83(section/code)
+#. (itstool) path: section/code
+#: C/comboboxtext.js.page:83
#, no-wrap
msgid ""
"\n"
@@ -5054,7 +5887,8 @@ msgid ""
" this._comboBoxText.connect ('changed', Lang.bind (this, this._onComboChanged));\n"
msgstr ""
-#: C/comboboxtext.js.page:96(section/p)
+#. (itstool) path: section/p
+#: C/comboboxtext.js.page:96
msgid ""
"After we create the ComboBoxText, we use its <file>append_text</file> method "
"to add text strings to it. Like the entries in an array, they each have a "
@@ -5063,15 +5897,18 @@ msgid ""
"them in order, like we did here."
msgstr ""
-#: C/comboboxtext.js.page:97(section/p)
+#. (itstool) path: section/p
+#: C/comboboxtext.js.page:97
msgid ""
"After we populate the ComboBoxText, we set its first entry to be active, so "
"that we'll see the \"Select distribution\" line before we click on it. Then "
"we connect its <file>changed</file> signal to the _onComboChanged function, "
-"so that it's called whenever you make a new selection from the drop-down menu."
+"so that it's called whenever you make a new selection from the drop-down "
+"menu."
msgstr ""
-#: C/comboboxtext.js.page:98(note/p)
+#. (itstool) path: note/p
+#: C/comboboxtext.js.page:98
msgid ""
"If you'd like to add an entry to a ComboBoxText, you can use the "
"<file>insert_text</file> method. And if you'd rather use a text string as an "
@@ -5080,7 +5917,8 @@ msgid ""
"tutorial for the details of how to use them."
msgstr ""
-#: C/comboboxtext.js.page:100(section/code)
+#. (itstool) path: section/code
+#: C/comboboxtext.js.page:100
#, no-wrap
msgid ""
"\n"
@@ -5092,19 +5930,20 @@ msgid ""
" },\n"
msgstr ""
-#: C/comboboxtext.js.page:108(section/p)
+#. (itstool) path: section/p
+#: C/comboboxtext.js.page:108
msgid ""
"Finally, we add the ComboBoxText to the window, and tell the window to show "
"itself and the widget inside it."
msgstr ""
-#: C/comboboxtext.js.page:112(section/title)
-#: C/combobox.js.page:169(section/title)
-#: C/radiobutton.js.page:180(section/title)
+#. (itstool) path: section/title
+#: C/comboboxtext.js.page:112 C/combobox.js.page:169 C/radiobutton.js.page:180
msgid "Function which handles your selection"
msgstr ""
-#: C/comboboxtext.js.page:113(section/code)
+#. (itstool) path: section/code
+#: C/comboboxtext.js.page:113
#, no-wrap
msgid ""
"\n"
@@ -5117,16 +5956,18 @@ msgid ""
" \"SUSE is a name shared by two separate distros.\"];\n"
msgstr ""
-#: C/comboboxtext.js.page:122(section/p)
+#. (itstool) path: section/p
+#: C/comboboxtext.js.page:122
msgid ""
-"We're going to create a pop-up <link xref=\"messagedialog.js\">MessageDialog</"
-"link>, which shows you a message based on which distro you select. First, we "
-"create the array of responses to use. Since the first string in our "
-"ComboBoxText is just the \"Select distribution\" message, we make the first "
-"string in our array blank."
+"We're going to create a pop-up <link xref=\"messagedialog.js"
+"\">MessageDialog</link>, which shows you a message based on which distro you "
+"select. First, we create the array of responses to use. Since the first "
+"string in our ComboBoxText is just the \"Select distribution\" message, we "
+"make the first string in our array blank."
msgstr ""
-#: C/comboboxtext.js.page:124(section/code)
+#. (itstool) path: section/code
+#: C/comboboxtext.js.page:124
#, no-wrap
msgid ""
"\n"
@@ -5152,30 +5993,33 @@ msgid ""
" },\n"
msgstr ""
-#: C/comboboxtext.js.page:146(section/p)
+#. (itstool) path: section/p
+#: C/comboboxtext.js.page:146
msgid ""
"Before showing a MessageDialog, we first test to make sure you didn't choose "
"the \"Select distribution\" message. After that, we set its text to be the "
"entry in the array that corresponds to the active entry in our ComboBoxText. "
-"We do that using the <file>get_active</file> method, which returns the number "
-"ID of your selection."
+"We do that using the <file>get_active</file> method, which returns the "
+"number ID of your selection."
msgstr ""
-#: C/comboboxtext.js.page:147(note/p)
+#. (itstool) path: note/p
+#: C/comboboxtext.js.page:147
msgid ""
"Other methods you can use include <file>get_active_id,</file> which returns "
"the text ID assigned by <file>append,</file> and <file>get_active_text,</"
"file> which returns the full text of the string you selected."
msgstr ""
-#: C/comboboxtext.js.page:148(section/p) C/combobox.js.page:205(section/p)
+#. (itstool) path: section/p
+#: C/comboboxtext.js.page:148 C/combobox.js.page:205
msgid ""
"After we create the MessageDialog, we connect its response signal to the "
"_onDialogResponse function, then tell it to show itself."
msgstr ""
-#: C/comboboxtext.js.page:150(section/code)
-#: C/combobox.js.page:207(section/code)
+#. (itstool) path: section/code
+#: C/comboboxtext.js.page:150 C/combobox.js.page:207
#, no-wrap
msgid ""
"\n"
@@ -5188,14 +6032,16 @@ msgid ""
"});\n"
msgstr ""
-#: C/comboboxtext.js.page:159(section/p) C/combobox.js.page:216(section/p)
+#. (itstool) path: section/p
+#: C/comboboxtext.js.page:159 C/combobox.js.page:216
msgid ""
-"Since the only button the MessageDialog has is an OK button, we don't need to "
-"test its response_id to see which button was clicked. All we do here is "
+"Since the only button the MessageDialog has is an OK button, we don't need "
+"to test its response_id to see which button was clicked. All we do here is "
"destroy the popup."
msgstr ""
-#: C/comboboxtext.js.page:161(section/code)
+#. (itstool) path: section/code
+#: C/comboboxtext.js.page:161
#, no-wrap
msgid ""
"\n"
@@ -5204,13 +6050,15 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/comboboxtext.js.page:166(section/p)
+#. (itstool) path: section/p
+#: C/comboboxtext.js.page:166
msgid ""
"Finally, we create a new instance of the finished ComboBoxTextExample class, "
"and set the application running."
msgstr ""
-#: C/comboboxtext.js.page:171(section/code)
+#. (itstool) path: section/code
+#: C/comboboxtext.js.page:171
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -5319,29 +6167,153 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/comboboxtext.js.page:182(item/p)
+#. (itstool) path: item/p
+#: C/comboboxtext.js.page:182
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.ComboBoxText."
"html\">Gtk.ComboBoxText</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.ComboBoxText."
+"html\">Gtk.ComboBoxText</link>"
-#: C/comboboxtext.js.page:183(item/p) C/combobox.js.page:243(item/p)
-#: C/entry.js.page:32(item/p) C/messagedialog.js.page:197(item/p)
+#. (itstool) path: item/p
+#: C/comboboxtext.js.page:183 C/combobox.js.page:243 C/entry.js.page:32
+#: C/messagedialog.js.page:197
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.MessageDialog."
"html\">Gtk.MessageDialog</link>"
msgstr ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.MessageDialog."
+"html\">Gtk.MessageDialog</link>"
+#. (itstool) path: info/title
+#: C/combobox.c.page:7
+#, fuzzy
+#| msgid "JavaScript"
+msgctxt "text"
+msgid "ComboBox (C)"
+msgstr "JavaScript"
+
+#. (itstool) path: info/desc
+#: C/combobox.c.page:21 C/combobox.py.page:19 C/combobox.vala.page:17
+#: C/combobox_multicolumn.py.page:18 C/combobox_multicolumn.vala.page:18
+msgid "A widget used to choose from a list of items"
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/combobox.c.page:24 C/combobox.js.page:24 C/combobox.vala.page:20
+msgid "ComboBox"
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/combobox.c.page:26 C/combobox.vala.page:22
+msgid "This ComboBox prints to the terminal when you change your selection."
+msgstr ""
+
+#. (itstool) path: page/code
+#: C/combobox.c.page:28
+#, no-wrap
+msgid ""
+"\n"
+"#include <gtk/gtk.h>\n"
+"\n"
+"/* This is the callback function. It is a handler function which reacts to the\n"
+" * signal. In this case, if the row selected is not the first one of the\n"
+" * ComboBox, we write its value in the terminal for the user.\n"
+" */\n"
+"static void\n"
+"on_changed (GtkComboBox *widget,\n"
+" gpointer user_data)\n"
+"{\n"
+" GtkComboBox *combo_box = widget;\n"
+"\n"
+" if (gtk_combo_box_get_active (combo_box) != 0) {\n"
+" gchar *distro = gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT(combo_box));\n"
+" g_print (\"You chose %s\\n\", distro);\n"
+" g_free (distro);\n"
+" }\n"
+"\n"
+"}\n"
+"\n"
+"\n"
+"static void\n"
+"activate (GtkApplication *app,\n"
+" gpointer user_data)\n"
+"{\n"
+" gint i;\n"
+" GtkWidget *view;\n"
+" GtkWidget *window;\n"
+" GtkWidget *combo_box;\n"
+"\n"
+" /* Create a window with a title, border width, and a default size. Setting the\n"
+" * size to -1 means to use the \"natural\" default size.\n"
+" * (the size request of the window)\n"
+" */\n"
+" window = gtk_application_window_new (app);\n"
+" gtk_window_set_title (GTK_WINDOW (window), \"Welcome to GNOME\");\n"
+" gtk_window_set_default_size (GTK_WINDOW (window), 200, -1);\n"
+" gtk_container_set_border_width (GTK_CONTAINER (window), 10);\n"
+"\n"
+"\n"
+" /* Create the combo box and append your string values to it. */\n"
+" combo_box = gtk_combo_box_text_new ();\n"
+" const char *distros[] = {\"Select distribution\", \"Fedora\", \"Mint\", \"Suse\"};\n"
+"\n"
+" \n"
+" /* G_N_ELEMENTS is a macro which determines the number of elements in an array.*/ \n"
+" for (i = 0; i < G_N_ELEMENTS (distros); i++){\n"
+" \tgtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo_box), distros[i]);\n"
+" }\n"
+"\n"
+" /* Choose to set the first row as the active one by default, from the beginning */\n"
+" gtk_combo_box_set_active (GTK_COMBO_BOX (combo_box), 0);\n"
+"\n"
+" /* Connect the signal emitted when a row is selected to the appropriate\n"
+" * callback function.\n"
+" */\n"
+" g_signal_connect (combo_box,\n"
+" \"changed\",\n"
+" G_CALLBACK (on_changed),\n"
+" NULL);\n"
+"\n"
+" /* Add it to the window */\n"
+" gtk_container_add (GTK_CONTAINER (window), combo_box);\n"
+"\n"
+" gtk_widget_show_all (window);\n"
+"}\n"
+"\n"
+"\n"
+"int\n"
+"main (int argc, char **argv)\n"
+"{\n"
+" GtkApplication *app;\n"
+" int status;\n"
+"\n"
+" app = gtk_application_new (\"org.gtk.example\", G_APPLICATION_FLAGS_NONE);\n"
+" g_signal_connect (app, \"activate\", G_CALLBACK (activate), NULL);\n"
+" status = g_application_run (G_APPLICATION (app), argc, argv);\n"
+" g_object_unref (app);\n"
+"\n"
+" return status;\n"
+"}\n"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/combobox.c.page:36
+msgid ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkComboBoxText.html"
+"\">GtkComboBoxText</link>"
+msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkComboBoxText.html"
+"\">GtkComboBoxText</link>"
+
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/combobox.js.page:25(media) C/combobox_multicolumn.py.page:22(media)
+#: C/combobox.js.page:25 C/combobox_multicolumn.py.page:22
+#: C/combobox_multicolumn.vala.page:22
msgctxt "_"
msgid ""
"external ref='media/combobox_multicolumn.png' "
@@ -5350,48 +6322,50 @@ msgstr ""
"external ref='media/combobox_multicolumn.png' "
"md5='43f16648fb11ebc7d2f70825ed0f63b3'"
-#: C/combobox.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/combobox.js.page:7
#, fuzzy
#| msgid "JavaScript"
msgctxt "text"
msgid "ComboBox (JavaScript)"
-msgstr "JavaScript"
+msgstr "ComboBox (JavaScript)"
-#: C/combobox.js.page:21(info/desc)
+#. (itstool) path: info/desc
+#: C/combobox.js.page:21
msgid "A customizable drop-down menu"
msgstr ""
-#: C/combobox.js.page:24(page/title) C/combobox.vala.page:20(page/title)
-msgid "ComboBox"
-msgstr ""
-
-#: C/combobox.js.page:26(page/p)
+#. (itstool) path: page/p
+#: C/combobox.js.page:26
msgid ""
"A ComboBox is an extremely customizable drop-down menu. It holds the "
"equivalent of a <link xref=\"treeview_simple_liststore.js\">TreeView</link> "
"widget that appears when you click on it, complete with a ListStore "
"(basically a spreadsheet) that says what's in the rows and columns. In this "
"example, our ListStore has the name of each option in one column, and the "
-"name of a stock icon in the other, which the ComboBox then turns into an icon "
-"for each option."
+"name of a stock icon in the other, which the ComboBox then turns into an "
+"icon for each option."
msgstr ""
-#: C/combobox.js.page:27(page/p)
+#. (itstool) path: page/p
+#: C/combobox.js.page:27
msgid ""
"You select a whole horizontal row at a time, so the icons aren't treated as "
"separate options. They and the text beside them make up each option you can "
"click on."
msgstr ""
-#: C/combobox.js.page:28(note/p)
+#. (itstool) path: note/p
+#: C/combobox.js.page:28
msgid ""
"Working with a ListStore can be time-consuming. If you just want a simple "
"text-only drop-down menu, take a look at the <link xref=\"comboboxtext.js"
-"\">ComboBoxText</link>. It doesn't take as much time to set up, and is easier "
-"to work with."
+"\">ComboBoxText</link>. It doesn't take as much time to set up, and is "
+"easier to work with."
msgstr ""
-#: C/combobox.js.page:33(section/code)
+#. (itstool) path: section/code
+#: C/combobox.js.page:33
#, no-wrap
msgid ""
"\n"
@@ -5402,7 +6376,8 @@ msgid ""
"const Lang = imports.lang;\n"
msgstr ""
-#: C/combobox.js.page:45(section/code)
+#. (itstool) path: section/code
+#: C/combobox.js.page:45
#, no-wrap
msgid ""
"\n"
@@ -5430,21 +6405,24 @@ msgid ""
" },\n"
msgstr ""
-#: C/combobox.js.page:69(section/p)
+#. (itstool) path: section/p
+#: C/combobox.js.page:69
msgid ""
"All the code for this sample goes in the ComboBoxExample class. The above "
-"code creates a <link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk."
-"Application.html\">Gtk.Application</link> for our widgets and window to go in."
+"code creates a <link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/"
+"Gtk.Application.html\">Gtk.Application</link> for our widgets and window to "
+"go in."
msgstr ""
-#: C/combobox.js.page:86(section/title)
-#: C/treeview_simple_liststore.js.page:93(section/title)
+#. (itstool) path: section/title
+#: C/combobox.js.page:86 C/treeview_simple_liststore.js.page:93
#, fuzzy
#| msgid "Creating the user interface"
msgid "Creating the ListStore"
msgstr "Erstellen der Benutzeroberfläche"
-#: C/combobox.js.page:87(section/code)
+#. (itstool) path: section/code
+#: C/combobox.js.page:87
#, no-wrap
msgid ""
"\n"
@@ -5455,48 +6433,51 @@ msgid ""
" GObject.TYPE_STRING]);\n"
msgstr ""
-#: C/combobox.js.page:94(section/p)
+#. (itstool) path: section/p
+#: C/combobox.js.page:94
msgid ""
"This ListStore works like the one used in the <link xref="
-"\"treeview_simple_liststore.js\">TreeView</link> example. We're giving it two "
-"columns, both strings, because one of them will contain the names of <link "
-"href=\"http://developer.gnome.org/gtk/2.24/gtk-Stock-Items.html#GTK-STOCK-"
-"ABOUT:CAPS\">stock Gtk icons</link>."
+"\"treeview_simple_liststore.js\">TreeView</link> example. We're giving it "
+"two columns, both strings, because one of them will contain the names of "
+"<link href=\"https://developer.gnome.org/gtk3/3.4/gtk3-Stock-Items.html"
+"\">stock Gtk icons</link>."
msgstr ""
-#: C/combobox.js.page:95(section/p)
+#. (itstool) path: section/p
+#: C/combobox.js.page:95
msgid ""
"If we'd wanted to use our own icons that weren't already built in to GNOME, "
"we'd have needed to use the <file>gtk.gdk.Pixbuf</file> type instead. Here "
"are a few other types you can use:"
msgstr ""
-#: C/combobox.js.page:97(item/p)
-#: C/treeview_simple_liststore.js.page:106(item/p)
+#. (itstool) path: item/p
+#: C/combobox.js.page:97 C/treeview_simple_liststore.js.page:106
msgid "<file>GObject.TYPE_BOOLEAN</file> -- True or false"
msgstr ""
-#: C/combobox.js.page:98(item/p)
-#: C/treeview_simple_liststore.js.page:107(item/p)
+#. (itstool) path: item/p
+#: C/combobox.js.page:98 C/treeview_simple_liststore.js.page:107
msgid ""
"<file>GObject.TYPE_FLOAT</file> -- A floating point number (one with a "
"decimal point)"
msgstr ""
-#: C/combobox.js.page:99(item/p)
-#: C/treeview_simple_liststore.js.page:108(item/p)
+#. (itstool) path: item/p
+#: C/combobox.js.page:99 C/treeview_simple_liststore.js.page:108
msgid "<file>GObject.TYPE_STRING</file> -- A string of letters and numbers"
msgstr ""
-#: C/combobox.js.page:101(note/p)
-#: C/treeview_simple_liststore.js.page:112(note/p)
+#. (itstool) path: note/p
+#: C/combobox.js.page:101 C/treeview_simple_liststore.js.page:112
msgid ""
"You need to put the line <file>const GObject = imports.gi.GObject;</file> at "
"the start of your application's code, like we did in this example, if you "
"want to be able to use GObject types."
msgstr ""
-#: C/combobox.js.page:103(section/code)
+#. (itstool) path: section/code
+#: C/combobox.js.page:103
#, no-wrap
msgid ""
"\n"
@@ -5516,7 +6497,8 @@ msgid ""
" }\n"
msgstr ""
-#: C/combobox.js.page:119(section/p)
+#. (itstool) path: section/p
+#: C/combobox.js.page:119
msgid ""
"Here we create an array of the text options and their corresponding icons, "
"then put them into the ListStore in much the same way we would for a <link "
@@ -5525,17 +6507,20 @@ msgid ""
"we make sure to check for that first."
msgstr ""
-#: C/combobox.js.page:120(note/p)
+#. (itstool) path: note/p
+#: C/combobox.js.page:120
msgid ""
"\"Select\" isn't really an option so much as an invitation to click on our "
"ComboBox, so it doesn't need an icon."
msgstr ""
-#: C/combobox.js.page:124(section/title)
+#. (itstool) path: section/title
+#: C/combobox.js.page:124
msgid "Creating the ComboBox"
msgstr ""
-#: C/combobox.js.page:125(section/code)
+#. (itstool) path: section/code
+#: C/combobox.js.page:125
#, no-wrap
msgid ""
"\n"
@@ -5544,14 +6529,16 @@ msgid ""
" model: this._listStore});\n"
msgstr ""
-#: C/combobox.js.page:130(section/p)
+#. (itstool) path: section/p
+#: C/combobox.js.page:130
msgid ""
"Each ComboBox has an underlying \"model\" it takes all its options from. You "
-"can use a TreeStore if you want to have a ComboBox with branching options. In "
-"this case, we're just using the ListStore we already created."
+"can use a TreeStore if you want to have a ComboBox with branching options. "
+"In this case, we're just using the ListStore we already created."
msgstr ""
-#: C/combobox.js.page:131(section/code)
+#. (itstool) path: section/code
+#: C/combobox.js.page:131
#, no-wrap
msgid ""
"\n"
@@ -5568,7 +6555,8 @@ msgid ""
" this._comboBox.add_attribute (rendererPixbuf, \"stock_id\", 1);\n"
msgstr ""
-#: C/combobox.js.page:144(section/p)
+#. (itstool) path: section/p
+#: C/combobox.js.page:144
msgid ""
"This part, again, works much like creating CellRenderers and packing them "
"into the columns of a <link xref=\"treeview_simple_liststore.js\">TreeView</"
@@ -5578,25 +6566,28 @@ msgid ""
"ListStore (and what type of information we want them to expect)."
msgstr ""
-#: C/combobox.js.page:145(section/p)
+#. (itstool) path: section/p
+#: C/combobox.js.page:145
msgid ""
"We use a CellRendererText to show the text, and a CellRendererPixbuf to show "
"the icons. We can store the names of the icons' stock types as strings, but "
"when we display them we need a CellRenderer that's designed for pictures."
msgstr ""
-#: C/combobox.js.page:146(note/p)
+#. (itstool) path: note/p
+#: C/combobox.js.page:146
msgid ""
"Just like with a TreeView, the \"model\" (in this case a ListStore) and the "
-"\"view\" (in this case our ComboBox) are separate. Because of that, we can do "
-"things like have the columns in one order in the ListStore, and then pack the "
-"CellRenderers that correspond to those columns into the ComboBox in a "
-"different order. We can even create a TreeView or other widget that shows the "
-"information in the ListStore in a different way, without it affecting our "
-"ComboBox."
+"\"view\" (in this case our ComboBox) are separate. Because of that, we can "
+"do things like have the columns in one order in the ListStore, and then pack "
+"the CellRenderers that correspond to those columns into the ComboBox in a "
+"different order. We can even create a TreeView or other widget that shows "
+"the information in the ListStore in a different way, without it affecting "
+"our ComboBox."
msgstr ""
-#: C/combobox.js.page:148(section/code)
+#. (itstool) path: section/code
+#: C/combobox.js.page:148
#, no-wrap
msgid ""
"\n"
@@ -5607,16 +6598,18 @@ msgid ""
" this._comboBox.connect ('changed', Lang.bind (this, this._onComboChanged));\n"
msgstr ""
-#: C/combobox.js.page:155(section/p)
+#. (itstool) path: section/p
+#: C/combobox.js.page:155
msgid ""
"We want the \"Select\" text to be the part people see at first, that gets "
"them to click on the ComboBox. So we set it to be the active entry. We also "
-"connect the ComboBox's <file>changed</file> signal to a callback function, so "
-"that any time someone clicks on a new option something happens. In this case, "
-"we're just going to show a popup with a little haiku."
+"connect the ComboBox's <file>changed</file> signal to a callback function, "
+"so that any time someone clicks on a new option something happens. In this "
+"case, we're just going to show a popup with a little haiku."
msgstr ""
-#: C/combobox.js.page:157(section/code)
+#. (itstool) path: section/code
+#: C/combobox.js.page:157
#, no-wrap
msgid ""
"\n"
@@ -5628,13 +6621,15 @@ msgid ""
" },\n"
msgstr ""
-#: C/combobox.js.page:165(section/p)
+#. (itstool) path: section/p
+#: C/combobox.js.page:165
msgid ""
"Finally, we add the ComboBox to the window, and tell the window to show "
"itself and everything inside it."
msgstr ""
-#: C/combobox.js.page:170(section/code)
+#. (itstool) path: section/code
+#: C/combobox.js.page:170
#, no-wrap
msgid ""
"\n"
@@ -5647,15 +6642,18 @@ msgid ""
" \"A moment in time\\na memory on the breeze\\nthese things can't be saved.\"];\n"
msgstr ""
-#: C/combobox.js.page:179(section/p)
+#. (itstool) path: section/p
+#: C/combobox.js.page:179
msgid ""
-"We're going to create a pop-up <link xref=\"messagedialog.js\">MessageDialog</"
-"link>, which shows you a silly haiku based on which distro you select. First, "
-"we create the array of haiku to use. Since the first string in our ComboBox "
-"is just the \"Select\" message, we make the first string in our array blank."
+"We're going to create a pop-up <link xref=\"messagedialog.js"
+"\">MessageDialog</link>, which shows you a silly haiku based on which distro "
+"you select. First, we create the array of haiku to use. Since the first "
+"string in our ComboBox is just the \"Select\" message, we make the first "
+"string in our array blank."
msgstr ""
-#: C/combobox.js.page:181(section/code)
+#. (itstool) path: section/code
+#: C/combobox.js.page:181
#, no-wrap
msgid ""
"\n"
@@ -5681,23 +6679,26 @@ msgid ""
" },\n"
msgstr ""
-#: C/combobox.js.page:203(section/p)
+#. (itstool) path: section/p
+#: C/combobox.js.page:203
msgid ""
"Before showing a MessageDialog, we first test to make sure you didn't choose "
"the \"Select\" message. After that, we set its text to be the haiku in the "
"array that corresponds to the active entry in our ComboBoxText. We do that "
-"using the <file>get_active</file> method, which returns the number ID of your "
-"selection."
+"using the <file>get_active</file> method, which returns the number ID of "
+"your selection."
msgstr ""
-#: C/combobox.js.page:204(note/p)
+#. (itstool) path: note/p
+#: C/combobox.js.page:204
msgid ""
"Other methods you can use include <file>get_active_id</file>, which returns "
"the text ID assigned by <file>append</file>, and <file>get_active_text</"
"file>, which returns the full text of the string you selected."
msgstr ""
-#: C/combobox.js.page:218(section/code)
+#. (itstool) path: section/code
+#: C/combobox.js.page:218
#, no-wrap
msgid ""
"\n"
@@ -5706,13 +6707,15 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/combobox.js.page:223(section/p)
+#. (itstool) path: section/p
+#: C/combobox.js.page:223
msgid ""
"Finally, we create a new instance of the finished ComboBoxExample class, and "
"set the application running."
msgstr ""
-#: C/combobox.js.page:228(section/code)
+#. (itstool) path: section/code
+#: C/combobox.js.page:228
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -5853,59 +6856,70 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/combobox.js.page:239(item/p)
+#. (itstool) path: item/p
+#: C/combobox.js.page:239
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk."
"CellRendererPixbuf.html\">Gtk.CellRendererPixbuf</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk."
+"CellRendererPixbuf.html\">Gtk.CellRendererPixbuf</link>"
-#: C/combobox.js.page:240(item/p)
-#: C/treeview_simple_liststore.js.page:278(item/p)
+#. (itstool) path: item/p
+#: C/combobox.js.page:240 C/treeview_simple_liststore.js.page:278
msgid ""
-"<link href=\"www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.CellRendererText.html"
-"\">Gtk.CellRendererText</link>"
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk."
+"CellRendererText.html\">Gtk.CellRendererText</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk."
+"CellRendererText.html\">Gtk.CellRendererText</link>"
-#: C/combobox.js.page:241(item/p)
+#. (itstool) path: item/p
+#: C/combobox.js.page:241
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.ComboBox.html"
"\">Gtk.ComboBox</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.ComboBox.html"
+"\">Gtk.ComboBox</link>"
-#: C/combobox.js.page:242(item/p)
-#: C/treeview_simple_liststore.js.page:279(item/p)
+#. (itstool) path: item/p
+#: C/combobox.js.page:242 C/treeview_simple_liststore.js.page:279
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.ListStore.html"
"\">Gtk.ListStore</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.ListStore.html"
+"\">Gtk.ListStore</link>"
-#: C/combobox.js.page:244(item/p)
-#: C/treeview_simple_liststore.js.page:280(item/p)
+#. (itstool) path: item/p
+#: C/combobox.js.page:244 C/treeview_simple_liststore.js.page:280
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.TreeIter.html"
"\">Gtk.TreeIter</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.TreeIter.html"
+"\">Gtk.TreeIter</link>"
-#: C/combobox.py.page:7(info/title)
-#: C/combobox_multicolumn.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/combobox.py.page:7 C/combobox_multicolumn.py.page:7
msgctxt "text"
msgid "ComboBox (Python)"
msgstr ""
-#: C/combobox.py.page:19(info/desc) C/combobox.vala.page:17(info/desc)
-#: C/combobox_multicolumn.py.page:18(info/desc)
-msgid "A widget used to choose from a list of items"
-msgstr ""
-
-#: C/combobox.py.page:22(page/title)
+#. (itstool) path: page/title
+#: C/combobox.py.page:22
msgid "ComboBox (one column)"
msgstr ""
-#: C/combobox.py.page:24(page/p) C/combobox_multicolumn.py.page:23(page/p)
+#. (itstool) path: page/p
+#: C/combobox.py.page:24 C/combobox_multicolumn.py.page:23
+#: C/combobox_multicolumn.vala.page:23
msgid "This ComboBox prints to the terminal your selection when you change it."
msgstr ""
-#: C/combobox.py.page:30(section/code)
+#. (itstool) path: section/code
+#: C/combobox.py.page:30
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -5913,7 +6927,9 @@ msgid ""
"\n"
"distros = [[\"Select distribution\"], [\"Fedora\"], [\"Mint\"], [\"Suse\"]]\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
" self.set_default_size(200, -1)\n"
@@ -5941,20 +6957,23 @@ msgid ""
" # the first row is the active one by default at the beginning\n"
" combobox.set_active(0)\n"
"\n"
-" # connect the signal emitted when a row is selected to the callback function\n"
+" # connect the signal emitted when a row is selected to the callback\n"
+" # function\n"
" combobox.connect(\"changed\", self.on_changed)\n"
"\n"
" # add the combobox to the window\n"
" self.add(combobox)\n"
"\n"
" def on_changed(self, combo):\n"
-" # if the row selected is not the first one, write its value on the terminal\n"
+" # if the row selected is not the first one, write its value on the\n"
+" # terminal\n"
" if combo.get_active() != 0:\n"
-" print \"You chose \" + str(distros[combo.get_active()][0]) +\".\"\n"
+" print \"You chose \" + str(distros[combo.get_active()][0]) + \".\"\n"
" return True\n"
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -5970,79 +6989,90 @@ msgid ""
"sys.exit(exit_status)\n"
msgstr ""
-#: C/combobox.py.page:34(section/title)
-#: C/combobox_multicolumn.py.page:34(section/title)
+#. (itstool) path: section/title
+#: C/combobox.py.page:34 C/combobox_multicolumn.py.page:34
msgid "Useful methods for a ComboBox widget"
msgstr ""
-#: C/combobox.py.page:35(section/p)
-#: C/combobox_multicolumn.py.page:35(section/p)
+#. (itstool) path: section/p
+#: C/combobox.py.page:35 C/combobox_multicolumn.py.page:35
msgid ""
"The ComboBox widget is designed around a <em>Model/View/Controller</em> "
"design: the <em>Model</em> stores the data; the <em>View</em> gets change "
-"notifications and displays the content of the model; the <em>Controller</em>, "
-"finally, changes the state of the model and notifies the view of these "
+"notifications and displays the content of the model; the <em>Controller</"
+"em>, finally, changes the state of the model and notifies the view of these "
"changes. For more information and for a list of useful methods for ComboBox "
"see <link xref=\"model-view-controller.py\"/>."
msgstr ""
-#: C/combobox.py.page:36(section/p)
+#. (itstool) path: section/p
+#: C/combobox.py.page:36
msgid ""
"In line 35 the <code>\"changed\"</code> signal is connected to the callback "
-"function <code>on_changed()</code> using <code><var>widget</var>.connect"
-"(<var>signal</var>, <var>callback function</var>)</code>. See <link xref="
-"\"signals-callbacks.py\"/> for a more detailed explanation."
+"function <code>on_changed()</code> using <code><var>widget</var>."
+"connect(<var>signal</var>, <var>callback function</var>)</code>. See <link "
+"xref=\"signals-callbacks.py\"/> for a more detailed explanation."
msgstr ""
-#: C/combobox.py.page:44(item/p) C/combobox_multicolumn.py.page:43(item/p)
-#: C/model-view-controller.py.page:189(item/p)
+#. (itstool) path: item/p
+#: C/combobox.py.page:44 C/combobox_multicolumn.py.page:43
+#: C/model-view-controller.py.page:189
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkComboBox.html"
"\">GtkComboBox</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkComboBox.html"
+"\">GtkComboBox</link>"
-#: C/combobox.py.page:45(item/p) C/combobox_multicolumn.py.page:44(item/p)
-#: C/treeview_advanced_liststore.py.page:45(item/p)
-#: C/treeview_simple_liststore.py.page:46(item/p)
+#. (itstool) path: item/p
+#: C/combobox.py.page:45 C/combobox_multicolumn.py.page:44
+#: C/treeview_advanced_liststore.py.page:45
+#: C/treeview_simple_liststore.py.page:46
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkListStore.html"
"\">GtkListStore</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkListStore.html"
+"\">GtkListStore</link>"
-#: C/combobox.py.page:46(item/p) C/combobox_multicolumn.py.page:45(item/p)
-#: C/treeview_advanced_liststore.py.page:46(item/p)
-#: C/treeview_cellrenderertoggle.py.page:46(item/p)
-#: C/treeview_simple_liststore.py.page:47(item/p)
-#: C/treeview_treestore.py.page:46(item/p)
+#. (itstool) path: item/p
+#: C/combobox.py.page:46 C/combobox_multicolumn.py.page:45
+#: C/treeview_advanced_liststore.py.page:46
+#: C/treeview_cellrenderertoggle.py.page:46
+#: C/treeview_simple_liststore.py.page:47 C/treeview_treestore.py.page:46
msgid ""
-"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkCellRendererText.html"
-"\">GtkCellRendererText</link>"
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkCellRendererText."
+"html\">GtkCellRendererText</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkCellRendererText."
+"html\">GtkCellRendererText</link>"
-#: C/combobox.py.page:47(item/p)
+#. (itstool) path: item/p
+#: C/combobox.py.page:47
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkCellLayout.html"
"\">GtkCellLayout</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkCellLayout.html"
+"\">GtkCellLayout</link>"
-#: C/combobox.py.page:48(item/p) C/combobox_multicolumn.py.page:48(item/p)
-#: C/treeview_advanced_liststore.py.page:48(item/p)
-#: C/treeview_simple_liststore.py.page:49(item/p)
+#. (itstool) path: item/p
+#: C/combobox.py.page:48 C/combobox_multicolumn.py.page:48
+#: C/treeview_advanced_liststore.py.page:48
+#: C/treeview_simple_liststore.py.page:49
msgid ""
"<link href=\"http://git.gnome.org/browse/pygobject/tree/gi/overrides/Gtk.py"
"\">pygobject - Python bindings for GObject Introspection</link>"
msgstr ""
-#: C/combobox.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/combobox.vala.page:7 C/combobox_multicolumn.vala.page:7
msgctxt "text"
msgid "ComboBox (Vala)"
msgstr ""
-#: C/combobox.vala.page:22(page/p)
-msgid "This ComboBox prints to the terminal when you change your selection."
-msgstr ""
-
-#: C/combobox.vala.page:24(page/code)
+#. (itstool) path: page/code
+#: C/combobox.vala.page:24
#, no-wrap
msgid ""
"/* A window in the application */\n"
@@ -6126,36 +7156,49 @@ msgid ""
"}\n"
msgstr ""
-#: C/combobox.vala.page:29(item/p)
-#: C/treeview_simple_liststore.vala.page:32(item/p)
+#. (itstool) path: item/p
+#: C/combobox.vala.page:29 C/treeview_simple_liststore.vala.page:32
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ListStore.html\">Gtk."
"ListStore</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ListStore.html\">Gtk."
+"ListStore</link>"
-#: C/combobox.vala.page:30(item/p)
+#. (itstool) path: item/p
+#: C/combobox.vala.page:30
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ComboBox.html\">Gtk."
"ComboBox</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ComboBox.html\">Gtk."
+"ComboBox</link>"
-#: C/combobox.vala.page:31(item/p)
+#. (itstool) path: item/p
+#: C/combobox.vala.page:31
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.CellRendererText.html\">Gtk."
"CellRendererText</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.CellRendererText.html\">Gtk."
+"CellRendererText</link>"
-#: C/combobox.vala.page:32(item/p)
+#. (itstool) path: item/p
+#: C/combobox.vala.page:32
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.CellLayout.set_attributes."
"html\">set_attributes</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.CellLayout.set_attributes."
+"html\">set_attributes</link>"
-#: C/combobox_multicolumn.py.page:21(page/title)
+#. (itstool) path: page/title
+#: C/combobox_multicolumn.py.page:21 C/combobox_multicolumn.vala.page:21
msgid "ComboBox (two columns)"
msgstr ""
-#: C/combobox_multicolumn.py.page:29(section/code)
+#. (itstool) path: section/code
+#: C/combobox_multicolumn.py.page:29
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -6166,7 +7209,9 @@ msgid ""
" [\"Open\", Gtk.STOCK_OPEN],\n"
" [\"Save\", Gtk.STOCK_SAVE]]\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
" self.set_default_size(200, -1)\n"
@@ -6201,7 +7246,8 @@ msgid ""
" # the first row is the active one at the beginning\n"
" combobox.set_active(0)\n"
"\n"
-" # connect the signal emitted when a row is selected to the callback function\n"
+" # connect the signal emitted when a row is selected to the callback\n"
+" # function\n"
" combobox.connect(\"changed\", self.on_changed)\n"
"\n"
" # add the combobox to the window\n"
@@ -6211,11 +7257,12 @@ msgid ""
" # if the row selected is not the first one, write on the terminal\n"
" # the value of the first column in the model\n"
" if combo.get_active() != 0:\n"
-"\t\t\tprint \"You chose \" + str(actions[combo.get_active()][0]) +\"\\n\"\n"
+" print \"You chose \" + str(actions[combo.get_active()][0]) + \"\\n\"\n"
" return True\n"
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -6231,80 +7278,197 @@ msgid ""
"sys.exit(exit_status)\n"
msgstr ""
-#: C/combobox_multicolumn.py.page:36(section/p)
+#. (itstool) path: section/p
+#: C/combobox_multicolumn.py.page:36
msgid ""
"In line 45 the <code>\"changed\"</code> signal is connected to the callback "
-"function <code>on_changed()</code> using <code><var>widget</var>.connect"
-"(<var>signal</var>, <var>callback function</var>)</code>. See <link xref="
-"\"signals-callbacks.py\"/> for a more detailed explanation."
+"function <code>on_changed()</code> using <code><var>widget</var>."
+"connect(<var>signal</var>, <var>callback function</var>)</code>. See <link "
+"xref=\"signals-callbacks.py\"/> for a more detailed explanation."
msgstr ""
-#: C/combobox_multicolumn.py.page:46(item/p)
+#. (itstool) path: item/p
+#: C/combobox_multicolumn.py.page:46
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkCellRendererPixbuf."
"html\">GtkCellRendererPixbuf</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkCellRendererPixbuf."
+"html\">GtkCellRendererPixbuf</link>"
-#: C/combobox_multicolumn.py.page:47(item/p) C/toolbar.py.page:57(item/p)
+#. (itstool) path: item/p
+#: C/combobox_multicolumn.py.page:47 C/combobox_multicolumn.vala.page:41
+#: C/toolbar.py.page:57
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/gtk3-Stock-Items.html"
"\">Stock Items</link>"
msgstr ""
-#: C/cpp.page:6(info/title)
+#. (itstool) path: section/code
+#: C/combobox_multicolumn.vala.page:29
+#, no-wrap
+msgid ""
+"class MyWindow : Gtk.ApplicationWindow {\n"
+"\n"
+"\tstring[] file = {\"Select\", \"New\", \"Open\", \"Save\"};\n"
+"\tstring[] stock_item = {\"\",\"gtk-new\", \"gtk-open\", \"gtk-save\"};\n"
+"\n"
+"\tenum Column {\n"
+"\t\tFILE,\n"
+"\t\tSTOCK_ITEM\t\n"
+"\t}\n"
+"\n"
+"\t/* Constructor */\n"
+"\tinternal MyWindow (MyApplication app) {\n"
+"\t\tObject (application: app, title: \"Welcome to GNOME\");\n"
+"\n"
+"\t\tthis.set_default_size (200, -1);\n"
+"\t\tthis.border_width = 10;\n"
+"\n"
+"\t\tGtk.ListStore liststore = new Gtk.ListStore (2, typeof (string), typeof (string));\n"
+"\n"
+"\t\tfor (int i = 0; i < file.length; i++){\n"
+"\t\t\tGtk.TreeIter iter;\n"
+"\t\t\tliststore.append (out iter);\n"
+"\t\t\tliststore.set (iter, Column.FILE, file[i]);\n"
+"\t\t\tliststore.set (iter, Column.STOCK_ITEM, stock_item[i]);\n"
+"\t\t}\n"
+"\n"
+"\t\tGtk.ComboBox combobox = new Gtk.ComboBox.with_model (liststore);\n"
+"\n"
+"\t\t/* CellRenderers render the data. */\n"
+"\t\tGtk.CellRendererText cell = new Gtk.CellRendererText ();\n"
+"\t\tGtk.CellRendererPixbuf cell_pb = new Gtk.CellRendererPixbuf ();\n"
+"\t\t\n"
+" /* we pack the cell into the beginning of the combobox, allocating\n"
+"\t\t * no more space than needed;\n"
+"\t\t * first the image, then the text;\n"
+"\t\t * note that it does not matter in which order they are in the model,\n"
+"\t\t * the visualization is decided by the order of the cellrenderers\n"
+"\t\t */\n"
+"\t\tcombobox.pack_start (cell_pb, false);\n"
+"\t\tcombobox.pack_start (cell, false);\n"
+"\n"
+"\t\t/* associate a property of the cellrenderer to a column in the model\n"
+"\t\t * used by the combobox\n"
+"\t\t */\n"
+"\t\tcombobox.set_attributes (cell_pb, \"stock_id\", Column.STOCK_ITEM);\n"
+"\t\tcombobox.set_attributes (cell, \"text\", Column.FILE);\n"
+"\n"
+"\t\t/* Set the first item in the list to be selected (active). */\n"
+"\t\tcombobox.set_active (0);\n"
+"\n"
+"\t\t/* Connect the 'changed' signal of the combobox\n"
+"\t\t * to the signal handler (aka. callback function.\n"
+"\t\t */\n"
+"\t\tcombobox.changed.connect (this.item_changed);\n"
+"\n"
+"\t\t/* Add the combobox to this window */\n"
+"\t\tthis.add (combobox);\n"
+"\t\tcombobox.show ();\n"
+"\t}\n"
+"\n"
+"\tvoid item_changed (Gtk.ComboBox combo) {\n"
+"\t\tif (combo.get_active () !=0) {\n"
+"\t\t\tprint (\"You chose \" + file [combo.get_active ()] +\"\\n\");\n"
+"\t\t}\n"
+"\t}\n"
+"}\n"
+"\n"
+"class MyApplication : Gtk.Application {\n"
+" protected override void activate () {\n"
+" new MyWindow (this).show ();\n"
+" }\n"
+"}\n"
+"\n"
+"int main (string[] args) {\n"
+"\treturn new MyApplication ().run (args);\n"
+"}\n"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/combobox_multicolumn.vala.page:37
+msgid ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ComboBox.html"
+"\">GtkComboBox</link>"
+msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ComboBox.html"
+"\">GtkComboBox</link>"
+
+#. (itstool) path: item/p
+#: C/combobox_multicolumn.vala.page:38
+msgid ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ListStore.html"
+"\">GtkListStore</link>"
+msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ListStore.html"
+"\">GtkListStore</link>"
+
+#. (itstool) path: item/p
+#: C/combobox_multicolumn.vala.page:39
+msgid ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.CellRendererText.html"
+"\">GtkCellRendererText</link>"
+msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.CellRendererText.html"
+"\">GtkCellRendererText</link>"
+
+#. (itstool) path: item/p
+#: C/combobox_multicolumn.vala.page:40
+msgid ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.CellRendererPixbuf.html"
+"\">GtkCellRendererPixbuf</link>"
+msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.CellRendererPixbuf.html"
+"\">GtkCellRendererPixbuf</link>"
+
+#. (itstool) path: info/title
+#: C/cpp.page:6
msgctxt "link"
msgid "C++"
msgstr "C++"
-#: C/cpp.page:15(page/title)
+#. (itstool) path: page/title
+#: C/cpp.page:15
msgid "Code samples and platform demos in C++"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/dialog.c.page:24(media) C/dialog.js.page:21(media)
-#: C/dialog.py.page:23(media) C/dialog.vala.page:21(media)
+#: C/dialog.c.page:24 C/dialog.js.page:21 C/dialog.py.page:23
+#: C/dialog.vala.page:21
msgctxt "_"
msgid "external ref='media/dialog.png' md5='c90a33386a600e892fe623d4072c8c38'"
msgstr "external ref='media/dialog.png' md5='c90a33386a600e892fe623d4072c8c38'"
-#: C/dialog.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/dialog.c.page:7
msgctxt "text"
msgid "Dialog (C)"
-msgstr ""
+msgstr "Dialog (C)"
-#: C/dialog.c.page:19(info/desc) C/dialog.js.page:17(info/desc)
-#: C/dialog.py.page:19(info/desc) C/dialog.vala.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/dialog.c.page:19 C/dialog.js.page:17 C/dialog.py.page:19
+#: C/dialog.vala.page:17
msgid "A popup window"
msgstr ""
-#: C/dialog.c.page:22(page/title) C/dialog.js.page:20(page/title)
-#: C/dialog.py.page:22(page/title) C/dialog.vala.page:20(page/title)
+#. (itstool) path: page/title
+#: C/dialog.c.page:22 C/dialog.js.page:20 C/dialog.py.page:22
+#: C/dialog.vala.page:20
msgid "Dialog"
-msgstr ""
+msgstr "Dialog"
-#: C/dialog.c.page:25(page/p)
+#. (itstool) path: page/p
+#: C/dialog.c.page:25
msgid "A dialog window that pops up when a button is pressed."
msgstr ""
-#: C/dialog.c.page:27(page/code)
+#. (itstool) path: page/code
+#: C/dialog.c.page:27
#, no-wrap
msgid ""
"\n"
@@ -6410,34 +7574,37 @@ msgid ""
"}\n"
msgstr ""
-#: C/dialog.c.page:35(item/p)
+#. (itstool) path: item/p
+#: C/dialog.c.page:35
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkDialog.html"
"\">GtkDialog</link>"
msgstr ""
-#: C/dialog.c.page:36(item/p) C/radiobutton.c.page:35(item/p)
-#: C/spinbutton.c.page:37(item/p) C/switch.c.page:34(item/p)
+#. (itstool) path: item/p
+#: C/dialog.c.page:36 C/radiobutton.c.page:35 C/spinbutton.c.page:37
+#: C/switch.c.page:34
msgid ""
-"<link href=\"http://developer.gnome.org/gtk3/stable/GtkLabel.html\">GtkLabel</"
-"link>"
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkLabel.html"
+"\">GtkLabel</link>"
msgstr ""
-#: C/dialog.js.page:7(info/title)
-#, fuzzy
-#| msgid "JavaScript"
+#. (itstool) path: info/title
+#: C/dialog.js.page:7
msgctxt "text"
msgid "Dialog (JavaScript)"
-msgstr "JavaScript"
+msgstr "Dialog (JavaScript)"
-#: C/dialog.js.page:22(page/p)
+#. (itstool) path: page/p
+#: C/dialog.js.page:22
msgid ""
"A customizable popup window, which has a content area and an action area. "
"This example dialog's content area contains a short message, and its action "
"area contains a button which dismisses the dialog."
msgstr ""
-#: C/dialog.js.page:24(page/code)
+#. (itstool) path: page/code
+#: C/dialog.js.page:24
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -6529,41 +7696,49 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/dialog.js.page:31(item/p)
+#. (itstool) path: item/p
+#: C/dialog.js.page:31
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Dialog.html"
"\">Gtk.Dialog</link>"
msgstr ""
-#: C/dialog.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/dialog.py.page:7
msgctxt "text"
msgid "Dialog (Python)"
msgstr ""
-#: C/dialog.py.page:24(page/p)
+#. (itstool) path: page/p
+#: C/dialog.py.page:24
msgid "A dialog with the response signal connected to a callback function."
msgstr ""
-#: C/dialog.py.page:31(section/code)
+#. (itstool) path: section/code
+#: C/dialog.py.page:31
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
" # construct a window (the parent window)\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"GNOME Button\", application=app)\n"
" self.set_default_size(250, 50)\n"
"\n"
" # a button on the parent window\n"
" button = Gtk.Button(\"Click me\")\n"
-" # connect the signal \"clicked\" of the button with the function on_button_click()\n"
+" # connect the signal \"clicked\" of the button with the function\n"
+" # on_button_click()\n"
" button.connect(\"clicked\", self.on_button_click)\n"
" # add the button to the window\n"
" self.add(button)\n"
"\n"
-" # callback function for the signal \"clicked\" of the button in the parent window\n"
+" # callback function for the signal \"clicked\" of the button in the parent\n"
+" # window\n"
" def on_button_click(self, widget):\n"
" # create a Gtk.Dialog\n"
" dialog = Gtk.Dialog()\n"
@@ -6575,7 +7750,8 @@ msgid ""
" dialog.set_modal(True)\n"
" # add a button to the dialog window\n"
" dialog.add_button(button_text=\"OK\", response_id=Gtk.ResponseType.OK)\n"
-" # connect the \"response\" signal (the button has been clicked) to the function on_response()\n"
+" # connect the \"response\" signal (the button has been clicked) to the\n"
+" # function on_response()\n"
" dialog.connect(\"response\", self.on_response)\n"
"\n"
" # get the content area of the dialog, add a label to it\n"
@@ -6591,7 +7767,9 @@ msgid ""
" # (that is, when the button of the dialog has been clicked)\n"
" widget.destroy()\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -6599,7 +7777,7 @@ msgid ""
" win = MyWindow(self)\n"
" win.show_all()\n"
"\n"
-" def do_startup (self):\n"
+" def do_startup(self):\n"
" Gtk.Application.do_startup(self)\n"
"\n"
"app = MyApplication()\n"
@@ -6607,51 +7785,60 @@ msgid ""
"sys.exit(exit_status)\n"
msgstr ""
-#: C/dialog.py.page:36(section/title)
+#. (itstool) path: section/title
+#: C/dialog.py.page:36
msgid "Useful methods for a Dialog widget"
msgstr ""
-#: C/dialog.py.page:37(section/p)
+#. (itstool) path: section/p
+#: C/dialog.py.page:37
msgid ""
"In line 16 the signal <code>\"clicked\"</code> is connected to the callback "
-"function <code>on_button_click()</code> using <code><var>widget</var>.connect"
-"(<var>signal</var>, <var>callback function</var>)</code>. See <link xref="
-"\"signals-callbacks.py\"/> for a more detailed explanation."
+"function <code>on_button_click()</code> using <code><var>widget</var>."
+"connect(<var>signal</var>, <var>callback function</var>)</code>. See <link "
+"xref=\"signals-callbacks.py\"/> for a more detailed explanation."
msgstr ""
-#: C/dialog.py.page:39(item/p)
+#. (itstool) path: item/p
+#: C/dialog.py.page:39
msgid ""
-"Instead of <code>set_modal(True)</code> we could have <code>set_modal(False)</"
-"code> followed by <code>set_destroy_with_parent(True)</code> that would "
-"destroy the dialog window if the main window is closed."
+"Instead of <code>set_modal(True)</code> we could have "
+"<code>set_modal(False)</code> followed by "
+"<code>set_destroy_with_parent(True)</code> that would destroy the dialog "
+"window if the main window is closed."
msgstr ""
-#: C/dialog.py.page:40(item/p)
+#. (itstool) path: item/p
+#: C/dialog.py.page:40
msgid ""
"<code>add_button(button_text=\"The Answer\", response_id=42)</code>, where "
-"<code>42</code> is any integer, is an alternative to <code>add_button"
-"(button_text=\"text\", response_id=Gtk.ResponseType.RESPONSE)</code>, where "
-"<code>RESPONSE</code> could be one of <code>OK, CANCEL, CLOSE, YES, NO, "
-"APPLY, HELP</code>, which in turn correspond to the integers <code>-5, "
-"-6,..., -11</code>."
+"<code>42</code> is any integer, is an alternative to "
+"<code>add_button(button_text=\"text\", response_id=Gtk.ResponseType."
+"RESPONSE)</code>, where <code>RESPONSE</code> could be one of <code>OK, "
+"CANCEL, CLOSE, YES, NO, APPLY, HELP</code>, which in turn correspond to the "
+"integers <code>-5, -6,..., -11</code>."
msgstr ""
-#: C/dialog.py.page:50(item/p) C/messagedialog.py.page:59(item/p)
+#. (itstool) path: item/p
+#: C/dialog.py.page:50 C/messagedialog.py.page:59
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkDialog.html"
"\">GtkDialog</link>"
msgstr ""
-#: C/dialog.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/dialog.vala.page:7
msgctxt "text"
msgid "Dialog (Vala)"
msgstr ""
-#: C/dialog.vala.page:22(page/p)
+#. (itstool) path: page/p
+#: C/dialog.vala.page:22
msgid "A dialog with the response signal hooked up to a callback function."
msgstr ""
-#: C/dialog.vala.page:24(page/code)
+#. (itstool) path: page/code
+#: C/dialog.vala.page:24
#, no-wrap
msgid ""
"\n"
@@ -6734,94 +7921,101 @@ msgid ""
"}\n"
msgstr ""
-#: C/dialog.vala.page:31(item/p)
+#. (itstool) path: item/p
+#: C/dialog.vala.page:31
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Dialog.html\">Gtk.Dialog</"
"link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Dialog.html\">Gtk.Dialog</"
+"link>"
-#: C/dialog.vala.page:32(item/p)
+#. (itstool) path: item/p
+#: C/dialog.vala.page:32
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Dialog.Dialog.with_buttons."
"html\">Gtk.Dialog.with_buttons</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Dialog.Dialog.with_buttons."
+"html\">Gtk.Dialog.with_buttons</link>"
-#: C/dialog.vala.page:33(item/p) C/label.vala.page:32(item/p)
+#. (itstool) path: item/p
+#: C/dialog.vala.page:33 C/label.vala.page:32
msgid ""
-"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Label.html\">Gtk.Label</link>"
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Label.html\">Gtk.Label</"
+"link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Label.html\">Gtk.Label</"
+"link>"
-#: C/dialog.vala.page:34(item/p)
+#. (itstool) path: item/p
+#: C/dialog.vala.page:34
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Dialog.get_content_area.html"
"\">get_content_area</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Dialog.get_content_area.html"
+"\">get_content_area</link>"
-#: C/documentation.page:19(page/title)
+#. (itstool) path: page/title
+#: C/documentation.page:19
+#, fuzzy
msgid "Help develop"
-msgstr ""
+msgstr "Unterstützen Sie uns bei der Entwicklung"
-#: C/documentation.page:20(page/p)
+#. (itstool) path: page/p
+#: C/documentation.page:20
msgid ""
"The <app>GNOME Developer Tutorials</app> are developed and maintained by a "
"volunteer community. You are welcome to participate."
msgstr ""
-#: C/documentation.page:23(page/p)
+#. (itstool) path: page/p
+#: C/documentation.page:23
msgid ""
-"If you would like to <link href=\"https://live.gnome.org/DocumentationProject/"
-"Tasks/DeveloperDocs\">help develop <app>GNOME Developer Tutorials</app></"
-"link>, you can get in touch with the developers using <link href=\"https://"
-"cbe005.chat.mibbit.com/?url=irc%3A%2F%2Firc.gnome.org%2Fdocs\">irc</link>, or "
-"via our <link href=\"http://mail.gnome.org/mailman/listinfo/gnome-doc-devel-"
-"list\">mailing list</link>."
+"If you would like to <link href=\"https://live.gnome.org/"
+"DocumentationProject/Tasks/DeveloperDocs\">help develop <app>GNOME Developer "
+"Tutorials</app></link>, you can get in touch with the developers using <link "
+"href=\"https://cbe005.chat.mibbit.com/?url=irc%3A%2F%2Firc.gnome.org%2Fdocs"
+"\">irc</link>, or via our <link href=\"http://mail.gnome.org/mailman/"
+"listinfo/gnome-doc-devel-list\">mailing list</link>."
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/entry.c.page:22(media) C/entry.js.page:21(media) C/entry.py.page:28(media)
-#: C/entry.vala.page:21(media)
+#: C/entry.c.page:22 C/entry.js.page:21 C/entry.py.page:28
+#: C/entry.vala.page:21
msgctxt "_"
msgid "external ref='media/entry.png' md5='8a828cffdcbaa4bad83342e109f28cc8'"
msgstr "external ref='media/entry.png' md5='8a828cffdcbaa4bad83342e109f28cc8'"
-#: C/entry.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/entry.c.page:7
msgctxt "text"
msgid "Entry (C)"
-msgstr ""
+msgstr "Eintrag (C)"
-#: C/entry.c.page:17(info/desc) C/entry.py.page:24(info/desc)
-#: C/entry.vala.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/entry.c.page:17 C/entry.py.page:24 C/entry.vala.page:17
msgid "A single line text entry field"
msgstr ""
-#: C/entry.c.page:20(page/title) C/entry.js.page:20(page/title)
-#: C/entry.py.page:27(page/title) C/entry.vala.page:20(page/title)
+#. (itstool) path: page/title
+#: C/entry.c.page:20 C/entry.js.page:20 C/entry.py.page:27
+#: C/entry.vala.page:20
msgid "Entry"
-msgstr ""
+msgstr "Eintrag"
-#: C/entry.c.page:23(page/p) C/entry.vala.page:22(page/p)
+#. (itstool) path: page/p
+#: C/entry.c.page:23 C/entry.vala.page:22
msgid "This application greets you in the terminal."
msgstr ""
-#: C/entry.c.page:25(page/code)
+#. (itstool) path: page/code
+#: C/entry.c.page:25
#, no-wrap
msgid ""
"\n"
@@ -6886,22 +8080,24 @@ msgid ""
"}\n"
msgstr ""
-#: C/entry.js.page:7(info/title)
-#, fuzzy
-#| msgid "JavaScript"
+#. (itstool) path: info/title
+#: C/entry.js.page:7
msgctxt "text"
msgid "Entry (JavaScript)"
-msgstr "JavaScript"
+msgstr "Eintrag (JavaScript)"
-#: C/entry.js.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/entry.js.page:17
msgid "A single-line text entry field"
msgstr ""
-#: C/entry.js.page:22(page/p)
+#. (itstool) path: page/p
+#: C/entry.js.page:22
msgid "This application greets you by name through a pop-up window."
msgstr ""
-#: C/entry.js.page:24(page/code)
+#. (itstool) path: page/code
+#: C/entry.js.page:24
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -6992,39 +8188,82 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/entry.js.page:31(item/p)
+#. (itstool) path: item/p
+#: C/entry.js.page:31
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Entry.html"
"\">Gtk.Entry</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Entry.html"
+"\">Gtk.Entry</link>"
-#: C/entry.py.page:7(info/title)
-#, fuzzy
-#| msgid "Python"
+#. (itstool) path: info/title
+#: C/entry.py.page:7
msgctxt "text"
msgid "Entry (Python)"
-msgstr "Python"
+msgstr "Eintrag (Python)"
-#: C/entry.py.page:20(credit/name) C/label.py.page:20(credit/name)
-#: C/model-view-controller.py.page:15(credit/name)
-#: C/properties.py.page:15(credit/name)
-#: C/signals-callbacks.py.page:15(credit/name)
-#: C/strings.py.page:15(credit/name) C/textview.py.page:15(credit/name)
-#: C/toolbar_builder.py.page:27(credit/name)
+#. (itstool) path: credit/name
+#: C/entry.py.page:20 C/label.py.page:20 C/model-view-controller.py.page:15
+#: C/properties.py.page:15 C/signals-callbacks.py.page:15 C/strings.py.page:15
+#: C/textview.py.page:15 C/toolbar_builder.py.page:27
msgid "Sebastian Pölsterl"
-msgstr ""
+msgstr "Sebastian Pölsterl"
-#: C/entry.py.page:29(page/p)
+#. (itstool) path: page/p
+#: C/entry.py.page:29
msgid "This application greets you in the terminal with the name you provide."
msgstr ""
-#: C/entry.py.page:35(section/code)
-#, no-wrap
+#. (itstool) path: section/code
+#: C/entry.py.page:35
+#, fuzzy, no-wrap
+#| msgid ""
+#| "from gi.repository import Gtk\n"
+#| "import sys\n"
+#| "\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"ScrolledWindow Example\", application=app)\n"
+#| " self.set_default_size(200, 200)\n"
+#| "\n"
+#| " # the scrolledwindow\n"
+#| " scrolled_window = Gtk.ScrolledWindow()\n"
+#| " scrolled_window.set_border_width(10)\n"
+#| " # there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
+#| " scrolled_window.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\n"
+#| "\n"
+#| " # an image - slightly larger than the window...\n"
+#| " image = Gtk.Image()\n"
+#| " image.set_from_file(\"gnome-image.png\")\n"
+#| "\n"
+#| " # add the image to the scrolledwindow\n"
+#| " scrolled_window.add_with_viewport(image)\n"
+#| "\n"
+#| " # add the scrolledwindow to the window\n"
+#| " self.add(scrolled_window)\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " win = MyWindow(self)\n"
+#| " win.show_all()\n"
+#| "\n"
+#| " def do_startup(self):\n"
+#| " Gtk.Application.do_startup(self)\n"
+#| "\n"
+#| "app = MyApplication()\n"
+#| "exit_status = app.run(sys.argv)\n"
+#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"What is your name?\", application=app)\n"
" self.set_default_size(300, 100)\n"
@@ -7042,11 +8281,13 @@ msgid ""
" # the content of the entry is used to write in the terminal\n"
" def cb_activate(self, entry):\n"
" # retrieve the content of the widget\n"
-"\t\tname = entry.get_text()\n"
-"\t\t# print it in a nice form in the terminal\n"
-"\t\tprint \"Hello \" + name + \"!\"\n"
+" name = entry.get_text()\n"
+" # print it in a nice form in the terminal\n"
+" print \"Hello \" + name + \"!\"\n"
+"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -7061,55 +8302,100 @@ msgid ""
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
msgstr ""
+"from gi.repository import Gtk\n"
+"import sys\n"
+"\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"ScrolledWindow Example\", application=app)\n"
+" self.set_default_size(200, 200)\n"
+"\n"
+" # the scrolledwindow\n"
+" scrolled_window = Gtk.ScrolledWindow()\n"
+" scrolled_window.set_border_width(10)\n"
+" # there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
+" scrolled_window.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\n"
+"\n"
+" # an image - slightly larger than the window...\n"
+" image = Gtk.Image()\n"
+" image.set_from_file(\"gnome-image.png\")\n"
+"\n"
+" # add the image to the scrolledwindow\n"
+" scrolled_window.add_with_viewport(image)\n"
+"\n"
+" # add the scrolledwindow to the window\n"
+" self.add(scrolled_window)\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
+"\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)\n"
-#: C/entry.py.page:39(section/title)
+#. (itstool) path: section/title
+#: C/entry.py.page:39
msgid "Useful methods for an Entry widget"
msgstr ""
-#: C/entry.py.page:40(section/p)
+#. (itstool) path: section/p
+#: C/entry.py.page:40
msgid ""
"In line 14 the signal <code>\"activate\"</code> is connected to the callback "
-"function <code>cb_activate()</code> using <code><var>widget</var>.connect"
-"(<var>signal</var>, <var>callback function</var>)</code>. See <link xref="
-"\"signals-callbacks.py\"/> for a more detailed explanation. Some of the "
+"function <code>cb_activate()</code> using <code><var>widget</var>."
+"connect(<var>signal</var>, <var>callback function</var>)</code>. See <link "
+"xref=\"signals-callbacks.py\"/> for a more detailed explanation. Some of the "
"signals that a Gtk.Entry widget can emit are: <code>\"activate\"</code> "
"(emitted when the user activates the Entry key); <code>\"backspace\"</code> "
"(emitted when the user activates the Backspace or Shift-Backspace keys); "
"<code>\"copy-clipboard\"</code> (Ctrl-c and Ctrl-Insert); <code>\"paste-"
"clipboard\"</code> (Ctrl-v and Shift-Insert); <code>\"delete-from-cursor\"</"
"code> (Delete, for deleting a character; Ctrl-Delete, for deleting a word); "
-"<code>\"icon-press\"</code> (emitted when the user clicks an activable icon); "
-"<code>\"icon-release\"</code> (emitted on the button release from a mouse "
-"click over an activable icon); <code>\"insert-at-cursor\"</code> (emitted "
-"when the user initiates the insertion of a fixed string at the cursor); <code>"
-"\"move-cursor\"</code> (emitted when the user initiates a cursor movement); "
-"<code>\"populate-popup\"</code> (emitted before showing the context menu of "
-"the entry; it can be used to add items to it)."
+"<code>\"icon-press\"</code> (emitted when the user clicks an activable "
+"icon); <code>\"icon-release\"</code> (emitted on the button release from a "
+"mouse click over an activable icon); <code>\"insert-at-cursor\"</code> "
+"(emitted when the user initiates the insertion of a fixed string at the "
+"cursor); <code>\"move-cursor\"</code> (emitted when the user initiates a "
+"cursor movement); <code>\"populate-popup\"</code> (emitted before showing "
+"the context menu of the entry; it can be used to add items to it)."
msgstr ""
-#: C/entry.py.page:42(item/p)
+#. (itstool) path: item/p
+#: C/entry.py.page:42
msgid ""
"<code>get_buffer()</code> and <code>set_buffer(buffer)</code>, where "
"<code>buffer</code> is a Gtk.EntryBuffer object, can be used to get and set "
"the buffer for the entry."
msgstr ""
-#: C/entry.py.page:43(item/p)
+#. (itstool) path: item/p
+#: C/entry.py.page:43
msgid ""
"<code>get_text()</code> and <code>set_text(\"some text\")</code> can be used "
"to get and set the content for the entry."
msgstr ""
-#: C/entry.py.page:44(item/p)
+#. (itstool) path: item/p
+#: C/entry.py.page:44
msgid "<code>get_text_length()</code> is self-explanatory."
msgstr ""
-#: C/entry.py.page:45(item/p)
+#. (itstool) path: item/p
+#: C/entry.py.page:45
msgid ""
"<code>get_text_area()</code> gets the area where the entry's text is drawn."
msgstr ""
-#: C/entry.py.page:46(item/p)
+#. (itstool) path: item/p
+#: C/entry.py.page:46
msgid ""
"If we set <code>set_visibility(False)</code> the characters in the entry are "
"displayed as the invisible char. This is the best available in the current "
@@ -7118,44 +8404,51 @@ msgid ""
"<code>unset_invisbile_char()</code>."
msgstr ""
-#: C/entry.py.page:47(item/p)
+#. (itstool) path: item/p
+#: C/entry.py.page:47
msgid ""
"<code>set_max_length(int)</code>, where <code>int</code> is an integer, "
"truncates every entry longer than <code>int</code> to have the desired "
"maximum length."
msgstr ""
-#: C/entry.py.page:48(item/p)
+#. (itstool) path: item/p
+#: C/entry.py.page:48
msgid ""
"By default, if you press the Entry key the Gtk.Entry emits the signal <code>"
-"\"activate\"</code>. If you would like to activate the default widget for the "
-"window (set using <code>set_default(widget)</code> on the window), then use "
-"<code>set_activates_default(True)</code>."
+"\"activate\"</code>. If you would like to activate the default widget for "
+"the window (set using <code>set_default(widget)</code> on the window), then "
+"use <code>set_activates_default(True)</code>."
msgstr ""
-#: C/entry.py.page:49(item/p)
+#. (itstool) path: item/p
+#: C/entry.py.page:49
msgid "To set a frame around the entry: <code>set_has_frame(True)</code>."
msgstr ""
-#: C/entry.py.page:50(item/p)
+#. (itstool) path: item/p
+#: C/entry.py.page:50
msgid ""
"<code>set_placeholder_text(\"some text\")</code> sets the text to be "
"displayed in the entry when it is empty and unfocused."
msgstr ""
-#: C/entry.py.page:51(item/p)
+#. (itstool) path: item/p
+#: C/entry.py.page:51
msgid ""
"<code>set_overwrite_mode(True)</code> and <code>set_overwrite_mode(False)</"
"code> are self-explanatory."
msgstr ""
-#: C/entry.py.page:52(item/p)
+#. (itstool) path: item/p
+#: C/entry.py.page:52
msgid ""
"If we have <code>set_editable(False)</code> the user cannot edit the text in "
"the widget."
msgstr ""
-#: C/entry.py.page:53(item/p)
+#. (itstool) path: item/p
+#: C/entry.py.page:53
msgid ""
"<code>set_completion(completion)</code>, where <code>completion</code> is a "
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkEntryCompletion.html"
@@ -7163,49 +8456,55 @@ msgid ""
"if <code>completion</code> is <code>None</code>."
msgstr ""
-#: C/entry.py.page:54(item/p)
+#. (itstool) path: item/p
+#: C/entry.py.page:54
msgid ""
-"An Entry widget can display progress or activity information behind the text. "
-"We use <code>set_progress_fraction(fraction)</code>, where <code>fraction</"
-"code> is a <code>float</code> between <code>0.0</code> and <code>1.0</code> "
-"inclusive, to fill in the given fraction of the bar. We use "
+"An Entry widget can display progress or activity information behind the "
+"text. We use <code>set_progress_fraction(fraction)</code>, where "
+"<code>fraction</code> is a <code>float</code> between <code>0.0</code> and "
+"<code>1.0</code> inclusive, to fill in the given fraction of the bar. We use "
"<code>set_progress_pulse_step()</code> to set the fraction of total entry "
"width to move the progress bouncing block for each call to "
-"<code>progress_pulse()</code>. The latter method indicates that some progress "
-"is made, and causes the progress indicator of the entry to enter \"activity "
-"mode\", where a block bounces back and forth. Each call to "
+"<code>progress_pulse()</code>. The latter method indicates that some "
+"progress is made, and causes the progress indicator of the entry to enter "
+"\"activity mode\", where a block bounces back and forth. Each call to "
"<code>progress_pulse()</code> causes the block to move by a little bit (the "
"amount of movement per pulse is determined, as said before, by "
"<code>set_progress_pulse_step()</code>)."
msgstr ""
-#: C/entry.py.page:55(item/p)
+#. (itstool) path: item/p
+#: C/entry.py.page:55
msgid ""
"An Entry widget can also show icons. These icons can be activatable by "
-"clicking, can be set up as drag source and can have tooltips. To add an icon, "
-"use <code>set_icon_from_stock(icon_position, stock_id)</code>, or one of "
-"<code>set_icon_from_pixbuf(icon_position, pixbuf)</code>, "
+"clicking, can be set up as drag source and can have tooltips. To add an "
+"icon, use <code>set_icon_from_stock(icon_position, stock_id)</code>, or one "
+"of <code>set_icon_from_pixbuf(icon_position, pixbuf)</code>, "
"<code>set_icon_from_icon_name(icon_position, icon_name)</code>, where "
"<code>icon_position</code> is one of <code>Gtk.EntryIconPosition.PRIMARY</"
"code> (to set the icon at the beginning of the entry) <code>Gtk."
-"EntryIconPosition.SECONDARY</code> (to set the icon at the end of the entry). "
-"To set a tooltip on an icon, use <code>set_icon_tooltip_text(\"tooltip text\")"
-"</code> or <code>set_icon_tooltip_markup(\"tooltip text in Pango markup "
-"language\")</code>."
+"EntryIconPosition.SECONDARY</code> (to set the icon at the end of the "
+"entry). To set a tooltip on an icon, use "
+"<code>set_icon_tooltip_text(\"tooltip text\")</code> or "
+"<code>set_icon_tooltip_markup(\"tooltip text in Pango markup language\")</"
+"code>."
msgstr ""
-#: C/entry.py.page:63(item/p)
+#. (itstool) path: item/p
+#: C/entry.py.page:63
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkEntry.html"
"\">GtkEntry</link>"
msgstr ""
-#: C/entry.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/entry.vala.page:7
msgctxt "text"
msgid "Entry (Vala)"
msgstr ""
-#: C/entry.vala.page:24(page/code)
+#. (itstool) path: page/code
+#: C/entry.vala.page:24
#, no-wrap
msgid ""
"/* A window in the application. */\n"
@@ -7261,16 +8560,19 @@ msgid ""
"}\n"
msgstr ""
-#: C/entry.vala.page:29(item/p)
+#. (itstool) path: item/p
+#: C/entry.vala.page:29
msgid ""
-"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Entry.html\">Gtk.Entry</link>"
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Entry.html\">Gtk.Entry</"
+"link>"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/filechooserdialog.py.page:25(media)
+#: C/filechooserdialog.py.page:25
msgctxt "_"
msgid ""
"external ref='media/filechooserdialog_save.png' "
@@ -7279,11 +8581,12 @@ msgstr ""
"external ref='media/filechooserdialog_save.png' "
"md5='3a7a3b71b9d3a36066857843b68ff27f'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/filechooserdialog.py.page:27(media)
+#: C/filechooserdialog.py.page:27
msgctxt "_"
msgid ""
"external ref='media/filechooserdialog_menu.png' "
@@ -7292,56 +8595,65 @@ msgstr ""
"external ref='media/filechooserdialog_menu.png' "
"md5='8a75f04127a70eba0ed68a9eb1d3bbca'"
-#: C/filechooserdialog.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/filechooserdialog.py.page:7
msgctxt "text"
msgid "FileChooserDialog (Python)"
msgstr ""
-#: C/filechooserdialog.py.page:21(info/desc)
+#. (itstool) path: info/desc
+#: C/filechooserdialog.py.page:21
msgid "A dialog suitable for \"Open\" and \"Save\" commands"
msgstr ""
-#: C/filechooserdialog.py.page:24(page/title)
-#: C/filechooserdialog.vala.page:23(page/title)
+#. (itstool) path: page/title
+#: C/filechooserdialog.py.page:24 C/filechooserdialog.vala.page:23
msgid "FileChooserDialog"
msgstr ""
-#: C/filechooserdialog.py.page:26(page/p)
+#. (itstool) path: page/p
+#: C/filechooserdialog.py.page:26
msgid ""
"This FileChooserDialog saves a text document, which can be opened or written "
"from scratch in a TextView (see below)."
msgstr ""
-#: C/filechooserdialog.py.page:28(page/p)
+#. (itstool) path: page/p
+#: C/filechooserdialog.py.page:28
msgid "It is also possible to call a FileChooserDialog to open a new document."
msgstr ""
-#: C/filechooserdialog.py.page:33(section/title)
+#. (itstool) path: section/title
+#: C/filechooserdialog.py.page:33
msgid "Steps to recreate the example"
msgstr ""
-#: C/filechooserdialog.py.page:35(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.py.page:35
msgid ""
-"Create a file .ui to describe an app-menu with items \"New\", \"Open\", \"Save"
-"\", \"Save as\", and \"Quit\". This can be done with Glade or in a text "
-"editor. See <link xref=\"#xml\"/>"
+"Create a file .ui to describe an app-menu with items \"New\", \"Open\", "
+"\"Save\", \"Save as\", and \"Quit\". This can be done with Glade or in a "
+"text editor. See <link xref=\"#xml\"/>"
msgstr ""
-#: C/filechooserdialog.py.page:36(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.py.page:36
msgid ""
"Create a Python program for a Gtk.TextView with a Gtk.Buffer <code>self."
"buffer</code>, and a <code>self.file</code> which will be a Gio.File and we "
"set initially as <code>None</code>."
msgstr ""
-#: C/filechooserdialog.py.page:37(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.py.page:37
msgid ""
"In this program, create also the actions corresponding to the items in the "
"app-menu, connect them to callback functions, and import the menu in the "
"<code>do_startup()</code> method with a Gtk.Builder."
msgstr ""
-#: C/filechooserdialog.py.page:38(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.py.page:38
msgid ""
"\"New\" and \"Quit\" actions and callback functions are quite "
"straightforward, see <link xref=\"#code\"/>. See <link xref=\"signals-"
@@ -7349,39 +8661,44 @@ msgid ""
"functions."
msgstr ""
-#: C/filechooserdialog.py.page:39(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.py.page:39
msgid ""
"\"Open\" callback should create and open a Gtk.FileChooserDialog for \"Open"
-"\", connected with another callback function for each of the two \"Open\" and "
-"\"Cancel\" buttons of the FileChooserDialog."
+"\", connected with another callback function for each of the two \"Open\" "
+"and \"Cancel\" buttons of the FileChooserDialog."
msgstr ""
-#: C/filechooserdialog.py.page:40(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.py.page:40
msgid ""
"\"Save as\" works basically as \"Open\", but the callback function of the "
"\"Save\" button depends on a more complex method <code>save_to_file()</code>."
msgstr ""
-#: C/filechooserdialog.py.page:41(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.py.page:41
msgid ""
-"\"Save\" can be reduced to the case where the file is <code>None</code>, that "
-"is the case where <code>self.file</code> is a new file, which in turn is the "
-"case \"Save as\"; and to the case where the file is not <code>None</code>, "
-"which in turn is reduced to <code>save_to_file()</code>."
+"\"Save\" can be reduced to the case where the file is <code>None</code>, "
+"that is the case where <code>self.file</code> is a new file, which in turn "
+"is the case \"Save as\"; and to the case where the file is not <code>None</"
+"code>, which in turn is reduced to <code>save_to_file()</code>."
msgstr ""
-#: C/filechooserdialog.py.page:42(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.py.page:42
msgid ""
"Finally, the method <code>save_to_file()</code>: see <link xref=\"#code\"/>, "
"lines 146 - 175."
msgstr ""
-#: C/filechooserdialog.py.page:47(section/title)
+#. (itstool) path: section/title
+#: C/filechooserdialog.py.page:47
msgid "XML file which creates the app-menu"
msgstr ""
-#: C/filechooserdialog.py.page:48(section/code)
-#: C/filechooserdialog.vala.page:29(section/code)
+#. (itstool) path: section/code
+#: C/filechooserdialog.py.page:48 C/filechooserdialog.vala.page:29
#, no-wrap
msgid ""
"<?xml version=\"1.0\"?>\n"
@@ -7417,7 +8734,8 @@ msgid ""
"</interface>\n"
msgstr ""
-#: C/filechooserdialog.py.page:53(section/code)
+#. (itstool) path: section/code
+#: C/filechooserdialog.py.page:53
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -7426,42 +8744,46 @@ msgid ""
"from gi.repository import GObject\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
-" Gtk.Window.__init__(self, title=\"FileChooserDialog Example\", application=app)\n"
+" Gtk.Window.__init__(\n"
+" self, title=\"FileChooserDialog Example\", application=app)\n"
" self.set_default_size(400, 400)\n"
"\n"
" # the actions for the window menu, connected to the callback functions\n"
" new_action = Gio.SimpleAction.new(\"new\", None)\n"
" new_action.connect(\"activate\", self.new_callback)\n"
" self.add_action(new_action)\n"
-" \n"
+"\n"
" open_action = Gio.SimpleAction.new(\"open\", None)\n"
" open_action.connect(\"activate\", self.open_callback)\n"
" self.add_action(open_action)\n"
-" \n"
+"\n"
" save_action = Gio.SimpleAction.new(\"save\", None)\n"
" save_action.connect(\"activate\", self.save_callback)\n"
" self.add_action(save_action)\n"
-" \n"
+"\n"
" save_as_action = Gio.SimpleAction.new(\"save-as\", None)\n"
" save_as_action.connect(\"activate\", self.save_as_callback)\n"
" self.add_action(save_as_action)\n"
-" \n"
+"\n"
" # the file\n"
" self.file = None\n"
-" \n"
+"\n"
" # the textview with the buffer\n"
" self.buffer = Gtk.TextBuffer()\n"
" textview = Gtk.TextView(buffer=self.buffer)\n"
" textview.set_wrap_mode(Gtk.WrapMode.WORD)\n"
-" \n"
+"\n"
" # a scrolled window for the textview\n"
" self.scrolled_window = Gtk.ScrolledWindow()\n"
-" self.scrolled_window.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)\n"
+" self.scrolled_window.set_policy(\n"
+" Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)\n"
" self.scrolled_window.add(textview)\n"
" self.scrolled_window.set_border_width(5)\n"
-" \n"
+"\n"
" # add the scrolled window to the window\n"
" self.add(self.scrolled_window)\n"
"\n"
@@ -7469,16 +8791,17 @@ msgid ""
" def new_callback(self, action, parameter):\n"
" self.buffer.set_text(\"\")\n"
" print \"New file created\"\n"
-" \n"
+"\n"
" # callback for open\n"
" def open_callback(self, action, parameter):\n"
-" # create a filechooserdialog to open: \n"
-" # the arguments are: title of the window, parent_window, action, (buttons, response)\n"
-" open_dialog = Gtk.FileChooserDialog (\"Pick a file\", self,\n"
-" Gtk.FileChooserAction.OPEN, \n"
-" (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, \n"
-" Gtk.STOCK_OPEN, Gtk.ResponseType.ACCEPT))\n"
-" \n"
+" # create a filechooserdialog to open:\n"
+" # the arguments are: title of the window, parent_window, action,\n"
+" # (buttons, response)\n"
+" open_dialog = Gtk.FileChooserDialog(\"Pick a file\", self,\n"
+" Gtk.FileChooserAction.OPEN,\n"
+" (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,\n"
+" Gtk.STOCK_OPEN, Gtk.ResponseType.ACCEPT))\n"
+"\n"
" # not only local files can be selected in the file selector\n"
" open_dialog.set_local_only(False)\n"
" # dialog always on top of the textview window\n"
@@ -7517,12 +8840,13 @@ msgid ""
"\n"
" # callback function for save_as\n"
" def save_as_callback(self, action, parameter):\n"
-" # create a filechooserdialog to save: \n"
-" # the arguments are: title of the window, parent_window, action, (buttons, response)\n"
-" save_dialog = Gtk.FileChooserDialog (\"Pick a file\", self,\n"
-" Gtk.FileChooserAction.SAVE, \n"
-" (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, \n"
-" Gtk.STOCK_SAVE, Gtk.ResponseType.ACCEPT))\n"
+" # create a filechooserdialog to save:\n"
+" # the arguments are: title of the window, parent_window, action,\n"
+" # (buttons, response)\n"
+" save_dialog = Gtk.FileChooserDialog(\"Pick a file\", self,\n"
+" Gtk.FileChooserAction.SAVE,\n"
+" (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,\n"
+" Gtk.STOCK_SAVE, Gtk.ResponseType.ACCEPT))\n"
" # the dialog will present a confirmation dialog if the user types a file name that\n"
" # already exists\n"
" save_dialog.set_do_overwrite_confirmation(True)\n"
@@ -7539,7 +8863,7 @@ msgid ""
" save_dialog.connect(\"response\", self.save_response_cb)\n"
" # show the dialog\n"
" save_dialog.show()\n"
-" \n"
+"\n"
" # callback function for the dialog save_dialog\n"
" def save_response_cb(self, dialog, response_id):\n"
" save_dialog = dialog\n"
@@ -7554,8 +8878,8 @@ msgid ""
" print \"cancelled: FileChooserAction.SAVE\"\n"
" # destroy the FileChooserDialog\n"
" dialog.destroy()\n"
-" \n"
-" # callback function for save \n"
+"\n"
+" # callback function for save\n"
" def save_callback(self, action, parameter):\n"
" # if self.file is not already there\n"
" if self.file is not None:\n"
@@ -7586,17 +8910,19 @@ msgid ""
" # if the contents are empty\n"
" else:\n"
" # create (if the file does not exist) or overwrite the file in readwrite mode.\n"
-" # arguments: etags, make_backup, flags, GError \n"
+" # arguments: etags, make_backup, flags, GError\n"
" try:\n"
" self.file.replace_readwrite(None,\n"
" False,\n"
-" Gio.FileCreateFlags.NONE, \n"
+" Gio.FileCreateFlags.NONE,\n"
" None)\n"
" print \"saved: \" + self.file.get_path()\n"
" except GObject.GError as e:\n"
" print \"Error: \" + e.message\n"
-" \n"
+"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -7621,7 +8947,7 @@ msgid ""
" sys.exit()\n"
" menu = builder.get_object(\"appmenu\")\n"
" self.set_app_menu(menu)\n"
-" \n"
+"\n"
" # callback function for quit\n"
" def quit_callback(self, action, parameter):\n"
" self.quit()\n"
@@ -7631,39 +8957,46 @@ msgid ""
"sys.exit(exit_status)\n"
msgstr ""
-#: C/filechooserdialog.py.page:57(section/title)
+#. (itstool) path: section/title
+#: C/filechooserdialog.py.page:57
msgid "Useful methods for a FileChooserDialog"
msgstr ""
-#: C/filechooserdialog.py.page:58(section/p)
+#. (itstool) path: section/p
+#: C/filechooserdialog.py.page:58
msgid ""
"Note that the action of the FileChooserDialog can be one of the following: "
"<code>Gtk.FileChooserAction.OPEN</code> (the file chooser will only let the "
-"user pick an existing file) <code>Gtk.FileChooserAction.SAVE</code> (the file "
-"chooser will let the user pick an existing file, or type in a new filename), "
-"<code>Gtk.FileChooserAction.SELECT_FOLDER</code> (the file chooser will let "
-"the user pick an existing folder), <code>Gtk.FileChooserAction.CREATE_FOLDER</"
-"code> (the file chooser will let the user name an existing or new folder)."
+"user pick an existing file) <code>Gtk.FileChooserAction.SAVE</code> (the "
+"file chooser will let the user pick an existing file, or type in a new "
+"filename), <code>Gtk.FileChooserAction.SELECT_FOLDER</code> (the file "
+"chooser will let the user pick an existing folder), <code>Gtk."
+"FileChooserAction.CREATE_FOLDER</code> (the file chooser will let the user "
+"name an existing or new folder)."
msgstr ""
-#: C/filechooserdialog.py.page:59(section/p)
+#. (itstool) path: section/p
+#: C/filechooserdialog.py.page:59
msgid "Besides the methods used in the <link xref=\"#code\"/>, we have:"
msgstr ""
-#: C/filechooserdialog.py.page:61(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.py.page:61
msgid ""
"<code>set_show_hidden(True)</code> is used to display hidden files and "
"folders."
msgstr ""
-#: C/filechooserdialog.py.page:62(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.py.page:62
msgid ""
"<code>set_select_multiple(True)</code> sets that multiple files can be "
"selected. This is only relevant if the mode is <code>Gtk.FileChooserAction."
"OPEN</code> or <code>Gtk.FileChooserAction.SELECT_FOLDER</code>."
msgstr ""
-#: C/filechooserdialog.py.page:63(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.py.page:63
msgid ""
"In a \"Save as\" dialog, <code>set_current_name(current_name)</code> sets "
"<code>current_name</code> in the file selector, as if entered by the user; "
@@ -7671,96 +9004,126 @@ msgid ""
"method should not be used except in a \"Save as\" dialog."
msgstr ""
-#: C/filechooserdialog.py.page:64(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.py.page:64
msgid ""
"The default current folder is \"recent items\". To set another folder use "
-"<code>set_current_folder_uri(uri)</code>; but note you should use this method "
-"and cause the file chooser to show a specific folder only when you are doing "
-"a \"Save as\" command and you already have a file saved somewhere."
+"<code>set_current_folder_uri(uri)</code>; but note you should use this "
+"method and cause the file chooser to show a specific folder only when you "
+"are doing a \"Save as\" command and you already have a file saved somewhere."
msgstr ""
-#: C/filechooserdialog.py.page:72(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.py.page:72
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkFileChooserDialog.html"
"\">GtkFileChooserDialog</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkFileChooserDialog.html"
+"\">GtkFileChooserDialog</link>"
-#: C/filechooserdialog.py.page:73(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.py.page:73
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkFileChooser.html"
"\">GtkFileChooser</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkFileChooser.html"
+"\">GtkFileChooser</link>"
-#: C/filechooserdialog.py.page:74(item/p) C/image.c.page:33(item/p)
-#: C/label.c.page:37(item/p) C/menubar.c.page:37(item/p)
-#: C/scrolledwindow.c.page:34(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.py.page:74 C/image.c.page:33 C/label.c.page:37
+#: C/menubar.c.page:37 C/scrolledwindow.c.page:34
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkWindow.html"
"\">GtkWindow</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkWindow.html"
+"\">GtkWindow</link>"
-#: C/filechooserdialog.py.page:75(item/p) C/textview.c.page:38(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.py.page:75 C/textview.c.page:38
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkTextView.html"
"\">GtkTextView</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkTextView.html"
+"\">GtkTextView</link>"
-#: C/filechooserdialog.py.page:76(item/p) C/textview.c.page:37(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.py.page:76 C/textview.c.page:37
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkTextBuffer.html"
"\">GtkTextBuffer</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkTextBuffer.html"
+"\">GtkTextBuffer</link>"
-#: C/filechooserdialog.py.page:77(item/p) C/scrolledwindow.c.page:35(item/p)
-#: C/textview.c.page:39(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.py.page:77 C/scrolledwindow.c.page:35
+#: C/textview.c.page:39
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkScrolledWindow.html"
"\">GtkScrolledWindow</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkScrolledWindow.html"
+"\">GtkScrolledWindow</link>"
-#: C/filechooserdialog.py.page:78(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.py.page:78
msgid ""
"<link href=\"http://developer.gnome.org/gio/stable/GFile.html\">GFile</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gio/stable/GFile.html\">GFile</link>"
-#: C/filechooserdialog.py.page:80(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.py.page:80
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkBuilder.html"
"\">GtkBuilder</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkBuilder.html"
+"\">GtkBuilder</link>"
-#: C/filechooserdialog.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/filechooserdialog.vala.page:7
msgctxt "text"
msgid "FileChooserDialog (Vala)"
msgstr ""
-#: C/filechooserdialog.vala.page:20(info/desc)
+#. (itstool) path: info/desc
+#: C/filechooserdialog.vala.page:20
msgid "A dialog suitable for \"Open\" and \"Save\" commands."
msgstr ""
-#: C/filechooserdialog.vala.page:25(section/title)
+#. (itstool) path: section/title
+#: C/filechooserdialog.vala.page:25
msgid "Overview of the example"
msgstr ""
-#: C/filechooserdialog.vala.page:26(section/p)
+#. (itstool) path: section/p
+#: C/filechooserdialog.vala.page:26
msgid ""
"This example demonstrates how the FileChooserDialog can be used. It is "
"incorporated into a very simple text editor application. All the <link xref="
-"\"menubar.vala#win-app\">actions</link>, including the \"open\", \"save\" and "
-"\"save-as\" commands can be found in the <link xref=\"gmenu.vala\">app-menu</"
-"link>. Here, the app-menu is created using an XML UI file, which is then "
-"imported into the application using Gtk.Builder."
+"\"menubar.vala#win-app\">actions</link>, including the \"open\", \"save\" "
+"and \"save-as\" commands can be found in the <link xref=\"gmenu.vala\">app-"
+"menu</link>. Here, the app-menu is created using an XML UI file, which is "
+"then imported into the application using Gtk.Builder."
msgstr ""
-#: C/filechooserdialog.vala.page:28(section/title)
+#. (itstool) path: section/title
+#: C/filechooserdialog.vala.page:28
msgid "XML UI file which creates the app-menu"
msgstr ""
-#: C/filechooserdialog.vala.page:31(section/title)
+#. (itstool) path: section/title
+#: C/filechooserdialog.vala.page:31
msgid "Vala Code"
msgstr "Vala-code"
-#: C/filechooserdialog.vala.page:32(section/code)
+#. (itstool) path: section/code
+#: C/filechooserdialog.vala.page:32
#, no-wrap
msgid ""
"class MyWindow: Gtk.ApplicationWindow {\n"
@@ -7961,41 +9324,56 @@ msgid ""
"}\n"
msgstr ""
-#: C/filechooserdialog.vala.page:34(section/title)
-#: C/menubar.vala.page:186(section/title)
+#. (itstool) path: section/title
+#: C/filechooserdialog.vala.page:34 C/menubar.vala.page:186
#, fuzzy
#| msgid "Reference Implementation"
msgid "Relevant API documentation"
msgstr "Referenz-Implementierung"
-#: C/filechooserdialog.vala.page:39(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.vala.page:39
msgid ""
"<link href=\"http://valadoc.org/gtk+-3.0/Gtk.FileChooser.html\">FileChooser</"
"link>"
msgstr ""
+"<link href=\"http://valadoc.org/gtk+-3.0/Gtk.FileChooser.html\">FileChooser</"
+"link>"
-#: C/filechooserdialog.vala.page:40(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.vala.page:40
msgid ""
"<link href=\"http://valadoc.org/gtk+-3.0/Gtk.FileChooserDialog.html"
"\">FileChooserDialog</link>"
msgstr ""
+"<link href=\"http://valadoc.org/gtk+-3.0/Gtk.FileChooserDialog.html"
+"\">FileChooserDialog</link>"
-#: C/filechooserdialog.vala.page:41(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.vala.page:41
msgid ""
-"<link href=\"http://valadoc.org/gtk+-3.0/Gtk.Builder.html\">Gtk.Builder</link>"
+"<link href=\"http://valadoc.org/gtk+-3.0/Gtk.Builder.html\">Gtk.Builder</"
+"link>"
msgstr ""
+"<link href=\"http://valadoc.org/gtk+-3.0/Gtk.Builder.html\">Gtk.Builder</"
+"link>"
-#: C/filechooserdialog.vala.page:42(item/p)
+#. (itstool) path: item/p
+#: C/filechooserdialog.vala.page:42
msgid ""
"<link href=\"http://valadoc.org/gio-2.0/GLib.ActionEntry.html\">GLib."
"ActionEntry</link>"
msgstr ""
+"<link href=\"http://valadoc.org/gio-2.0/GLib.ActionEntry.html\">GLib."
+"ActionEntry</link>"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/fontchooserwidget.py.page:24(media)
+#: C/fontchooserwidget.js.page:22 C/fontchooserwidget.py.page:24
+#: C/fontchooserwidget.vala.page:22
msgctxt "_"
msgid ""
"external ref='media/fontchooserwidget.png' "
@@ -8004,30 +9382,163 @@ msgstr ""
"external ref='media/fontchooserwidget.png' "
"md5='9161245e307b432ae1313e9a9941edae'"
-#: C/fontchooserwidget.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/fontchooserwidget.js.page:7
+#, fuzzy
+#| msgctxt "text"
+#| msgid "Grid (JavaScript)"
msgctxt "text"
-msgid "FontChooserWidget (Python)"
-msgstr ""
+msgid "FontChooserWidget (JavaScript)"
+msgstr "Grid (JavaScript)"
-#: C/fontchooserwidget.py.page:19(info/desc)
+#. (itstool) path: info/desc
+#: C/fontchooserwidget.js.page:17 C/fontchooserwidget.py.page:19
+#: C/fontchooserwidget.vala.page:17
msgid "A widget to choose a font"
msgstr ""
-#: C/fontchooserwidget.py.page:22(page/title)
+#. (itstool) path: page/title
+#: C/fontchooserwidget.js.page:20 C/fontchooserwidget.py.page:22
+#: C/fontchooserwidget.vala.page:20
msgid "FontChooserWidget"
msgstr ""
-#: C/fontchooserwidget.py.page:25(page/p)
+#. (itstool) path: page/p
+#: C/fontchooserwidget.js.page:23 C/fontchooserwidget.py.page:25
msgid "A FontChooserWidget with a callback function."
msgstr ""
-#: C/fontchooserwidget.py.page:31(section/code)
+#. (itstool) path: section/code
+#: C/fontchooserwidget.js.page:29
#, no-wrap
msgid ""
+"//!/usr/bin/gjs\n"
+"\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"\n"
+"const FontChooserWidgetExample = new Lang.Class ({\n"
+" Name: 'Font Chooser Widget Example',\n"
+"\n"
+" // Create the application itthis\n"
+" _init: function () {\n"
+" this.application = new Gtk.Application({ application_id: 'org.example.fontchooserwidget' });\n"
+"\n"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Callback function for 'activate' signal presents windows when active\n"
+" _onActivate: function() {\n"
+" this.window.present();\n"
+" },\n"
+"\n"
+" // Callback function for 'startup' signal builds the UI\n"
+" _onStartup: function() {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+" // Build the application's UI\n"
+" _buildUI: function() {\n"
+" // Create the application window\n"
+" this.window = new Gtk.ApplicationWindow ({ application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" title: \"FontChooserWidget\",\n"
+" default_width: 200,\n"
+" default_height: 200,\n"
+" border_width: 10 });\n"
+"\n"
+" this.fontChooser = new Gtk.FontChooserWidget();\n"
+" // a default font\n"
+" this.fontChooser.set_font(\"Sans\");\n"
+" // a text to preview the font\n"
+" this.fontChooser.set_preview_text(\"This is an example of preview text!\");\n"
+"\n"
+" // connect signal from the font chooser to the callback function\n"
+" this.fontChooser.connect(\"notify::font\", Lang.bind(this, this._fontCb));\n"
+"\n"
+" // add the font chooser to the window\n"
+" this.window.add(this.fontChooser);\n"
+" this.window.show_all();\n"
+" },\n"
+"\n"
+" // callback function:\n"
+" _fontCb: function() {\n"
+" // print in the terminal\n"
+" print(\"You chose the font \" + this.fontChooser.get_font());\n"
+" }\n"
+"});\n"
+"\n"
+"// Run the application\n"
+"let app = new FontChooserWidgetExample();\n"
+"app.application.run (ARGV);\n"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/fontchooserwidget.js.page:36 C/fontchooserwidget.py.page:46
+msgid ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkFontChooserWidget."
+"html\">GtkFontChooserWidget</link>"
+msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkFontChooserWidget."
+"html\">GtkFontChooserWidget</link>"
+
+#. (itstool) path: info/title
+#: C/fontchooserwidget.py.page:7
+msgctxt "text"
+msgid "FontChooserWidget (Python)"
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/fontchooserwidget.py.page:31
+#, fuzzy, no-wrap
+#| msgid ""
+#| "from gi.repository import Gtk\n"
+#| "import sys\n"
+#| "\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"ScrolledWindow Example\", application=app)\n"
+#| " self.set_default_size(200, 200)\n"
+#| "\n"
+#| " # the scrolledwindow\n"
+#| " scrolled_window = Gtk.ScrolledWindow()\n"
+#| " scrolled_window.set_border_width(10)\n"
+#| " # there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
+#| " scrolled_window.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\n"
+#| "\n"
+#| " # an image - slightly larger than the window...\n"
+#| " image = Gtk.Image()\n"
+#| " image.set_from_file(\"gnome-image.png\")\n"
+#| "\n"
+#| " # add the image to the scrolledwindow\n"
+#| " scrolled_window.add_with_viewport(image)\n"
+#| "\n"
+#| " # add the scrolledwindow to the window\n"
+#| " self.add(scrolled_window)\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " win = MyWindow(self)\n"
+#| " win.show_all()\n"
+#| "\n"
+#| " def do_startup(self):\n"
+#| " Gtk.Application.do_startup(self)\n"
+#| "\n"
+#| "app = MyApplication()\n"
+#| "exit_status = app.run(sys.argv)\n"
+#| "sys.exit(exit_status)\n"
+msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"FontChooserWidget\", application=app)\n"
"\n"
@@ -8036,7 +9547,8 @@ msgid ""
" # a default font\n"
" self.font_chooser.set_font(\"Sans\")\n"
" # a text to preview the font\n"
-" self.font_chooser.set_preview_text(\"This is an example of preview text!\")\n"
+" self.font_chooser.set_preview_text(\n"
+" \"This is an example of preview text!\")\n"
"\n"
" # connect signal from the font chooser to the callback function\n"
" self.font_chooser.connect(\"notify::font\", self.font_cb)\n"
@@ -8049,7 +9561,9 @@ msgid ""
" # print in the terminal\n"
" print \"You chose the font \" + self.font_chooser.get_font()\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -8064,12 +9578,52 @@ msgid ""
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
msgstr ""
+"from gi.repository import Gtk\n"
+"import sys\n"
+"\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"ScrolledWindow Example\", application=app)\n"
+" self.set_default_size(200, 200)\n"
+"\n"
+" # the scrolledwindow\n"
+" scrolled_window = Gtk.ScrolledWindow()\n"
+" scrolled_window.set_border_width(10)\n"
+" # there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
+" scrolled_window.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\n"
+"\n"
+" # an image - slightly larger than the window...\n"
+" image = Gtk.Image()\n"
+" image.set_from_file(\"gnome-image.png\")\n"
+"\n"
+" # add the image to the scrolledwindow\n"
+" scrolled_window.add_with_viewport(image)\n"
+"\n"
+" # add the scrolledwindow to the window\n"
+" self.add(scrolled_window)\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
+"\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)\n"
-#: C/fontchooserwidget.py.page:34(section/title)
+#. (itstool) path: section/title
+#: C/fontchooserwidget.py.page:34
msgid "Useful methods for a FontChooserWidget"
msgstr ""
-#: C/fontchooserwidget.py.page:35(section/p)
+#. (itstool) path: section/p
+#: C/fontchooserwidget.py.page:35
msgid ""
"In line 16 the <code>\"notify::font\"</code> signal from the widget is "
"connected to the callback function <code>font_cb()</code> using "
@@ -8078,188 +9632,269 @@ msgid ""
"explanation."
msgstr ""
-#: C/fontchooserwidget.py.page:37(item/p)
+#. (itstool) path: item/p
+#: C/fontchooserwidget.py.page:37
msgid ""
"To set the font which is initially selected, use <code>set_font(font)</code> "
"(where <code>font</code> is the font name) or <code>set_font_desc(font)</"
"code> (where <code>font</code> is the PangoFontDescription)."
msgstr ""
-#: C/fontchooserwidget.py.page:38(item/p)
+#. (itstool) path: item/p
+#: C/fontchooserwidget.py.page:38
msgid ""
-"To get the selected font use <code>get_font()</code> or <code>get_font_desc()"
-"</code>."
+"To get the selected font use <code>get_font()</code> or "
+"<code>get_font_desc()</code>."
msgstr ""
-#: C/fontchooserwidget.py.page:39(item/p)
+#. (itstool) path: item/p
+#: C/fontchooserwidget.py.page:39
msgid ""
"To change the text which is shown in the preview area, use "
"<code>set_preview_text()</code>."
msgstr ""
-#: C/fontchooserwidget.py.page:46(item/p)
+#. (itstool) path: info/title
+#: C/fontchooserwidget.vala.page:7
+msgctxt "text"
+msgid "FontChooserWidget (Vala)"
+msgstr ""
+
+#. (itstool) path: credit/name
+#: C/fontchooserwidget.vala.page:12
+msgid "Tiffany Antpoolski"
+msgstr "Tiffany Antpoolski"
+
+#. (itstool) path: page/p
+#: C/fontchooserwidget.vala.page:23
+msgid "A FontChooserWidget with a lambda callback function."
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/fontchooserwidget.vala.page:29
+#, no-wrap
msgid ""
-"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkFontChooserWidget."
-"html\">GtkFontChooserWidget</link>"
+"public class MyWindow : Gtk.ApplicationWindow {\n"
+" internal MyWindow (MyApplication app) {\n"
+" Object (application: app, title: \"FontChooserWidget\");\n"
+"\n"
+"\t\tvar font_chooser = new Gtk.FontChooserWidget ();\n"
+"\t\tfont_chooser.set_font (\"Sans\");\n"
+"\t\tfont_chooser.set_preview_text (\"This is an example of preview text!\");\n"
+"\t\tthis.add (font_chooser);\n"
+"\n"
+"\t\tfont_chooser.notify[\"font\"].connect (() => {\n"
+"\t\t\tprint (\"font: %s\\n\", font_chooser.get_font ().to_string ());\n"
+"\t\t\tprint (\"desc: %s\\n\", font_chooser.get_font_desc ().to_string ());\n"
+"\t\t\tprint (\"face: %s\\n\", font_chooser.get_font_face ().get_face_name ());\n"
+"\t\t\tprint (\"size: %d\\n\", font_chooser.get_font_size ());\n"
+"\t\t\tprint (\"family: %s\\n\", font_chooser.get_font_family ().get_name ());\n"
+"\t\t\tprint (\"monospace: %s\\n\\n\", font_chooser.get_font_family ().is_monospace ().to_string ());\n"
+"\t\t});\n"
+"\n"
+" this.show_all ();\n"
+" }\n"
+"}\n"
+"\n"
+"public class MyApplication : Gtk.Application {\n"
+" protected override void activate () {\n"
+" new MyWindow (this).show ();\n"
+" }\n"
+"}\n"
+"\n"
+"public int main (string[] args) {\n"
+" return new MyApplication ().run (args);\n"
+"}\n"
+"\n"
msgstr ""
+#. (itstool) path: item/p
+#: C/fontchooserwidget.vala.page:36
+msgid ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.FontChooserWidget.html"
+"\">GtkFontChooserWidget</link>"
+msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.FontChooserWidget.html"
+"\">GtkFontChooserWidget</link>"
+
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/getting-ready.page:39(media)
+#: C/getting-ready.page:33
msgctxt "_"
msgid "external ref='media/ubuntu.png' md5='40845e4a40b335b1958da1403f01c13f'"
msgstr "external ref='media/ubuntu.png' md5='40845e4a40b335b1958da1403f01c13f'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/getting-ready.page:44(media)
+#: C/getting-ready.page:38
msgctxt "_"
msgid "external ref='media/fedora.png' md5='19add55f4349fd9e90f3a50b344ba626'"
msgstr "external ref='media/fedora.png' md5='19add55f4349fd9e90f3a50b344ba626'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/getting-ready.page:49(media)
+#: C/getting-ready.page:43
msgctxt "_"
-msgid "external ref='media/opensuse.png' md5='a852a94199328e2f978c7f6a55bf8b54'"
+msgid ""
+"external ref='media/opensuse.png' md5='a852a94199328e2f978c7f6a55bf8b54'"
msgstr ""
"external ref='media/opensuse.png' md5='a852a94199328e2f978c7f6a55bf8b54'"
-#: C/getting-ready.page:6(info/title)
+#. (itstool) path: info/title
+#: C/getting-ready.page:6
msgctxt "link"
msgid "Install GNOME development tools"
msgstr ""
-#: C/getting-ready.page:16(page/title)
+#. (itstool) path: page/title
+#: C/getting-ready.page:16
msgid "Getting ready for GNOME development"
msgstr ""
-#: C/getting-ready.page:19(section/title)
+#. (itstool) path: section/title
+#: C/getting-ready.page:19
msgid "Install the required tools"
msgstr ""
-#: C/getting-ready.page:20(section/p)
+#. (itstool) path: section/p
+#: C/getting-ready.page:20
msgid ""
"Before you can start coding you will have to install the required tools for "
"GNOME development on your computer. This shouldn't take you more than ten "
"minutes."
msgstr ""
-#: C/getting-ready.page:25(section/title)
-msgid "Automatic installation"
-msgstr "Automatische Installation"
-
-#: C/getting-ready.page:26(section/p)
-msgid ""
-"On an up-to-date distribution you should be able to simply install the "
-"required packages by clicking on <link href=\"media/gnome-devtools.catalog"
-"\">Install now</link>."
-msgstr ""
-
-#: C/getting-ready.page:31(section/title)
+#. (itstool) path: section/title
+#: C/getting-ready.page:25
msgid "Manual installation"
msgstr "Manuelle Installation"
-#: C/getting-ready.page:32(section/p)
+#. (itstool) path: section/p
+#: C/getting-ready.page:26
msgid ""
"If you prefer manual installation you can find the instructions for the "
-"various distributions in the <link href=\"http://live.gnome.org/"
+"various distributions in the <link href=\"https://wiki.gnome.org/Apps/"
"DeveloperTools/Installation\">GNOME wiki</link>. Click on the image to go "
"directly to the installation page for your distribution:"
msgstr ""
-#: C/getting-ready.page:37(item/p)
+#. (itstool) path: item/p
+#: C/getting-ready.page:31
msgid ""
-"<link href=\"http://live.gnome.org/DeveloperTools/Installation/Ubuntu\"> "
-"<media type=\"image\" mime=\"image/png\" src=\"media/ubuntu.png\">Ubuntu</"
-"media> </link>"
+"<link href=\"https://wiki.gnome.org/Apps/DeveloperTools/Installation/Ubuntu"
+"\"> <media type=\"image\" mime=\"image/png\" src=\"media/ubuntu.png"
+"\">Ubuntu</media> </link>"
msgstr ""
-#: C/getting-ready.page:42(item/p)
+#. (itstool) path: item/p
+#: C/getting-ready.page:36
msgid ""
-"<link href=\"http://live.gnome.org/DeveloperTools/Installation/Fedora\"> "
-"<media type=\"image\" mime=\"image/png\" src=\"media/fedora.png\">Fedora</"
-"media> </link>"
+"<link href=\"https://wiki.gnome.org/Apps/DeveloperTools/Installation/Fedora"
+"\"> <media type=\"image\" mime=\"image/png\" src=\"media/fedora.png"
+"\">Fedora</media> </link>"
msgstr ""
-#: C/getting-ready.page:47(item/p)
+#. (itstool) path: item/p
+#: C/getting-ready.page:41
msgid ""
-"<link href=\"http://live.gnome.org/DeveloperTools/Installation/OpenSuSE\"> "
-"<media type=\"image\" mime=\"image/png\" src=\"media/opensuse.png\">OpenSuSE</"
-"media> </link>"
+"<link href=\"https://wiki.gnome.org/Apps/DeveloperTools/Installation/OpenSuSE"
+"\"> <media type=\"image\" mime=\"image/png\" src=\"media/opensuse.png"
+"\">OpenSuSE</media> </link>"
msgstr ""
-#: C/getting-ready.page:52(item/p)
+#. (itstool) path: item/p
+#: C/getting-ready.page:46
+#, fuzzy
+#| msgid ""
+#| "<link href=\"http://developer.gnome.org/gio/stable/GFile.html\">GFile</"
+#| "link>"
msgid ""
-"<link href=\"http://live.gnome.org/DeveloperTools/Installation\">Others</link>"
+"<link href=\"https://wiki.gnome.org/Apps/DeveloperTools/Installation"
+"\">Others</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gio/stable/GFile.html\">GFile</link>"
-#: C/getting-ready.page:59(section/title)
+#. (itstool) path: section/title
+#: C/getting-ready.page:53
msgid "Required versions"
msgstr "Erforderliche Versionen"
-#: C/getting-ready.page:60(section/p)
+#. (itstool) path: section/p
+#: C/getting-ready.page:54
msgid ""
"The guides assume that you have at least the following versions of the tools "
"installed:"
msgstr ""
-#: C/getting-ready.page:63(item/p)
+#. (itstool) path: item/p
+#: C/getting-ready.page:57
msgid "Anjuta - 3.0"
msgstr "Anjuta - 3.0"
-#: C/getting-ready.page:64(item/p)
+#. (itstool) path: item/p
+#: C/getting-ready.page:58
msgid "Devhelp - 3.0"
msgstr "Devhelp - 3.0"
-#: C/getting-ready.page:65(item/p)
+#. (itstool) path: item/p
+#: C/getting-ready.page:59
msgid "Glade - 3.10"
msgstr "Glade - 3.10"
-#: C/getting-ready.page:67(section/p)
+#. (itstool) path: section/p
+#: C/getting-ready.page:61
msgid ""
"Of course, any newer version will also work. Now, we wish you a lot of fun "
"with the <link xref=\"index\">Demos</link>."
msgstr ""
-"Natürlich wird auch jede neuere Version funktionieren. Wir wünschen Ihnen nun "
-"viel Spaß mit den <link xref=\"index\">Demos</link>."
+"Natürlich wird auch jede neuere Version funktionieren. Wir wünschen Ihnen "
+"nun viel Spaß mit den <link xref=\"index\">Demos</link>."
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/gmenu.c.page:21(media)
+#: C/gmenu.c.page:21
msgctxt "_"
msgid "external ref='media/gmenu.c.png' md5='f305fc3cae8d16d72b734ee53b559e33'"
-msgstr "external ref='media/gmenu.c.png' md5='f305fc3cae8d16d72b734ee53b559e33'"
+msgstr ""
+"external ref='media/gmenu.c.png' md5='f305fc3cae8d16d72b734ee53b559e33'"
-#: C/gmenu.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/gmenu.c.page:7
msgctxt "text"
msgid "GMenu (C)"
msgstr ""
-#: C/gmenu.c.page:17(info/desc) C/gmenu.js.page:17(info/desc)
-#: C/gmenu.vala.page:23(info/desc)
+#. (itstool) path: info/desc
+#: C/gmenu.c.page:17 C/gmenu.js.page:17 C/gmenu.vala.page:23
msgid "A simple implementation of GMenuModel"
msgstr ""
-#: C/gmenu.c.page:20(page/title) C/gmenu.js.page:20(page/title)
-#: C/gmenu.py.page:28(page/title) C/gmenu.vala.page:26(page/title)
+#. (itstool) path: page/title
+#: C/gmenu.c.page:20 C/gmenu.js.page:20 C/gmenu.py.page:28
+#: C/gmenu.vala.page:26
msgid "GMenu"
msgstr ""
-#: C/gmenu.c.page:22(page/p) C/gmenu.js.page:22(page/p)
-#: C/gmenu.py.page:30(page/p) C/gmenu.vala.page:34(page/p)
+#. (itstool) path: page/p
+#: C/gmenu.c.page:22 C/gmenu.js.page:22 C/gmenu.py.page:30
+#: C/gmenu.vala.page:34
msgid "A GtkApplication with a simple GMenu and SimpleActions"
msgstr ""
-#: C/gmenu.c.page:25(page/code)
+#. (itstool) path: page/code
+#: C/gmenu.c.page:25
#, no-wrap
msgid ""
"\n"
@@ -8332,22 +9967,26 @@ msgid ""
"}\n"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/gmenu.js.page:21(media)
+#: C/gmenu.js.page:21
msgctxt "_"
-msgid "external ref='media/gmenu.js.png' md5='16b8bee122197771ec8498dac42f196b'"
+msgid ""
+"external ref='media/gmenu.js.png' md5='16b8bee122197771ec8498dac42f196b'"
msgstr ""
"external ref='media/gmenu.js.png' md5='16b8bee122197771ec8498dac42f196b'"
-#: C/gmenu.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/gmenu.js.page:7
msgctxt "text"
msgid "GMenu (JavaScript)"
msgstr "GMenu (JavaScript)"
-#: C/gmenu.js.page:24(page/code)
+#. (itstool) path: page/code
+#: C/gmenu.js.page:24
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -8441,26 +10080,31 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/gmenu.py.page:29(media)
+#: C/gmenu.py.page:29
msgctxt "_"
-msgid "external ref='media/gmenu.py.png' md5='52c68b34d5d566f37e9f803dedb6353a'"
+msgid ""
+"external ref='media/gmenu.py.png' md5='52c68b34d5d566f37e9f803dedb6353a'"
msgstr ""
"external ref='media/gmenu.py.png' md5='52c68b34d5d566f37e9f803dedb6353a'"
-#: C/gmenu.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/gmenu.py.page:7
msgctxt "text"
msgid "GMenu (Python)"
msgstr "GMenu (Python)"
-#: C/gmenu.py.page:25(info/desc)
+#. (itstool) path: info/desc
+#: C/gmenu.py.page:25
msgid "A simple implementation of GMenu"
msgstr ""
-#: C/gmenu.py.page:36(section/code)
+#. (itstool) path: section/code
+#: C/gmenu.py.page:36
#, no-wrap
msgid ""
"\n"
@@ -8468,11 +10112,15 @@ msgid ""
"from gi.repository import Gio\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"GMenu Example\", application=app)\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -8480,7 +10128,7 @@ msgid ""
" win = MyWindow(self)\n"
" win.show_all()\n"
"\n"
-" def do_startup (self):\n"
+" def do_startup(self):\n"
" # start the application\n"
" Gtk.Application.do_startup(self)\n"
"\n"
@@ -8528,37 +10176,43 @@ msgid ""
"sys.exit(exit_status)\n"
msgstr ""
-#: C/gmenu.py.page:41(section/title)
+#. (itstool) path: section/title
+#: C/gmenu.py.page:41
msgid "Useful methods for a GSimpleAction and a GMenu"
msgstr ""
-#: C/gmenu.py.page:43(section/p)
+#. (itstool) path: section/p
+#: C/gmenu.py.page:43
msgid ""
"In line 33 the signal <code>\"activate\"</code> from the action "
-"<code>new_action</code> (not the menu!) is connected to the callback function "
-"<code>new_cb()</code> using <code><var>action</var>.connect(<var>signal</"
-"var>, <var>callback function</var>)</code>. See <link xref=\"signals-"
-"callbacks.py\"/> for a more detailed explanation."
+"<code>new_action</code> (not the menu!) is connected to the callback "
+"function <code>new_cb()</code> using <code><var>action</var>."
+"connect(<var>signal</var>, <var>callback function</var>)</code>. See <link "
+"xref=\"signals-callbacks.py\"/> for a more detailed explanation."
msgstr ""
-#: C/gmenu.py.page:45(section/p)
+#. (itstool) path: section/p
+#: C/gmenu.py.page:45
msgid "Useful methods for a GSimpleAction:"
msgstr ""
-#: C/gmenu.py.page:47(item/p)
+#. (itstool) path: item/p
+#: C/gmenu.py.page:47
msgid ""
-"To create a new action that is <em>stateless</em>, that is, an action that do "
-"not retain or depend on a state given by the action itself, use"
+"To create a new action that is <em>stateless</em>, that is, an action that "
+"do not retain or depend on a state given by the action itself, use"
msgstr ""
-#: C/gmenu.py.page:48(item/code)
+#. (itstool) path: item/code
+#: C/gmenu.py.page:48
#, no-wrap
msgid ""
"\n"
"action = Gio.SimpleAction.new(\"name\", parameter_type)"
msgstr ""
-#: C/gmenu.py.page:50(item/p)
+#. (itstool) path: item/p
+#: C/gmenu.py.page:50
msgid ""
"where <code>\"name\"</code> is the name of the action and "
"<code>parameter_type</code> is the type of the parameters that the action "
@@ -8569,30 +10223,34 @@ msgid ""
"create a new <em>stateful</em> (i.e. not stateless) action, use"
msgstr ""
-#: C/gmenu.py.page:51(item/code)
+#. (itstool) path: item/code
+#: C/gmenu.py.page:51
#, no-wrap
msgid ""
"\n"
"action = Gio.SimpleAction.new_stateful(\"name\", parameter_type, initial_state)"
msgstr ""
-#: C/gmenu.py.page:53(item/p)
+#. (itstool) path: item/p
+#: C/gmenu.py.page:53
msgid ""
"where <code>initial_state</code> is defined as a GVariant - for instance "
-"<code>Glib.Variant.new_string('start')</code>; for a list of possiblities see "
-"<link href=\"http://developer.gnome.org/glib/unstable/glib-GVariant.html"
+"<code>Glib.Variant.new_string('start')</code>; for a list of possiblities "
+"see <link href=\"http://developer.gnome.org/glib/unstable/glib-GVariant.html"
"\">here</link>."
msgstr ""
-#: C/gmenu.py.page:54(item/p)
+#. (itstool) path: item/p
+#: C/gmenu.py.page:54
msgid ""
"<code>set_enabled(True)</code> sets the action as enabled; an action must be "
"enabled in order to be activated or in order to have its state changed from "
-"outside callers. This should only be called by the implementor of the action. "
-"Users of the action should not attempt to modify its enabled flag."
+"outside callers. This should only be called by the implementor of the "
+"action. Users of the action should not attempt to modify its enabled flag."
msgstr ""
-#: C/gmenu.py.page:55(item/p)
+#. (itstool) path: item/p
+#: C/gmenu.py.page:55
msgid ""
"<code>set_state(state)</code>, where <code>state</code> is a GVariant, sets "
"the state of the action, updating the 'state' property to the given value. "
@@ -8601,11 +10259,13 @@ msgid ""
"<code>state</code> is as above) to request the change."
msgstr ""
-#: C/gmenu.py.page:58(section/p)
+#. (itstool) path: section/p
+#: C/gmenu.py.page:58
msgid "Useful methods for a GMenu:"
msgstr ""
-#: C/gmenu.py.page:60(item/p)
+#. (itstool) path: item/p
+#: C/gmenu.py.page:60
msgid ""
"To insert an item in the menu in position <code>position</code>, use "
"<code>insert(position, label, detailed_action)</code>, where <code>label</"
@@ -8615,21 +10275,25 @@ msgid ""
"<link xref=\"menubar.py#win-app\"/>."
msgstr ""
-#: C/gmenu.py.page:61(item/p)
+#. (itstool) path: item/p
+#: C/gmenu.py.page:61
msgid ""
-"To append or prepend an item in the menu use respectively <code>append(label, "
-"detailed_action)</code> and <code>prepend(label, detailed_action)</code>."
+"To append or prepend an item in the menu use respectively "
+"<code>append(label, detailed_action)</code> and <code>prepend(label, "
+"detailed_action)</code>."
msgstr ""
-#: C/gmenu.py.page:62(item/p)
+#. (itstool) path: item/p
+#: C/gmenu.py.page:62
msgid ""
-"Another way of adding items to the menu is to create them as <code>GMenuItem</"
-"code>s and use <code>insert_item(position, item)</code>, <code>append_item"
-"(item)</code>, or <code>prepend_item(item)</code>; so for instance we might "
-"have:"
+"Another way of adding items to the menu is to create them as "
+"<code>GMenuItem</code>s and use <code>insert_item(position, item)</code>, "
+"<code>append_item(item)</code>, or <code>prepend_item(item)</code>; so for "
+"instance we might have:"
msgstr ""
-#: C/gmenu.py.page:63(item/code)
+#. (itstool) path: item/code
+#: C/gmenu.py.page:63
#, no-wrap
msgid ""
"\n"
@@ -8637,72 +10301,83 @@ msgid ""
"menu.append_item(about)"
msgstr ""
-#: C/gmenu.py.page:67(item/p)
+#. (itstool) path: item/p
+#: C/gmenu.py.page:67
msgid ""
-"We can also add a whole subsection in a menu using <code>insert_section"
-"(position, label, section)</code>, <code>append_section(label, section)</"
-"code>, or <code>prepend_section(label, section)</code>, where <code>label</"
-"code> is the title of the subsection."
+"We can also add a whole subsection in a menu using "
+"<code>insert_section(position, label, section)</code>, "
+"<code>append_section(label, section)</code>, or <code>prepend_section(label, "
+"section)</code>, where <code>label</code> is the title of the subsection."
msgstr ""
-#: C/gmenu.py.page:68(item/p)
+#. (itstool) path: item/p
+#: C/gmenu.py.page:68
msgid ""
-"To add a submenu that will expand and collapse, use <code>insert_submenu"
-"(position, label, section)</code>, <code>append_submenu(label, section)</"
-"code>, or <code>prepend_submenu(label, section)</code>, where <code>label</"
-"code> is the title of the subsection."
+"To add a submenu that will expand and collapse, use "
+"<code>insert_submenu(position, label, section)</code>, "
+"<code>append_submenu(label, section)</code>, or <code>prepend_submenu(label, "
+"section)</code>, where <code>label</code> is the title of the subsection."
msgstr ""
-#: C/gmenu.py.page:69(item/p)
+#. (itstool) path: item/p
+#: C/gmenu.py.page:69
msgid "To remove an item from the menu, use <code>remove(postion)</code>."
msgstr ""
-#: C/gmenu.py.page:70(item/p)
+#. (itstool) path: item/p
+#: C/gmenu.py.page:70
msgid "To set a label for the menu, use <code>set_label(label)</code>."
msgstr ""
-#: C/gmenu.py.page:81(item/p)
+#. (itstool) path: item/p
+#: C/gmenu.py.page:81
msgid ""
"<link href=\"http://developer.gnome.org/glib/unstable/glib-GVariantType.html"
"\">GVariantType</link>"
msgstr ""
-#: C/gmenu.py.page:82(item/p)
+#. (itstool) path: item/p
+#: C/gmenu.py.page:82
msgid ""
"<link href=\"http://developer.gnome.org/glib/unstable/glib-GVariant.html"
"\">GVariant</link>"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/gmenu.vala.page:27(media)
+#: C/gmenu.vala.page:27
msgctxt "_"
msgid ""
"external ref='media/gmenu.vala.png' md5='7a9f381fc3ed5bf8d1c50d2acb095400'"
msgstr ""
"external ref='media/gmenu.vala.png' md5='7a9f381fc3ed5bf8d1c50d2acb095400'"
-#: C/gmenu.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/gmenu.vala.page:7
msgctxt "text"
msgid "GMenu (Vala)"
msgstr ""
-#: C/gmenu.vala.page:29(note/p)
+#. (itstool) path: note/p
+#: C/gmenu.vala.page:29
msgid ""
"<em style=\"strong\">You need to be running GTK+-3.4 or later for this to "
"work</em>"
msgstr ""
-#: C/gmenu.vala.page:32(note/p)
+#. (itstool) path: note/p
+#: C/gmenu.vala.page:32
msgid ""
-"This program will not compile with the quit action connected until <link href="
-"\"https://bugzilla.gnome.org/show_bug.cgi?id=674090\">Bug #674090</link> is "
-"fixed. Therefore, the problematic line has been commented out."
+"This program will not compile with the quit action connected until <link "
+"href=\"https://bugzilla.gnome.org/show_bug.cgi?id=674090\">Bug #674090</"
+"link> is fixed. Therefore, the problematic line has been commented out."
msgstr ""
-#: C/gmenu.vala.page:36(page/code)
+#. (itstool) path: page/code
+#: C/gmenu.vala.page:36
#, no-wrap
msgid ""
"/* A window in the application. */\n"
@@ -8767,68 +10442,75 @@ msgid ""
"}\n"
msgstr ""
-#: C/gmenu.vala.page:43(item/p)
+#. (itstool) path: item/p
+#: C/gmenu.vala.page:43
msgid ""
"<link href=\"http://www.valadoc.org/gio-2.0/GLib.Menu.Menu.html\">Menu</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gio-2.0/GLib.Menu.Menu.html\">Menu</link>"
-#: C/gmenu.vala.page:44(item/p)
+#. (itstool) path: item/p
+#: C/gmenu.vala.page:44
msgid ""
"<link href=\"http://www.valadoc.org/gio-2.0/GLib.Menu.append.html\">append</"
"link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gio-2.0/GLib.Menu.append.html\">append</"
+"link>"
-#: C/gmenu.vala.page:45(item/p)
+#. (itstool) path: item/p
+#: C/gmenu.vala.page:45
msgid ""
"<link href=\"http://www.valadoc.org/gio-2.0/GLib.SimpleAction.html"
"\">SimpleAction</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gio-2.0/GLib.SimpleAction.html"
+"\">SimpleAction</link>"
-#: C/gmenu.vala.page:46(item/p)
+#. (itstool) path: item/p
+#: C/gmenu.vala.page:46
msgid ""
"<link href=\"http://www.valadoc.org/gio-2.0/GLib.ActionMap.add_action.html"
"\">add_action</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gio-2.0/GLib.ActionMap.add_action.html"
+"\">add_action</link>"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/grid.c.page:22(media) C/grid.js.page:25(media) C/grid.vala.page:23(media)
+#: C/grid.c.page:22 C/grid.js.page:25 C/grid.vala.page:23
msgctxt "_"
msgid "external ref='media/grid.png' md5='27d45da115401127456a3b854dcfc5be'"
msgstr "external ref='media/grid.png' md5='27d45da115401127456a3b854dcfc5be'"
-#: C/grid.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/grid.c.page:7
+#, fuzzy
msgctxt "text"
msgid "Grid (C)"
-msgstr ""
+msgstr "Raster"
-#: C/grid.c.page:17(info/desc) C/grid.js.page:21(info/desc)
-#: C/grid.py.page:25(info/desc) C/grid.vala.page:19(info/desc)
+#. (itstool) path: info/desc
+#: C/grid.c.page:17 C/grid.js.page:21 C/grid.py.page:25 C/grid.vala.page:19
msgid "Pack widgets in rows and columns"
msgstr ""
-#: C/grid.c.page:20(page/title) C/grid.js.page:24(page/title)
-#: C/grid.py.page:28(page/title)
+#. (itstool) path: page/title
+#: C/grid.c.page:20 C/grid.js.page:24 C/grid.py.page:28
+#, fuzzy
msgid "Grid"
-msgstr ""
+msgstr "Raster"
-#: C/grid.c.page:23(page/p) C/grid.vala.page:24(page/p)
+#. (itstool) path: page/p
+#: C/grid.c.page:23 C/grid.vala.page:24
msgid "A button widget connected to a progress bar."
msgstr ""
-#: C/grid.c.page:25(page/code)
+#. (itstool) path: page/code
+#: C/grid.c.page:25
#, no-wrap
msgid ""
"\n"
@@ -8902,24 +10584,30 @@ msgid ""
"}\n"
msgstr ""
-#: C/grid.c.page:33(item/p) C/progressbar.c.page:34(item/p)
+#. (itstool) path: item/p
+#: C/grid.c.page:33 C/progressbar.c.page:34
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkProgressBar.html"
"\">GtkProgressBar</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkProgressBar.html"
+"\">GtkProgressBar</link>"
-#: C/grid.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/grid.js.page:7
msgctxt "text"
msgid "Grid (JavaScript)"
msgstr "Grid (JavaScript)"
-#: C/grid.js.page:26(page/p)
+#. (itstool) path: page/p
+#: C/grid.js.page:26
msgid ""
"A button widget connected to a progress bar, inside of a grid which handles "
"the layout."
msgstr ""
-#: C/grid.js.page:28(page/code)
+#. (itstool) path: page/code
+#: C/grid.js.page:28
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -8996,45 +10684,96 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/grid.js.page:36(item/p)
+#. (itstool) path: item/p
+#: C/grid.js.page:36
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Grid.html"
"\">Gtk.Grid</link>"
msgstr ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Grid.html"
+"\">Gtk.Grid</link>"
-#: C/grid.js.page:37(item/p) C/progressbar.js.page:41(item/p)
+#. (itstool) path: item/p
+#: C/grid.js.page:37 C/progressbar.js.page:41
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.ProgressBar."
"html\">Gtk.ProgressBar</link>"
msgstr ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.ProgressBar."
+"html\">Gtk.ProgressBar</link>"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/grid.py.page:30(media)
+#: C/grid.py.page:30
msgctxt "_"
msgid ""
"external ref='media/grid_simple.png' md5='c806f2e69b30373d4d2e08b41d6cc1f6'"
msgstr ""
"external ref='media/grid_simple.png' md5='c806f2e69b30373d4d2e08b41d6cc1f6'"
-#: C/grid.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/grid.py.page:7
msgctxt "text"
msgid "Grid (Python)"
msgstr "Grid (Python)"
-#: C/grid.py.page:31(page/p)
+#. (itstool) path: page/p
+#: C/grid.py.page:31
msgid "Some labels in a grid."
msgstr ""
-#: C/grid.py.page:37(section/code)
-#, no-wrap
+#. (itstool) path: section/code
+#: C/grid.py.page:37
+#, fuzzy, no-wrap
+#| msgid ""
+#| "from gi.repository import Gtk\n"
+#| "import sys\n"
+#| "\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"ScrolledWindow Example\", application=app)\n"
+#| " self.set_default_size(200, 200)\n"
+#| "\n"
+#| " # the scrolledwindow\n"
+#| " scrolled_window = Gtk.ScrolledWindow()\n"
+#| " scrolled_window.set_border_width(10)\n"
+#| " # there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
+#| " scrolled_window.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\n"
+#| "\n"
+#| " # an image - slightly larger than the window...\n"
+#| " image = Gtk.Image()\n"
+#| " image.set_from_file(\"gnome-image.png\")\n"
+#| "\n"
+#| " # add the image to the scrolledwindow\n"
+#| " scrolled_window.add_with_viewport(image)\n"
+#| "\n"
+#| " # add the scrolledwindow to the window\n"
+#| " self.add(scrolled_window)\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " win = MyWindow(self)\n"
+#| " win.show_all()\n"
+#| "\n"
+#| " def do_startup(self):\n"
+#| " Gtk.Application.do_startup(self)\n"
+#| "\n"
+#| "app = MyApplication()\n"
+#| "exit_status = app.run(sys.argv)\n"
+#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"Grid Example\", application=app)\n"
"\n"
@@ -9055,12 +10794,15 @@ msgid ""
" # attach the second label\n"
" grid.attach(label_top_right, 1, 0, 1, 1)\n"
" # attach the third label below the first label\n"
-" grid.attach_next_to(label_bottom, label_top_left, Gtk.PositionType.BOTTOM, 2, 1)\n"
+" grid.attach_next_to(\n"
+" label_bottom, label_top_left, Gtk.PositionType.BOTTOM, 2, 1)\n"
"\n"
" # add the grid to the window\n"
" self.add(grid)\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -9072,42 +10814,87 @@ msgid ""
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
msgstr ""
+"from gi.repository import Gtk\n"
+"import sys\n"
+"\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"ScrolledWindow Example\", application=app)\n"
+" self.set_default_size(200, 200)\n"
+"\n"
+" # the scrolledwindow\n"
+" scrolled_window = Gtk.ScrolledWindow()\n"
+" scrolled_window.set_border_width(10)\n"
+" # there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
+" scrolled_window.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\n"
+"\n"
+" # an image - slightly larger than the window...\n"
+" image = Gtk.Image()\n"
+" image.set_from_file(\"gnome-image.png\")\n"
+"\n"
+" # add the image to the scrolledwindow\n"
+" scrolled_window.add_with_viewport(image)\n"
+"\n"
+" # add the scrolledwindow to the window\n"
+" self.add(scrolled_window)\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
+"\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)\n"
-#: C/grid.py.page:41(section/title)
+#. (itstool) path: section/title
+#: C/grid.py.page:41
msgid "Useful methods for a Grid widget"
msgstr ""
-#: C/grid.py.page:44(item/p)
+#. (itstool) path: item/p
+#: C/grid.py.page:44
msgid ""
-"To attach a widget <code>child</code> in position <code>left, top</code> in a "
-"slot of given <code>width, height</code> use <code>attach(child, top, left, "
-"width, height)</code>. If a widget <code>sibling</code> is already in place, "
-"we can also use <code>attach_next_to(child, sibling, side, width, height)</"
-"code>, where <code>side</code> is one of <code>Gtk.PositionType.LEFT, Gtk."
-"PositionType.RIGHT, Gtk.PositionType.TOP, Gtk.PositionType.BOTTOM</code>."
+"To attach a widget <code>child</code> in position <code>left, top</code> in "
+"a slot of given <code>width, height</code> use <code>attach(child, top, "
+"left, width, height)</code>. If a widget <code>sibling</code> is already in "
+"place, we can also use <code>attach_next_to(child, sibling, side, width, "
+"height)</code>, where <code>side</code> is one of <code>Gtk.PositionType."
+"LEFT, Gtk.PositionType.RIGHT, Gtk.PositionType.TOP, Gtk.PositionType.BOTTOM</"
+"code>."
msgstr ""
-#: C/grid.py.page:45(item/p)
+#. (itstool) path: item/p
+#: C/grid.py.page:45
msgid ""
-"<code>insert_row(position)</code> and <code>insert_column(position)</code> do "
-"exactly what they say; children which are attached at or below this position "
-"are moved one row down, and children which span across this position are "
-"grown to span the new row. <code>insert_next_to(sibling, side)</code> inserts "
-"a row or column at the specified position. The new row or column is placed "
-"next to <code>sibling</code>, on the side determined by <code>side</code>; if "
-"side is <code>Gtk.PositionType.TOP</code> or <code>Gtk.PositionType.BOTTOM</"
-"code>, a row is inserted, if side is <code>Gtk.PositionType.LEFT</code> or "
-"<code>Gtk.PositionType.RIGHT</code>, a column is inserted."
+"<code>insert_row(position)</code> and <code>insert_column(position)</code> "
+"do exactly what they say; children which are attached at or below this "
+"position are moved one row down, and children which span across this "
+"position are grown to span the new row. <code>insert_next_to(sibling, side)</"
+"code> inserts a row or column at the specified position. The new row or "
+"column is placed next to <code>sibling</code>, on the side determined by "
+"<code>side</code>; if side is <code>Gtk.PositionType.TOP</code> or <code>Gtk."
+"PositionType.BOTTOM</code>, a row is inserted, if side is <code>Gtk."
+"PositionType.LEFT</code> or <code>Gtk.PositionType.RIGHT</code>, a column is "
+"inserted."
msgstr ""
-#: C/grid.py.page:46(item/p)
+#. (itstool) path: item/p
+#: C/grid.py.page:46
msgid ""
-"<code>set_row_homogeneous(True)</code> and <code>set_column_homogeneous(True)"
-"</code> ensure that (respectively) every row or every column has the same "
-"width or height."
+"<code>set_row_homogeneous(True)</code> and "
+"<code>set_column_homogeneous(True)</code> ensure that (respectively) every "
+"row or every column has the same width or height."
msgstr ""
-#: C/grid.py.page:47(item/p)
+#. (itstool) path: item/p
+#: C/grid.py.page:47
msgid ""
"<code>set_row_spacing(spacing)</code> and <code>set_column_spacing(spacing)</"
"code> force a spacing between (respectively) rows or columns. The value of "
@@ -9115,38 +10902,49 @@ msgid ""
"value, and <code>32767</code>."
msgstr ""
-#: C/grid.py.page:58(item/p) C/label.py.page:89(item/p)
-#: C/separator.py.page:41(item/p) C/switch.py.page:45(item/p)
+#. (itstool) path: item/p
+#: C/grid.py.page:58 C/label.py.page:89 C/separator.c.page:40
+#: C/separator.py.page:41 C/switch.py.page:45
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkLabel.html"
"\">GtkLabel</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkLabel.html"
+"\">GtkLabel</link>"
-#: C/grid.py.page:59(item/p) C/image.py.page:102(item/p)
-#: C/paned.py.page:43(item/p) C/scrolledwindow.py.page:46(item/p)
+#. (itstool) path: item/p
+#: C/grid.py.page:59 C/image.py.page:102 C/paned.c.page:37 C/paned.py.page:43
+#: C/scrolledwindow.py.page:46
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkImage.html"
"\">GtkImage</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkImage.html"
+"\">GtkImage</link>"
-#: C/grid.py.page:60(item/p) C/radiobutton.py.page:49(item/p)
-#: C/separator.py.page:40(item/p) C/switch.py.page:46(item/p)
-#: C/toolbar_builder.py.page:195(item/p)
+#. (itstool) path: item/p
+#: C/grid.py.page:60 C/radiobutton.py.page:49 C/separator.c.page:39
+#: C/separator.py.page:40 C/switch.py.page:46 C/toolbar_builder.py.page:195
msgid ""
-"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkGrid.html\">GtkGrid</"
-"link>"
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkGrid.html"
+"\">GtkGrid</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkGrid.html"
+"\">GtkGrid</link>"
-#: C/grid.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/grid.vala.page:7
msgctxt "text"
msgid "Grid (Vala)"
msgstr "Grid (Vala)"
-#: C/grid.vala.page:22(page/title)
+#. (itstool) path: page/title
+#: C/grid.vala.page:22
msgid "Grid widget"
msgstr "Grid-Widget"
-#: C/grid.vala.page:26(page/code)
+#. (itstool) path: page/code
+#: C/grid.vala.page:26
#, no-wrap
msgid ""
"public class MyWindow : Gtk.ApplicationWindow {\n"
@@ -9191,81 +10989,50 @@ msgid ""
"}\n"
msgstr ""
-#: C/grid.vala.page:31(item/p)
+#. (itstool) path: item/p
+#: C/grid.vala.page:31
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Grid.html\">Gtk.Grid</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Grid.html\">Gtk.Grid</link>"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/GtkApplicationWindow.c.page:21(media)
-#: C/GtkApplicationWindow.js.page:21(media)
-#: C/GtkApplicationWindow.py.page:28(media)
-#: C/GtkApplicationWindow.vala.page:21(media) C/window.c.page:21(media)
-#: C/window.js.page:24(media) C/window.py.page:32(media)
-#: C/window.vala.page:24(media)
+#: C/GtkApplicationWindow.c.page:21 C/GtkApplicationWindow.js.page:21
+#: C/GtkApplicationWindow.py.page:28 C/GtkApplicationWindow.vala.page:21
+#: C/window.c.page:21 C/window.js.page:24 C/window.py.page:32
+#: C/window.vala.page:24
msgctxt "_"
msgid "external ref='media/window.png' md5='eb0cde3530978619c25bddfaeb453345'"
msgstr "external ref='media/window.png' md5='eb0cde3530978619c25bddfaeb453345'"
-#: C/GtkApplicationWindow.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/GtkApplicationWindow.c.page:7
msgctxt "text"
msgid "ApplicationWindow (C)"
msgstr ""
-#: C/GtkApplicationWindow.c.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/GtkApplicationWindow.c.page:17
msgid "A toplevel window which can contain other widgets, and support GMenu"
msgstr ""
-#: C/GtkApplicationWindow.c.page:20(page/title)
-#: C/GtkApplicationWindow.js.page:20(page/title)
-#: C/GtkApplicationWindow.py.page:27(page/title)
-#: C/GtkApplicationWindow.vala.page:20(page/title)
+#. (itstool) path: page/title
+#: C/GtkApplicationWindow.c.page:20 C/GtkApplicationWindow.js.page:20
+#: C/GtkApplicationWindow.py.page:27 C/GtkApplicationWindow.vala.page:20
msgid "ApplicationWindow"
msgstr ""
-#: C/GtkApplicationWindow.c.page:22(page/p)
+#. (itstool) path: page/p
+#: C/GtkApplicationWindow.c.page:22
msgid "A minimal GtkApplication with a GtkApplicationWindow"
msgstr ""
-#: C/GtkApplicationWindow.c.page:24(page/code)
+#. (itstool) path: page/code
+#: C/GtkApplicationWindow.c.page:24
#, no-wrap
msgid ""
"#include <gtk/gtk.h>\n"
@@ -9294,29 +11061,60 @@ msgid ""
" return status;\n"
"}\n"
msgstr ""
+"#include <gtk/gtk.h>\n"
+"\n"
+"static void\n"
+"activate (GtkApplication *app,\n"
+" gpointer user_data)\n"
+"{\n"
+" GtkWidget *window;\n"
+"\n"
+" window = gtk_application_window_new (app);\n"
+" gtk_window_set_title (GTK_WINDOW (window), \"Hello GNOME\");\n"
+" gtk_widget_show_all (window);\n"
+"}\n"
+"\n"
+"int\n"
+"main (int argc, char **argv)\n"
+"{\n"
+" GtkApplication *app;\n"
+" int status;\n"
+"\n"
+" app = gtk_application_new (\"org.gtk.example\", G_APPLICATION_FLAGS_NONE);\n"
+" g_signal_connect (app, \"activate\", G_CALLBACK (activate), NULL);\n"
+" status = g_application_run (G_APPLICATION (app), argc, argv);\n"
+" g_object_unref (app);\n"
+" return status;\n"
+"}\n"
-#: C/GtkApplicationWindow.c.page:30(item/p)
+#. (itstool) path: item/p
+#: C/GtkApplicationWindow.c.page:30
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/3.4/GtkApplicationWindow.html"
"\">GtkApplicationWindow</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/3.4/GtkApplicationWindow.html"
+"\">GtkApplicationWindow</link>"
-#: C/GtkApplicationWindow.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/GtkApplicationWindow.js.page:7
msgctxt "text"
msgid "ApplicationWindow (JavaScript)"
msgstr ""
-#: C/GtkApplicationWindow.js.page:17(info/desc)
-#: C/GtkApplicationWindow.py.page:24(info/desc)
-#: C/GtkApplicationWindow.vala.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/GtkApplicationWindow.js.page:17 C/GtkApplicationWindow.py.page:24
+#: C/GtkApplicationWindow.vala.page:17
msgid "GtkWindow subclass with GtkApplication support"
msgstr ""
-#: C/GtkApplicationWindow.js.page:22(page/p)
+#. (itstool) path: page/p
+#: C/GtkApplicationWindow.js.page:22
msgid "A simple GtkApplicationWindow which can support Menus."
msgstr ""
-#: C/GtkApplicationWindow.js.page:24(page/code)
+#. (itstool) path: page/code
+#: C/GtkApplicationWindow.js.page:24
#, no-wrap
msgid ""
"\n"
@@ -9371,31 +11169,38 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/GtkApplicationWindow.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/GtkApplicationWindow.py.page:7
msgctxt "text"
msgid "ApplicationWindow (Python)"
msgstr ""
-#: C/GtkApplicationWindow.py.page:29(page/p)
-#: C/GtkApplicationWindow.vala.page:22(page/p)
+#. (itstool) path: page/p
+#: C/GtkApplicationWindow.py.page:29 C/GtkApplicationWindow.vala.page:22
msgid "The simplest GtkApplication Window which can support Menus."
msgstr ""
-#: C/GtkApplicationWindow.py.page:36(section/code)
+#. (itstool) path: section/code
+#: C/GtkApplicationWindow.py.page:36
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
"# a Gtk ApplicationWindow\n"
+"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
" # constructor: the title is \"Welcome to GNOME\" and the window belongs\n"
" # to the application app\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
" # constructor of the Gtk Application\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -9420,30 +11225,35 @@ msgid ""
"sys.exit(exit_status)\n"
msgstr ""
-#: C/GtkApplicationWindow.py.page:40(section/title)
+#. (itstool) path: section/title
+#: C/GtkApplicationWindow.py.page:40
msgid "Useful methods for a Gtk.ApplicationWindow widget"
msgstr ""
-#: C/GtkApplicationWindow.py.page:43(item/p) C/window.py.page:53(item/p)
+#. (itstool) path: item/p
+#: C/GtkApplicationWindow.py.page:43 C/window.py.page:53
msgid ""
"<code>set_default_size(200, 100)</code> sets the default size of the window "
"to a width of <code>200</code> and a height of <code>100</code>; if instead "
"of a positive number we pass <code>-1</code> we have the default size."
msgstr ""
-#: C/GtkApplicationWindow.py.page:44(item/p) C/window.py.page:54(item/p)
+#. (itstool) path: item/p
+#: C/GtkApplicationWindow.py.page:44 C/window.py.page:54
msgid ""
"<code>set_position(Gtk.WindowPosition.CENTER)</code> centers the window. "
"Other options are <code>Gtk.WindowPosition.NONE, Gtk.WindowPosition.MOUSE, "
"Gtk.WindowPosition.CENTER_ALWAYS, Gtk.WindowPosition.CENTER_ON_PARENT</code>."
msgstr ""
-#: C/GtkApplicationWindow.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/GtkApplicationWindow.vala.page:7
msgctxt "text"
msgid "ApplicationWindow (Vala)"
msgstr ""
-#: C/GtkApplicationWindow.vala.page:24(page/code)
+#. (itstool) path: page/code
+#: C/GtkApplicationWindow.vala.page:24
#, no-wrap
msgid ""
"\n"
@@ -9464,66 +11274,34 @@ msgid ""
"}\n"
msgstr ""
-#: C/GtkApplicationWindow.vala.page:30(item/p) C/label.vala.page:30(item/p)
+#. (itstool) path: item/p
+#: C/GtkApplicationWindow.vala.page:30 C/label.vala.page:30
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Application.html.content.tpl"
"\">Gtk.Application</link>"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/guitar-tuner.c.page:44(media) C/guitar-tuner.cpp.page:42(media)
-#: C/guitar-tuner.js.page:36(media) C/guitar-tuner.py.page:49(media)
-#: C/guitar-tuner.vala.page:47(media)
+#: C/guitar-tuner.c.page:44 C/guitar-tuner.cpp.page:42
+#: C/guitar-tuner.js.page:36 C/guitar-tuner.py.page:49
+#: C/guitar-tuner.vala.page:47
msgctxt "_"
msgid ""
"external ref='media/guitar-tuner.png' md5='35e615e0f5e293671d00c5c414ac2f6b'"
msgstr ""
"external ref='media/guitar-tuner.png' md5='35e615e0f5e293671d00c5c414ac2f6b'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/guitar-tuner.c.page:99(media) C/guitar-tuner.cpp.page:93(media)
-#: C/guitar-tuner.py.page:100(media) C/guitar-tuner.vala.page:100(media)
+#: C/guitar-tuner.c.page:99 C/guitar-tuner.cpp.page:93
+#: C/guitar-tuner.py.page:100 C/guitar-tuner.vala.page:100
msgctxt "_"
msgid ""
"external ref='media/guitar-tuner-glade.png' "
@@ -9531,33 +11309,14 @@ msgid ""
msgstr ""
"@@image: 'media/guitar-tuner-glade.png'; md5=f6606525443ab2160f53a87a454364d0"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/guitar-tuner.c.page:144(media) C/guitar-tuner.cpp.page:122(media)
-#: C/guitar-tuner.js.page:42(media) C/guitar-tuner.py.page:143(media)
-#: C/guitar-tuner.vala.page:134(media)
+#: C/guitar-tuner.c.page:144 C/guitar-tuner.cpp.page:122
+#: C/guitar-tuner.js.page:42 C/guitar-tuner.py.page:143
+#: C/guitar-tuner.vala.page:134
msgctxt "_"
msgid ""
"external ref='media/guitar-tuner-pipeline.png' "
@@ -9566,126 +11325,142 @@ msgstr ""
"@@image: 'media/guitar-tuner-pipeline.png'; "
"md5=5adc952909d92af5dae6954781b4ad5f"
-#: C/guitar-tuner.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/guitar-tuner.c.page:7
msgctxt "text"
msgid "Guitar tuner (C)"
msgstr "Gitarrenstimmgerät (C)"
-#: C/guitar-tuner.c.page:10(info/desc) C/guitar-tuner.py.page:10(info/desc)
+#. (itstool) path: info/desc
+#: C/guitar-tuner.c.page:10 C/guitar-tuner.py.page:10
msgid ""
"Use GTK+ and GStreamer to build a simple guitar tuner application for GNOME. "
"Shows off how to use the interface designer."
msgstr ""
-#: C/guitar-tuner.c.page:28(page/title) C/guitar-tuner.cpp.page:26(page/title)
-#: C/guitar-tuner.js.page:19(page/title) C/guitar-tuner.py.page:33(page/title)
-#: C/guitar-tuner.vala.page:31(page/title)
+#. (itstool) path: credit/name
+#: C/guitar-tuner.c.page:18 C/guitar-tuner.cpp.page:16
+#: C/guitar-tuner.py.page:18 C/guitar-tuner.vala.page:17
+#: C/image-viewer.c.page:18 C/image-viewer.cpp.page:16
+#: C/image-viewer.js.page:18 C/image-viewer.py.page:18
+#: C/image-viewer.vala.page:18 C/index.page:17 C/magic-mirror.vala.page:18
+#: C/photo-wall.c.page:17 C/record-collection.js.page:18
+msgid "Johannes Schmid"
+msgstr "Johannes Schmid"
+
+#. (itstool) path: page/title
+#: C/guitar-tuner.c.page:28 C/guitar-tuner.cpp.page:26
+#: C/guitar-tuner.js.page:19 C/guitar-tuner.py.page:33
+#: C/guitar-tuner.vala.page:31
msgid "Guitar tuner"
msgstr "Gitarrenstimmgerät"
-#: C/guitar-tuner.c.page:31(synopsis/p) C/guitar-tuner.cpp.page:29(synopsis/p)
-#: C/guitar-tuner.py.page:36(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/guitar-tuner.c.page:31 C/guitar-tuner.cpp.page:29
+#: C/guitar-tuner.py.page:36
msgid ""
"In this tutorial, we're going to make a program which plays tones that you "
"can use to tune a guitar. You will learn how to:"
msgstr ""
-#: C/guitar-tuner.c.page:33(item/p) C/guitar-tuner.cpp.page:31(item/p)
-#: C/guitar-tuner.py.page:38(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:33 C/guitar-tuner.cpp.page:31
+#: C/guitar-tuner.py.page:38
msgid "Set up a basic project in Anjuta"
msgstr ""
-#: C/guitar-tuner.c.page:34(item/p) C/guitar-tuner.cpp.page:32(item/p)
-#: C/guitar-tuner.py.page:39(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:34 C/guitar-tuner.cpp.page:32
+#: C/guitar-tuner.py.page:39
msgid "Create a simple GUI with Anjuta's UI designer"
msgstr ""
-#: C/guitar-tuner.c.page:35(item/p) C/guitar-tuner.cpp.page:33(item/p)
-#: C/guitar-tuner.py.page:40(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:35 C/guitar-tuner.cpp.page:33
+#: C/guitar-tuner.py.page:40
msgid "Use GStreamer to play sounds"
msgstr ""
-#: C/guitar-tuner.c.page:37(synopsis/p) C/guitar-tuner.cpp.page:35(synopsis/p)
-#: C/guitar-tuner.py.page:42(synopsis/p)
-#: C/guitar-tuner.vala.page:40(synopsis/p)
-#: C/image-viewer.js.page:38(synopsis/p) C/image-viewer.py.page:38(synopsis/p)
-#: C/image-viewer.vala.page:45(synopsis/p)
-#: C/magic-mirror.vala.page:38(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/guitar-tuner.c.page:37 C/guitar-tuner.cpp.page:35
+#: C/guitar-tuner.py.page:42 C/guitar-tuner.vala.page:40
+#: C/image-viewer.js.page:38 C/image-viewer.py.page:38
+#: C/image-viewer.vala.page:45 C/magic-mirror.vala.page:38
msgid "You'll need the following to be able to follow this tutorial:"
msgstr ""
-#: C/guitar-tuner.c.page:39(item/p) C/guitar-tuner.cpp.page:37(item/p)
-#: C/guitar-tuner.py.page:44(item/p) C/image-viewer.js.page:40(item/p)
-#: C/image-viewer.py.page:40(item/p) C/magic-mirror.vala.page:40(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:39 C/guitar-tuner.cpp.page:37
+#: C/guitar-tuner.py.page:44 C/image-viewer.js.page:40
+#: C/image-viewer.py.page:40 C/magic-mirror.vala.page:40
msgid "An installed copy of the <link xref=\"getting-ready\">Anjuta IDE</link>"
msgstr ""
-#: C/guitar-tuner.c.page:40(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:40
msgid "Basic knowledge of the C programming language"
msgstr ""
-#: C/guitar-tuner.c.page:47(section/title)
-#: C/guitar-tuner.cpp.page:45(section/title)
-#: C/guitar-tuner.py.page:52(section/title)
-#: C/image-viewer.c.page:41(section/title)
-#: C/image-viewer.cpp.page:39(section/title)
-#: C/image-viewer.js.page:49(section/title)
-#: C/image-viewer.py.page:48(section/title)
-#: C/image-viewer.vala.page:56(section/title)
-#: C/magic-mirror.vala.page:49(section/title)
-#: C/message-board.c.page:45(section/title)
-#: C/photo-wall.c.page:51(section/title)
-#: C/record-collection.js.page:52(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.c.page:47 C/guitar-tuner.cpp.page:45
+#: C/guitar-tuner.py.page:52 C/image-viewer.c.page:41
+#: C/image-viewer.cpp.page:39 C/image-viewer.js.page:49
+#: C/image-viewer.py.page:48 C/image-viewer.vala.page:56
+#: C/magic-mirror.vala.page:49 C/message-board.c.page:45
+#: C/photo-wall.c.page:51 C/record-collection.js.page:52
msgid "Create a project in Anjuta"
msgstr ""
-#: C/guitar-tuner.c.page:48(section/p) C/guitar-tuner.cpp.page:46(section/p)
-#: C/guitar-tuner.py.page:53(section/p) C/guitar-tuner.vala.page:51(section/p)
-#: C/image-viewer.c.page:42(section/p) C/image-viewer.cpp.page:40(section/p)
-#: C/image-viewer.js.page:50(section/p) C/image-viewer.py.page:49(section/p)
-#: C/image-viewer.vala.page:57(section/p)
-#: C/magic-mirror.vala.page:50(section/p) C/photo-wall.c.page:52(section/p)
-#: C/record-collection.js.page:53(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:48 C/guitar-tuner.cpp.page:46
+#: C/guitar-tuner.py.page:53 C/guitar-tuner.vala.page:51
+#: C/image-viewer.c.page:42 C/image-viewer.cpp.page:40
+#: C/image-viewer.js.page:50 C/image-viewer.py.page:49
+#: C/image-viewer.vala.page:57 C/magic-mirror.vala.page:50
+#: C/photo-wall.c.page:52 C/record-collection.js.page:53
msgid ""
"Before you start coding, you'll need to set up a new project in Anjuta. This "
"will create all of the files you need to build and run the code later on. "
"It's also useful for keeping everything together."
msgstr ""
-#: C/guitar-tuner.c.page:51(item/p) C/guitar-tuner.cpp.page:49(item/p)
-#: C/guitar-tuner.py.page:56(item/p) C/image-viewer.c.page:45(item/p)
-#: C/image-viewer.cpp.page:43(item/p) C/image-viewer.js.page:53(item/p)
-#: C/image-viewer.py.page:52(item/p) C/magic-mirror.vala.page:53(item/p)
-#: C/photo-wall.c.page:55(item/p) C/record-collection.js.page:56(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:51 C/guitar-tuner.cpp.page:49
+#: C/guitar-tuner.py.page:56 C/image-viewer.c.page:45
+#: C/image-viewer.cpp.page:43 C/image-viewer.js.page:53
+#: C/image-viewer.py.page:52 C/magic-mirror.vala.page:53
+#: C/photo-wall.c.page:55 C/record-collection.js.page:56
msgid ""
"Start Anjuta and click <guiseq><gui>File</gui><gui>New</gui><gui>Project</"
"gui></guiseq> to open the project wizard."
msgstr ""
-#: C/guitar-tuner.c.page:54(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:54
msgid ""
"Choose <gui>GTK+ (Simple)</gui> from the <gui>C</gui> tab, click "
"<gui>Continue</gui>, and fill out your details on the next few pages. Use "
"<file>guitar-tuner</file> as project name and directory."
msgstr ""
-#: C/guitar-tuner.c.page:57(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:57
msgid ""
"Make sure that <gui>Configure external packages</gui> is switched <gui>ON</"
"gui>. On the next page, select <em>gstreamer-0.10</em> from the list to "
"include the GStreamer library in your project."
msgstr ""
-#: C/guitar-tuner.c.page:61(item/p) C/image-viewer.c.page:56(item/p)
-#: C/photo-wall.c.page:70(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:61 C/image-viewer.c.page:56 C/photo-wall.c.page:70
msgid ""
"Click <gui>Apply</gui> and the project will be created for you. Open "
"<file>src/main.c</file> from the <gui>Project</gui> or <gui>File</gui> tabs. "
"You should see some code which starts with the lines:"
msgstr ""
-#: C/guitar-tuner.c.page:62(item/code) C/image-viewer.c.page:57(item/code)
-#: C/photo-wall.c.page:71(item/code)
+#. (itstool) path: item/code
+#: C/guitar-tuner.c.page:62 C/image-viewer.c.page:57 C/photo-wall.c.page:71
#, no-wrap
msgid ""
"\n"
@@ -9693,25 +11468,25 @@ msgid ""
"#include <gtk/gtk.h>"
msgstr ""
-#: C/guitar-tuner.c.page:70(section/title)
-#: C/guitar-tuner.cpp.page:68(section/title)
-#: C/guitar-tuner.vala.page:73(section/title)
-#: C/image-viewer.c.page:65(section/title)
-#: C/image-viewer.cpp.page:65(section/title)
-#: C/image-viewer.vala.page:112(section/title)
-#: C/magic-mirror.vala.page:77(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.c.page:70 C/guitar-tuner.cpp.page:68
+#: C/guitar-tuner.vala.page:73 C/image-viewer.c.page:65
+#: C/image-viewer.cpp.page:65 C/image-viewer.vala.page:112
+#: C/magic-mirror.vala.page:77
msgid "Build the code for the first time"
msgstr ""
-#: C/guitar-tuner.c.page:71(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:71
msgid ""
"C is a rather verbose language, so don't be surprised that the file contains "
"quite a lot of code. Most of it is template code. It loads an (empty) window "
-"from the user interface description file and shows it. More details are given "
-"below; skip this list if you understand the basics:"
+"from the user interface description file and shows it. More details are "
+"given below; skip this list if you understand the basics:"
msgstr ""
-#: C/guitar-tuner.c.page:75(item/p) C/image-viewer.c.page:70(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:75 C/image-viewer.c.page:70
msgid ""
"The three <code>#include</code> lines at the top include the <code>config</"
"code> (useful autoconf build defines), <code>gtk</code> (user interface) and "
@@ -9719,7 +11494,8 @@ msgid ""
"libraries are used in the rest of the code."
msgstr ""
-#: C/guitar-tuner.c.page:78(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:78
msgid ""
"The <code>create_window</code> function creates a new window by opening a "
"GtkBuilder file (<file>src/guitar-tuner.ui</file>, defined a few lines "
@@ -9728,15 +11504,17 @@ msgid ""
"elements. You can use Anjuta's editor to design GtkBuilder user interfaces."
msgstr ""
-#: C/guitar-tuner.c.page:79(item/p) C/image-viewer.c.page:74(item/p)
-#: C/image-viewer.vala.page:122(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:79 C/image-viewer.c.page:74
+#: C/image-viewer.vala.page:122
msgid ""
"Connecting signals is how you define what happens when you push a button, or "
"when some other event happens. Here, the <code>destroy</code> function is "
"called (and quits the app) when you close the window."
msgstr ""
-#: C/guitar-tuner.c.page:82(item/p) C/image-viewer.c.page:77(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:82 C/image-viewer.c.page:77
msgid ""
"The <code>main</code> function is run by default when you start a C "
"application. It calls a few functions which set up and then run the "
@@ -9745,77 +11523,84 @@ msgid ""
"and key presses)."
msgstr ""
-#: C/guitar-tuner.c.page:85(item/p) C/image-viewer.c.page:80(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:85 C/image-viewer.c.page:80
msgid ""
"The <code>ENABLE_NLS</code> conditional definition sets up <code>gettext</"
"code>, which is a framework for translating applications. These functions "
"specify how translation tools should handle your app when you run them."
msgstr ""
-#: C/guitar-tuner.c.page:89(section/p) C/guitar-tuner.cpp.page:83(section/p)
-#: C/image-viewer.c.page:84(section/p) C/image-viewer.cpp.page:81(section/p)
-#: C/image-viewer.vala.page:132(section/p)
-#: C/magic-mirror.vala.page:92(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:89 C/guitar-tuner.cpp.page:83
+#: C/image-viewer.c.page:84 C/image-viewer.cpp.page:81
+#: C/image-viewer.vala.page:132 C/magic-mirror.vala.page:92
msgid ""
"This code is ready to be used, so you can compile it by clicking "
"<guiseq><gui>Build</gui><gui>Build Project</gui></guiseq> (or press "
"<keyseq><key>Shift</key><key>F7</key></keyseq>)."
msgstr ""
-#: C/guitar-tuner.c.page:90(section/p) C/guitar-tuner.cpp.page:84(section/p)
-#: C/image-viewer.c.page:85(section/p) C/image-viewer.cpp.page:82(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:90 C/guitar-tuner.cpp.page:84
+#: C/image-viewer.c.page:85 C/image-viewer.cpp.page:82
msgid ""
-"Press <gui>Execute</gui> on the next window that appears to configure a debug "
-"build. You only need to do this once, for the first build."
+"Press <gui>Execute</gui> on the next window that appears to configure a "
+"debug build. You only need to do this once, for the first build."
msgstr ""
-#: C/guitar-tuner.c.page:94(section/title)
-#: C/guitar-tuner.cpp.page:88(section/title)
-#: C/guitar-tuner.py.page:95(section/title)
-#: C/guitar-tuner.vala.page:95(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.c.page:94 C/guitar-tuner.cpp.page:88
+#: C/guitar-tuner.py.page:95 C/guitar-tuner.vala.page:95
msgid "Create the user interface"
msgstr ""
-#: C/guitar-tuner.c.page:95(section/p) C/guitar-tuner.cpp.page:89(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:95 C/guitar-tuner.cpp.page:89
msgid ""
-"A description of the user interface (UI) is contained in the GtkBuilder file. "
-"To edit the user interface, open <file>src/guitar_tuner.ui</file>. This will "
-"switch to the interface designer. The design window is in the center; widgets "
-"and widgets' properties are on the left, and the palette of available widgets "
-"is on the right."
+"A description of the user interface (UI) is contained in the GtkBuilder "
+"file. To edit the user interface, open <file>src/guitar_tuner.ui</file>. "
+"This will switch to the interface designer. The design window is in the "
+"center; widgets and widgets' properties are on the left, and the palette of "
+"available widgets is on the right."
msgstr ""
-#: C/guitar-tuner.c.page:97(section/p) C/guitar-tuner.cpp.page:91(section/p)
-#: C/guitar-tuner.py.page:98(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:97 C/guitar-tuner.cpp.page:91
+#: C/guitar-tuner.py.page:98
msgid ""
-"The layout of every UI in GTK+ is organized using boxes and tables. Let's use "
-"a vertical <gui>GtkButtonBox</gui> here to assign six <gui>GtkButtons</gui>, "
-"one for each of the six guitar strings."
+"The layout of every UI in GTK+ is organized using boxes and tables. Let's "
+"use a vertical <gui>GtkButtonBox</gui> here to assign six <gui>GtkButtons</"
+"gui>, one for each of the six guitar strings."
msgstr ""
-#: C/guitar-tuner.c.page:103(item/p) C/guitar-tuner.cpp.page:97(item/p)
-#: C/guitar-tuner.py.page:104(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:103 C/guitar-tuner.cpp.page:97
+#: C/guitar-tuner.py.page:104
msgid ""
-"Select a <gui>GtkButtonBox</gui> from the <gui>Container</gui> section of the "
-"<gui>Palette</gui> on the right and put it into the window. In the "
+"Select a <gui>GtkButtonBox</gui> from the <gui>Container</gui> section of "
+"the <gui>Palette</gui> on the right and put it into the window. In the "
"<gui>Properties</gui> pane, set the number of elements to 6 (for the six "
"strings) and the orientation to vertical."
msgstr ""
-#: C/guitar-tuner.c.page:107(item/p) C/guitar-tuner.cpp.page:101(item/p)
-#: C/guitar-tuner.py.page:108(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:107 C/guitar-tuner.cpp.page:101
+#: C/guitar-tuner.py.page:108
msgid ""
-"Now, choose a <gui>GtkButton</gui> from the palette and put it into the first "
-"part of the box."
+"Now, choose a <gui>GtkButton</gui> from the palette and put it into the "
+"first part of the box."
msgstr ""
-#: C/guitar-tuner.c.page:110(item/p) C/guitar-tuner.py.page:111(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:110 C/guitar-tuner.py.page:111
msgid ""
"While the button is still selected, change the <gui>Label</gui> property in "
"the <gui>Widgets</gui> tab to <gui>E</gui>. This will be the low E string."
msgstr ""
-#: C/guitar-tuner.c.page:113(item/p) C/guitar-tuner.py.page:114(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:113 C/guitar-tuner.py.page:114
msgid ""
"Switch to the <gui>Signals</gui> tab (inside the <gui>Widgets</gui> tab) and "
"look for the <code>clicked</code> signal of the button. You can use this to "
@@ -9824,42 +11609,47 @@ msgid ""
"code> in the <gui>Handler</gui> column and press <key>Return</key>."
msgstr ""
-#: C/guitar-tuner.c.page:116(item/p) C/guitar-tuner.py.page:117(item/p)
-#: C/guitar-tuner.vala.page:121(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:116 C/guitar-tuner.py.page:117
+#: C/guitar-tuner.vala.page:121
msgid ""
"Repeat the above steps for the other buttons, adding the next 5 strings with "
"the names <em>A</em>, <em>D</em>, <em>G</em>, <em>B</em>, and <em>e</em>."
msgstr ""
-#: C/guitar-tuner.c.page:119(item/p) C/guitar-tuner.py.page:120(item/p)
-#: C/guitar-tuner.vala.page:124(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:119 C/guitar-tuner.py.page:120
+#: C/guitar-tuner.vala.page:124
msgid ""
"Save the UI design (by clicking <guiseq><gui>File</gui><gui>Save</gui></"
"guiseq>) and keep it open."
msgstr ""
-#: C/guitar-tuner.c.page:125(section/title)
-#: C/guitar-tuner.vala.page:202(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.c.page:125 C/guitar-tuner.vala.page:202
msgid "Creating the signal handler"
msgstr ""
-#: C/guitar-tuner.c.page:126(section/p) C/guitar-tuner.py.page:127(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:126 C/guitar-tuner.py.page:127
msgid ""
-"In the UI designer, you made it so that all of the buttons will call the same "
-"function, <gui>on_button_clicked</gui>, when they are clicked. We need to add "
-"that function in the source file."
+"In the UI designer, you made it so that all of the buttons will call the "
+"same function, <gui>on_button_clicked</gui>, when they are clicked. We need "
+"to add that function in the source file."
msgstr ""
-#: C/guitar-tuner.c.page:127(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:127
msgid ""
"To do this, open <file>main.c</file> while the user interface file is still "
-"open. Switch to the <gui>Signals</gui> tab, which you already used to set the "
-"signal name. Now take the row where you set the <gui>clicked</gui> signal and "
-"drag it into to the source file at a position that is outside any function. "
-"The following code will be added to your source file:"
+"open. Switch to the <gui>Signals</gui> tab, which you already used to set "
+"the signal name. Now take the row where you set the <gui>clicked</gui> "
+"signal and drag it into to the source file at a position that is outside any "
+"function. The following code will be added to your source file:"
msgstr ""
-#: C/guitar-tuner.c.page:130(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.c.page:130
#, no-wrap
msgid ""
"\n"
@@ -9869,41 +11659,44 @@ msgid ""
"}"
msgstr ""
-#: C/guitar-tuner.c.page:135(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:135
msgid ""
"This signal handler has two arguments: a pointer to the <code>GtkWidget</"
"code> that called the function (in our case, always a <code>GtkButton</"
-"code>), and a pointer to some \"user data\" that you can define, but which we "
-"won't be using here. (You can set the user data by calling "
+"code>), and a pointer to some \"user data\" that you can define, but which "
+"we won't be using here. (You can set the user data by calling "
"<code>gtk_builder_connect_signals</code>; it is normally used to pass a "
"pointer to a data structure that you might need to access inside the signal "
"handler.)"
msgstr ""
-#: C/guitar-tuner.c.page:136(section/p) C/guitar-tuner.py.page:135(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:136 C/guitar-tuner.py.page:135
msgid ""
"For now, we'll leave the signal handler empty while we work on writing the "
"code to produce sounds."
msgstr ""
-#: C/guitar-tuner.c.page:140(section/title)
-#: C/guitar-tuner.cpp.page:117(section/title)
-#: C/guitar-tuner.js.page:38(section/title)
-#: C/guitar-tuner.py.page:139(section/title)
-#: C/guitar-tuner.vala.page:130(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.c.page:140 C/guitar-tuner.cpp.page:117
+#: C/guitar-tuner.js.page:38 C/guitar-tuner.py.page:139
+#: C/guitar-tuner.vala.page:130
msgid "GStreamer pipelines"
msgstr "GStreamer-Weiterleitungen"
-#: C/guitar-tuner.c.page:141(section/p) C/guitar-tuner.js.page:39(section/p)
-#: C/guitar-tuner.py.page:140(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:141 C/guitar-tuner.js.page:39
+#: C/guitar-tuner.py.page:140
msgid ""
"GStreamer is GNOME's multimedia framework — you can use it for playing, "
"recording, and processing video, audio, webcam streams and the like. Here, "
"we'll be using it to produce single-frequency tones."
msgstr ""
-#: C/guitar-tuner.c.page:142(section/p) C/guitar-tuner.cpp.page:120(section/p)
-#: C/guitar-tuner.js.page:40(section/p) C/guitar-tuner.py.page:141(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:142 C/guitar-tuner.cpp.page:120
+#: C/guitar-tuner.js.page:40 C/guitar-tuner.py.page:141
msgid ""
"Conceptually, GStreamer works as follows: You create a <em>pipeline</em> "
"containing several processing elements going from the <em>source</em> to the "
@@ -9911,29 +11704,32 @@ msgid ""
"file, for example, and the output could be a widget or the soundcard."
msgstr ""
-#: C/guitar-tuner.c.page:143(section/p) C/guitar-tuner.cpp.page:121(section/p)
-#: C/guitar-tuner.js.page:41(section/p) C/guitar-tuner.py.page:142(section/p)
-#: C/guitar-tuner.vala.page:133(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:143 C/guitar-tuner.cpp.page:121
+#: C/guitar-tuner.js.page:41 C/guitar-tuner.py.page:142
+#: C/guitar-tuner.vala.page:133
msgid ""
"Between source and sink, you can apply various filters and converters to "
"handle effects, format conversions and so on. Each element of the pipeline "
"has properties which can be used to change its behaviour."
msgstr ""
-#: C/guitar-tuner.c.page:145(media/p) C/guitar-tuner.cpp.page:123(media/p)
-#: C/guitar-tuner.js.page:43(media/p) C/guitar-tuner.py.page:144(media/p)
-#: C/guitar-tuner.vala.page:135(media/p)
+#. (itstool) path: media/p
+#: C/guitar-tuner.c.page:145 C/guitar-tuner.cpp.page:123
+#: C/guitar-tuner.js.page:43 C/guitar-tuner.py.page:144
+#: C/guitar-tuner.vala.page:135
msgid "An example GStreamer pipeline."
msgstr "Eine Beispiel-Weiterleitung in GStreamer."
-#: C/guitar-tuner.c.page:150(section/title)
-#: C/guitar-tuner.py.page:149(section/title)
-#: C/guitar-tuner.vala.page:140(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.c.page:150 C/guitar-tuner.py.page:149
+#: C/guitar-tuner.vala.page:140
msgid "Set up the pipeline"
msgstr "Einrichten der Weiterleitung"
-#: C/guitar-tuner.c.page:151(section/p) C/guitar-tuner.cpp.page:134(section/p)
-#: C/guitar-tuner.py.page:150(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:151 C/guitar-tuner.cpp.page:134
+#: C/guitar-tuner.py.page:150
msgid ""
"In this simple example we will use a tone generator source called "
"<code>audiotestsrc</code> and send the output to the default system sound "
@@ -9942,36 +11738,42 @@ msgid ""
"property of <code>audiotestsrc</code>."
msgstr ""
-#: C/guitar-tuner.c.page:153(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:153
msgid ""
"Insert the following line into <file>main.c</file>, just below the "
"<code>#include <gtk/gtk.h></code> line:"
msgstr ""
-#: C/guitar-tuner.c.page:154(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.c.page:154
#, no-wrap
msgid "#include <gst/gst.h>"
msgstr "#include <gst/gst.h>"
-#: C/guitar-tuner.c.page:155(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:155
msgid ""
"This includes the GStreamer library. You also need to add a line to "
"initialize GStreamer; put the following code on the line above the "
"<code>gtk_init</code> call in the <code>main</code> function:"
msgstr ""
-#: C/guitar-tuner.c.page:156(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.c.page:156
#, no-wrap
msgid "gst_init (&argc, &argv);"
msgstr "gst_init (&argc, &argv);"
-#: C/guitar-tuner.c.page:157(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:157
msgid ""
"Then, copy the following function into <file>main.c</file> above the empty "
"<code>on_button_clicked</code> function:"
msgstr ""
-#: C/guitar-tuner.c.page:158(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.c.page:158
#, no-wrap
msgid ""
"static void\n"
@@ -9999,7 +11801,8 @@ msgid ""
"}"
msgstr ""
-#: C/guitar-tuner.c.page:184(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:184
msgid ""
"The first five lines create source and sink GStreamer elements "
"(<code>GstElement</code>), and a pipeline element (which will be used as a "
@@ -10009,7 +11812,8 @@ msgid ""
"<code>autoaudiosink</code> sink (default sound card output)."
msgstr ""
-#: C/guitar-tuner.c.page:187(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:187
msgid ""
"The call to <code>g_object_set</code> sets the <code>freq</code> property of "
"the source element to <code>frequency</code>, which is passed as an argument "
@@ -10017,46 +11821,53 @@ msgid ""
"note in Hertz; some useful frequencies will be defined later on."
msgstr ""
-#: C/guitar-tuner.c.page:190(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:190
msgid ""
-"<code>gst_bin_add_many</code> puts the source and sink into the pipeline. The "
-"pipeline is a <code>GstBin</code>, which is just an element that can contain "
-"multiple other GStreamer elements. In general, you can add as many elements "
-"as you like to the pipeline by adding more arguments to "
+"<code>gst_bin_add_many</code> puts the source and sink into the pipeline. "
+"The pipeline is a <code>GstBin</code>, which is just an element that can "
+"contain multiple other GStreamer elements. In general, you can add as many "
+"elements as you like to the pipeline by adding more arguments to "
"<code>gst_bin_add_many</code>."
msgstr ""
-#: C/guitar-tuner.c.page:193(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:193
msgid ""
-"Next, <code>gst_element_link</code> is used to connect the elements together, "
-"so the output of <code>source</code> (a tone) goes into the input of "
-"<code>sink</code> (which is then output to the sound card). "
-"<code>gst_element_set_state</code> is then used to start playback, by setting "
-"the state of the pipeline to playing (<code>GST_STATE_PLAYING</code>)."
+"Next, <code>gst_element_link</code> is used to connect the elements "
+"together, so the output of <code>source</code> (a tone) goes into the input "
+"of <code>sink</code> (which is then output to the sound card). "
+"<code>gst_element_set_state</code> is then used to start playback, by "
+"setting the state of the pipeline to playing (<code>GST_STATE_PLAYING</"
+"code>)."
msgstr ""
-#: C/guitar-tuner.c.page:200(section/title)
-#: C/guitar-tuner.py.page:190(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.c.page:200 C/guitar-tuner.py.page:190
msgid "Stopping playback"
msgstr "Die Wiedergabe stoppen"
-#: C/guitar-tuner.c.page:201(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:201
msgid ""
"We don't want to play an annoying tone forever, so the last thing "
-"<code>play_sound</code> does is to call <code>g_timeout_add</code>. This sets "
-"a timeout for stopping the sound; it waits for <code>LENGTH</code> "
-"milliseconds before calling the function <code>pipeline_stop</code>, and will "
-"keep calling it until <code>pipeline_stop</code> returns <code>FALSE</code>."
+"<code>play_sound</code> does is to call <code>g_timeout_add</code>. This "
+"sets a timeout for stopping the sound; it waits for <code>LENGTH</code> "
+"milliseconds before calling the function <code>pipeline_stop</code>, and "
+"will keep calling it until <code>pipeline_stop</code> returns <code>FALSE</"
+"code>."
msgstr ""
-#: C/guitar-tuner.c.page:202(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:202
msgid ""
"Now, we'll write the <code>pipeline_stop</code> function which is called by "
"<code>g_timeout_add</code>. Insert the following code <em>above</em> the "
"<code>play_sound</code> function:"
msgstr ""
-#: C/guitar-tuner.c.page:203(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.c.page:203
#, no-wrap
msgid ""
"\n"
@@ -10065,33 +11876,36 @@ msgid ""
"static gboolean\n"
"pipeline_stop (GstElement* pipeline)\n"
"{\n"
-"\tgst_element_set_state (pipeline, GST_STATE_PAUSED);\n"
+"\tgst_element_set_state (pipeline, GST_STATE_NULL);\n"
"\tg_object_unref (pipeline);\n"
"\n"
"\treturn FALSE;\n"
"}"
msgstr ""
-#: C/guitar-tuner.c.page:214(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:214
msgid ""
-"The call to <code>gst_element_set_state</code> pauses the playback of the "
+"The call to <code>gst_element_set_state</code> stops the playback of the "
"pipeline and <code>g_object_unref</code> unreferences the pipeline, "
"destroying it and freeing its memory."
msgstr ""
-#: C/guitar-tuner.c.page:218(section/title)
-#: C/guitar-tuner.py.page:207(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.c.page:218 C/guitar-tuner.py.page:207
msgid "Define the tones"
msgstr ""
-#: C/guitar-tuner.c.page:219(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:219
msgid ""
"We want to play the correct sound when the user clicks a button. First of "
"all, we need to know the frequencies for the six guitar strings, which are "
"defined (at the top of <file>main.c</file>) as follows:"
msgstr ""
-#: C/guitar-tuner.c.page:220(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.c.page:220
#, no-wrap
msgid ""
"\n"
@@ -10104,7 +11918,8 @@ msgid ""
"#define NOTE_e 1318.5"
msgstr ""
-#: C/guitar-tuner.c.page:228(section/p) C/guitar-tuner.py.page:221(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:228 C/guitar-tuner.py.page:221
msgid ""
"Now to flesh out the signal handler that we defined earlier, "
"<code>on_button_clicked</code>. We could have connected every button to a "
@@ -10113,7 +11928,8 @@ msgid ""
"clicked:"
msgstr ""
-#: C/guitar-tuner.c.page:229(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.c.page:229
#, no-wrap
msgid ""
"\n"
@@ -10121,8 +11937,7 @@ msgid ""
"void on_button_clicked (GtkButton* button,\n"
" gpointer user_data)\n"
"{\n"
-"\tGtkWidget* label = gtk_bin_get_child (GTK_BIN (button));\n"
-"\tconst gchar* text = gtk_label_get_label (GTK_LABEL (label));\n"
+"\tconst gchar* text = gtk_button_get_label (button);\n"
"\n"
"\tif (g_str_equal (text, _(\"E\")))\n"
"\t play_sound (NOTE_E);\n"
@@ -10139,104 +11954,100 @@ msgid ""
"}\n"
msgstr ""
-#: C/guitar-tuner.c.page:251(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:250
msgid ""
"A pointer to the <code>GtkButton</code> that was clicked is passed as an "
"argument (<code>button</code>) to <code>on_button_clicked</code>. We can get "
-"the label of that button by using <code>gtk_bin_get_child</code>, and then "
-"get the text from that label using <code>gtk_label_get_label</code>."
+"the text of that button using <code>gtk_button_get_label</code>."
msgstr ""
-#: C/guitar-tuner.c.page:252(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:251
msgid ""
-"The label text is then compared to the notes that we have using "
-"<code>g_str_equal</code>, and <code>play_sound</code> is called with the "
-"frequency appropriate for that note. This plays the tone; we have a working "
-"guitar tuner!"
+"The text is then compared to the notes that we have using <code>g_str_equal</"
+"code>, and <code>play_sound</code> is called with the frequency appropriate "
+"for that note. This plays the tone; we have a working guitar tuner!"
msgstr ""
-#: C/guitar-tuner.c.page:256(section/title)
-#: C/guitar-tuner.cpp.page:254(section/title)
-#: C/guitar-tuner.vala.page:252(section/title)
-#: C/image-viewer.c.page:221(section/title)
-#: C/image-viewer.cpp.page:209(section/title)
-#: C/image-viewer.vala.page:279(section/title)
-#: C/photo-wall.c.page:391(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.c.page:255 C/guitar-tuner.cpp.page:254
+#: C/guitar-tuner.vala.page:252 C/image-viewer.c.page:221
+#: C/image-viewer.cpp.page:209 C/image-viewer.vala.page:279
+#: C/photo-wall.c.page:391
msgid "Build and run the application"
msgstr ""
-#: C/guitar-tuner.c.page:257(section/p) C/guitar-tuner.vala.page:253(section/p)
-#: C/image-viewer.c.page:222(section/p) C/image-viewer.cpp.page:210(section/p)
-#: C/image-viewer.vala.page:280(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:256 C/guitar-tuner.vala.page:253
+#: C/image-viewer.c.page:222 C/image-viewer.cpp.page:210
+#: C/image-viewer.vala.page:280
msgid ""
"All of the code should now be ready to go. Click <guiseq><gui>Build</"
"gui><gui>Build Project</gui></guiseq> to build everything again, and then "
"<guiseq><gui>Run</gui><gui>Execute</gui></guiseq> to start the application."
msgstr ""
-#: C/guitar-tuner.c.page:258(section/p) C/guitar-tuner.cpp.page:256(section/p)
-#: C/guitar-tuner.vala.page:254(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:257 C/guitar-tuner.cpp.page:256
+#: C/guitar-tuner.vala.page:254
msgid ""
"If you haven't already done so, choose the <file>Debug/src/guitar-tuner</"
-"file> application in the dialog that appears. Finally, hit <gui>Run</gui> and "
-"enjoy!"
-msgstr ""
-
-#: C/guitar-tuner.c.page:262(section/title)
-#: C/guitar-tuner.cpp.page:260(section/title)
-#: C/guitar-tuner.js.page:241(section/title)
-#: C/guitar-tuner.py.page:239(section/title)
-#: C/guitar-tuner.vala.page:258(section/title)
-#: C/image-viewer.c.page:227(section/title)
-#: C/image-viewer.cpp.page:215(section/title)
-#: C/image-viewer.js.page:315(section/title)
-#: C/image-viewer.py.page:229(section/title)
-#: C/image-viewer.vala.page:287(section/title)
-#: C/magic-mirror.vala.page:149(section/title)
-#: C/photo-wall.c.page:399(section/title)
-#: C/record-collection.js.page:296(section/title)
+"file> application in the dialog that appears. Finally, hit <gui>Run</gui> "
+"and enjoy!"
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/guitar-tuner.c.page:261 C/guitar-tuner.cpp.page:260
+#: C/guitar-tuner.js.page:241 C/guitar-tuner.py.page:239
+#: C/guitar-tuner.vala.page:258 C/image-viewer.c.page:227
+#: C/image-viewer.cpp.page:215 C/image-viewer.js.page:315
+#: C/image-viewer.py.page:229 C/image-viewer.vala.page:287
+#: C/magic-mirror.vala.page:149 C/photo-wall.c.page:399
+#: C/record-collection.js.page:296
msgid "Reference Implementation"
msgstr "Referenz-Implementierung"
-#: C/guitar-tuner.c.page:263(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:262
msgid ""
-"If you run into problems with the tutorial, compare your code with this <link "
-"href=\"guitar-tuner/guitar-tuner.c\">reference code</link>."
+"If you run into problems with the tutorial, compare your code with this "
+"<link href=\"guitar-tuner/guitar-tuner.c\">reference code</link>."
msgstr ""
-#: C/guitar-tuner.c.page:267(section/title)
-#: C/guitar-tuner.cpp.page:273(section/title)
-#: C/guitar-tuner.py.page:244(section/title)
-#: C/guitar-tuner.vala.page:269(section/title)
-#: C/image-viewer.c.page:232(section/title)
-#: C/image-viewer.cpp.page:220(section/title)
-#: C/image-viewer.js.page:320(section/title)
-#: C/image-viewer.py.page:234(section/title)
-#: C/image-viewer.vala.page:292(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.c.page:266 C/guitar-tuner.cpp.page:273
+#: C/guitar-tuner.py.page:244 C/guitar-tuner.vala.page:269
+#: C/image-viewer.c.page:232 C/image-viewer.cpp.page:220
+#: C/image-viewer.js.page:320 C/image-viewer.py.page:234
+#: C/image-viewer.vala.page:292
msgid "Next steps"
msgstr "Nächste Schritte"
-#: C/guitar-tuner.c.page:268(section/p) C/guitar-tuner.cpp.page:274(section/p)
-#: C/guitar-tuner.py.page:245(section/p)
-#: C/guitar-tuner.vala.page:270(section/p) C/image-viewer.c.page:233(section/p)
-#: C/image-viewer.cpp.page:221(section/p) C/image-viewer.js.page:321(section/p)
-#: C/image-viewer.py.page:235(section/p)
-#: C/image-viewer.vala.page:293(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:267 C/guitar-tuner.cpp.page:274
+#: C/guitar-tuner.py.page:245 C/guitar-tuner.vala.page:270
+#: C/image-viewer.c.page:233 C/image-viewer.cpp.page:221
+#: C/image-viewer.js.page:321 C/image-viewer.py.page:235
+#: C/image-viewer.vala.page:293
msgid "Here are some ideas for how you can extend this simple demonstration:"
msgstr ""
-#: C/guitar-tuner.c.page:271(item/p) C/guitar-tuner.cpp.page:277(item/p)
-#: C/guitar-tuner.py.page:248(item/p) C/guitar-tuner.vala.page:273(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:270 C/guitar-tuner.cpp.page:277
+#: C/guitar-tuner.py.page:248 C/guitar-tuner.vala.page:273
msgid "Have the program automatically cycle through the notes."
msgstr ""
-#: C/guitar-tuner.c.page:274(item/p) C/guitar-tuner.cpp.page:280(item/p)
-#: C/guitar-tuner.py.page:251(item/p) C/guitar-tuner.vala.page:276(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:273 C/guitar-tuner.cpp.page:280
+#: C/guitar-tuner.py.page:251 C/guitar-tuner.vala.page:276
msgid "Make the program play recordings of real guitar strings being plucked."
msgstr ""
-#: C/guitar-tuner.c.page:275(item/p) C/guitar-tuner.cpp.page:281(item/p)
-#: C/guitar-tuner.py.page:252(item/p) C/guitar-tuner.vala.page:277(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:274 C/guitar-tuner.cpp.page:281
+#: C/guitar-tuner.py.page:252 C/guitar-tuner.vala.page:277
msgid ""
"To do this, you would need to set up a more complicated GStreamer pipeline "
"which allows you to load and play back music files. You'll have to choose "
@@ -10246,8 +12057,9 @@ msgid ""
"example."
msgstr ""
-#: C/guitar-tuner.c.page:276(item/p) C/guitar-tuner.cpp.page:282(item/p)
-#: C/guitar-tuner.py.page:253(item/p) C/guitar-tuner.vala.page:278(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:275 C/guitar-tuner.cpp.page:282
+#: C/guitar-tuner.py.page:253 C/guitar-tuner.vala.page:278
msgid ""
"You might need to connect the elements in more complicated ways too. This "
"could involve using <link href=\"http://gstreamer.freedesktop.org/data/doc/"
@@ -10258,13 +12070,15 @@ msgid ""
"command useful."
msgstr ""
-#: C/guitar-tuner.c.page:279(item/p) C/guitar-tuner.cpp.page:285(item/p)
-#: C/guitar-tuner.py.page:256(item/p) C/guitar-tuner.vala.page:281(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:278 C/guitar-tuner.cpp.page:285
+#: C/guitar-tuner.py.page:256 C/guitar-tuner.vala.page:281
msgid "Automatically analyze notes that the user plays."
msgstr ""
-#: C/guitar-tuner.c.page:280(item/p) C/guitar-tuner.cpp.page:286(item/p)
-#: C/guitar-tuner.py.page:257(item/p) C/guitar-tuner.vala.page:282(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.c.page:279 C/guitar-tuner.cpp.page:286
+#: C/guitar-tuner.py.page:257 C/guitar-tuner.vala.page:282
msgid ""
"You could connect a microphone and record sounds from it using an <link href="
"\"http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-"
@@ -10275,52 +12089,63 @@ msgid ""
"figure out what notes are being played?"
msgstr ""
-#: C/guitar-tuner.cpp.page:8(info/desc)
+#. (itstool) path: info/desc
+#: C/guitar-tuner.cpp.page:8
msgid ""
"Use GTKmm and GStreamermm to build a simple guitar tuner application for "
"GNOME. Shows off how to use the interface designer."
msgstr ""
-#: C/guitar-tuner.cpp.page:38(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.cpp.page:38
msgid "Basic knowledge of the C++ programming language"
msgstr ""
-#: C/guitar-tuner.cpp.page:52(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.cpp.page:52
msgid ""
"Choose <gui>GTKmm (Simple)</gui> from the <gui>C++</gui> tab, click "
"<gui>Forward</gui>, and fill out your details on the next few pages. Use "
"<file>guitar-tuner</file> as project name and directory."
msgstr ""
-#: C/guitar-tuner.cpp.page:55(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.cpp.page:55
msgid ""
"Make sure that <gui>Configure external packages</gui> is selected. On the "
"next page, select <em>gstreamermm-0.10</em> from the list to include the "
"GStreamermm library in your project."
msgstr ""
-#: C/guitar-tuner.cpp.page:59(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.cpp.page:59
msgid ""
"Click <gui>Finished</gui> and the project will be created for you. Open "
-"<file>src/main.cc</file> from the <gui>Project</gui> or <gui>File</gui> tabs. "
-"You should see some code which starts with the lines:"
+"<file>src/main.cc</file> from the <gui>Project</gui> or <gui>File</gui> "
+"tabs. You should see some code which starts with the lines:"
msgstr ""
-#: C/guitar-tuner.cpp.page:60(item/code)
+#. (itstool) path: item/code
+#: C/guitar-tuner.cpp.page:60
#, no-wrap
msgid ""
"\n"
"#include <gtkmm.h>\n"
"#include <iostream>"
msgstr ""
+"\n"
+"#include <gtkmm.h>\n"
+"#include <iostream>"
-#: C/guitar-tuner.cpp.page:69(section/p) C/image-viewer.cpp.page:66(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.cpp.page:69 C/image-viewer.cpp.page:66
msgid ""
-"This is a very basic C++ code setting up GTKmm. More details are given below; "
-"skip this list if you understand the basics:"
+"This is a very basic C++ code setting up GTKmm. More details are given "
+"below; skip this list if you understand the basics:"
msgstr ""
-#: C/guitar-tuner.cpp.page:73(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.cpp.page:73
msgid ""
"The three <code>#include</code> lines at the top include the <code>config</"
"code> (useful autoconf build defines), <code>gtkmm</code> (user interface) "
@@ -10328,16 +12153,18 @@ msgid ""
"the rest of the code."
msgstr ""
-#: C/guitar-tuner.cpp.page:76(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.cpp.page:76
msgid ""
"The <code>main</code> function creates a new window by opening a GtkBuilder "
"file (<file>src/guitar-tuner.ui</file>, defined a few lines above) and then "
"displaying it in a window. The GtkBuilder file contains a description of a "
-"user interface and all of its elements. You can use Anjuta's editor to design "
-"GtkBuilder user interfaces."
+"user interface and all of its elements. You can use Anjuta's editor to "
+"design GtkBuilder user interfaces."
msgstr ""
-#: C/guitar-tuner.cpp.page:79(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.cpp.page:79
msgid ""
"Afterwards it calls a few functions which set up and then run the "
"application. The <code>kit.run</code> function starts the GTKmm main loop, "
@@ -10345,7 +12172,8 @@ msgid ""
"and key presses)."
msgstr ""
-#: C/guitar-tuner.cpp.page:104(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.cpp.page:104
msgid ""
"While the button is still selected, change the <gui>Label</gui> property in "
"the <gui>Widgets</gui> tab to <gui>E</gui>. This will be the low E string. "
@@ -10353,20 +12181,23 @@ msgid ""
"name we will refer to the widget later in code."
msgstr ""
-#: C/guitar-tuner.cpp.page:108(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.cpp.page:108
msgid ""
"Repeat the above steps for the other buttons, adding the next 5 strings with "
-"the labels <em>A</em>, <em>D</em>, <em>G</em>, <em>B</em>, and <em>e</em> and "
-"the names <em>button_A</em>, etc."
+"the labels <em>A</em>, <em>D</em>, <em>G</em>, <em>B</em>, and <em>e</em> "
+"and the names <em>button_A</em>, etc."
msgstr ""
-#: C/guitar-tuner.cpp.page:111(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.cpp.page:111
msgid ""
"Save the UI design (by clicking <guiseq><gui>File</gui><gui>Save</gui></"
"guiseq>) and close the file."
msgstr ""
-#: C/guitar-tuner.cpp.page:118(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.cpp.page:118
msgid ""
"GStreamer is GNOME's multimedia framework — you can use it for playing, "
"recording, and processing video, audio, webcam streams and the like. Here, "
@@ -10374,36 +12205,42 @@ msgid ""
"binding to GStreamer which we will use here."
msgstr ""
-#: C/guitar-tuner.cpp.page:128(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.cpp.page:128
msgid "Using GStreamermm"
msgstr "Verwendung von GStreamermm"
-#: C/guitar-tuner.cpp.page:129(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.cpp.page:129
msgid ""
"To use GStreamermm, it has to be initialised. We do that by adding the "
"following line of code next to the <code>Gtk::Main kit(argc, argv);</code> "
"line in <file>main.cc</file>:"
msgstr ""
-#: C/guitar-tuner.cpp.page:131(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.cpp.page:131
#, no-wrap
msgid "\tGst::init (argc, argv);"
msgstr "\tGst::init (argc, argv);"
-#: C/guitar-tuner.cpp.page:132(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.cpp.page:132
msgid ""
"While we are on it, also make sure that the <file>gstreamermm.h</file> is "
"included in <file>main.cc</file> properly."
msgstr ""
-#: C/guitar-tuner.cpp.page:136(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.cpp.page:136
msgid ""
"To simplify the handling of the pipeline we will define a helper class "
"<code>Sound</code>. We do that in <file>main.cc</file> in order to keep this "
"example simple, whereas you might usually want to use a separate file:"
msgstr ""
-#: C/guitar-tuner.cpp.page:139(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.cpp.page:139
#, no-wrap
msgid ""
"\n"
@@ -10450,22 +12287,26 @@ msgid ""
"}\n"
msgstr ""
-#: C/guitar-tuner.cpp.page:183(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.cpp.page:183
msgid "The code has the following purpose:"
msgstr "Der Code hat den folgenden Zweck:"
-#: C/guitar-tuner.cpp.page:186(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.cpp.page:186
msgid ""
"In the constructor, source and sink GStreamer elements (<code>Gst::Element</"
-"code>) are created, and a pipeline element (which will be used as a container "
-"for the other two elements). The pipeline is given the name \"note\"; the "
-"source is named \"source\" and is set to the <code>audiotestsrc</code> "
-"source; and the sink is named \"output\" and set to the <code>autoaudiosink</"
-"code> sink (default sound card output). After the elements have been added to "
-"the pipeline and linked together, the pipeline is ready to run."
+"code>) are created, and a pipeline element (which will be used as a "
+"container for the other two elements). The pipeline is given the name \"note"
+"\"; the source is named \"source\" and is set to the <code>audiotestsrc</"
+"code> source; and the sink is named \"output\" and set to the "
+"<code>autoaudiosink</code> sink (default sound card output). After the "
+"elements have been added to the pipeline and linked together, the pipeline "
+"is ready to run."
msgstr ""
-#: C/guitar-tuner.cpp.page:189(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.cpp.page:189
msgid ""
"<code>start_playing</code> sets the source element to play a particular "
"frequency and then starts the pipeline so the sound actually starts playing. "
@@ -10473,7 +12314,8 @@ msgid ""
"stop the pipeline after 200 ms by calling <code>stop_playing</code>."
msgstr ""
-#: C/guitar-tuner.cpp.page:194(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.cpp.page:194
msgid ""
"In <code>stop_playing</code> which is called when the timeout has elapsed, "
"the pipeline is stopped and as such there isn't any sound output anymore. As "
@@ -10482,26 +12324,30 @@ msgid ""
"is destroyed."
msgstr ""
-#: C/guitar-tuner.cpp.page:202(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.cpp.page:202
msgid "Connecting the signals"
msgstr "Verbinden der Signale"
-#: C/guitar-tuner.cpp.page:203(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.cpp.page:203
msgid ""
"We want to play the correct sound when the user clicks a button. That means "
"that we have to connect to the signal that is fired when the user clicks the "
-"button. We also want to provide information to the called function which tone "
-"to play. GTKmm makes that quite easy as we can easily bind information with "
-"the <em>sigc</em> library."
+"button. We also want to provide information to the called function which "
+"tone to play. GTKmm makes that quite easy as we can easily bind information "
+"with the <em>sigc</em> library."
msgstr ""
-#: C/guitar-tuner.cpp.page:208(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.cpp.page:208
msgid ""
"The function that is called when the user clicks a button can be pretty "
"simple, as all the interesting stuff is done in the helper class now:"
msgstr ""
-#: C/guitar-tuner.cpp.page:210(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.cpp.page:210
#, no-wrap
msgid ""
"\n"
@@ -10512,7 +12358,8 @@ msgid ""
"}\n"
msgstr ""
-#: C/guitar-tuner.cpp.page:217(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.cpp.page:217
msgid ""
"It only calls the helper class we defined before to play the correct "
"frequencies. With some more clever code we would also have been able to "
@@ -10520,14 +12367,16 @@ msgid ""
"that to use as an exercise."
msgstr ""
-#: C/guitar-tuner.cpp.page:221(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.cpp.page:221
msgid ""
"The code to set up the signals should be added to the <code>main()</code> "
"function just after the <code>builder->get_widget(\"main_window\", "
"main_win);</code> line:"
msgstr ""
-#: C/guitar-tuner.cpp.page:223(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.cpp.page:223
#, no-wrap
msgid ""
"\n"
@@ -10539,56 +12388,65 @@ msgid ""
" 329.63, &sound));\n"
msgstr ""
-#: C/guitar-tuner.cpp.page:233(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.cpp.page:233
msgid ""
"At first we create an instance of our helper class that we want to use now "
"and declare a variable for the button we want to connect to."
msgstr ""
-#: C/guitar-tuner.cpp.page:237(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.cpp.page:237
msgid ""
"Next, we receive the button object from the user interface that was created "
"out of the user interface file. Remember that <em>button_E</em> is the name "
"we gave to the first button."
msgstr ""
-#: C/guitar-tuner.cpp.page:241(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.cpp.page:241
msgid ""
"Finally we connect the <em>clicked</em> signal. This isn't fully "
-"straightforward because this is done in a fully type-safe way and we actually "
-"want to pass the frequency and our helper class to the signal handler. "
-"<code>sigc::ptr_fun(&on_button_clicked)</code> creates a <em>slot</em> "
-"for the <code>on_button_clicked</code> method we defined above. With "
-"<code>sigc::bind</code> we are able to pass additional arguments to the slot "
-"and in this case we pass the frequency (as double) and our helper class."
+"straightforward because this is done in a fully type-safe way and we "
+"actually want to pass the frequency and our helper class to the signal "
+"handler. <code>sigc::ptr_fun(&on_button_clicked)</code> creates a "
+"<em>slot</em> for the <code>on_button_clicked</code> method we defined "
+"above. With <code>sigc::bind</code> we are able to pass additional arguments "
+"to the slot and in this case we pass the frequency (as double) and our "
+"helper class."
msgstr ""
-#: C/guitar-tuner.cpp.page:248(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.cpp.page:248
msgid ""
"Now that we have set up the <em>E</em> button we also need to connect the "
-"other buttons according to their frequencies: 440 for A, 587.33 for D, 783.99 "
-"for G, 987.77 for B and 1318.5 for the high E. This is done in the same way, "
-"just passing a different frequency to the handler."
+"other buttons according to their frequencies: 440 for A, 587.33 for D, "
+"783.99 for G, 987.77 for B and 1318.5 for the high E. This is done in the "
+"same way, just passing a different frequency to the handler."
msgstr ""
-#: C/guitar-tuner.cpp.page:255(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.cpp.page:255
msgid ""
"All of the code should now be ready to go. Click <guiseq><gui>Build</"
"gui><gui>Build Project</gui></guiseq> to build everything again, and then "
"<guiseq><gui>Run</gui><gui>Run</gui></guiseq> to start the application."
msgstr ""
-#: C/guitar-tuner.cpp.page:261(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.cpp.page:261
msgid ""
-"If you run into problems with the tutorial, compare your code with this <link "
-"href=\"guitar-tuner/guitar-tuner.cc\">reference code</link>."
+"If you run into problems with the tutorial, compare your code with this "
+"<link href=\"guitar-tuner/guitar-tuner.cc\">reference code</link>."
msgstr ""
-#: C/guitar-tuner.cpp.page:265(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.cpp.page:265
msgid "Further Reading"
msgstr "Weitere Informationen"
-#: C/guitar-tuner.cpp.page:266(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.cpp.page:266
msgid ""
"Many of the things shown above are explained in detail in the <link href="
"\"http://library.gnome.org/devel/gtkmm-tutorial/stable/\">GTKmm book</link> "
@@ -10597,17 +12455,20 @@ msgid ""
"devel/gstreamermm/\">GStreamermm reference documentation</link>."
msgstr ""
-#: C/guitar-tuner.js.page:6(info/title)
+#. (itstool) path: info/title
+#: C/guitar-tuner.js.page:6
msgctxt "text"
msgid "Guitar tuner (JavaScript)"
msgstr "Gitarrenstimmgerät (JavaScript)"
-#: C/guitar-tuner.js.page:16(info/desc)
+#. (itstool) path: info/desc
+#: C/guitar-tuner.js.page:16
msgid ""
"Use GTK+ and GStreamer to build a simple guitar tuner application for GNOME."
msgstr ""
-#: C/guitar-tuner.js.page:22(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/guitar-tuner.js.page:22
msgid ""
"In this tutorial we'll construct a small application, Guitar Tuner, using "
"JavaScript and GTK+ and GStreamer. To do and run all the code examples "
@@ -10615,64 +12476,78 @@ msgid ""
"higher installed into your computer."
msgstr ""
-#: C/guitar-tuner.js.page:24(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.js.page:24
#, fuzzy
#| msgid "An example GStreamer pipeline."
msgid "<link xref=\"#gstreamer\">GStreamer pipelines</link>"
msgstr "Eine Beispiel-Weiterleitung in GStreamer."
-#: C/guitar-tuner.js.page:25(item/p) C/weatherAppMain.js.page:22(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.js.page:25 C/weatherAppMain.js.page:22
msgid "<link xref=\"#script\">Script for running the application</link>"
msgstr ""
-#: C/guitar-tuner.js.page:26(item/p) C/weatherAppMain.js.page:23(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.js.page:26 C/weatherAppMain.js.page:23
msgid "<link xref=\"#imports\">Libraries to import</link>"
msgstr ""
-#: C/guitar-tuner.js.page:27(item/p) C/weatherAppMain.js.page:24(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.js.page:27 C/weatherAppMain.js.page:24
msgid ""
-"<link xref=\"#mainwindow\">Creating the main window for the application</link>"
+"<link xref=\"#mainwindow\">Creating the main window for the application</"
+"link>"
msgstr ""
-#: C/guitar-tuner.js.page:28(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.js.page:28
msgid "<link xref=\"#buttons\">Buttons for the tunes</link>"
msgstr ""
-#: C/guitar-tuner.js.page:29(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.js.page:29
msgid "<link xref=\"#playSound\">Making the sounds with GStreamer</link>"
msgstr ""
-#: C/guitar-tuner.js.page:30(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.js.page:30
msgid "<link xref=\"#connecting\">Connecting buttons to playSound</link>"
msgstr ""
-#: C/guitar-tuner.js.page:31(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.js.page:31
msgid "<link xref=\"#guitarjs\">The whole program</link>"
msgstr ""
-#: C/guitar-tuner.js.page:32(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.js.page:32
msgid "<link xref=\"#terminal\">Running the application form Terminal</link>"
msgstr ""
-#: C/guitar-tuner.js.page:35(page/p) C/weatherApp.js.page:39(page/p)
+#. (itstool) path: page/p
+#: C/guitar-tuner.js.page:35 C/weatherApp.js.page:39
msgid "After reading this tutorial, you should see this in your screen:"
msgstr ""
-#: C/guitar-tuner.js.page:47(section/title)
-#: C/helloWorld.js.page:45(section/title)
-#: C/weatherAppMain.js.page:32(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.js.page:47 C/hello-world.js.page:45
+#: C/weatherAppMain.js.page:32
msgid "Script for running the application"
msgstr "Skript zum Ausführen der Anwendung"
-#: C/guitar-tuner.js.page:48(section/code)
-#: C/weatherAppMain.js.page:33(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.js.page:48 C/weatherAppMain.js.page:33
#, no-wrap
msgid ""
"\n"
" #!/usr/bin/gjs"
msgstr ""
+"\n"
+" #!/usr/bin/gjs"
-#: C/guitar-tuner.js.page:50(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.js.page:50
msgid ""
"This line tells how to run the script. It needs to be the first line of the "
"code and it needs to be executable. To get the execution rights go to "
@@ -10682,7 +12557,8 @@ msgid ""
"the box for allow executing file as a program"
msgstr ""
-#: C/guitar-tuner.js.page:55(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.js.page:55
#, no-wrap
msgid ""
"\n"
@@ -10691,25 +12567,33 @@ msgid ""
"\n"
"const Mainloop = imports.mainloop;"
msgstr ""
+"\n"
+"var Gtk = imports.gi.Gtk;\n"
+"var Gst = imports.gi.Gst;\n"
+"\n"
+"const Mainloop = imports.mainloop;"
-#: C/guitar-tuner.js.page:60(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.js.page:60
msgid ""
"In order to have a working program we need to import a few GObject "
"Introspection -libraries to our use. For working UI, we need Gtk and for "
-"Gstreamer to work we need Gst. These are imported in the beginning so we have "
-"them at use everywhere. Also in the beginning we import a construct Mainloop "
-"to handle the timeout to be used with the tuning sounds."
+"Gstreamer to work we need Gst. These are imported in the beginning so we "
+"have them at use everywhere. Also in the beginning we import a construct "
+"Mainloop to handle the timeout to be used with the tuning sounds."
msgstr ""
-#: C/guitar-tuner.js.page:63(section/title)
-#: C/helloWorld.js.page:58(section/title)
-#: C/weatherAppMain.js.page:48(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.js.page:63 C/hello-world.c.page:48 C/hello-world.js.page:58
+#: C/hello-world.py.page:51 C/hello-world.vala.page:43
+#: C/weatherAppMain.js.page:48
#, fuzzy
#| msgid "Designing the application"
msgid "Creating the main window for the application"
msgstr "Entwurf der Anwendung"
-#: C/guitar-tuner.js.page:64(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.js.page:64
#, no-wrap
msgid ""
"\n"
@@ -10723,21 +12607,34 @@ msgid ""
"guitarwindow.show();\n"
"Gtk.main();"
msgstr ""
+"\n"
+"Gtk.init(null, 0);\n"
+"Gst.init(null, 0);\n"
+"\n"
+"var guitarwindow = new Gtk.Window({type: Gtk.WindowType.TOPLEVEL, border_width: 100});\n"
+"guitarwindow.title = \"Guitar Tuner\";\n"
+"guitarwindow.connect(\"destroy\", function(){Gtk.main_quit()});\n"
+"\n"
+"guitarwindow.show();\n"
+"Gtk.main();"
-#: C/guitar-tuner.js.page:74(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.js.page:74
msgid ""
"Importing Gtk and Gst is not enough, we need to initialize them in order to "
"get them working. When Gtk and Gst are up and running we need to create the "
"window for the application. Later we are going to put all the buttons for "
-"making sounds inside this window. In order to get the window showing, we need "
-"to tell it to show and we need also to run the code with the Gtk.main()"
+"making sounds inside this window. In order to get the window showing, we "
+"need to tell it to show and we need also to run the code with the Gtk.main()"
msgstr ""
-#: C/guitar-tuner.js.page:77(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.js.page:77
msgid "Buttons for the tunes"
msgstr ""
-#: C/guitar-tuner.js.page:78(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.js.page:78
#, no-wrap
msgid ""
"\n"
@@ -10761,30 +12658,54 @@ msgid ""
"\n"
"guitar_box.show_all();"
msgstr ""
+"\n"
+"var guitar_box = new Gtk.ButtonBox ({orientation: Gtk.Orientation.VERTICAL, spacing: 10});\n"
+"\n"
+"var E = new Gtk.Button({label: \"E\"});\n"
+"var A = new Gtk.Button({label: \"A\"});\n"
+"var D = new Gtk.Button({label: \"D\"});\n"
+"var G = new Gtk.Button({label: \"G\"});\n"
+"var B = new Gtk.Button({label: \"B\"});\n"
+"var e = new Gtk.Button({label: \"e\"});\n"
+"\n"
+"guitar_box.add(E);\n"
+"guitar_box.add(A);\n"
+"guitar_box.add(D);\n"
+"guitar_box.add(G);\n"
+"guitar_box.add(B);\n"
+"guitar_box.add(e);\n"
+"\n"
+"guitarwindow.add(guitar_box);\n"
+"\n"
+"guitar_box.show_all();"
-#: C/guitar-tuner.js.page:98(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.js.page:98
msgid ""
"Because Gtk.Window can only contain a single widget, we need to create "
"something under it to be able to add all the necessary buttons inside it. In "
-"this example we use Buttonbox. After creating the Buttonbox we create buttons "
-"with necessary labels. After we have the buttons we need to add them to the "
-"Buttonbox and the Buttonbox must be added to the Gtk.Window and everything in "
-"the Buttonbox must be shown."
+"this example we use Buttonbox. After creating the Buttonbox we create "
+"buttons with necessary labels. After we have the buttons we need to add them "
+"to the Buttonbox and the Buttonbox must be added to the Gtk.Window and "
+"everything in the Buttonbox must be shown."
msgstr ""
-#: C/guitar-tuner.js.page:99(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.js.page:99
msgid ""
"After this stage you should have a window appearing to your screen showing 6 "
"buttons. Right now the buttons don't do anything and we shall address that "
-"issue later. Before we can connect the button signals to something we need to "
-"code that something first."
+"issue later. Before we can connect the button signals to something we need "
+"to code that something first."
msgstr ""
-#: C/guitar-tuner.js.page:102(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.js.page:102
msgid "Making the sounds with GStreamer"
msgstr ""
-#: C/guitar-tuner.js.page:103(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.js.page:103
#, no-wrap
msgid ""
"\n"
@@ -10802,13 +12723,14 @@ msgid ""
" pipeline.set_state(Gst.State.PLAYING);\n"
"\n"
" Mainloop.timeout_add(500, function () {\n"
-" pipeline.set_state(Gst.State.PAUSED);\n"
+" pipeline.set_state(Gst.State.NULL);\n"
"\t return false;\n"
" });\n"
"}"
msgstr ""
-#: C/guitar-tuner.js.page:122(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.js.page:122
msgid ""
"The first thing we need to do is decide what tunes we want to make when we "
"push a button. The frequencies list takes care of that. After that we get to "
@@ -10817,22 +12739,25 @@ msgid ""
"frequencies variable). First thing we need to construct is a pipeline, a "
"source and a sink. For the source we set the frequency. To the pipeline we "
"add both the source and the sink and then we tell it to keep playing. As a "
-"last thing we use the const Mainloop to get the pipeline to pause after a "
+"last thing we use the const Mainloop to get the pipeline to stop after a "
"500ms."
msgstr ""
-#: C/guitar-tuner.js.page:123(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.js.page:123
msgid ""
"Now we have the method of playing a tune when clicking a button. Next well "
"make the conncetions between pushing a button and playing the correct sound "
"from that button."
msgstr ""
-#: C/guitar-tuner.js.page:126(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.js.page:126
msgid "Connecting buttons to playSound"
msgstr ""
-#: C/guitar-tuner.js.page:127(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.js.page:127
#, no-wrap
msgid ""
"\n"
@@ -10856,29 +12781,34 @@ msgid ""
"});"
msgstr ""
-#: C/guitar-tuner.js.page:146(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.js.page:146
msgid ""
"The method of connecting button clicks to playSound with the correct tune is "
-"by using the connect method of the button widget. So we choose a button to be "
-"connected and type <code>E.connect(\"clicked\", function(){playSound"
-"(frequencies.E);});</code> The <code>connect</code> tells that when pushing "
-"E, something should happen. The <code>clicked</code> tells the type of the "
-"signal happening to E and then in the <code>function(){};</code> we call "
-"playSound with the correct note that should be associated with the button."
+"by using the connect method of the button widget. So we choose a button to "
+"be connected and type <code>E.connect(\"clicked\", function()"
+"{playSound(frequencies.E);});</code> The <code>connect</code> tells that "
+"when pushing E, something should happen. The <code>clicked</code> tells the "
+"type of the signal happening to E and then in the <code>function(){};</code> "
+"we call playSound with the correct note that should be associated with the "
+"button."
msgstr ""
-#: C/guitar-tuner.js.page:156(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.js.page:156
msgid "The whole program"
msgstr ""
-#: C/guitar-tuner.js.page:157(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.js.page:157
msgid ""
"So this is what all the parts combined looks like. When running this code, "
"you should be able to tune your guitar(if you have correctly calibrated "
"speakers)."
msgstr ""
-#: C/guitar-tuner.js.page:158(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.js.page:158
#, no-wrap
msgid ""
"\n"
@@ -10920,7 +12850,7 @@ msgid ""
" pipeline.set_state(Gst.State.PLAYING);\n"
"\n"
" Mainloop.timeout_add(500, function () {\n"
-" pipeline.set_state(Gst.State.PAUSED);\n"
+" pipeline.set_state(Gst.State.NULL);\n"
"\t return false;\n"
"});\n"
"}\n"
@@ -10958,51 +12888,60 @@ msgid ""
"Gtk.main();"
msgstr ""
-#: C/guitar-tuner.js.page:236(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.js.page:236
msgid "Running the application form Terminal"
msgstr "Die Anwendung im Terminal ausführen"
-#: C/guitar-tuner.js.page:237(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.js.page:237
msgid ""
"To run this application open Terminal, go to the folder where your "
"application is stored and then run"
msgstr ""
-#: C/guitar-tuner.js.page:237(section/screen)
+#. (itstool) path: section/screen
+#: C/guitar-tuner.js.page:237
#, no-wrap
msgid " <output style=\"prompt\">$ </output><input> GJS_PATH=`pwd` gjs guitarTuner.js</input> "
msgstr ""
-#: C/guitar-tuner.js.page:242(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.js.page:242
msgid ""
-"If you run into problems with the tutorial, compare your code with this <link "
-"href=\"guitar-tuner/guitar-tuner.js\">reference code</link>."
+"If you run into problems with the tutorial, compare your code with this "
+"<link href=\"guitar-tuner/guitar-tuner.js\">reference code</link>."
msgstr ""
-#: C/guitar-tuner.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/guitar-tuner.py.page:7
msgctxt "text"
msgid "Guitar tuner (Python)"
msgstr "Gitarrenstimmgerät (Python)"
-#: C/guitar-tuner.py.page:45(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.py.page:45
msgid "Basic knowledge of the Python programming language"
msgstr ""
-#: C/guitar-tuner.py.page:59(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.py.page:59
msgid ""
"Choose <gui>PyGTK (automake)</gui> from the <gui>Python</gui> tab, click "
"<gui>Continue</gui>, and fill out your details on the next few pages. Use "
"<file>guitar-tuner</file> as project name and directory."
msgstr ""
-#: C/guitar-tuner.py.page:62(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.py.page:62
msgid ""
"Click <gui>Apply</gui> and the project will be created for you. Open "
"<file>src/guitar_tuner.py</file> from the <gui>Project</gui> or <gui>File</"
"gui> tabs. You should see some code which starts with the lines:"
msgstr ""
-#: C/guitar-tuner.py.page:63(item/code)
+#. (itstool) path: item/code
+#: C/guitar-tuner.py.page:63
#, no-wrap
msgid ""
"\n"
@@ -11010,115 +12949,135 @@ msgid ""
"import os, sys"
msgstr ""
-#: C/guitar-tuner.py.page:71(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.py.page:71
msgid "Run the code for the first time"
msgstr "Erste Ausführung des Codes"
-#: C/guitar-tuner.py.page:72(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.py.page:72
msgid ""
"Most of the code in the file is template code. It loads an (empty) window "
-"from the user interface description file and shows it. More details are given "
-"below; skip this list if you understand the basics:"
+"from the user interface description file and shows it. More details are "
+"given below; skip this list if you understand the basics:"
msgstr ""
-#: C/guitar-tuner.py.page:76(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.py.page:76
msgid ""
"The <code>import</code> lines at the top include the tell Python to load the "
"user interface and system libraries needed."
msgstr ""
-#: C/guitar-tuner.py.page:80(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.py.page:80
msgid ""
"A class is declared that will be the main class for our application. In the "
"<code>__init__</code> method the main window is loaded from the GtkBuilder "
"file (<file>src/guitar-tuner.ui</file>) and the signals are connected."
msgstr ""
-#: C/guitar-tuner.py.page:83(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.py.page:83
msgid ""
"Connecting signals is how you define what happens when you push a button, or "
"when some other event happens. Here, the <code>destroy</code> method is "
"called (and quits the app) when you close the window."
msgstr ""
-#: C/guitar-tuner.py.page:86(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.py.page:86
msgid ""
"The <code>main</code> function is run by default when you start a Python "
"application. It just creates an instance of the main class and starts the "
"main loop to bring up the window."
msgstr ""
-#: C/guitar-tuner.py.page:91(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.py.page:91
msgid ""
"This code is ready to be used, so you can run it by clicking "
"<guiseq><gui>Run</gui><gui>Execute</gui></guiseq>."
msgstr ""
-#: C/guitar-tuner.py.page:96(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.py.page:96
msgid ""
-"A description of the user interface (UI) is contained in the GtkBuilder file. "
-"To edit the user interface, open <file>src/guitar_tuner.ui</file>. This will "
-"switch to the interface designer. The design window is in the center; widgets "
-"and widgets' properties are on the right, and the palette of available "
-"widgets is on the left."
+"A description of the user interface (UI) is contained in the GtkBuilder "
+"file. To edit the user interface, open <file>src/guitar_tuner.ui</file>. "
+"This will switch to the interface designer. The design window is in the "
+"center; widgets and widgets' properties are on the right, and the palette of "
+"available widgets is on the left."
msgstr ""
-#: C/guitar-tuner.py.page:126(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.py.page:126
msgid "Write the signal handler"
msgstr ""
-#: C/guitar-tuner.py.page:128(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.py.page:128
msgid ""
"To do this, open <file>guitar_tuner.py</file> while the user interface file "
"is still open. Switch to the <gui>Signals</gui> tab, which you already used "
-"to set the signal name. Now take the row where you set the <gui>clicked</gui> "
-"signal and drag it into to the source file inside the class. The following "
-"code will be added to your source file:"
+"to set the signal name. Now take the row where you set the <gui>clicked</"
+"gui> signal and drag it into to the source file inside the class. The "
+"following code will be added to your source file:"
msgstr ""
-#: C/guitar-tuner.py.page:130(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.py.page:130
#, no-wrap
msgid ""
"\n"
"def on_button_clicked (self, button):\n"
msgstr ""
+"\n"
+"def on_button_clicked (self, button):\n"
-#: C/guitar-tuner.py.page:134(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.py.page:134
msgid ""
"This signal handler has two arguments: the usual Python class pointer, and "
"the <code>Gtk.Button</code> that called the function."
msgstr ""
-#: C/guitar-tuner.py.page:152(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.py.page:152
msgid ""
-"Change the import line in <file>guitar_tuner.py</file>, just at the beginning "
-"to :"
+"Change the import line in <file>guitar_tuner.py</file>, just at the "
+"beginning to :"
msgstr ""
-#: C/guitar-tuner.py.page:153(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.py.page:153
#, no-wrap
msgid "from gi.repository import Gtk, Gst, GObject "
-msgstr ""
+msgstr "from gi.repository import Gtk, Gst, GObject "
-#: C/guitar-tuner.py.page:154(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.py.page:154
msgid ""
"The <code>Gst</code> includes the GStreamer library. You also need to "
-"initialise GStreamer properly which is done in the <code>main()</code> method "
-"with this call added above the <code>app = GUI()</code> line:"
+"initialise GStreamer properly which is done in the <code>main()</code> "
+"method with this call added above the <code>app = GUI()</code> line:"
msgstr ""
-#: C/guitar-tuner.py.page:157(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.py.page:157
#, no-wrap
msgid "Gst.init_check(sys.argv)"
-msgstr ""
+msgstr "Gst.init_check(sys.argv)"
-#: C/guitar-tuner.py.page:158(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.py.page:158
msgid ""
"Then, copy the following function into the class in <file>guitar_tuner.py</"
"file> somewhere:"
msgstr ""
-#: C/guitar-tuner.py.page:159(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.py.page:159
#, no-wrap
msgid ""
"\n"
@@ -11136,7 +13095,8 @@ msgid ""
"\tGObject.timeout_add(self.LENGTH, self.pipeline_stop, pipeline)"
msgstr ""
-#: C/guitar-tuner.py.page:174(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.py.page:174
msgid ""
"The first three lines create source and sink GStreamer elements and a "
"pipeline element (which will be used as a container for the other two "
@@ -11146,16 +13106,18 @@ msgid ""
"sound card output)."
msgstr ""
-#: C/guitar-tuner.py.page:177(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.py.page:177
msgid ""
"The call to <code>source.set_property</code> sets the <code>freq</code> "
-"property of the source element to <code>frequency</code>, which was passed as "
-"an argument to the <code>play_sound</code> function. This is just the "
-"frequency of the note in Hertz; some useful frequencies will be defined later "
-"on."
+"property of the source element to <code>frequency</code>, which was passed "
+"as an argument to the <code>play_sound</code> function. This is just the "
+"frequency of the note in Hertz; some useful frequencies will be defined "
+"later on."
msgstr ""
-#: C/guitar-tuner.py.page:180(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.py.page:180
msgid ""
"The next two lines call <code>pipeline.add</code>, putting the source and "
"sink into the pipeline. The pipeline can contain multiple other GStreamer "
@@ -11163,57 +13125,68 @@ msgid ""
"pipeline by calling its <code>add</code> method repeatedly."
msgstr ""
-#: C/guitar-tuner.py.page:183(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.py.page:183
msgid ""
"Next <code>pipeline.set_state</code> is used to start playback, by setting "
"the state of the pipeline to playing (<code>Gst.State.PLAYING</code>)."
msgstr ""
-#: C/guitar-tuner.py.page:191(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.py.page:191
msgid ""
"We don't want to play an annoying tone forever, so the last thing "
"<code>play_sound</code> does is to call <code>GObject.timeout_add</code>. "
"This sets a timeout for stopping the sound; it waits for <code>LENGTH</code> "
-"milliseconds before calling the function <code>pipeline_stop</code>, and will "
-"keep calling it until <code>pipeline_stop</code> returns <code>False</code>."
+"milliseconds before calling the function <code>pipeline_stop</code>, and "
+"will keep calling it until <code>pipeline_stop</code> returns <code>False</"
+"code>."
msgstr ""
-#: C/guitar-tuner.py.page:192(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.py.page:192
msgid ""
"Now, we'll write the <code>pipeline_stop</code> function which is called by "
"<code>GObject.timeout_add</code>. Insert the following code <em>above</em> "
"the <code>play_sound</code> function:"
msgstr ""
-#: C/guitar-tuner.py.page:193(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.py.page:193
#, no-wrap
msgid ""
"\n"
"def pipeline_stop(self, pipeline):\n"
-"\tpipeline.set_state(Gst.State.PAUSED)\n"
+"\tpipeline.set_state(Gst.State.NULL)\n"
"\treturn False\n"
msgstr ""
-#: C/guitar-tuner.py.page:198(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.py.page:198
msgid ""
"You need to define the <code>LENGTH</code> constant inside the class, so add "
"this code at the beginning of the main class:"
msgstr ""
-#: C/guitar-tuner.py.page:200(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.py.page:200
#, no-wrap
msgid ""
"\n"
"LENGTH = 500\n"
msgstr ""
+"\n"
+"LENGTH = 500\n"
-#: C/guitar-tuner.py.page:203(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.py.page:203
msgid ""
-"The call to <code>pipeline.set_state</code> pauses the playback of the "
+"The call to <code>pipeline.set_state</code> stops the playback of the "
"pipeline."
msgstr ""
-#: C/guitar-tuner.py.page:208(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.py.page:208
msgid ""
"We want to play the correct sound when the user clicks a button. First of "
"all, we need to know the frequencies for the six guitar strings, which are "
@@ -11221,7 +13194,8 @@ msgid ""
"easily map them to the names of the strings:"
msgstr ""
-#: C/guitar-tuner.py.page:210(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.py.page:210
#, no-wrap
msgid ""
"\n"
@@ -11236,7 +13210,8 @@ msgid ""
"}\n"
msgstr ""
-#: C/guitar-tuner.py.page:222(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.py.page:222
#, no-wrap
msgid ""
"\n"
@@ -11247,116 +13222,131 @@ msgid ""
"\tself.play_sound (self.frequencies[text])\n"
msgstr ""
-#: C/guitar-tuner.py.page:229(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.py.page:229
msgid ""
-"The button that was clicked is passed as an argument (<code>button</code>) to "
-"<code>on_button_clicked</code>. We can get the label of that button by using "
-"<code>button.get_child</code>, and then get the text from that label using "
-"<code>label.get_label</code>."
+"The button that was clicked is passed as an argument (<code>button</code>) "
+"to <code>on_button_clicked</code>. We can get the label of that button by "
+"using <code>button.get_child</code>, and then get the text from that label "
+"using <code>label.get_label</code>."
msgstr ""
-#: C/guitar-tuner.py.page:230(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.py.page:230
msgid ""
-"The label text is then used as a key for the dictionary and <code>play_sound</"
-"code> is called with the frequency appropriate for that note. This plays the "
-"tone; we have a working guitar tuner!"
+"The label text is then used as a key for the dictionary and "
+"<code>play_sound</code> is called with the frequency appropriate for that "
+"note. This plays the tone; we have a working guitar tuner!"
msgstr ""
-#: C/guitar-tuner.py.page:234(section/title)
-#: C/image-viewer.js.page:310(section/title)
-#: C/image-viewer.py.page:224(section/title)
-#: C/record-collection.js.page:291(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.py.page:234 C/image-viewer.js.page:310
+#: C/image-viewer.py.page:224 C/record-collection.js.page:291
msgid "Run the application"
msgstr "Anwendung ausführen"
-#: C/guitar-tuner.py.page:235(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.py.page:235
msgid ""
"All of the code should now be ready to go. Click <guiseq><gui>Run</"
"gui><gui>Execute</gui></guiseq> to start the application. Enjoy!"
msgstr ""
-#: C/guitar-tuner.py.page:240(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.py.page:240
msgid ""
-"If you run into problems with the tutorial, compare your code with this <link "
-"href=\"guitar-tuner/guitar-tuner.py\">reference code</link>."
+"If you run into problems with the tutorial, compare your code with this "
+"<link href=\"guitar-tuner/guitar-tuner.py\">reference code</link>."
msgstr ""
-#: C/guitar-tuner.vala.page:9(info/desc)
+#. (itstool) path: info/desc
+#: C/guitar-tuner.vala.page:9
msgid ""
-"Use <link href=\"http://developer.gnome.org/platform-overview/stable/gtk\">GTK"
-"+</link> and <link href=\"http://developer.gnome.org/platform-overview/stable/"
-"gstreamer\">GStreamer</link> to build a simple guitar tuner application for "
-"GNOME. Shows off how to use the interface designer."
+"Use <link href=\"http://developer.gnome.org/platform-overview/stable/gtk"
+"\">GTK+</link> and <link href=\"http://developer.gnome.org/platform-overview/"
+"stable/gstreamer\">GStreamer</link> to build a simple guitar tuner "
+"application for GNOME. Shows off how to use the interface designer."
msgstr ""
-#: C/guitar-tuner.vala.page:34(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/guitar-tuner.vala.page:34
msgid ""
"In this tutorial you will create an application which plays tones that you "
"can use to tune a guitar. You will learn how to:"
msgstr ""
-#: C/guitar-tuner.vala.page:36(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.vala.page:36
msgid ""
"Set up a basic project using the <link xref=\"getting-ready\">Anjuta IDE</"
"link>."
msgstr ""
-#: C/guitar-tuner.vala.page:37(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.vala.page:37
msgid "Create a simple GUI with <app>Anjuta</app>'s UI designer."
msgstr ""
-#: C/guitar-tuner.vala.page:38(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.vala.page:38
msgid ""
"Use the <link href=\"http://developer.gnome.org/platform-overview/stable/"
"gstreamer\">GStreamer</link> library to play sounds."
msgstr ""
-#: C/guitar-tuner.vala.page:42(item/p) C/image-viewer.vala.page:47(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.vala.page:42 C/image-viewer.vala.page:47
msgid ""
"Basic knowledge of the <link href=\"https://live.gnome.org/Vala/Tutorial"
"\">Vala</link> programming language."
msgstr ""
-#: C/guitar-tuner.vala.page:43(item/p) C/image-viewer.vala.page:48(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.vala.page:43 C/image-viewer.vala.page:48
msgid "An installed copy of <app>Anjuta</app>."
msgstr ""
-#: C/guitar-tuner.vala.page:50(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.vala.page:50
msgid "Create a project in <app>Anjuta</app>"
msgstr ""
-#: C/guitar-tuner.vala.page:54(item/p) C/image-viewer.vala.page:62(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.vala.page:54 C/image-viewer.vala.page:62
msgid ""
"Start <app>Anjuta</app> and click <gui>Create a new project</gui> or "
"<guiseq><gui>File</gui><gui>New</gui><gui>Project</gui></guiseq> to open the "
"project wizard."
msgstr ""
-#: C/guitar-tuner.vala.page:57(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.vala.page:57
msgid ""
"Click on the <gui>Vala</gui> tab and select <gui>GTK+ (Simple)</gui>. Click "
"<gui>Continue</gui>, and fill out your details on the next few pages. Use "
"<file>guitar-tuner</file> as project name and directory."
msgstr ""
-#: C/guitar-tuner.vala.page:60(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.vala.page:60
msgid ""
"Make sure that <gui>Configure external packages</gui> is switched <gui>ON</"
-"gui>. On the next page, select <link href=\"http://valadoc.org/gstreamer-0.10/"
-"index.htm\"><em>gstreamer-0.10</em></link> from the list to include the "
-"GStreamer library in your project. Click <gui>Continue</gui>"
+"gui>. On the next page, select <link href=\"http://valadoc.org/"
+"gstreamer-0.10/index.htm\"><em>gstreamer-0.10</em></link> from the list to "
+"include the GStreamer library in your project. Click <gui>Continue</gui>"
msgstr ""
-#: C/guitar-tuner.vala.page:64(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.vala.page:64
msgid ""
"Click <gui>Apply</gui> and the project will be created for you. From the "
-"<gui>Project</gui> or <gui>Files</gui> tab, open <file>src/guitar_tuner.vala</"
-"file> by double-clicking on it. You should see some code which starts with "
-"the lines:"
+"<gui>Project</gui> or <gui>Files</gui> tab, open <file>src/guitar_tuner."
+"vala</file> by double-clicking on it. You should see some code which starts "
+"with the lines:"
msgstr ""
-#: C/guitar-tuner.vala.page:65(item/code)
-#: C/magic-mirror.vala.page:69(item/code)
+#. (itstool) path: item/code
+#: C/guitar-tuner.vala.page:65 C/magic-mirror.vala.page:69
#, no-wrap
msgid ""
"\n"
@@ -11364,108 +13354,123 @@ msgid ""
"using Gtk;"
msgstr ""
-#: C/guitar-tuner.vala.page:74(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.vala.page:74
msgid ""
-"The code loads an (empty) window from the user interface description file and "
-"displays it. More details are given below; you may choose to skip this list "
-"if you understand the basics:"
+"The code loads an (empty) window from the user interface description file "
+"and displays it. More details are given below; you may choose to skip this "
+"list if you understand the basics:"
msgstr ""
-#: C/guitar-tuner.vala.page:78(item/p) C/magic-mirror.vala.page:81(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.vala.page:78 C/magic-mirror.vala.page:81
msgid ""
"The two <code>using</code> lines import namespaces so we don't have to name "
"them explicitly."
msgstr ""
-#: C/guitar-tuner.vala.page:81(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.vala.page:81
msgid ""
"The constructor of the <code>Main</code> class creates a new window by "
"opening a GtkBuilder file (<file>src/guitar-tuner.ui</file>, defined a few "
-"lines above), connecting its signals and then displaying it in a window. This "
-"GtkBuilder file contains a description of a user interface and all of its "
-"elements. You can use Anjuta's editor to design GtkBuilder user interfaces."
+"lines above), connecting its signals and then displaying it in a window. "
+"This GtkBuilder file contains a description of a user interface and all of "
+"its elements. You can use Anjuta's editor to design GtkBuilder user "
+"interfaces."
msgstr ""
-#: C/guitar-tuner.vala.page:83(note/p)
+#. (itstool) path: note/p
+#: C/guitar-tuner.vala.page:83
msgid ""
"Connecting signals is how you define what happens when you push a button, or "
"when some other event happens. Here, the <code>on_destroy</code> function is "
"called (and quits the app) when you close the window."
msgstr ""
-#: C/guitar-tuner.vala.page:87(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.vala.page:87
msgid ""
-"The static <code>main</code> function is run by default when you start a Vala "
-"application. It calls a few functions which create the Main class, set up and "
-"then run the application. The <code>Gtk.main</code> function starts the GTK "
-"main loop, which runs the user interface and starts listening for events "
-"(like clicks and key presses)."
+"The static <code>main</code> function is run by default when you start a "
+"Vala application. It calls a few functions which create the Main class, set "
+"up and then run the application. The <code>Gtk.main</code> function starts "
+"the GTK main loop, which runs the user interface and starts listening for "
+"events (like clicks and key presses)."
msgstr ""
-#: C/guitar-tuner.vala.page:91(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.vala.page:91
msgid ""
"This code is ready to be used, so you can compile it by clicking "
"<guiseq><gui>Build</gui><gui>Build Project</gui></guiseq> (or press "
"<keyseq><key>Shift</key><key>F7</key></keyseq>). When you do this, a dialog "
"will appear. Change the <gui>Configuration</gui> to <gui>Default</gui> and "
-"then click <gui>Execute</gui> to configure the build directory. You only need "
-"to do this once, for the first build."
+"then click <gui>Execute</gui> to configure the build directory. You only "
+"need to do this once, for the first build."
msgstr ""
-#: C/guitar-tuner.vala.page:96(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.vala.page:96
msgid ""
"A description of the user interface (UI) is contained in the GtkBuilder file "
-"<file>src/guitar_tuner.ui</file> defined at the top of the class. To edit the "
-"user interface, open <file>src/guitar_tuner.ui</file> by double-clicking on "
-"it in the <gui>Project</gui> or <gui>Files</gui> section. This will switch to "
-"the interface designer. The design window is in the center; <gui>Widgets</"
-"gui> and the widget properties are on the right, and the <gui>Palette</gui> "
-"of available widgets is on the left."
+"<file>src/guitar_tuner.ui</file> defined at the top of the class. To edit "
+"the user interface, open <file>src/guitar_tuner.ui</file> by double-clicking "
+"on it in the <gui>Project</gui> or <gui>Files</gui> section. This will "
+"switch to the interface designer. The design window is in the center; "
+"<gui>Widgets</gui> and the widget properties are on the right, and the "
+"<gui>Palette</gui> of available widgets is on the left."
msgstr ""
-#: C/guitar-tuner.vala.page:98(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.vala.page:98
msgid ""
-"The layout of every UI in GTK+ is organized using boxes and tables. Let's use "
-"a vertical GtkButtonBox here to assign six GtkButtons, one for each of the "
-"six guitar strings."
+"The layout of every UI in GTK+ is organized using boxes and tables. Let's "
+"use a vertical GtkButtonBox here to assign six GtkButtons, one for each of "
+"the six guitar strings."
msgstr ""
-#: C/guitar-tuner.vala.page:104(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.vala.page:104
msgid ""
-"In the <gui>Palette</gui> tab, from the <gui>Containers</gui> section, select "
-"a <gui>Button Box</gui> (GtkButtonBox) by clicking on the icon. Then click on "
-"the design window in the center to place it into the window. A dialog will "
-"display where you can set the <gui>Number of items</gui> to <input>6</input>. "
-"Then click <gui>Create</gui>."
+"In the <gui>Palette</gui> tab, from the <gui>Containers</gui> section, "
+"select a <gui>Button Box</gui> (GtkButtonBox) by clicking on the icon. Then "
+"click on the design window in the center to place it into the window. A "
+"dialog will display where you can set the <gui>Number of items</gui> to "
+"<input>6</input>. Then click <gui>Create</gui>."
msgstr ""
-#: C/guitar-tuner.vala.page:105(note/p)
+#. (itstool) path: note/p
+#: C/guitar-tuner.vala.page:105
msgid ""
"You can also change the <gui>Number of elements</gui> and the "
"<gui>Orientation</gui> in the <gui>General</gui> tab on the right."
msgstr ""
-#: C/guitar-tuner.vala.page:109(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.vala.page:109
msgid ""
"Now, from the <gui>Control and Display</gui> section of the <gui>Palette</"
"gui> choose a <gui>Button</gui> (GtkButton) by clicking on it. Place it into "
"the first section of the GtkButtonBox by clicking in the first section."
msgstr ""
-#: C/guitar-tuner.vala.page:112(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.vala.page:112
msgid ""
-"While the button is still selected, scroll down in the <gui>General</gui> tab "
-"on the right to the <gui>Label</gui> property, and change it to <gui>E</gui>. "
-"This will be the low E guitar string."
+"While the button is still selected, scroll down in the <gui>General</gui> "
+"tab on the right to the <gui>Label</gui> property, and change it to <gui>E</"
+"gui>. This will be the low E guitar string."
msgstr ""
-#: C/guitar-tuner.vala.page:113(note/p)
+#. (itstool) path: note/p
+#: C/guitar-tuner.vala.page:113
msgid ""
"The <gui>General</gui> tab is located in the <gui>Widgets</gui> section on "
"the right."
msgstr ""
-#: C/guitar-tuner.vala.page:118(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.vala.page:118
msgid ""
"Click on the <gui>Signals</gui> tab in the <gui>Widgets</gui> section on the "
"right, and look for the <code>clicked</code> signal of the button. You can "
@@ -11475,16 +13480,18 @@ msgid ""
"press the <key>Enter</key>."
msgstr ""
-#: C/guitar-tuner.vala.page:131(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.vala.page:131
msgid ""
"This section will show you how to create the code to produce sounds. <link "
"href=\"http://developer.gnome.org/platform-overview/stable/gstreamer"
"\">GStreamer</link> is GNOME's multimedia framework — you can use it for "
-"playing, recording, and processing video, audio, webcam streams and the like. "
-"Here, we'll be using it to produce single-frequency tones."
+"playing, recording, and processing video, audio, webcam streams and the "
+"like. Here, we'll be using it to produce single-frequency tones."
msgstr ""
-#: C/guitar-tuner.vala.page:132(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.vala.page:132
msgid ""
"Conceptually, GStreamer works as follows: You create a <link href=\"http://"
"gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-intro-"
@@ -11494,7 +13501,8 @@ msgid ""
"output could be a widget or the soundcard."
msgstr ""
-#: C/guitar-tuner.vala.page:141(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.vala.page:141
msgid ""
"In this example we will use a tone generator source called "
"<code>audiotestsrc</code> and send the output to the default system sound "
@@ -11503,24 +13511,28 @@ msgid ""
"property of <code>audiotestsrc</code>."
msgstr ""
-#: C/guitar-tuner.vala.page:143(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.vala.page:143
msgid ""
"We need to add a line to initialize GStreamer; put the following code on the "
"line above the <code>Gtk.init</code> call in the <code>main</code> function:"
msgstr ""
-#: C/guitar-tuner.vala.page:144(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.vala.page:144
#, no-wrap
msgid "Gst.init (ref args);"
msgstr "Gst::init (argc, argv);"
-#: C/guitar-tuner.vala.page:145(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.vala.page:145
msgid ""
"Then, copy the following function into <file>guitar_tuner.vala</file> inside "
"our <code>Main</code> class:"
msgstr ""
-#: C/guitar-tuner.vala.page:146(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.vala.page:146
#, no-wrap
msgid ""
"\n"
@@ -11549,14 +13561,15 @@ msgid ""
"\tvar time = new TimeoutSource(200);\n"
"\n"
"\ttime.set_callback(() => {\n"
-"\t\tpipeline.set_state (Gst.State.PAUSED);\n"
+"\t\tpipeline.set_state (Gst.State.NULL);\n"
"\t\treturn false;\n"
"\t});\n"
"\ttime.attach(null);\n"
"}"
msgstr ""
-#: C/guitar-tuner.vala.page:180(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.vala.page:180
msgid ""
"The first three lines create source and sink GStreamer elements (<link href="
"\"http://valadoc.org/gstreamer-0.10/Gst.Element.html\"><code>Gst.Element</"
@@ -11569,7 +13582,8 @@ msgid ""
"(default sound card output)."
msgstr ""
-#: C/guitar-tuner.vala.page:183(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.vala.page:183
msgid ""
"The call to <link href=\"http://valadoc.org/gobject-2.0/GLib.Object.set.html"
"\"><code>source.set</code></link> sets the <code>freq</code> property of the "
@@ -11578,50 +13592,55 @@ msgid ""
"note in Hertz; some useful frequencies will be defined later on."
msgstr ""
-#: C/guitar-tuner.vala.page:186(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.vala.page:186
msgid ""
"<link href=\"http://valadoc.org/gstreamer-0.10/Gst.Bin.add.html"
"\"><code>pipeline.add</code></link> puts the source and sink into the "
"pipeline. The pipeline is a <link href=\"http://valadoc.org/gstreamer-0.10/"
-"Gst.Bin.html\"><code>Gst.Bin</code></link>, which is just an element that can "
-"contain multiple other GStreamer elements. In general, you can add as many "
-"elements as you like to the pipeline by adding more calls to <code>pipeline."
-"add</code>."
+"Gst.Bin.html\"><code>Gst.Bin</code></link>, which is just an element that "
+"can contain multiple other GStreamer elements. In general, you can add as "
+"many elements as you like to the pipeline by adding more calls to "
+"<code>pipeline.add</code>."
msgstr ""
-#: C/guitar-tuner.vala.page:189(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.vala.page:189
msgid ""
"Next, <link href=\"http://valadoc.org/gstreamer-0.10/Gst.Element.link.html"
-"\"><code>sink.link</code></link> is used to connect the elements together, so "
-"the output of source (a tone) goes into the input of sink (which is then "
-"output to the sound card). <link href=\"http://www.valadoc.org/gstreamer-0.10/"
-"Gst.Element.set_state.html\"><code>pipeline.set_state</code></link> is then "
-"used to start playback, by setting the <link href=\"http://www.valadoc.org/"
-"gstreamer-0.10/Gst.State.html\">state of the pipeline</link> to playing "
-"(<code>Gst.State.PLAYING</code>)."
+"\"><code>sink.link</code></link> is used to connect the elements together, "
+"so the output of source (a tone) goes into the input of sink (which is then "
+"output to the sound card). <link href=\"http://www.valadoc.org/"
+"gstreamer-0.10/Gst.Element.set_state.html\"><code>pipeline.set_state</code></"
+"link> is then used to start playback, by setting the <link href=\"http://www."
+"valadoc.org/gstreamer-0.10/Gst.State.html\">state of the pipeline</link> to "
+"playing (<code>Gst.State.PLAYING</code>)."
msgstr ""
-#: C/guitar-tuner.vala.page:192(item/p)
+#. (itstool) path: item/p
+#: C/guitar-tuner.vala.page:192
msgid ""
"We don't want to play an annoying tone forever, so the last thing "
"<code>play_sound</code> does is to add a <link href=\"http://www.valadoc.org/"
"glib-2.0/GLib.TimeoutSource.html\"><code>TimeoutSource</code></link>. This "
"sets a timeout for stopping the sound; it waits for 200 milliseconds before "
-"calling a signal handler defined inline that stops and destroys the pipeline. "
-"It returns <code>false</code> to remove itself from the timeout, otherwise it "
-"would continue to be called every 200 ms."
+"calling a signal handler defined inline that stops and destroys the "
+"pipeline. It returns <code>false</code> to remove itself from the timeout, "
+"otherwise it would continue to be called every 200 ms."
msgstr ""
-#: C/guitar-tuner.vala.page:203(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.vala.page:203
msgid ""
-"In the UI designer, you made it so that all of the buttons will call the same "
-"function, <gui>on_button_clicked</gui>, when they are clicked. Actually we "
-"type <gui>main_on_button_clicked</gui> which tells the UI designer that this "
-"method is part of our <code>Main</code>. We need to add that function in the "
-"source file."
+"In the UI designer, you made it so that all of the buttons will call the "
+"same function, <gui>on_button_clicked</gui>, when they are clicked. Actually "
+"we type <gui>main_on_button_clicked</gui> which tells the UI designer that "
+"this method is part of our <code>Main</code>. We need to add that function "
+"in the source file."
msgstr ""
-#: C/guitar-tuner.vala.page:204(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.vala.page:204
msgid ""
"To do this, in the user interface file (guitar_tuner.ui) select one of the "
"buttons by clicking on it, then open <file>guitar_tuner.vala</file> (by "
@@ -11632,7 +13651,8 @@ msgid ""
"source file:"
msgstr ""
-#: C/guitar-tuner.vala.page:206(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.vala.page:206
#, no-wrap
msgid ""
"\n"
@@ -11641,34 +13661,40 @@ msgid ""
"}"
msgstr ""
-#: C/guitar-tuner.vala.page:211(note/p)
+#. (itstool) path: note/p
+#: C/guitar-tuner.vala.page:211
msgid ""
"You can also just type the code at the beginning of the class instead of "
"using the drag and drop."
msgstr ""
-#: C/guitar-tuner.vala.page:212(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.vala.page:212
msgid ""
"This signal handler has only one argument: the <link href=\"http://valadoc."
-"org/gtk+-3.0/Gtk.Widget.html\"><code>Gtk.Widget</code></link> that called the "
-"function (in our case, always a <link href=\"http://valadoc.org/gtk+-3.0/Gtk."
-"Button.html\"><code>Gtk.Button</code></link>)."
+"org/gtk+-3.0/Gtk.Widget.html\"><code>Gtk.Widget</code></link> that called "
+"the function (in our case, always a <link href=\"http://valadoc.org/gtk+-3.0/"
+"Gtk.Button.html\"><code>Gtk.Button</code></link>)."
msgstr ""
-#: C/guitar-tuner.vala.page:218(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.vala.page:218
msgid "Define the signal handler"
msgstr ""
-#: C/guitar-tuner.vala.page:219(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.vala.page:219
msgid ""
-"We want to play the correct sound when the user clicks a button. For this, we "
-"flesh out the signal handler which we defined above, <code>on_button_clicked</"
-"code>. We could have connected every button to a different signal handler, "
-"but that would lead to a lot of code duplication. Instead, we can use the "
-"label of the button to figure out which button was clicked:"
+"We want to play the correct sound when the user clicks a button. For this, "
+"we flesh out the signal handler which we defined above, "
+"<code>on_button_clicked</code>. We could have connected every button to a "
+"different signal handler, but that would lead to a lot of code duplication. "
+"Instead, we can use the label of the button to figure out which button was "
+"clicked:"
msgstr ""
-#: C/guitar-tuner.vala.page:220(section/code)
+#. (itstool) path: section/code
+#: C/guitar-tuner.vala.page:220
#, no-wrap
msgid ""
"\n"
@@ -11699,44 +13725,50 @@ msgid ""
"}\n"
msgstr ""
-#: C/guitar-tuner.vala.page:247(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.vala.page:247
msgid ""
"The <code>Gtk.Button</code> that was clicked is passed as an argument "
-"(<code>sender</code>) to <code>on_button_clicked</code>. We can get the label "
-"of that button by using <code>get_child</code>, and then get the text from "
-"that label using <code>get_label</code>."
+"(<code>sender</code>) to <code>on_button_clicked</code>. We can get the "
+"label of that button by using <code>get_child</code>, and then get the text "
+"from that label using <code>get_label</code>."
msgstr ""
-#: C/guitar-tuner.vala.page:248(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.vala.page:248
msgid ""
"The switch statement compares the label text to the notes that we can play, "
-"and <code>play_sound</code> is called with the frequency appropriate for that "
-"note. This plays the tone; we have a working guitar tuner!"
+"and <code>play_sound</code> is called with the frequency appropriate for "
+"that note. This plays the tone; we have a working guitar tuner!"
msgstr ""
-#: C/guitar-tuner.vala.page:259(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.vala.page:259
msgid ""
-"If you run into problems with the tutorial, compare your code with this <link "
-"href=\"guitar-tuner/guitar-tuner.vala\">reference code</link>."
+"If you run into problems with the tutorial, compare your code with this "
+"<link href=\"guitar-tuner/guitar-tuner.vala\">reference code</link>."
msgstr ""
-#: C/guitar-tuner.vala.page:263(section/title)
-#: C/magic-mirror.vala.page:156(section/title)
+#. (itstool) path: section/title
+#: C/guitar-tuner.vala.page:263 C/magic-mirror.vala.page:156
msgid "Further reading"
msgstr "Weitere Informationen"
-#: C/guitar-tuner.vala.page:264(section/p)
+#. (itstool) path: section/p
+#: C/guitar-tuner.vala.page:264
msgid ""
"To find out more about the Vala programming language you might want to check "
"out the <link href=\"http://live.gnome.org/Vala/Tutorial\">Vala Tutorial</"
-"link> and the <link href=\"http://valadoc.org/\">Vala API Documentation</link>"
+"link> and the <link href=\"http://valadoc.org/\">Vala API Documentation</"
+"link>"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/hellognome.js.page:64(media)
+#: C/hellognome.js.page:64
msgctxt "_"
msgid ""
"external ref='media/hellognomewebapp.png' "
@@ -11745,39 +13777,46 @@ msgstr ""
"external ref='media/hellognomewebapp.png' "
"md5='948efb6148ede3bc6b47b4b0bbe4a74f'"
-#: C/hellognome.js.page:16(info/desc)
+#. (itstool) path: info/desc
+#: C/hellognome.js.page:16
msgid "Your first GNOME application!"
msgstr "Ihre erste GNOME-Anwendung!"
-#: C/hellognome.js.page:19(page/title)
+#. (itstool) path: page/title
+#: C/hellognome.js.page:19
msgid "1. Hello, GNOME!"
-msgstr ""
+msgstr "1. Hallo, GNOME!"
-#: C/hellognome.js.page:21(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/hellognome.js.page:21
msgid ""
"This tutorial will show you how to write your first GNOME application in "
-"JavaScript. You will use JavaScript to write for GNOME the same way you would "
-"for the web. Afterwards, you will learn how to use \"native\" widgets, to "
-"write applications that look and feel like other GNOME apps."
+"JavaScript. You will use JavaScript to write for GNOME the same way you "
+"would for the web. Afterwards, you will learn how to use \"native\" widgets, "
+"to write applications that look and feel like other GNOME apps."
msgstr ""
-#: C/hellognome.js.page:22(note/p)
+#. (itstool) path: note/p
+#: C/hellognome.js.page:22
msgid ""
"Have you gotten GNOME installed on your computer, and <link xref=\"set-up-"
"gedit.js\">gedit</link> set up to write code with? You'll want to do these "
"things first."
msgstr ""
-#: C/hellognome.js.page:28(section/title)
+#. (itstool) path: section/title
+#: C/hellognome.js.page:28
msgid "Let's start with a web page"
msgstr ""
-#: C/hellognome.js.page:30(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:30
msgid ""
"Here's some basic HTML, CSS, and JavaScript code. Does this look familiar?"
msgstr ""
-#: C/hellognome.js.page:31(section/code)
+#. (itstool) path: section/code
+#: C/hellognome.js.page:31
#, no-wrap
msgid ""
"\n"
@@ -11811,34 +13850,39 @@ msgid ""
"</html>\n"
msgstr ""
-#: C/hellognome.js.page:62(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:62
msgid ""
"Let's save this as <file>hellognome.html</file>, and see what it looks like "
"when we run it!"
msgstr ""
-#: C/hellognome.js.page:66(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:66
msgid ""
"You <em>can</em> run the above code by opening <file>hellognome.html</file> "
"in a web browser. But here, we're going to create a GNOME application that "
-"runs our web app inside of it, just like you see in the screenshot. You'll be "
-"able to resize and maximize the window, and click the X in the corner to "
+"runs our web app inside of it, just like you see in the screenshot. You'll "
+"be able to resize and maximize the window, and click the X in the corner to "
"close it, just like you'd expect from any other GNOME app. The difference is "
"that this one will run our web code inside of it."
msgstr ""
-#: C/hellognome.js.page:67(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:67
msgid ""
"The best part? We're going to continue to use JavaScript, to write all the "
"parts that make our app work with GNOME. Let's look at the code, and see how "
"it's done!"
msgstr ""
-#: C/hellognome.js.page:71(section/title)
+#. (itstool) path: section/title
+#: C/hellognome.js.page:71
msgid "Creating a GNOME window to frame our web app"
msgstr ""
-#: C/hellognome.js.page:73(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:73
msgid ""
"First, we need to tell GNOME that this is a JavaScript application, which "
"uses gjs. Gjs is GNOME's way of turning your JavaScript code into "
@@ -11846,18 +13890,23 @@ msgid ""
"your applications."
msgstr ""
-#: C/hellognome.js.page:74(section/code)
+#. (itstool) path: section/code
+#: C/hellognome.js.page:74
#, no-wrap
msgid ""
"\n"
"#!/usr/bin/gjs\n"
msgstr ""
+"\n"
+"#!/usr/bin/gjs\n"
-#: C/hellognome.js.page:77(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:77
msgid "After that, we need to tell GNOME which libraries we want to import."
msgstr ""
-#: C/hellognome.js.page:78(section/code)
+#. (itstool) path: section/code
+#: C/hellognome.js.page:78
#, no-wrap
msgid ""
"\n"
@@ -11867,38 +13916,44 @@ msgid ""
"const Webkit = imports.gi.WebKit;\n"
msgstr ""
-#: C/hellognome.js.page:84(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:84
msgid ""
"Just like how add-on libraries like jQuery let us do extra things with "
"JavaScript, each of these libraries gives us new capabilities for our GNOME "
"apps:"
msgstr ""
-#: C/hellognome.js.page:86(item/p)
+#. (itstool) path: item/p
+#: C/hellognome.js.page:86
msgid ""
"<file>Gtk</file> and <file>Lang</file> are basic parts of any GNOME "
"application, which let you create windows and widgets and tie them together."
msgstr ""
-#: C/hellognome.js.page:87(item/p)
+#. (itstool) path: item/p
+#: C/hellognome.js.page:87
msgid ""
"<file>GLib</file> is a helper library, which lets us do things like tell "
"GNOME where the <file>hellognome.html</file> file we created is."
msgstr ""
-#: C/hellognome.js.page:88(item/p)
+#. (itstool) path: item/p
+#: C/hellognome.js.page:88
msgid ""
"And <file>Webkit</file> is a web rendering engine, which we'll use to "
"basically create a browser window to open our HTML file with."
msgstr ""
-#: C/hellognome.js.page:91(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:91
#, fuzzy
#| msgid "How to write a Gtk application in C++"
msgid "Now we create the application itself:"
msgstr "Schreiben einer Gtk-Anwendung in C++"
-#: C/hellognome.js.page:92(section/code)
+#. (itstool) path: section/code
+#: C/hellognome.js.page:92
#, no-wrap
msgid ""
"\n"
@@ -11906,7 +13961,8 @@ msgid ""
" Name: 'Hello GNOME',\n"
msgstr ""
-#: C/hellognome.js.page:96(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:96
msgid ""
"This will look familiar to you if you've worked with object-oriented "
"JavaScript before. That's right; our whole application is a class called "
@@ -11914,7 +13970,8 @@ msgid ""
"name is."
msgstr ""
-#: C/hellognome.js.page:98(section/code)
+#. (itstool) path: section/code
+#: C/hellognome.js.page:98
#, no-wrap
msgid ""
"\n"
@@ -11938,7 +13995,8 @@ msgid ""
" },\n"
msgstr ""
-#: C/hellognome.js.page:118(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:118
msgid ""
"Here's some code you will more or less copy-and-paste for every JavaScript "
"application you build. It creates a new Application, and then binds its "
@@ -11946,45 +14004,52 @@ msgid ""
"and build its user interface, respectively."
msgstr ""
-#: C/hellognome.js.page:119(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:119
msgid ""
"What does that mean? Well, everything in a GNOME application sends out a "
"signal when something important happens. A button might send out the clicked "
"signal when you click on it, for instance. Our job is to connect the signals "
"to functions which handle them, and make the things that we want to have "
"happen occur. We do this using each object's connect method, which takes two "
-"arguments: The signal we want to handle, and the Lang.bind function, which we "
-"have to use to tell connect which function we want to have handle the signal."
+"arguments: The signal we want to handle, and the Lang.bind function, which "
+"we have to use to tell connect which function we want to have handle the "
+"signal."
msgstr ""
-#: C/hellognome.js.page:120(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:120
msgid ""
"In this case, we want _onActivate to handle the activate signal, and "
-"_onStartup to handle the startup signal. _onActivate just tells the window to "
-"present itself; so basically, whenever you <keyseq><key>Alt</key> <key>Tab</"
-"key></keyseq> to the application it appears, like you would expect it to. "
-"_onStartup calls _buildUI, which is the function that creates our user "
-"interface and is the next part that we will look at."
+"_onStartup to handle the startup signal. _onActivate just tells the window "
+"to present itself; so basically, whenever you <keyseq><key>Alt</key> "
+"<key>Tab</key></keyseq> to the application it appears, like you would expect "
+"it to. _onStartup calls _buildUI, which is the function that creates our "
+"user interface and is the next part that we will look at."
msgstr ""
-#: C/hellognome.js.page:121(note/p)
+#. (itstool) path: note/p
+#: C/hellognome.js.page:121
msgid ""
"When you copy and paste the above code for your own applications, be sure to "
"change the name to a unique one each time."
msgstr ""
-#: C/hellognome.js.page:125(section/title)
+#. (itstool) path: section/title
+#: C/hellognome.js.page:125
msgid "Designing our window's UI"
msgstr ""
-#: C/hellognome.js.page:126(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:126
msgid ""
"In the _buildUI function, we're going to tell GNOME about our window and the "
"things inside it, one at a time. After that, we're going to connect "
"everything together and put it all on display."
msgstr ""
-#: C/hellognome.js.page:128(section/code)
+#. (itstool) path: section/code
+#: C/hellognome.js.page:128
#, no-wrap
msgid ""
"\n"
@@ -12000,18 +14065,21 @@ msgid ""
" window_position: Gtk.WindowPosition.CENTER });\n"
msgstr ""
-#: C/hellognome.js.page:141(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:141
msgid ""
-"The first object we create is an ApplicationWindow. It needs a title to go in "
-"the title bar, and its application property needs to be the application that "
-"we created, above. Beyond that, there are various ways of customizing how it "
-"looks, which the <link xref=\"GtkApplicationWindow.js\">ApplicationWindow</"
-"link> reference page will go into more detail about. As you can see here, we "
-"gave it a default height and width (measured in pixels), and told GNOME we "
-"want our window to appear in the center of the screen."
+"The first object we create is an ApplicationWindow. It needs a title to go "
+"in the title bar, and its application property needs to be the application "
+"that we created, above. Beyond that, there are various ways of customizing "
+"how it looks, which the <link xref=\"GtkApplicationWindow.js"
+"\">ApplicationWindow</link> reference page will go into more detail about. "
+"As you can see here, we gave it a default height and width (measured in "
+"pixels), and told GNOME we want our window to appear in the center of the "
+"screen."
msgstr ""
-#: C/hellognome.js.page:142(section/code)
+#. (itstool) path: section/code
+#: C/hellognome.js.page:142
#, no-wrap
msgid ""
"\n"
@@ -12023,27 +14091,30 @@ msgid ""
" \"/hellognome.html\", null));\n"
msgstr ""
-#: C/hellognome.js.page:150(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:150
msgid ""
-"Remember how we imported Webkit right at the start? Here we're creating a new "
-"instance of a Webkit class called a WebView, which is more or less a browser "
-"window you can put inside of your app. After that, we then give it the URI "
-"that we want it to load when the application starts up."
+"Remember how we imported Webkit right at the start? Here we're creating a "
+"new instance of a Webkit class called a WebView, which is more or less a "
+"browser window you can put inside of your app. After that, we then give it "
+"the URI that we want it to load when the application starts up."
msgstr ""
-#: C/hellognome.js.page:151(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:151
msgid ""
"We <em>could</em> just give it a web URI, like <link href=\"http://gnome.org"
"\">http://gnome.org</link>. Instead, here we use a couple of GLib helper "
-"functions to tell the WebView where our <file>hellognome.html</file> file is. "
-"GLib.get_current_dir returns the directory that our app's running in, and "
-"GLib.filename_to_uri turns our file's path and filename into a URI that the "
-"WebView's load_uri function understands. (filename_to_uri's second parameter "
-"should be null unless you know what it's used for and have a reason for "
-"changing it.)"
+"functions to tell the WebView where our <file>hellognome.html</file> file "
+"is. GLib.get_current_dir returns the directory that our app's running in, "
+"and GLib.filename_to_uri turns our file's path and filename into a URI that "
+"the WebView's load_uri function understands. (filename_to_uri's second "
+"parameter should be null unless you know what it's used for and have a "
+"reason for changing it.)"
msgstr ""
-#: C/hellognome.js.page:152(section/code)
+#. (itstool) path: section/code
+#: C/hellognome.js.page:152
#, no-wrap
msgid ""
"\n"
@@ -12057,17 +14128,19 @@ msgid ""
"});\n"
msgstr ""
-#: C/hellognome.js.page:162(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:162
msgid ""
"Each window can hold one, and only one, widget. Normally, we'd use a "
"container widget like a <link xref=\"grid.js\">Grid</link> to put multiple "
-"widgets into, then use the window's add function to add the Grid to it. Here, "
-"we just need the WebView, so that's all we add to the window. After that, as "
-"the last part of the _buildUI function that creates our window, we tell the "
-"window to show itself and its contents."
+"widgets into, then use the window's add function to add the Grid to it. "
+"Here, we just need the WebView, so that's all we add to the window. After "
+"that, as the last part of the _buildUI function that creates our window, we "
+"tell the window to show itself and its contents."
msgstr ""
-#: C/hellognome.js.page:163(section/code)
+#. (itstool) path: section/code
+#: C/hellognome.js.page:163
#, no-wrap
msgid ""
"\n"
@@ -12076,78 +14149,87 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/hellognome.js.page:168(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:168
msgid ""
"Finally, we create a new instance of our HelloGNOME class, and tell GNOME to "
"run it."
msgstr ""
-#: C/hellognome.js.page:172(section/title)
+#. (itstool) path: section/title
+#: C/hellognome.js.page:172
msgid "Running your GNOME application"
msgstr "Ihre GNOME-Anwendung ausführen"
-#: C/hellognome.js.page:174(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:174
msgid ""
-"Now that we've created our first GNOME application, it's time to test it out! "
-"You don't need to compile your app or install any special software for this; "
-"GNOME has gjs built in, to let it run GNOME Shell. Just save <file>hellognome."
-"html</file> and our actual application, <file>hellognome.js</file>, to a "
-"directory you can get to with the terminal. (They usually open onto your home "
-"directory, the one that's called by your username.) After that, open a "
-"terminal, go there, and type:"
+"Now that we've created our first GNOME application, it's time to test it "
+"out! You don't need to compile your app or install any special software for "
+"this; GNOME has gjs built in, to let it run GNOME Shell. Just save "
+"<file>hellognome.html</file> and our actual application, <file>hellognome."
+"js</file>, to a directory you can get to with the terminal. (They usually "
+"open onto your home directory, the one that's called by your username.) "
+"After that, open a terminal, go there, and type:"
msgstr ""
-#: C/hellognome.js.page:175(section/screen)
+#. (itstool) path: section/screen
+#: C/hellognome.js.page:175
#, no-wrap
msgid " <output style=\"prompt\">$ </output>gjs hellognome.js "
-msgstr ""
+msgstr " <output style=\"prompt\">$ </output>gjs hellognome.js "
-#: C/hellognome.js.page:176(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:176
msgid ""
-"You should see more or less the same screenshot as before, with a button that "
-"you can click to make a short message appear."
+"You should see more or less the same screenshot as before, with a button "
+"that you can click to make a short message appear."
msgstr ""
-#: C/hellognome.js.page:179(note/p)
+#. (itstool) path: note/p
+#: C/hellognome.js.page:179
msgid "You can use the terminal command"
msgstr ""
-#: C/hellognome.js.page:180(note/screen)
+#. (itstool) path: note/screen
+#: C/hellognome.js.page:180
#, no-wrap
msgid " <output style=\"prompt\">$ </output>cd <var>(directory name)</var> "
msgstr ""
-#: C/hellognome.js.page:181(note/p)
+#. (itstool) path: note/p
+#: C/hellognome.js.page:181
msgid ""
-"to navigate between directories inside the Terminal, in order to get to where "
-"you saved the files. There is also an extension for Nautilus, GNOME's file "
-"manager, which lets you right-click anywhere inside it to open a terminal "
-"window right there. Check the app you use to install new software (like Add/"
-"Remove Programs or the Software Center) for it."
+"to navigate between directories inside the Terminal, in order to get to "
+"where you saved the files. There is also an extension for Nautilus, GNOME's "
+"file manager, which lets you right-click anywhere inside it to open a "
+"terminal window right there. Check the app you use to install new software "
+"(like Add/Remove Programs or the Software Center) for it."
msgstr ""
-#: C/hellognome.js.page:188(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:188
msgid ""
"<link xref=\"02_welcome_to_the_grid.js\">Continue on to the next tutorial</"
"link> to learn how to build \"native\" GNOME applications that look and feel "
"like the others, instead of a webview with HTML code inside. Or take a look "
-"at some <link xref=\"beginner.js#samples\">code samples</link>, if you'd like "
-"to see example code for each Gtk widget."
+"at some <link xref=\"beginner.js#samples\">code samples</link>, if you'd "
+"like to see example code for each Gtk widget."
msgstr ""
-#: C/hellognome.js.page:189(section/p)
+#. (itstool) path: section/p
+#: C/hellognome.js.page:189
msgid ""
"Finally, if you want to just build GNOME applications using JavaScript "
"libraries designed for the web, you can basically stop here and go do that! "
-"Take a look at the <link xref=\"scrolledwindow.js\">ScrolledWindow</link> "
-"code sample if you'd like to see how to make a WebView widget that can scroll "
-"to show parts of a larger web page, and check out <link xref=\"beginner."
-"js#tutorials\">the later tutorials</link> if you'd like to see how to create "
-"a .desktop file for your application, which will let it appear in your "
-"desktop's Activities menu with all your other apps."
+"Check out <link xref=\"beginner.js#tutorials\">the later tutorials</link> if "
+"you'd like to see how to create a .desktop file for your application, which "
+"will let it appear in your desktop's Activities menu with all your other "
+"apps."
msgstr ""
-#: C/hellognome.js.page:194(section/code)
+#. (itstool) path: section/code
+#: C/hellognome.js.page:194
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -12211,66 +14293,638 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/helloWorld.js.page:27(media)
+#: C/hello-world.c.page:27 C/hello-world.js.page:27 C/hello-world.py.page:27
+#: C/hello-world.vala.page:27
+#, fuzzy
+#| msgctxt "_"
+#| msgid ""
+#| "external ref='media/helloWorld.png' md5='4c88a27211dfd1b33e504c9f78602f2d'"
msgctxt "_"
msgid ""
-"external ref='media/helloWorld.png' md5='4c88a27211dfd1b33e504c9f78602f2d'"
+"external ref='media/hello-world.png' md5='4c88a27211dfd1b33e504c9f78602f2d'"
msgstr ""
"external ref='media/helloWorld.png' md5='4c88a27211dfd1b33e504c9f78602f2d'"
-#: C/helloWorld.js.page:8(info/title)
+#. (itstool) path: info/title
+#: C/hello-world.c.page:8
msgctxt "text"
-msgid "Hello World (JavaScript)"
-msgstr ""
+msgid "Hello World (C)"
+msgstr "Hallo, Welt! (C)"
-#: C/helloWorld.js.page:23(info/desc)
+#. (itstool) path: info/desc
+#: C/hello-world.c.page:23 C/hello-world.js.page:23 C/hello-world.py.page:23
+#: C/hello-world.vala.page:23
msgid "A basic \"hello, world\" application"
msgstr ""
-#: C/helloWorld.js.page:26(page/title)
-msgid "Hello World"
+#. (itstool) path: page/title
+#: C/hello-world.c.page:26 C/hello-world.js.page:26 C/hello-world.py.page:26
+#: C/hello-world.vala.page:26
+msgid ""
+"How to build, install and create a <file>tar.xz</file> of a Hello World "
+"program"
msgstr ""
-#: C/helloWorld.js.page:29(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/hello-world.c.page:29 C/hello-world.js.page:29 C/hello-world.py.page:29
+#: C/hello-world.vala.page:29
msgid "This tutorial will demonstrate how to:"
msgstr ""
-#: C/helloWorld.js.page:31(item/p)
-msgid "create a small \"Hello, World\" application using JavaScript and GTK+"
+#. (itstool) path: item/p
+#: C/hello-world.c.page:31 C/hello-world.vala.page:31
+msgid "create a small \"Hello, World\" application using GTK+"
msgstr ""
-#: C/helloWorld.js.page:32(item/p)
+#. (itstool) path: item/p
+#: C/hello-world.c.page:32 C/hello-world.js.page:32 C/hello-world.py.page:32
+#: C/hello-world.vala.page:32
msgid "make the <file>.desktop</file> file"
msgstr ""
-#: C/helloWorld.js.page:33(item/p)
+#. (itstool) path: item/p
+#: C/hello-world.c.page:33 C/hello-world.js.page:33 C/hello-world.py.page:33
+#: C/hello-world.vala.page:33
msgid "how to set up the build system"
msgstr ""
-#: C/helloWorld.js.page:41(section/title)
-msgid "Create the HelloWorld program"
+#. (itstool) path: section/title
+#: C/hello-world.c.page:39 C/hello-world.js.page:41 C/hello-world.py.page:41
+#: C/hello-world.vala.page:39
+#, fuzzy
+#| msgid "The different parts of the program"
+msgid "Create the program"
+msgstr "Die verschiedenen Teile des Programms"
+
+#. (itstool) path: section/code
+#: C/hello-world.c.page:44
+#, no-wrap
+msgid "#include <gtk/gtk.h>\n"
+msgstr "#include <gtk/gtk.h>\n"
+
+#. (itstool) path: section/code
+#: C/hello-world.c.page:49
+#, no-wrap
+msgid ""
+"static void\n"
+"activate (GtkApplication* app,\n"
+" gpointer user_data)\n"
+"{\n"
+" GtkWidget *window;\n"
+"\n"
+" window = gtk_application_window_new (app);\n"
+" gtk_window_set_title (GTK_WINDOW (window), \"Hello World\");\n"
+" gtk_window_set_default_size (GTK_WINDOW (window), 200, 100);\n"
+" gtk_widget_show_all (window);\n"
+"}\n"
+msgstr ""
+"static void\n"
+"activate (GtkApplication* app,\n"
+" gpointer user_data)\n"
+"{\n"
+" GtkWidget *window;\n"
+"\n"
+" window = gtk_application_window_new (app);\n"
+" gtk_window_set_title (GTK_WINDOW (window), \"Hello World\");\n"
+" gtk_window_set_default_size (GTK_WINDOW (window), 200, 100);\n"
+" gtk_widget_show_all (window);\n"
+"}\n"
+
+#. (itstool) path: section/p
+#: C/hello-world.c.page:62 C/hello-world.js.page:91
+msgid ""
+"GtkApplication initializes GTK+. It also connects the <gui>x</gui> button "
+"that's automatically generated along with the window to the \"destroy\" "
+"signal."
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/hello-world.c.page:63
+msgid ""
+"We can start building our first window. We do this by creating a variable "
+"called <var>window</var> and assigning it a gtk_application_window_new"
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/hello-world.c.page:64
+msgid ""
+"The window title can be any string you want it to be. To be on the safe "
+"side, it's best to stick to UTF-8 encoding."
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/hello-world.c.page:65 C/hello-world.js.page:94 C/hello-world.py.page:73
+#: C/hello-world.vala.page:56
+msgid ""
+"Now we have a window which has a title and a working \"close\" button. Let's "
+"add the actual \"Hello World\" text."
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/hello-world.c.page:68 C/hello-world.js.page:97 C/hello-world.py.page:76
+#: C/hello-world.vala.page:59
+#, fuzzy
+#| msgid "Closing the window"
+msgid "Label for the window"
+msgstr "Schließen des Fensters"
+
+#. (itstool) path: section/code
+#: C/hello-world.c.page:69
+#, no-wrap
+msgid ""
+"GtkWidget *label;\n"
+"\n"
+" label = gtk_label_new (\"Hello World!\");\n"
+" gtk_container_add (GTK_CONTAINER (window), label);\n"
+msgstr ""
+"GtkWidget *label;\n"
+"\n"
+" label = gtk_label_new (\"Hello World!\");\n"
+" gtk_container_add (GTK_CONTAINER (window), label);\n"
+
+#. (itstool) path: section/p
+#: C/hello-world.c.page:75 C/hello-world.vala.page:64
+#, fuzzy
+#| msgid "How to write a Gtk application in C++"
+msgid "Finally, we create and run the application:"
+msgstr "Schreiben einer Gtk-Anwendung in C++"
+
+#. (itstool) path: section/code
+#: C/hello-world.c.page:77
+#, no-wrap
+msgid ""
+"int\n"
+"main (int argc,\n"
+" char **argv)\n"
+"{\n"
+" GtkApplication *app;\n"
+" int status;\n"
+"\n"
+" app = gtk_application_new (NULL, G_APPLICATION_FLAGS_NONE);\n"
+" g_signal_connect (app, \"activate\", G_CALLBACK (activate), NULL);\n"
+" status = g_application_run (G_APPLICATION (app), argc, argv);\n"
+" g_object_unref (app);\n"
+"\n"
+" return status;\n"
+"}"
+msgstr ""
+"int\n"
+"main (int argc,\n"
+" char **argv)\n"
+"{\n"
+" GtkApplication *app;\n"
+" int status;\n"
+"\n"
+" app = gtk_application_new (NULL, G_APPLICATION_FLAGS_NONE);\n"
+" g_signal_connect (app, \"activate\", G_CALLBACK (activate), NULL);\n"
+" status = g_application_run (G_APPLICATION (app), argc, argv);\n"
+" g_object_unref (app);\n"
+"\n"
+" return status;\n"
+"}"
+
+#. (itstool) path: section/p
+#: C/hello-world.c.page:92
+msgid ""
+"GtkApplicationWindow can only hold one widget at a time. To construct more "
+"elaborate programs you need to create a holder widget like GtkGrid inside "
+"the window, and then add all the other widgets to it."
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/hello-world.c.page:96
+msgid "hello-world.c"
+msgstr "hello-world.c"
+
+#. (itstool) path: section/p
+#: C/hello-world.c.page:97 C/hello-world.js.page:114 C/hello-world.py.page:101
+#: C/hello-world.vala.page:75
+msgid "The complete file:"
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/hello-world.c.page:98
+#, no-wrap
+msgid ""
+"#include <gtk/gtk.h>\n"
+"\n"
+"static void\n"
+"activate (GtkApplication* app,\n"
+" gpointer user_data)\n"
+"{\n"
+" GtkWidget *window;\n"
+" GtkWidget *label;\n"
+"\n"
+" window = gtk_application_window_new (app);\n"
+" label = gtk_label_new (\"Hello GNOME!\");\n"
+" gtk_container_add (GTK_CONTAINER (window), label);\n"
+" gtk_window_set_title (GTK_WINDOW (window), \"Welcome to GNOME\");\n"
+" gtk_window_set_default_size (GTK_WINDOW (window), 200, 100);\n"
+" gtk_widget_show_all (window);\n"
+"}\n"
+"\n"
+"int\n"
+"main (int argc,\n"
+" char **argv)\n"
+"{\n"
+" GtkApplication *app;\n"
+" int status;\n"
+"\n"
+" app = gtk_application_new (NULL, G_APPLICATION_FLAGS_NONE);\n"
+" g_signal_connect (app, \"activate\", G_CALLBACK (activate), NULL);\n"
+" status = g_application_run (G_APPLICATION (app), argc, argv);\n"
+" g_object_unref (app);\n"
+"\n"
+" return status;\n"
+"}\n"
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/hello-world.c.page:101 C/hello-world.js.page:118
+#: C/hello-world.py.page:105 C/hello-world.vala.page:79
+msgid "Running the application from terminal"
+msgstr "Anwendung im Terminal ausführen"
+
+#. (itstool) path: section/p
+#: C/hello-world.c.page:102
+msgid ""
+"To run this application, first save it as hello-world.c. Then open Terminal, "
+"go to the folder where your application is stored."
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/hello-world.c.page:103 C/hello-world.vala.page:81
+msgid "Compile the program:"
+msgstr ""
+
+#. (itstool) path: section/screen
+#: C/hello-world.c.page:104
+#, no-wrap
+msgid "gcc <var>hello-world</var>.c `pkg-config --cflags --libs gtk+-3.0` -o <var>hello-world</var>"
+msgstr "gcc <var>hello-world</var>.c `pkg-config --cflags --libs gtk+-3.0` -o <var>hello-world</var>"
+
+#. (itstool) path: section/p
+#: C/hello-world.c.page:105 C/hello-world.vala.page:83
+#, fuzzy
+msgid "Run the program:"
+msgstr "Ein Programm ausführen"
+
+#. (itstool) path: section/screen
+#: C/hello-world.c.page:106 C/hello-world.vala.page:84
+#, no-wrap
+msgid "./<var>hello-world</var>"
+msgstr "./<var>hello-world</var>"
+
+#. (itstool) path: section/title
+#: C/hello-world.c.page:110 C/hello-world.js.page:126
+#: C/hello-world.py.page:111 C/hello-world.vala.page:88
+msgid "The <file>.desktop.in</file> file"
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/hello-world.c.page:111 C/hello-world.js.page:127
+#: C/hello-world.py.page:112 C/hello-world.vala.page:89
+msgid ""
+"Running applications from the Terminal is useful at the beginning of the "
+"application making process. To have fully working <link href=\"https://"
+"developer.gnome.org/integration-guide/stable/mime.html.en\">application "
+"integration</link> in GNOME 3 requires a desktop launcher. For this you need "
+"to create a <file>.desktop</file> file. The <file>.desktop</file> file "
+"describes the application name, the used icon and various integration bits. "
+"A deeper insight into the <file>.desktop</file> file can be found <link href="
+"\"http://developer.gnome.org/desktop-entry-spec/\">here</link>. The <file>."
+"desktop.in</file> file will create the <file>.desktop</file>."
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/hello-world.c.page:113 C/hello-world.js.page:134
+#: C/hello-world.py.page:114 C/hello-world.vala.page:91
+msgid ""
+"The example shows you the minimum requirements for a <code>.desktop.in</"
+"code> file."
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/hello-world.c.page:114 C/hello-world.js.page:135
+#: C/hello-world.py.page:115 C/hello-world.vala.page:92
+#, no-wrap
+msgid ""
+"[Desktop Entry]\n"
+"Version=1.0\n"
+"Encoding=UTF-8\n"
+"Name=Hello World\n"
+"Comment=Say Hello\n"
+"Exec= prefix@/bin/hello-world\n"
+"Icon=application-default-icon\n"
+"Terminal=false\n"
+"Type=Application\n"
+"StartupNotify=true\n"
+"Categories=GNOME;GTK;Utility;\n"
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/hello-world.c.page:116 C/hello-world.js.page:137
+#: C/hello-world.py.page:117 C/hello-world.vala.page:94
+msgid "Now let's go through some parts of the <code>.desktop.in</code> file."
+msgstr ""
+
+#. (itstool) path: item/title
+#. (itstool) path: td/p
+#: C/hello-world.c.page:118 C/hello-world.js.page:139
+#: C/hello-world.py.page:119 C/hello-world.vala.page:96
+#: C/toolbar_builder.py.page:94 C/toolbar_builder.vala.page:77
+msgid "Name"
+msgstr "Name"
+
+#. (itstool) path: item/p
+#: C/hello-world.c.page:118 C/hello-world.js.page:139
+#: C/hello-world.py.page:119 C/hello-world.vala.page:96
+msgid "The application name."
+msgstr "Der Anwendungsname."
+
+#. (itstool) path: item/title
+#: C/hello-world.c.page:119 C/hello-world.js.page:140
+#: C/hello-world.py.page:120 C/hello-world.vala.page:97
+msgid "Comment"
+msgstr "Kommentar"
+
+#. (itstool) path: item/p
+#: C/hello-world.c.page:119 C/hello-world.js.page:140
+#: C/hello-world.py.page:120 C/hello-world.vala.page:97
+msgid "A short description of the application."
+msgstr "Eine kurze Beschreibung der Anwendung."
+
+#. (itstool) path: item/title
+#: C/hello-world.c.page:120 C/hello-world.js.page:141
+#: C/hello-world.py.page:121 C/hello-world.vala.page:98
+msgid "Exec"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/hello-world.c.page:120 C/hello-world.js.page:141
+#: C/hello-world.py.page:121 C/hello-world.vala.page:98
+msgid ""
+"Specifies a command to execute when you choose the application from the "
+"menu. In this example exec just tells where to find the <file>hello-world</"
+"file> file and the file takes care of the rest."
+msgstr ""
+
+#. (itstool) path: item/title
+#: C/hello-world.c.page:121 C/hello-world.js.page:142
+#: C/hello-world.py.page:122 C/hello-world.vala.page:99
+msgid "Terminal"
+msgstr "Terminal"
+
+#. (itstool) path: item/p
+#: C/hello-world.c.page:121 C/hello-world.js.page:142
+#: C/hello-world.py.page:122 C/hello-world.vala.page:99
+msgid ""
+"Specifies whether the command in the Exec key runs in a terminal window."
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/hello-world.c.page:124 C/hello-world.js.page:145
+#: C/hello-world.py.page:125 C/hello-world.vala.page:102
+msgid ""
+"To put your application into the appropriate category, you need to add the "
+"necessary categories to the Categories line. More information on the "
+"different categories can be found in the <link href=\"http://standards."
+"freedesktop.org/menu-spec/latest/apa.html\">menu specification</link>."
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/hello-world.c.page:125 C/hello-world.js.page:146
+#: C/hello-world.py.page:126 C/hello-world.vala.page:103
+msgid ""
+"In this example we use an existing icon. For a custom icon you need to have "
+"a .svg file of your icon, stored in <file>/usr/share/icons/hicolor/scalable/"
+"apps</file>. Write the name of your icon file to the .desktop.in file, on "
+"line 7. More information on icons in: <link href=\"https://live.gnome.org/"
+"GnomeGoals/AppIcon\">Installing Icons for Themes</link> and <link href="
+"\"http://freedesktop.org/wiki/Specifications/icon-theme-spec\">on "
+"freedesktop.org: Specifications/icon-theme-spec</link>."
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/hello-world.c.page:128 C/hello-world.js.page:149
+#: C/hello-world.py.page:129 C/hello-world.vala.page:106
+msgid "The build system"
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/hello-world.c.page:129 C/hello-world.js.page:150
+#: C/hello-world.py.page:130 C/hello-world.vala.page:107
+msgid ""
+"To make your application truly a part of the GNOME 3 system you need to "
+"install it with the help of autotools. The autotools build will install all "
+"the necessary files to all the right places."
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/hello-world.c.page:130 C/hello-world.js.page:151
+#: C/hello-world.py.page:131 C/hello-world.vala.page:108
+msgid "For this you need to have the following files:"
+msgstr ""
+
+#. (itstool) path: section/title
+#. (itstool) path: item/p
+#: C/hello-world.c.page:133 C/hello-world.js.page:154
+#: C/hello-world.py.page:134 C/hello-world.vala.page:111
+#: C/weatherAutotools.js.page:39
+msgid "autogen.sh"
+msgstr "autogen.sh"
+
+#. (itstool) path: section/code
+#: C/hello-world.c.page:134 C/hello-world.js.page:155
+#: C/hello-world.py.page:135 C/hello-world.vala.page:112
+#, no-wrap
+msgid ""
+"#!/bin/sh\n"
+"\n"
+"set -e\n"
+"\n"
+"test -n \"$srcdir\" || srcdir=`dirname \"$0\"`\n"
+"test -n \"$srcdir\" || srcdir=.\n"
+"\n"
+"olddir=`pwd`\n"
+"cd \"$srcdir\"\n"
+"\n"
+"# This will run autoconf, automake, etc. for us\n"
+"autoreconf --force --install\n"
+"\n"
+"cd \"$olddir\"\n"
+"\n"
+"if test -z \"$NOCONFIGURE\"; then\n"
+" \"$srcdir\"/configure \"$ \"\n"
+"fi\n"
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/hello-world.c.page:136 C/hello-world.js.page:157
+#: C/hello-world.py.page:137 C/hello-world.vala.page:114
+msgid "After the <file>autogen.sh</file> file is ready and saved, run:"
+msgstr ""
+
+#. (itstool) path: section/screen
+#: C/hello-world.c.page:137 C/hello-world.js.page:158
+#: C/hello-world.py.page:138 C/hello-world.vala.page:115
+#, no-wrap
+msgid "<output style=\"prompt\">$ </output><input>chmod +x autogen.sh</input>"
+msgstr ""
+
+#. (itstool) path: section/title
+#. (itstool) path: item/p
+#. (itstool) path: section/p
+#: C/hello-world.c.page:141 C/hello-world.js.page:162
+#: C/hello-world.py.page:142 C/hello-world.vala.page:119
+#: C/weatherAutotools.js.page:37 C/weatherAutotools.js.page:63
+msgid "Makefile.am"
+msgstr "Makefile.am"
+
+#. (itstool) path: section/code
+#: C/hello-world.c.page:142
+#, no-wrap
+msgid ""
+"# The actual runnable program is set to the SCRIPTS primitive.\n"
+"# # Prefix bin_ tells where to copy this\n"
+"bin_PROGRAMS = hello-world\n"
+"hello_world_CFLAGS = $(gtk_CFLAGS)\n"
+"hello_world_LDADD = $(gtk_LIBS)\n"
+"hello_world_SOURCES = hello-world.c\n"
+"\n"
+"desktopdir = $(datadir)/applications\n"
+"desktop_DATA = \\\n"
+"\thello-world.desktop\n"
+msgstr ""
+
+#. (itstool) path: section/title
+#. (itstool) path: item/p
+#. (itstool) path: section/p
+#: C/hello-world.c.page:146 C/hello-world.js.page:167
+#: C/hello-world.py.page:147 C/hello-world.vala.page:124
+#: C/weatherAutotools.js.page:38 C/weatherAutotools.js.page:130
+msgid "configure.ac"
+msgstr "configure.ac"
+
+#. (itstool) path: section/code
+#: C/hello-world.c.page:147 C/hello-world.vala.page:125
+#, no-wrap
+msgid ""
+"# This file is processed by autoconf to create a configure script\n"
+"AC_INIT([Hello World], 1.0)\n"
+"AM_INIT_AUTOMAKE([1.10 no-define foreign dist-xz no-dist-gzip])\n"
+"AC_PROG_CC\n"
+"AM_PROG_VALAC([0.16])\n"
+"PKG_CHECK_MODULES(gtk, gtk+-3.0)\n"
+"AC_CONFIG_FILES([Makefile hello-world.desktop])\n"
+"\n"
+"AC_OUTPUT\n"
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/hello-world.c.page:151 C/hello-world.js.page:172
+#: C/hello-world.py.page:152 C/hello-world.vala.page:129
+msgid "README"
+msgstr "Lies mich"
+
+#. (itstool) path: section/p
+#: C/hello-world.c.page:152 C/hello-world.js.page:173
+#: C/hello-world.py.page:153 C/hello-world.vala.page:130
+msgid "Information users should read first. This file can be blank."
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/hello-world.c.page:154 C/hello-world.vala.page:132
+msgid ""
+"When you have the <file>hello-world.c</file>, <file>hello-world.desktop.in</"
+"file>, <file>Makefile.am</file>, <file>configure.ac</file> and <file>autogen."
+"sh</file> files with correct information and rights, the <file>README</file> "
+"file can include the following instructions:"
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/hello-world.c.page:155
+#, no-wrap
+msgid ""
+"To build and install this program:\n"
+"\n"
+"./autogen.sh --prefix=/home/your_username/.local\n"
+"make\n"
+"make install\n"
+"\n"
+"-------------\n"
+"Running the first line above creates the following files:\n"
+"\n"
+"aclocal.m4\n"
+"autom4te.cache\n"
+"config.log\n"
+"config.status\n"
+"configure\n"
+"depcomp\n"
+"hello-world\n"
+"hello-world.desktop\n"
+"hello_world-hello-world.o\n"
+"install-sh\n"
+"missing\n"
+"Makefile.in\n"
+"Makefile\n"
+"\n"
+"Running \"make\" links all the appropriate libraries.\n"
+"\n"
+"Running \"make install\", installs the application in /home/your_username/.local/bin\n"
+"and installs the hello-world.desktop file in /home/your_username/.local/share/applications\n"
+"\n"
+"You can now run the application by typing \"Hello World\" in the Overview.\n"
+"\n"
+"----------------\n"
+"To uninstall, type:\n"
+"\n"
+"make uninstall\n"
+"\n"
+"----------------\n"
+"To create a tarball type:\n"
+"\n"
+"make distcheck\n"
+"\n"
+"This will create hello-world-1.0.tar.xz\n"
msgstr ""
-#: C/helloWorld.js.page:46(section/p)
+#. (itstool) path: info/title
+#: C/hello-world.js.page:8
+msgctxt "text"
+msgid "Hello World (JavaScript)"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/hello-world.js.page:31
+msgid "create a small \"Hello, World\" application using JavaScript and GTK+"
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/hello-world.js.page:46
msgid "This needs to be the first line of your script:"
msgstr ""
-#: C/helloWorld.js.page:47(section/code)
+#. (itstool) path: section/code
+#: C/hello-world.js.page:47
#, no-wrap
msgid "#!/usr/bin/gjs"
-msgstr ""
+msgstr "#!/usr/bin/gjs"
-#: C/helloWorld.js.page:48(section/p)
+#. (itstool) path: section/p
+#: C/hello-world.js.page:48
msgid ""
"It tells the script to use <link href=\"https://live.gnome.org/Gjs/\">Gjs</"
"link>. Gjs is a JavaScript binding for GNOME."
msgstr ""
-#: C/helloWorld.js.page:53(section/code)
+#. (itstool) path: section/code
+#: C/hello-world.js.page:53
#, no-wrap
msgid ""
"const Lang = imports.lang;\n"
@@ -12279,14 +14933,17 @@ msgstr ""
"const Lang = imports.lang;\n"
"const Gtk = imports.gi.Gtk;"
-#: C/helloWorld.js.page:55(section/p)
+#. (itstool) path: section/p
+#: C/hello-world.js.page:55 C/hello-world.py.page:48
msgid ""
-"In order for our script to work with GNOME, we need to import GNOME libraries "
-"via GObject Introspection. Here we import the language bindings and GTK+, the "
-"library which contains the graphical widgets used to make GNOME applications."
+"In order for our script to work with GNOME, we need to import GNOME "
+"libraries via GObject Introspection. Here we import the language bindings "
+"and GTK+, the library which contains the graphical widgets used to make "
+"GNOME applications."
msgstr ""
-#: C/helloWorld.js.page:59(section/code)
+#. (itstool) path: section/code
+#: C/hello-world.js.page:59
#, no-wrap
msgid ""
"const Application = new Lang.Class({\n"
@@ -12321,39 +14978,23 @@ msgid ""
"});\n"
msgstr ""
-#: C/helloWorld.js.page:91(section/p)
-msgid ""
-"GtkApplication initializes GTK+. It also connects the <gui>x</gui> button "
-"that's automatically generated along with the window to the \"destroy\" "
-"signal."
-msgstr ""
-
-#: C/helloWorld.js.page:92(section/p)
+#. (itstool) path: section/p
+#: C/hello-world.js.page:92
msgid ""
"We can start building our first window. We do this by creating a variable "
"called <var>_window</var> and assigning it a new Gtk.ApplicationWindow."
msgstr ""
-#: C/helloWorld.js.page:93(section/p)
+#. (itstool) path: section/p
+#: C/hello-world.js.page:93 C/hello-world.py.page:72
msgid ""
"We give the window a property called <var>title</var>. The title can be any "
-"string you want it to be. To be on the safe side, it's best to stick to UTF-8 "
-"encoding."
-msgstr ""
-
-#: C/helloWorld.js.page:94(section/p)
-msgid ""
-"Now we have a window which has a title and a working \"close\" button. Let's "
-"add the actual \"Hello World\" text."
+"string you want it to be. To be on the safe side, it's best to stick to "
+"UTF-8 encoding."
msgstr ""
-#: C/helloWorld.js.page:97(section/title)
-#, fuzzy
-#| msgid "Closing the window"
-msgid "Label for the window"
-msgstr "Schließen des Fensters"
-
-#: C/helloWorld.js.page:98(section/code)
+#. (itstool) path: section/code
+#: C/hello-world.js.page:98
#, no-wrap
msgid ""
"// Add a label widget to your window\n"
@@ -12362,7 +15003,8 @@ msgid ""
"this._window.set_default_size(200, 200);"
msgstr ""
-#: C/helloWorld.js.page:103(section/p)
+#. (itstool) path: section/p
+#: C/hello-world.js.page:103
msgid ""
"A text label is one of the GTK+ widgets we can use, on account of having "
"imported the GTK+ library. To use it, we create a new variable called label, "
@@ -12371,7 +15013,8 @@ msgid ""
"Finally, we create and run the application:"
msgstr ""
-#: C/helloWorld.js.page:105(section/code)
+#. (itstool) path: section/code
+#: C/hello-world.js.page:105
#, no-wrap
msgid ""
"//run the application\n"
@@ -12379,22 +15022,22 @@ msgid ""
"app.application.run(ARGV);"
msgstr ""
-#: C/helloWorld.js.page:109(section/p)
+#. (itstool) path: section/p
+#: C/hello-world.js.page:109 C/hello-world.py.page:96
+#: C/hello-world.vala.page:70
msgid ""
"Gtk.ApplicationWindow can only hold one widget at a time. To construct more "
"elaborate programs you need to create a holder widget like Gtk.Grid inside "
"the window, and then add all the other widgets to it."
msgstr ""
-#: C/helloWorld.js.page:113(section/title)
-msgid "helloWorld.js"
-msgstr ""
-
-#: C/helloWorld.js.page:114(section/p)
-msgid "The complete file:"
-msgstr ""
+#. (itstool) path: section/title
+#: C/hello-world.js.page:113
+msgid "hello-world.js"
+msgstr "hello-world.js"
-#: C/helloWorld.js.page:115(section/code)
+#. (itstool) path: section/code
+#: C/hello-world.js.page:115
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -12441,196 +15084,353 @@ msgid ""
"app.application.run(ARGV);\n"
msgstr ""
-#: C/helloWorld.js.page:118(section/title)
-msgid "Running the application from terminal"
-msgstr "Anwendung im Terminal ausführen"
-
-#: C/helloWorld.js.page:119(section/p)
+#. (itstool) path: section/p
+#: C/hello-world.js.page:119
msgid ""
-"To run this application, first save it as helloWorld.js. Then open Terminal, "
-"go to the folder where your application is stored and run:"
+"To run this application, first save it as hello-world.js. Then open "
+"Terminal, go to the folder where your application is stored and run:"
msgstr ""
-#: C/helloWorld.js.page:120(section/screen)
+#. (itstool) path: section/screen
+#: C/hello-world.js.page:120
#, no-wrap
-msgid "<output style=\"prompt\">$ </output><input>gjs helloWorld.js</input>"
-msgstr ""
-
-#: C/helloWorld.js.page:126(section/title)
-msgid "The <file>.desktop.in</file> file"
-msgstr ""
-
-#: C/helloWorld.js.page:127(section/p)
-msgid ""
-"Running applications from the Terminal is useful at the beginning of the "
-"application making process. To have fully working <link href=\"http://library."
-"gnome.org/admin/system-admin-guide/stable/mimetypes-9.html.en\">application "
-"integration</link> in GNOME 3 requires a desktop launcher. For this you need "
-"to create a <file>.desktop</file> file. The <file>.desktop</file> file "
-"describes the application name, the used icon and various integration bits. A "
-"deeper insight into the <file>.desktop</file> file can be found <link href="
-"\"http://developer.gnome.org/desktop-entry-spec/\">here</link>. The <file>."
-"desktop.in</file> file will create the <file>.desktop</file>."
+msgid "<output style=\"prompt\">$ </output><input>gjs hello-world.js</input>"
msgstr ""
-#: C/helloWorld.js.page:130(note/p)
+#. (itstool) path: note/p
+#: C/hello-world.js.page:130
msgid ""
-"Before continuing, resave <file>helloWorld.js</file> as <file>helloWorld</"
+"Before continuing, resave <file>hello-world.js</file> as <file>hello-world</"
"file>. Then run this in the command line:"
msgstr ""
-#: C/helloWorld.js.page:131(note/screen)
+#. (itstool) path: note/screen
+#: C/hello-world.js.page:131
#, no-wrap
-msgid "<output style=\"prompt\">$ </output><input>chmod +x helloWorld</input>"
+msgid "<output style=\"prompt\">$ </output><input>chmod +x hello-world</input>"
msgstr ""
-#: C/helloWorld.js.page:134(section/p)
+#. (itstool) path: section/code
+#: C/hello-world.js.page:163
+#, no-wrap
msgid ""
-"The example shows you the minimum requirements for a <code>.desktop.in</code> "
-"file."
+"# The actual runnable program is set to the SCRIPTS primitive.\n"
+"# # Prefix bin_ tells where to copy this\n"
+"bin_SCRIPTS = hello-world\n"
+"# # List of files to be distributed\n"
+"EXTRA_DIST = \\\n"
+"\t$(bin_SCRIPTS)\n"
+"#\n"
+"# # The desktop files\n"
+"desktopdir = $(datadir)/applications\n"
+"desktop_DATA = \\\n"
+"\thello-world.desktop\n"
msgstr ""
-#: C/helloWorld.js.page:135(section/code)
+#. (itstool) path: section/code
+#: C/hello-world.js.page:168 C/hello-world.py.page:148
#, no-wrap
msgid ""
-"[Desktop Entry]\n"
-"Version=1.0\n"
-"Encoding=UTF-8\n"
-"Name=Hello World\n"
-"Comment=Say Hello\n"
-"Exec= prefix@/bin/helloWorld\n"
-"Icon=application-default-icon\n"
-"Terminal=false\n"
-"Type=Application\n"
-"StartupNotify=true\n"
-"Categories=GNOME;GTK;Utility;\n"
-msgstr ""
-
-#: C/helloWorld.js.page:137(section/p)
-msgid "Now let's go through some parts of the <code>.desktop.in</code> file."
-msgstr ""
-
-#: C/helloWorld.js.page:139(item/title) C/toolbar_builder.py.page:94(td/p)
-#: C/toolbar_builder.vala.page:77(td/p)
-msgid "Name"
-msgstr ""
-
-#: C/helloWorld.js.page:139(item/p)
-msgid "The application name."
-msgstr "Der Anwendungsname."
-
-#: C/helloWorld.js.page:140(item/title)
-msgid "Comment"
+"# This file is processed by autoconf to create a configure script\n"
+"AC_INIT([Hello World], 1.0)\n"
+"AM_INIT_AUTOMAKE([1.10 no-define foreign dist-xz no-dist-gzip])\n"
+"AC_CONFIG_FILES([Makefile hello-world.desktop])\n"
+"AC_OUTPUT\n"
msgstr ""
-#: C/helloWorld.js.page:140(item/p)
-msgid "A short description of the application."
-msgstr "Eine kurze Beschreibung der Anwendung."
-
-#: C/helloWorld.js.page:141(item/title)
-msgid "Exec"
+#. (itstool) path: section/p
+#: C/hello-world.js.page:175 C/hello-world.py.page:155
+msgid ""
+"When you have the <file>hello-world</file>, <file>hello-world.desktop.in</"
+"file>, <file>Makefile.am</file>, <file>configure.ac</file> and <file>autogen."
+"sh</file> files with correct information and rights, the <file>README</file> "
+"file can include the following instructions:"
msgstr ""
-#: C/helloWorld.js.page:141(item/p)
+#. (itstool) path: section/code
+#: C/hello-world.js.page:176 C/hello-world.py.page:156
+#, no-wrap
msgid ""
-"Specifies a command to execute when you choose the application from the menu. "
-"In this example exec just tells where to find the <file>helloWorld</file> "
-"file and the file takes care of the rest."
+"To build and install this program:\n"
+"\n"
+"./autogen.sh --prefix=/home/your_username/.local\n"
+"make install\n"
+"\n"
+"-------------\n"
+"Running the first line above creates the following files:\n"
+"\n"
+"aclocal.m4\n"
+"autom4te.cache\n"
+"config.log\n"
+"config.status\n"
+"configure\n"
+"hello-world.desktop\n"
+"install-sh\n"
+"missing\n"
+"Makefile.in\n"
+"Makefile\n"
+"\n"
+"Running \"make install\", installs the application in /home/your_username/.local/bin\n"
+"and installs the hello-world.desktop file in /home/your_username/.local/share/applications\n"
+"\n"
+"You can now run the application by typing \"Hello World\" in the Overview.\n"
+"\n"
+"----------------\n"
+"To uninstall, type:\n"
+"\n"
+"make uninstall\n"
+"\n"
+"----------------\n"
+"To create a tarball type:\n"
+"\n"
+"make distcheck\n"
+"\n"
+"This will create hello-world-1.0.tar.xz\n"
msgstr ""
-#: C/helloWorld.js.page:142(item/title)
-msgid "Terminal"
-msgstr ""
+#. (itstool) path: info/title
+#: C/hello-world.py.page:8
+#, fuzzy
+#| msgctxt "text"
+#| msgid "Grid (Python)"
+msgctxt "text"
+msgid "Hello World (Python)"
+msgstr "Grid (Python)"
-#: C/helloWorld.js.page:142(item/p)
-msgid "Specifies whether the command in the Exec key runs in a terminal window."
+#. (itstool) path: item/p
+#: C/hello-world.py.page:31
+msgid "create a small \"Hello, World\" application using Python and GTK+"
msgstr ""
-#: C/helloWorld.js.page:145(section/p)
+#. (itstool) path: section/code
+#: C/hello-world.py.page:46
+#, no-wrap
msgid ""
-"To put your application into the appropriate category, you need to add the "
-"necessary categories to the Categories line. More information on the "
-"different categories can be found in the <link href=\"http://standards."
-"freedesktop.org/menu-spec/latest/apa.html\">menu specification</link>."
+"from gi.repository import Gtk\n"
+"import sys"
msgstr ""
-#: C/helloWorld.js.page:146(section/p)
+#. (itstool) path: section/code
+#: C/hello-world.py.page:52
+#, no-wrap
msgid ""
-"In this example we use an existing icon. For a custom icon you need to have "
-"a .svg file of your icon, stored in <file>/usr/share/icons/hicolor/scalable/"
-"apps</file>. Write the name of your icon file to the .desktop.in file, on "
-"line 7. More information on icons in: <link href=\"http://library.gnome.org/"
-"admin/system-admin-guide/stable/themes-11.html.en\"> Installing Icons for "
-"Themes </link>, <link href=\"https://live.gnome.org/GnomeGoals/AppIcon"
-"\">Installing Icons for Themes</link> and <link href=\"http://freedesktop.org/"
-"wiki/Specifications/icon-theme-spec\">on freedesktop.org: Specifications/icon-"
-"theme-spec</link>."
+"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
+" # constructor for a Gtk.ApplicationWindow\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"Hello World!\", application=app)\n"
+" self.set_default_size(200, 100)\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)"
msgstr ""
-#: C/helloWorld.js.page:149(section/title)
-msgid "The build system"
+#. (itstool) path: section/p
+#: C/hello-world.py.page:70 C/hello-world.vala.page:53
+msgid ""
+"Gtk.Application initializes GTK+. It also connects the <gui>x</gui> button "
+"that's automatically generated along with the window to the \"destroy\" "
+"signal."
msgstr ""
-#: C/helloWorld.js.page:150(section/p)
+#. (itstool) path: section/p
+#: C/hello-world.py.page:71
msgid ""
-"To make your application truly a part of the GNOME 3 system you need to "
-"install it with the help of autotools. The autotools build will install all "
-"the necessary files to all the right places."
+"We can start building our first window. We do this by creating a class "
+"called <var>MyWindow</var> and assigning it a Gtk.ApplicationWindow."
msgstr ""
-#: C/helloWorld.js.page:151(section/p)
-msgid "For this you need to have the following files:"
+#. (itstool) path: section/code
+#: C/hello-world.py.page:77
+#, no-wrap
+msgid ""
+"# Add a label widget to your window\n"
+"\n"
+" # create a label\n"
+" label = Gtk.Label()\n"
+"\n"
+" # set the text of the label\n"
+" label.set_text(\"Hello GNOME!\")\n"
+"\n"
+" # add the label to the window\n"
+" self.add(label)"
msgstr ""
-#: C/helloWorld.js.page:154(section/title)
-#: C/weatherAutotools.js.page:39(item/p)
-msgid "autogen.sh"
+#. (itstool) path: section/p
+#: C/hello-world.py.page:88
+msgid ""
+"A text label is one of the GTK+ widgets we can use, on account of having "
+"imported the GTK+ library. To use it, we create a variable called "
+"<var>label</var> and set the text that the label will hold. Finally, we "
+"create and run the application:"
msgstr ""
-#: C/helloWorld.js.page:155(section/code)
+#. (itstool) path: section/code
+#: C/hello-world.py.page:90
#, no-wrap
msgid ""
-"#!/bin/sh\n"
+"#run the application\n"
"\n"
-"set -e\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)"
+msgstr ""
+"#run the application\n"
"\n"
-"test -n \"$srcdir\" || srcdir=`dirname \"$0\"`\n"
-"test -n \"$srcdir\" || srcdir=.\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)"
+
+#. (itstool) path: section/title
+#: C/hello-world.py.page:100
+msgid "hello-world.py"
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/hello-world.py.page:102 C/label.py.page:37
+#, fuzzy, no-wrap
+#| msgid ""
+#| "from gi.repository import Gtk\n"
+#| "import sys\n"
+#| "\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"ScrolledWindow Example\", application=app)\n"
+#| " self.set_default_size(200, 200)\n"
+#| "\n"
+#| " # the scrolledwindow\n"
+#| " scrolled_window = Gtk.ScrolledWindow()\n"
+#| " scrolled_window.set_border_width(10)\n"
+#| " # there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
+#| " scrolled_window.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\n"
+#| "\n"
+#| " # an image - slightly larger than the window...\n"
+#| " image = Gtk.Image()\n"
+#| " image.set_from_file(\"gnome-image.png\")\n"
+#| "\n"
+#| " # add the image to the scrolledwindow\n"
+#| " scrolled_window.add_with_viewport(image)\n"
+#| "\n"
+#| " # add the scrolledwindow to the window\n"
+#| " self.add(scrolled_window)\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " win = MyWindow(self)\n"
+#| " win.show_all()\n"
+#| "\n"
+#| " def do_startup(self):\n"
+#| " Gtk.Application.do_startup(self)\n"
+#| "\n"
+#| "app = MyApplication()\n"
+#| "exit_status = app.run(sys.argv)\n"
+#| "sys.exit(exit_status)\n"
+msgid ""
+"from gi.repository import Gtk\n"
+"import sys\n"
"\n"
-"olddir=`pwd`\n"
-"cd \"$srcdir\"\n"
"\n"
-"# This will run autoconf, automake, etc. for us\n"
-"autoreconf --force --install\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+" # constructor for a Gtk.ApplicationWindow\n"
"\n"
-"cd \"$olddir\"\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
+" self.set_default_size(200, 100)\n"
"\n"
-"if test -z \"$NOCONFIGURE\"; then\n"
-" \"$srcdir\"/configure \"$ \"\n"
-"fi\n"
+" # create a label\n"
+" label = Gtk.Label()\n"
+" # set the text of the label\n"
+" label.set_text(\"Hello GNOME!\")\n"
+" # add the label to the window\n"
+" self.add(label)\n"
+"\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+"\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
+"\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)\n"
msgstr ""
+"from gi.repository import Gtk\n"
+"import sys\n"
+"\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"ScrolledWindow Example\", application=app)\n"
+" self.set_default_size(200, 200)\n"
+"\n"
+" # the scrolledwindow\n"
+" scrolled_window = Gtk.ScrolledWindow()\n"
+" scrolled_window.set_border_width(10)\n"
+" # there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
+" scrolled_window.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\n"
+"\n"
+" # an image - slightly larger than the window...\n"
+" image = Gtk.Image()\n"
+" image.set_from_file(\"gnome-image.png\")\n"
+"\n"
+" # add the image to the scrolledwindow\n"
+" scrolled_window.add_with_viewport(image)\n"
+"\n"
+" # add the scrolledwindow to the window\n"
+" self.add(scrolled_window)\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
+"\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)\n"
-#: C/helloWorld.js.page:157(section/p)
-msgid "After the <file>autogen.sh</file> file is ready and saved, run:"
+#. (itstool) path: section/p
+#: C/hello-world.py.page:106
+msgid ""
+"To run this application, first save it as hello-world.py. Then open "
+"Terminal, go to the folder where your application is stored and run:"
msgstr ""
-#: C/helloWorld.js.page:158(section/screen)
+#. (itstool) path: section/screen
+#: C/hello-world.py.page:107
#, no-wrap
-msgid "<output style=\"prompt\">$ </output><input>chmod +x autogen.sh</input>"
+msgid "<output style=\"prompt\">$ </output><input>python hello-world.py</input>"
msgstr ""
-#: C/helloWorld.js.page:162(section/title)
-#: C/weatherAutotools.js.page:37(item/p)
-#: C/weatherAutotools.js.page:63(section/p)
-msgid "Makefile.am"
-msgstr ""
-
-#: C/helloWorld.js.page:163(section/code)
+#. (itstool) path: section/code
+#: C/hello-world.py.page:143
#, no-wrap
msgid ""
"# The actual runnable program is set to the SCRIPTS primitive.\n"
"# # Prefix bin_ tells where to copy this\n"
-"bin_SCRIPTS = helloWorld\n"
+"bin_SCRIPTS = hello-world.py\n"
"# # List of files to be distributed\n"
"EXTRA_DIST= \\\n"
"\t$(bin_SCRIPTS)\n"
@@ -12638,47 +15438,138 @@ msgid ""
"# # The desktop files\n"
"desktopdir = $(datadir)/applications\n"
"desktop_DATA = \\\n"
-"\thelloWorld.desktop\n"
+"\thello-world.desktop\n"
msgstr ""
-#: C/helloWorld.js.page:167(section/title)
-#: C/weatherAutotools.js.page:38(item/p)
-#: C/weatherAutotools.js.page:130(section/p)
-msgid "configure.ac"
+#. (itstool) path: info/title
+#: C/hello-world.vala.page:8
+#, fuzzy
+#| msgctxt "text"
+#| msgid "Toolbar (Vala)"
+msgctxt "text"
+msgid "Hello World (Vala)"
+msgstr "Werkzeugleiste (Vala)"
+
+#. (itstool) path: section/code
+#: C/hello-world.vala.page:44
+#, no-wrap
+msgid ""
+"class MyApplication : Gtk.Application {\n"
+" protected override void activate () {\n"
+" var window = new Gtk.ApplicationWindow (this);\n"
+" window.set_title (\"Welcome to GNOME\");\n"
+" window.set_default_size (200, 100);\n"
+" window.show_all ();\n"
+" }\n"
+"}"
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/hello-world.vala.page:54
+msgid ""
+"We can start building our first window. We do this by creating a variable "
+"called <var>window</var> and assigning it a new Gtk.ApplicationWindow."
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/hello-world.vala.page:55
+msgid ""
+"We give the window a title using <code>set_title</code>. The title can be "
+"any string you want it to be. To be on the safe side, it's best to stick to "
+"UTF-8 encoding."
msgstr ""
-#: C/helloWorld.js.page:168(section/code)
+#. (itstool) path: section/code
+#: C/hello-world.vala.page:60
#, no-wrap
msgid ""
-"# This file is processed by autoconf to create a configure script\n"
-"AC_INIT([Hello World], 1.0)\n"
-"AM_INIT_AUTOMAKE([1.10 no-define foreign dist-xz no-dist-gzip])\n"
-"AC_CONFIG_FILES([Makefile helloWorld.desktop])\n"
-"AC_OUTPUT\n"
+"var label = new Gtk.Label (\"Hello GNOME!\");\n"
+" window.add (label);\n"
msgstr ""
-#: C/helloWorld.js.page:172(section/title)
-msgid "README"
+#. (itstool) path: section/code
+#: C/hello-world.vala.page:66
+#, no-wrap
+msgid ""
+"int main (string[] args) {\n"
+" return new MyApplication ().run (args);\n"
+"}"
msgstr ""
-#: C/helloWorld.js.page:173(section/p)
-msgid "Information users should read first. This file can be blank."
+#. (itstool) path: section/title
+#: C/hello-world.vala.page:74
+msgid "hello-world.vala"
+msgstr "hello-world.vala"
+
+#. (itstool) path: section/code
+#: C/hello-world.vala.page:76
+#, no-wrap
+msgid ""
+"public class MyApplication : Gtk.Application {\n"
+"\tprotected override void activate () {\n"
+"\t\tvar window = new Gtk.ApplicationWindow (this);\n"
+"\t\tvar label = new Gtk.Label (\"Hello GNOME!\");\n"
+"\t\twindow.add (label);\n"
+"\t\twindow.set_title (\"Welcome to GNOME\");\n"
+"\t\twindow.set_default_size (200, 100);\n"
+"\t\twindow.show_all ();\n"
+"\t}\n"
+"}\n"
+"\n"
+"public int main (string[] args) {\n"
+"\treturn new MyApplication ().run (args);\n"
+"}\n"
msgstr ""
-#: C/helloWorld.js.page:175(section/p)
+#. (itstool) path: section/p
+#: C/hello-world.vala.page:80
msgid ""
-"When you have the <file>helloWorld</file>, <file>helloWorld.desktop.in</"
-"file>, <file>Makefile.am</file>, <file>configure.ac</file> and <file>autogen."
-"sh</file> files with correct information and rights, the <file>README</file> "
-"file can include the following instructions:"
+"To run this application, first save it as hello-world.vala. Then open "
+"Terminal, go to the folder where your application is stored."
+msgstr ""
+
+#. (itstool) path: section/screen
+#: C/hello-world.vala.page:82
+#, no-wrap
+msgid "valac --pkg gtk+-3.0 <file>hello-world.vala</file>"
+msgstr "valac --pkg gtk+-3.0 <file>hello-world.vala</file>"
+
+#. (itstool) path: section/code
+#: C/hello-world.vala.page:120
+#, no-wrap
+msgid ""
+"# The actual runnable program is set to the SCRIPTS primitive.\n"
+"# # Prefix bin_ tells where to copy this\n"
+"bin_PROGRAMS = hello-world\n"
+"hello_world_CFLAGS = $(gtk_CFLAGS)\n"
+"hello_world_LDADD = $(gtk_LIBS)\n"
+"hello_world_VALAFLAGS = --pkg gtk+-3.0\n"
+"hello_world_SOURCES = hello-world.vala\n"
+"\n"
+"desktopdir = $(datadir)/applications\n"
+"desktop_DATA = \\\n"
+"\thello-world.desktop\n"
msgstr ""
+"# The actual runnable program is set to the SCRIPTS primitive.\n"
+"# # Prefix bin_ tells where to copy this\n"
+"bin_PROGRAMS = hello-world\n"
+"hello_world_CFLAGS = $(gtk_CFLAGS)\n"
+"hello_world_LDADD = $(gtk_LIBS)\n"
+"hello_world_VALAFLAGS = --pkg gtk+-3.0\n"
+"hello_world_SOURCES = hello-world.vala\n"
+"\n"
+"desktopdir = $(datadir)/applications\n"
+"desktop_DATA = \\\n"
+"\thello-world.desktop\n"
-#: C/helloWorld.js.page:176(section/code)
+#. (itstool) path: section/code
+#: C/hello-world.vala.page:133
#, no-wrap
msgid ""
"To build and install this program:\n"
"\n"
"./autogen.sh --prefix=/home/your_username/.local\n"
+"make\n"
"make install\n"
"\n"
"-------------\n"
@@ -12689,14 +15580,21 @@ msgid ""
"config.log\n"
"config.status\n"
"configure\n"
-"helloWorld.desktop\n"
+"depcomp\n"
+"hello-world\n"
+"hello-world.c\n"
+"hello-world.desktop\n"
+"hello_world-hello-world.o\n"
+"hello_world_vala.stamp\n"
"install-sh\n"
"missing\n"
"Makefile.in\n"
"Makefile\n"
"\n"
+"Running \"make\" links all the appropriate libraries.\n"
+"\n"
"Running \"make install\", installs the application in /home/your_username/.local/bin\n"
-"and installs the helloWorld.desktop file in /home/your_username/.local/share/applications\n"
+"and installs the hello-world.desktop file in /home/your_username/.local/share/applications\n"
"\n"
"You can now run the application by typing \"Hello World\" in the Overview.\n"
"\n"
@@ -12711,63 +15609,54 @@ msgid ""
"make distcheck\n"
"\n"
"This will create hello-world-1.0.tar.xz\n"
-"\n"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/image.c.page:21(media) C/image.js.page:20(media) C/image.py.page:23(media)
-#: C/image.vala.page:21(media)
+#: C/image.c.page:21 C/image.js.page:20 C/image.py.page:23
+#: C/image.vala.page:21
msgctxt "_"
msgid "external ref='media/image.png' md5='9416aa74d9d6a857783f7a36338e7a02'"
msgstr "external ref='media/image.png' md5='9416aa74d9d6a857783f7a36338e7a02'"
-#: C/image.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/image.c.page:7
+#, fuzzy
msgctxt "text"
msgid "Image (C)"
-msgstr ""
+msgstr "_Bild"
-#: C/image.c.page:17(info/desc) C/image.js.page:16(info/desc)
-#: C/image.py.page:19(info/desc) C/image.vala.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/image.c.page:17 C/image.js.page:16 C/image.py.page:19
+#: C/image.vala.page:17
msgid "A widget displaying an image"
msgstr ""
-#: C/image.c.page:20(page/title) C/image.js.page:19(page/title)
-#: C/image.py.page:22(page/title) C/image.vala.page:20(page/title)
+#. (itstool) path: page/title
+#: C/image.c.page:20 C/image.js.page:19 C/image.py.page:22
+#: C/image.vala.page:20
msgid "Image"
-msgstr ""
+msgstr "Bild"
-#: C/image.c.page:22(page/p) C/image.js.page:21(page/p)
-#: C/image.py.page:24(page/p) C/image.vala.page:22(page/p)
+#. (itstool) path: page/p
+#: C/image.c.page:22 C/image.js.page:21 C/image.py.page:24
+#: C/image.vala.page:22
msgid "This GtkApplication displays an image file from the current directory."
msgstr ""
-#: C/image.c.page:23(note/p) C/image.js.page:22(note/p)
-#: C/image.vala.page:23(note/p)
+#. (itstool) path: note/p
+#: C/image.c.page:23 C/image.js.page:22 C/image.vala.page:23
msgid ""
"If the image file isn't loaded successfully, the image will contain a "
"\"broken image\" icon. The <file>filename.png</file> needs to be in the "
"current directory for this code to work. Use your favorite picture!"
msgstr ""
-#: C/image.c.page:27(page/code)
+#. (itstool) path: page/code
+#: C/image.c.page:27
#, no-wrap
msgid ""
"#include <gtk/gtk.h>\n"
@@ -12808,19 +15697,59 @@ msgid ""
" return status;\n"
"}\n"
msgstr ""
+"#include <gtk/gtk.h>\n"
+"\n"
+"\n"
+"\n"
+"static void\n"
+"activate (GtkApplication *app,\n"
+" gpointer user_data)\n"
+"{\n"
+" GtkWidget *window;\n"
+" GtkWidget *image;\n"
+"\n"
+" /*Create a window with a title and a default size*/\n"
+" window = gtk_application_window_new (app);\n"
+" gtk_window_set_title (GTK_WINDOW (window), \"Welcome to GNOME\");\n"
+" gtk_window_set_default_size (GTK_WINDOW (window), 300, 300);\n"
+"\n"
+" image = gtk_image_new_from_file (\"gnome-image.png\");\n"
+"\n"
+" gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (image));\n"
+"\n"
+" gtk_widget_show_all (GTK_WIDGET (window));\n"
+"}\n"
+"\n"
+"\n"
+"\n"
+"int\n"
+"main (int argc, char **argv)\n"
+"{\n"
+" GtkApplication *app;\n"
+" int status;\n"
+"\n"
+" app = gtk_application_new (\"org.gtk.example\",G_APPLICATION_FLAGS_NONE);\n"
+" g_signal_connect (app, \"activate\", G_CALLBACK (activate), NULL);\n"
+" status = g_application_run (G_APPLICATION (app), argc, argv);\n"
+" g_object_unref (app);\n"
+" return status;\n"
+"}\n"
-#: C/image.c.page:34(item/p)
+#. (itstool) path: item/p
+#: C/image.c.page:34
msgid ""
-"<link href=\"http://developer.gnome.org/gtk3/stable/GtkImage.html\">GtkImage</"
-"link>"
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkImage.html"
+"\">GtkImage</link>"
msgstr ""
-#: C/image.js.page:6(info/title)
+#. (itstool) path: info/title
+#: C/image.js.page:6
msgctxt "text"
msgid "Image (JavaScript)"
msgstr "Bild (JavaScript)"
-#: C/image.js.page:26(page/code)
+#. (itstool) path: page/code
+#: C/image.js.page:26
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -12885,32 +15814,77 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/image.js.page:33(item/p)
+#. (itstool) path: item/p
+#: C/image.js.page:33
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Image.html"
"\">Gtk.Image</link>"
msgstr ""
-#: C/image.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/image.py.page:7
msgctxt "text"
msgid "Image (Python)"
msgstr "Bild (Python)"
-#: C/image.py.page:26(note/p)
+#. (itstool) path: note/p
+#: C/image.py.page:26
msgid ""
"If the image file is not loaded successfully, the image will contain a "
"\"broken image\" icon. The <file>filename.png</file> needs to be in the "
"current directory for this code to work."
msgstr ""
-#: C/image.py.page:35(section/code)
-#, no-wrap
+#. (itstool) path: section/code
+#: C/image.py.page:35
+#, fuzzy, no-wrap
+#| msgid ""
+#| "from gi.repository import Gtk\n"
+#| "import sys\n"
+#| "\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"ScrolledWindow Example\", application=app)\n"
+#| " self.set_default_size(200, 200)\n"
+#| "\n"
+#| " # the scrolledwindow\n"
+#| " scrolled_window = Gtk.ScrolledWindow()\n"
+#| " scrolled_window.set_border_width(10)\n"
+#| " # there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
+#| " scrolled_window.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\n"
+#| "\n"
+#| " # an image - slightly larger than the window...\n"
+#| " image = Gtk.Image()\n"
+#| " image.set_from_file(\"gnome-image.png\")\n"
+#| "\n"
+#| " # add the image to the scrolledwindow\n"
+#| " scrolled_window.add_with_viewport(image)\n"
+#| "\n"
+#| " # add the scrolledwindow to the window\n"
+#| " self.add(scrolled_window)\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " win = MyWindow(self)\n"
+#| " win.show_all()\n"
+#| "\n"
+#| " def do_startup(self):\n"
+#| " Gtk.Application.do_startup(self)\n"
+#| "\n"
+#| "app = MyApplication()\n"
+#| "exit_status = app.run(sys.argv)\n"
+#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
" # create a window\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
" self.set_default_size(300, 300)\n"
@@ -12922,7 +15896,9 @@ msgid ""
" # add the image to the window\n"
" self.add(image)\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -12937,15 +15913,55 @@ msgid ""
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
msgstr ""
+"from gi.repository import Gtk\n"
+"import sys\n"
+"\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"ScrolledWindow Example\", application=app)\n"
+" self.set_default_size(200, 200)\n"
+"\n"
+" # the scrolledwindow\n"
+" scrolled_window = Gtk.ScrolledWindow()\n"
+" scrolled_window.set_border_width(10)\n"
+" # there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
+" scrolled_window.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\n"
+"\n"
+" # an image - slightly larger than the window...\n"
+" image = Gtk.Image()\n"
+" image.set_from_file(\"gnome-image.png\")\n"
+"\n"
+" # add the image to the scrolledwindow\n"
+" scrolled_window.add_with_viewport(image)\n"
+"\n"
+" # add the scrolledwindow to the window\n"
+" self.add(scrolled_window)\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
+"\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)\n"
-#: C/image.py.page:37(section/p)
+#. (itstool) path: section/p
+#: C/image.py.page:37
msgid ""
"Another way to obtain what we have in the example is to create the image as "
"an instance of another class and add it to the instance of <code>MyWindow</"
"code> in the <code>do_activate(self)</code> method:"
msgstr ""
-#: C/image.py.page:38(section/code)
+#. (itstool) path: section/code
+#: C/image.py.page:38
#, no-wrap
msgid ""
"\n"
@@ -12974,37 +15990,42 @@ msgid ""
" win.show_all()"
msgstr ""
-#: C/image.py.page:65(section/title)
+#. (itstool) path: section/title
+#: C/image.py.page:65
msgid "Useful methods for an Image widget"
msgstr ""
-#: C/image.py.page:68(item/p)
+#. (itstool) path: item/p
+#: C/image.py.page:68
msgid ""
-"To set a stock icon as image, you can use <code>set_from_stock(stock_id, size)"
-"</code> where <code>stock_id</code> is a stock icon such as <code>Gtk."
+"To set a stock icon as image, you can use <code>set_from_stock(stock_id, "
+"size)</code> where <code>stock_id</code> is a stock icon such as <code>Gtk."
"STOCK_ABOUT</code> (more can be found at <link href=\"http://developer.gnome."
-"org/gtk3/unstable/gtk3-Stock-Items\">Stock Items</link>, with the caveat that "
-"they should be modified as above) and <code>size</code> is a stock icon size "
-"to be chosen from <code>Gtk.IconSize.INVALID, Gtk.IconSize.MENU, Gtk.IconSize."
-"SMALL_TOOLBAR, Gtk.IconSize.LARGE_TOOLBAR, Gtk.IconSize.BUTTON, Gtk.IconSize."
-"DND, Gtk.IconSize.DIALOG</code>."
+"org/gtk3/unstable/gtk3-Stock-Items\">Stock Items</link>, with the caveat "
+"that they should be modified as above) and <code>size</code> is a stock icon "
+"size to be chosen from <code>Gtk.IconSize.INVALID, Gtk.IconSize.MENU, Gtk."
+"IconSize.SMALL_TOOLBAR, Gtk.IconSize.LARGE_TOOLBAR, Gtk.IconSize.BUTTON, Gtk."
+"IconSize.DND, Gtk.IconSize.DIALOG</code>."
msgstr ""
-#: C/image.py.page:69(item/p)
+#. (itstool) path: item/p
+#: C/image.py.page:69
msgid ""
"You can also use <code>set_from_icon_name(icon_name, size)</code>, where "
"<code>icon_name</code> is a stock icon name such as <code>\"gtk-about\"</"
"code> (more can be found as above) and <code>size</code> is as above."
msgstr ""
-#: C/image.py.page:70(item/p)
+#. (itstool) path: item/p
+#: C/image.py.page:70
msgid ""
"To load an image over a network use <code>set_from_pixbuf(pixbuf)</code>, "
"where <code>pixbuf</code> is a <link href=\"http://developer.gnome.org/gdk-"
"pixbuf/unstable//index.html\">GdkPixbuf</link>."
msgstr ""
-#: C/image.py.page:71(item/code)
+#. (itstool) path: item/code
+#: C/image.py.page:71
#, no-wrap
msgid ""
"\n"
@@ -13030,25 +16051,29 @@ msgid ""
" self.add(image)"
msgstr ""
-#: C/image.py.page:92(item/p)
+#. (itstool) path: item/p
+#: C/image.py.page:92
msgid ""
"If <code>preserve_aspect_ratio=True</code> we can use "
"<code>new_from_file_at_size(filename, width, height)</code>. If <code>width</"
"code> or <code>height</code> is <code>-1</code>, it is not constrained."
msgstr ""
-#: C/image.py.page:93(item/p)
+#. (itstool) path: item/p
+#: C/image.py.page:93
msgid ""
"For loading from an input stream, see <code>new_from_stream()</code> and "
"<code>new_from_stream_at_scale()</code> in the documentation"
msgstr ""
-#: C/image.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/image.vala.page:7
msgctxt "text"
msgid "Image (Vala)"
msgstr ""
-#: C/image.vala.page:26(page/code)
+#. (itstool) path: page/code
+#: C/image.vala.page:26
#, no-wrap
msgid ""
"public class MyWindow : Gtk.ApplicationWindow {\n"
@@ -13077,100 +16102,93 @@ msgid ""
"}\n"
msgstr ""
-#: C/image.vala.page:31(item/p)
+#. (itstool) path: item/p
+#: C/image.vala.page:31 C/separator.vala.page:39
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Application.html"
"\">GtkApplication</link>"
msgstr ""
-#: C/image.vala.page:32(item/p)
+#. (itstool) path: item/p
+#: C/image.vala.page:32
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ApplicationWindow.html"
"\">GtkApplicationWindow</link>"
msgstr ""
-#: C/image.vala.page:33(item/p)
+#. (itstool) path: item/p
+#: C/image.vala.page:33 C/paned.vala.page:37
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Image.html\">GtkImage</link>"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/image-viewer.c.page:38(media) C/image-viewer.cpp.page:36(media)
-#: C/image-viewer.js.page:46(media) C/image-viewer.py.page:45(media)
-#: C/image-viewer.vala.page:53(media)
+#: C/image-viewer.c.page:38 C/image-viewer.cpp.page:36
+#: C/image-viewer.js.page:46 C/image-viewer.py.page:45
+#: C/image-viewer.vala.page:53
msgctxt "_"
msgid ""
"external ref='media/image-viewer.png' md5='7720360611243b14283b83527be968c2'"
-msgstr "@@image: 'media/image-viewer.png'; md5=7720360611243b14283b83527be968c2"
+msgstr ""
+"@@image: 'media/image-viewer.png'; md5=7720360611243b14283b83527be968c2"
-#: C/image-viewer.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/image-viewer.c.page:7
msgctxt "text"
msgid "Image viewer (C)"
msgstr "Bildbetrachter (C)"
-#: C/image-viewer.c.page:10(info/desc)
+#. (itstool) path: info/desc
+#: C/image-viewer.c.page:10
msgid "A little bit more than a simple \"Hello world\" Gtk application."
msgstr ""
-#: C/image-viewer.c.page:28(page/title) C/image-viewer.cpp.page:26(page/title)
-#: C/image-viewer.js.page:28(page/title) C/image-viewer.py.page:28(page/title)
-#: C/image-viewer.vala.page:36(page/title)
+#. (itstool) path: page/title
+#: C/image-viewer.c.page:28 C/image-viewer.cpp.page:26
+#: C/image-viewer.js.page:28 C/image-viewer.py.page:28
+#: C/image-viewer.vala.page:36
msgid "Image viewer"
msgstr "Bildbetrachter"
-#: C/image-viewer.c.page:31(synopsis/p) C/image-viewer.cpp.page:29(synopsis/p)
-#: C/message-board.c.page:28(synopsis/p)
-#: C/record-collection.js.page:31(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/image-viewer.c.page:31 C/image-viewer.cpp.page:29
+#: C/message-board.c.page:28 C/record-collection.js.page:31
msgid "In this tutorial, you will learn:"
msgstr "In diesem Tutorial lernen Sie, wie:"
-#: C/image-viewer.c.page:33(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:33
msgid "Some basic concepts of C/GObject programming"
msgstr ""
-#: C/image-viewer.c.page:34(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:34
msgid "How to write a Gtk application in C"
-msgstr ""
+msgstr "Schreiben einer Gtk-Anwendung in C"
-#: C/image-viewer.c.page:48(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:48
msgid ""
"Choose <gui>GTK+ (Simple)</gui> from the <gui>C</gui> tab, click "
"<gui>Continue</gui>, and fill out your details on the next few pages. Use "
"<file>image-viewer</file> as project name and directory."
msgstr ""
-#: C/image-viewer.c.page:51(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:51
msgid ""
-"Make sure that <gui>Use GtkBuilder for user interface</gui> is disabled as we "
-"will create the UI manually in this tutorial. Check the <link xref=\"guitar-"
-"tuner.c\">Guitar-Tuner</link> tutorial if you want to learn how to use the "
-"interface builder."
+"Make sure that <gui>Use GtkBuilder for user interface</gui> is disabled as "
+"we will create the UI manually in this tutorial. Check the <link xref="
+"\"guitar-tuner.c\">Guitar-Tuner</link> tutorial if you want to learn how to "
+"use the interface builder."
msgstr ""
-#: C/image-viewer.c.page:66(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.c.page:66
msgid ""
"C is a rather verbose language, so don't be surprised that the file contains "
"quite a lot of code. Most of it is template code. It loads an (empty) window "
@@ -13178,19 +16196,21 @@ msgid ""
"the basics:"
msgstr ""
-#: C/image-viewer.c.page:73(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:73
msgid ""
"The <code>create_window</code> function creates a new (empty) window and "
"connects a signal to exit the application when that window is closed."
msgstr ""
-#: C/image-viewer.c.page:89(section/title)
-#: C/image-viewer.cpp.page:86(section/title)
-#: C/image-viewer.vala.page:138(section/title)
+#. (itstool) path: section/title
+#: C/image-viewer.c.page:89 C/image-viewer.cpp.page:86
+#: C/image-viewer.vala.page:138
msgid "Creating the user interface"
msgstr "Erstellen der Benutzeroberfläche"
-#: C/image-viewer.c.page:90(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.c.page:90
msgid ""
"Now we will bring life into the empty window. GTK organizes the user "
"interface with <code>GtkContainer</code>s that can contain other widgets and "
@@ -13198,7 +16218,8 @@ msgid ""
"<code>GtkBox</code>:"
msgstr ""
-#: C/image-viewer.c.page:93(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.c.page:93
#, no-wrap
msgid ""
"\n"
@@ -13235,26 +16256,29 @@ msgid ""
"}\n"
msgstr ""
-#: C/image-viewer.c.page:128(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:128
msgid ""
-"The first lines create the widgets we want to use: a button for opening up an "
-"image, the image view widget itself and the box we will use as a container. "
-"The macros like <code>GTK_BOX</code> are used for dynamic type checking and "
-"casting which is needed as C doesn't support object-orientation out-of-the-"
-"box."
+"The first lines create the widgets we want to use: a button for opening up "
+"an image, the image view widget itself and the box we will use as a "
+"container. The macros like <code>GTK_BOX</code> are used for dynamic type "
+"checking and casting which is needed as C doesn't support object-orientation "
+"out-of-the-box."
msgstr ""
-#: C/image-viewer.c.page:133(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:133
msgid ""
"The calls to <code>gtk_box_pack_start</code> add the two widgets to the box "
"and define their behaviour. The image will expand into any available space "
-"while the button will just be as big as needed. You will notice that we don't "
-"set explicit sizes on the widgets. In GTK this is usually not needed as it "
-"makes it much easier to have a layout that looks good in different window "
-"sizes. Next, the box is added to the window."
+"while the button will just be as big as needed. You will notice that we "
+"don't set explicit sizes on the widgets. In GTK this is usually not needed "
+"as it makes it much easier to have a layout that looks good in different "
+"window sizes. Next, the box is added to the window."
msgstr ""
-#: C/image-viewer.c.page:139(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:139
msgid ""
"We need to define what happens when the user clicks on the button. GTK uses "
"the concept of <em>signals</em>. When the button is clicked, it fires the "
@@ -13265,33 +16289,37 @@ msgid ""
"<em>callback</em> in the next section."
msgstr ""
-#: C/image-viewer.c.page:144(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:144
msgid ""
"The last <code>g_signal_connect()</code> makes sure that the application "
"exits when the window is closed."
msgstr ""
-#: C/image-viewer.c.page:147(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:147
msgid ""
-"As a last step, make sure to replace the <code>gtk_widget_show</code> call in "
-"the <code>main()</code> function by <code>gtk_widget_show_all()</code> to "
+"As a last step, make sure to replace the <code>gtk_widget_show</code> call "
+"in the <code>main()</code> function by <code>gtk_widget_show_all()</code> to "
"show the window and all the widgets it contains."
msgstr ""
-#: C/image-viewer.c.page:154(section/title)
-#: C/image-viewer.cpp.page:141(section/title)
-#: C/image-viewer.vala.page:209(section/title)
+#. (itstool) path: section/title
+#: C/image-viewer.c.page:154 C/image-viewer.cpp.page:141
+#: C/image-viewer.vala.page:209
msgid "Showing the image"
msgstr "Bildanzeige"
-#: C/image-viewer.c.page:155(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.c.page:155
msgid ""
"We will now define the signal handler for the <em>clicked</em> signal or the "
"button we mentioned before. Add this code before the <code>create_window()</"
"code> method."
msgstr ""
-#: C/image-viewer.c.page:158(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.c.page:158
#, no-wrap
msgid ""
"\n"
@@ -13328,23 +16356,26 @@ msgid ""
"}\n"
msgstr ""
-#: C/image-viewer.c.page:191(section/p) C/image-viewer.cpp.page:177(section/p)
-#: C/image-viewer.js.page:282(section/p) C/image-viewer.py.page:196(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.c.page:191 C/image-viewer.cpp.page:177
+#: C/image-viewer.js.page:282 C/image-viewer.py.page:196
msgid ""
-"This is a bit more complicated than anything we've attempted so far, so let's "
-"break it down:"
+"This is a bit more complicated than anything we've attempted so far, so "
+"let's break it down:"
msgstr ""
-#: C/image-viewer.c.page:193(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:193
msgid ""
"The first argument of the signal is always the widget that sent the signal. "
"Sometimes other arguments related to the signal come after that, but "
"<em>clicked</em> doesn't have any. Next is the <code>user_data</code> "
-"argument which is a pointer to the data we passed when connecting the signal. "
-"In this case it is our <code>GtkImage</code> object."
+"argument which is a pointer to the data we passed when connecting the "
+"signal. In this case it is our <code>GtkImage</code> object."
msgstr ""
-#: C/image-viewer.c.page:199(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:199
msgid ""
"The next interesting line is where the dialog for choosing the file is "
"created using <code>gtk_file_chooser_dialog_new</code>. The function takes "
@@ -13352,15 +16383,18 @@ msgid ""
"like the number of buttons and their corresponding values."
msgstr ""
-#: C/image-viewer.c.page:203(item/p) C/image-viewer.cpp.page:185(item/p)
-#: C/image-viewer.js.page:289(item/p) C/image-viewer.py.page:203(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:203 C/image-viewer.cpp.page:185
+#: C/image-viewer.js.page:289 C/image-viewer.py.page:203
msgid ""
"Notice that we are using <em>stock</em> button names from Gtk, instead of "
-"manually typing \"Cancel\" or \"Open\". The advantage of using stock names is "
-"that the button labels will already be translated into the user's language."
+"manually typing \"Cancel\" or \"Open\". The advantage of using stock names "
+"is that the button labels will already be translated into the user's "
+"language."
msgstr ""
-#: C/image-viewer.c.page:206(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:206
msgid ""
"The next two lines restrict the <gui>Open</gui> dialog to only display files "
"which can be opened by GtkImage. A filter object is created first; we then "
@@ -13369,7 +16403,8 @@ msgid ""
"filter to be the <gui>Open</gui> dialog's filter."
msgstr ""
-#: C/image-viewer.c.page:209(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:209
msgid ""
"<code>gtk_dialog_run</code> displays the <gui>Open</gui> dialog. The dialog "
"will wait for the user to choose an image; when they do, "
@@ -13378,7 +16413,8 @@ msgid ""
"<gui>Cancel</gui>). The <code>switch</code> statement tests for this."
msgstr ""
-#: C/image-viewer.c.page:211(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:211
msgid ""
"Assuming that the user did click <gui>Open</gui>, the next line sets the "
"<code>file</code> property of the GtkImage to the filename of the image "
@@ -13386,60 +16422,68 @@ msgid ""
"image."
msgstr ""
-#: C/image-viewer.c.page:214(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:214
msgid ""
"In the final line of this method, we destroy the <gui>Open</gui> dialog "
"because we don't need it any more. Destroying automatically hides the dialog."
msgstr ""
-#: C/image-viewer.c.page:223(section/p) C/image-viewer.cpp.page:211(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.c.page:223 C/image-viewer.cpp.page:211
msgid ""
"If you haven't already done so, choose the <file>Debug/src/image-viewer</"
-"file> application in the dialog that appears. Finally, hit <gui>Run</gui> and "
-"enjoy!"
+"file> application in the dialog that appears. Finally, hit <gui>Run</gui> "
+"and enjoy!"
msgstr ""
-#: C/image-viewer.c.page:228(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.c.page:228
msgid ""
-"If you run into problems with the tutorial, compare your code with this <link "
-"href=\"image-viewer/image-viewer.c\">reference code</link>."
+"If you run into problems with the tutorial, compare your code with this "
+"<link href=\"image-viewer/image-viewer.c\">reference code</link>."
msgstr ""
-#: C/image-viewer.c.page:236(item/p) C/image-viewer.cpp.page:224(item/p)
-#: C/image-viewer.js.page:324(item/p) C/image-viewer.py.page:238(item/p)
-#: C/image-viewer.vala.page:297(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:236 C/image-viewer.cpp.page:224
+#: C/image-viewer.js.page:324 C/image-viewer.py.page:238
+#: C/image-viewer.vala.page:297
msgid ""
"Have the user select a directory rather than a file, and provide controls to "
"cycle through all of the images in a directory."
msgstr ""
-#: C/image-viewer.c.page:239(item/p) C/image-viewer.cpp.page:227(item/p)
-#: C/image-viewer.js.page:327(item/p) C/image-viewer.py.page:241(item/p)
-#: C/image-viewer.vala.page:300(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:239 C/image-viewer.cpp.page:227
+#: C/image-viewer.js.page:327 C/image-viewer.py.page:241
+#: C/image-viewer.vala.page:300
msgid ""
-"Apply random filters and effects to the image when it is loaded and allow the "
-"user to save the modified image."
+"Apply random filters and effects to the image when it is loaded and allow "
+"the user to save the modified image."
msgstr ""
-#: C/image-viewer.c.page:240(item/p) C/image-viewer.cpp.page:228(item/p)
-#: C/image-viewer.js.page:328(item/p) C/image-viewer.py.page:242(item/p)
-#: C/image-viewer.vala.page:301(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:240 C/image-viewer.cpp.page:228
+#: C/image-viewer.js.page:328 C/image-viewer.py.page:242
+#: C/image-viewer.vala.page:301
msgid ""
"<link href=\"http://www.gegl.org/api.html\">GEGL</link> provides powerful "
"image manipulation capabilities."
msgstr ""
-#: C/image-viewer.c.page:243(item/p) C/image-viewer.cpp.page:231(item/p)
-#: C/image-viewer.js.page:331(item/p) C/image-viewer.py.page:245(item/p)
-#: C/image-viewer.vala.page:304(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:243 C/image-viewer.cpp.page:231
+#: C/image-viewer.js.page:331 C/image-viewer.py.page:245
+#: C/image-viewer.vala.page:304
msgid ""
"Allow the user to load images from network shares, scanners, and other more "
"complicated sources."
msgstr ""
-#: C/image-viewer.c.page:244(item/p) C/image-viewer.cpp.page:232(item/p)
-#: C/image-viewer.js.page:332(item/p) C/image-viewer.py.page:246(item/p)
-#: C/image-viewer.vala.page:305(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.c.page:244 C/image-viewer.cpp.page:232
+#: C/image-viewer.js.page:332 C/image-viewer.py.page:246
+#: C/image-viewer.vala.page:305
msgid ""
"You can use <link href=\"http://library.gnome.org/devel/gio/unstable/\">GIO</"
"link> to handle network file tranfers and the like, and <link href=\"http://"
@@ -13447,41 +16491,48 @@ msgid ""
"scanning."
msgstr ""
-#: C/image-viewer.cpp.page:8(info/desc)
+#. (itstool) path: info/desc
+#: C/image-viewer.cpp.page:8
msgid "A little bit more than a simple \"Hello world\" GTKmm application."
msgstr ""
-#: C/image-viewer.cpp.page:31(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.cpp.page:31
msgid "Some basic concepts of C++/GObject programming"
msgstr ""
-#: C/image-viewer.cpp.page:32(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.cpp.page:32
msgid "How to write a Gtk application in C++"
msgstr "Schreiben einer Gtk-Anwendung in C++"
-#: C/image-viewer.cpp.page:46(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.cpp.page:46
msgid ""
"Choose <gui>GTKmm (Simple)</gui> from the <gui>C++</gui> tab, click "
"<gui>Forward</gui>, and fill out your details on the next few pages. Use "
"<file>image-viewer</file> as project name and directory."
msgstr ""
-#: C/image-viewer.cpp.page:49(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.cpp.page:49
msgid ""
-"Make sure that <gui>Use GtkBuilder for user interface</gui> is disabled as we "
-"will create the UI manually in this tutorial. Check the <link xref=\"guitar-"
-"tuner.cpp\">Guitar-Tuner</link> tutorial if you want to learn how to use the "
-"interface builder."
+"Make sure that <gui>Use GtkBuilder for user interface</gui> is disabled as "
+"we will create the UI manually in this tutorial. Check the <link xref="
+"\"guitar-tuner.cpp\">Guitar-Tuner</link> tutorial if you want to learn how "
+"to use the interface builder."
msgstr ""
-#: C/image-viewer.cpp.page:54(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.cpp.page:54
msgid ""
"Click <gui>Apply</gui> and the project will be created for you. Open "
-"<file>src/main.cc</file> from the <gui>Project</gui> or <gui>File</gui> tabs. "
-"You should see some code which starts with the lines:"
+"<file>src/main.cc</file> from the <gui>Project</gui> or <gui>File</gui> "
+"tabs. You should see some code which starts with the lines:"
msgstr ""
-#: C/image-viewer.cpp.page:55(item/code)
+#. (itstool) path: item/code
+#: C/image-viewer.cpp.page:55
#, no-wrap
msgid ""
"\n"
@@ -13491,37 +16542,42 @@ msgid ""
"#include \"config.h\">"
msgstr ""
-#: C/image-viewer.cpp.page:69(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.cpp.page:69
msgid ""
"The three <code>#include</code> lines at the top include the <code>config</"
"code> (useful autoconf build defines), <code>gtkmm</code> (user interface) "
-"and <code>iostream</code> (C++-STL) libraries. Functions from these libraries "
-"are used in the rest of the code."
+"and <code>iostream</code> (C++-STL) libraries. Functions from these "
+"libraries are used in the rest of the code."
msgstr ""
-#: C/image-viewer.cpp.page:72(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.cpp.page:72
msgid ""
"The <code>main</code> function creates a new (empty) window and sets the "
"window title."
msgstr ""
-#: C/image-viewer.cpp.page:75(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.cpp.page:75
msgid ""
"The <code>kit::run()</code> call starts the GTKmm main loop, which runs the "
-"user interface and starts listening for events (like clicks and key presses). "
-"As we give the window as an argument to that function, the application will "
-"automatically exit when that window is closed."
+"user interface and starts listening for events (like clicks and key "
+"presses). As we give the window as an argument to that function, the "
+"application will automatically exit when that window is closed."
msgstr ""
-#: C/image-viewer.cpp.page:87(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.cpp.page:87
msgid ""
"Now we will bring life into the empty window. GTKmm organizes the user "
"interface with <code>Gtk::Container</code>s that can contain other widgets "
-"and even other containers. Here we will use the simplest available container, "
-"a <code>Gtk::Box</code>:"
+"and even other containers. Here we will use the simplest available "
+"container, a <code>Gtk::Box</code>:"
msgstr ""
-#: C/image-viewer.cpp.page:90(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.cpp.page:90
#, no-wrap
msgid ""
"\n"
@@ -13553,13 +16609,16 @@ msgid ""
"}\n"
msgstr ""
-#: C/image-viewer.cpp.page:120(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.cpp.page:120
msgid ""
-"The first lines create the widgets we want to use: a button for opening up an "
-"image, the image view widget itself and the box we will use as a container."
+"The first lines create the widgets we want to use: a button for opening up "
+"an image, the image view widget itself and the box we will use as a "
+"container."
msgstr ""
-#: C/image-viewer.cpp.page:123(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.cpp.page:123
msgid ""
"The calls to <code>pack_start</code> add the two widgets to the box and "
"define their behaviour. The image will expand into any available space while "
@@ -13569,30 +16628,35 @@ msgid ""
"sizes. Next, the box is added to the window."
msgstr ""
-#: C/image-viewer.cpp.page:129(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.cpp.page:129
msgid ""
-"We need to define what happens when the user clicks on the button. GTKmm uses "
-"the concept of <em>signals</em>. When the button is clicked, it fires the "
-"<em>clicked</em> signal, which we can connect to some action. This is done "
-"using the <code>signal_clicked().connect</code> method which tells GTKmm to "
-"call the <code>on_open_image</code> function when the button is clicked. We "
-"will define the <em>callback</em> in the next section."
+"We need to define what happens when the user clicks on the button. GTKmm "
+"uses the concept of <em>signals</em>. When the button is clicked, it fires "
+"the <em>clicked</em> signal, which we can connect to some action. This is "
+"done using the <code>signal_clicked().connect</code> method which tells "
+"GTKmm to call the <code>on_open_image</code> function when the button is "
+"clicked. We will define the <em>callback</em> in the next section."
msgstr ""
-#: C/image-viewer.cpp.page:133(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.cpp.page:133
msgid ""
"The last step is to show all widgets in the window using "
-"<code>show_all_children()</code>. This is equivalent to using the <code>show()"
-"</code> method on all our child widgets."
+"<code>show_all_children()</code>. This is equivalent to using the "
+"<code>show()</code> method on all our child widgets."
msgstr ""
-#: C/image-viewer.cpp.page:142(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.cpp.page:142
msgid ""
"We will now define the signal handler for the <em>clicked</em> signal or the "
-"button we mentioned before. Add this code before the <code>main</code> method."
+"button we mentioned before. Add this code before the <code>main</code> "
+"method."
msgstr ""
-#: C/image-viewer.cpp.page:145(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.cpp.page:145
#, no-wrap
msgid ""
"\n"
@@ -13628,134 +16692,156 @@ msgid ""
"}\n"
msgstr ""
-#: C/image-viewer.cpp.page:180(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.cpp.page:180
msgid ""
"The dialog for choosing the file is created using the <code>Gtk::"
"FileChooserDialog</code> constructor. This takes the title and type of the "
"dialog. In our case, it is an <em>Open</em> dialog."
msgstr ""
-#: C/image-viewer.cpp.page:184(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.cpp.page:184
msgid ""
"The next two lines add an <em>Open</em> and a <em>Close</em> button to the "
"dialog."
msgstr ""
-#: C/image-viewer.cpp.page:186(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.cpp.page:186
msgid ""
"The second argument to the <code>add_button()</code> method is a value to "
-"identify the clicked button. We use predefined values provided by GTKmm here, "
-"too."
+"identify the clicked button. We use predefined values provided by GTKmm "
+"here, too."
msgstr ""
-#: C/image-viewer.cpp.page:191(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.cpp.page:191
msgid ""
"The next two lines restrict the <gui>Open</gui> dialog to only display files "
"which can be opened by <code>Gtk::Image</code>. A filter object is created "
"first; we then add all kinds of files supported by <code>Gdk::Pixbuf</code> "
-"(which includes most image formats like PNG and JPEG) to the filter. Finally, "
-"we set this filter to be the <gui>Open</gui> dialog's filter."
+"(which includes most image formats like PNG and JPEG) to the filter. "
+"Finally, we set this filter to be the <gui>Open</gui> dialog's filter."
msgstr ""
-#: C/image-viewer.cpp.page:192(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.cpp.page:192
msgid ""
"<code>Glib::RefPtr</code> is a smart pointer used here, that makes sure that "
"the filter is destroyed when there is no reference to it anymore."
msgstr ""
-#: C/image-viewer.cpp.page:196(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.cpp.page:196
msgid ""
"<code>dialog.run</code> displays the <gui>Open</gui> dialog. The dialog will "
"wait for the user to choose an image; when they do, <code>dialog.run</code> "
"will return the value <code>Gtk::RESPONSE_ACCEPT</code> (it would return "
-"<code>Gtk::RESPONSE_CANCEL</code> if the user clicked <gui>Cancel</gui>). The "
-"<code>switch</code> statement tests for this."
+"<code>Gtk::RESPONSE_CANCEL</code> if the user clicked <gui>Cancel</gui>). "
+"The <code>switch</code> statement tests for this."
msgstr ""
-#: C/image-viewer.cpp.page:199(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.cpp.page:199
msgid ""
"We hide the <gui>Open</gui> dialog because we don't need it any more. The "
"dialog would be hidden later anyway, as it is only a local variable and is "
"destroyed (and therefore hidden) when the scope ends."
msgstr ""
-#: C/image-viewer.cpp.page:202(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.cpp.page:202
msgid ""
"Assuming that the user did click <gui>Open</gui>, the next line loads the "
"file into the <code>Gtk::Image</code> so that it is displayed."
msgstr ""
-#: C/image-viewer.cpp.page:216(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.cpp.page:216
msgid ""
-"If you run into problems with the tutorial, compare your code with this <link "
-"href=\"image-viewer/image-viewer.cc\">reference code</link>."
+"If you run into problems with the tutorial, compare your code with this "
+"<link href=\"image-viewer/image-viewer.cc\">reference code</link>."
msgstr ""
-#: C/image-viewer.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/image-viewer.js.page:7
msgctxt "text"
msgid "Image viewer (JavaScript)"
msgstr "Bildbetrachter (JavaScript)"
-#: C/image-viewer.js.page:10(info/desc)
+#. (itstool) path: info/desc
+#: C/image-viewer.js.page:10
msgid ""
"A little bit more than a simple \"Hello world\" application - write an image "
"viewer in GTK+. Includes an introduction to the JavaScript language."
msgstr ""
-#: C/image-viewer.js.page:14(credit/name)
-#: C/image-viewer.py.page:14(credit/name)
+#. (itstool) path: credit/name
+#: C/image-viewer.js.page:14 C/image-viewer.py.page:14
msgid "Jonh Wendell"
msgstr "Jonh Wendell"
-#: C/image-viewer.js.page:31(synopsis/p) C/image-viewer.py.page:31(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/image-viewer.js.page:31 C/image-viewer.py.page:31
msgid ""
"In this tutorial, we're going to write a very simple GTK application that "
"loads and displays an image file. You will learn how to:"
msgstr ""
-#: C/image-viewer.js.page:33(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:33
msgid "Write a basic GTK user interface in JavaScript"
msgstr ""
-#: C/image-viewer.js.page:34(item/p) C/image-viewer.py.page:34(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:34 C/image-viewer.py.page:34
msgid "Deal with events by connecting signals to signal handlers"
msgstr ""
-#: C/image-viewer.js.page:35(item/p) C/image-viewer.py.page:35(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:35 C/image-viewer.py.page:35
msgid "Lay out GTK user interfaces using containers"
msgstr ""
-#: C/image-viewer.js.page:36(item/p) C/image-viewer.py.page:36(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:36 C/image-viewer.py.page:36
msgid "Load and display image files"
msgstr ""
-#: C/image-viewer.js.page:41(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:41
msgid "An installed copy of the <em>gjs</em> interpreter"
msgstr ""
-#: C/image-viewer.js.page:42(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:42
msgid "Basic knowledge of any object-orientated programming language"
msgstr ""
-#: C/image-viewer.js.page:56(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:56
msgid ""
"Choose <gui>Generic Javascript</gui> from the <gui>JS</gui> tab, click "
"<gui>Forward</gui>, and fill out your details on the next few pages. Use "
"<file>image-viewer</file> as project name and directory."
msgstr ""
-#: C/image-viewer.js.page:59(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:59
msgid ""
"Click <gui>Apply</gui> and the project will be created for you. Open "
-"<file>src/main.js</file> from the <gui>Project</gui> or <gui>File</gui> tabs. "
-"It contains very basic example code."
+"<file>src/main.js</file> from the <gui>Project</gui> or <gui>File</gui> "
+"tabs. It contains very basic example code."
msgstr ""
-#: C/image-viewer.js.page:66(section/title)
+#. (itstool) path: section/title
+#: C/image-viewer.js.page:66
msgid "JavaScript basics: Hello World"
msgstr ""
-#: C/image-viewer.js.page:67(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:67
msgid ""
"Before we start writing the image viewer, let's find out more about the way "
"JavaScript is used in GNOME. Of course, your very first contact with any "
@@ -13763,12 +16849,14 @@ msgid ""
"found in <file>main.js</file>:"
msgstr ""
-#: C/image-viewer.js.page:68(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.js.page:68
#, no-wrap
msgid "print (\"Hello world!\");"
msgstr "print (\"Hello world!\");"
-#: C/image-viewer.js.page:69(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:69
msgid ""
"This should look quite natural if you're familiar with almost any other "
"programming language. The function <code>print</code> is called with the "
@@ -13776,15 +16864,18 @@ msgid ""
"Note that each line of code ends with a semicolon."
msgstr ""
-#: C/image-viewer.js.page:73(section/title)
+#. (itstool) path: section/title
+#: C/image-viewer.js.page:73
msgid "Classes in JavaScript"
msgstr "Klassen in JavaScript"
-#: C/image-viewer.js.page:74(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:74
msgid "This is the standard way to define a class in JavaScript:"
msgstr ""
-#: C/image-viewer.js.page:75(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.js.page:75
#, no-wrap
msgid ""
"\n"
@@ -13811,40 +16902,46 @@ msgid ""
"}"
msgstr ""
-#: C/image-viewer.js.page:97(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:97
msgid ""
"This defines a class called <code>MyClass</code>. Let's go through each part "
"of the class definition:"
msgstr ""
-#: C/image-viewer.js.page:100(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:100
msgid ""
-"<code>function MyClass</code> is the constructor of the class — its name must "
-"match the class's name. You can access any member of the class by using the "
-"<code>this</code> object; here, the constructor calls the class's "
+"<code>function MyClass</code> is the constructor of the class — its name "
+"must match the class's name. You can access any member of the class by using "
+"the <code>this</code> object; here, the constructor calls the class's "
"<code>_init</code> method."
msgstr ""
-#: C/image-viewer.js.page:103(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:103
msgid ""
"The <code>MyClass.prototype</code> block is where you define the "
-"<em>structure</em> of the class. Each class is made up of methods (functions) "
-"and fields (variables); there are three methods and two fields in this "
-"example."
+"<em>structure</em> of the class. Each class is made up of methods "
+"(functions) and fields (variables); there are three methods and two fields "
+"in this example."
msgstr ""
-#: C/image-viewer.js.page:106(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:106
msgid ""
"The first method defined here is called <code>_init</code>, and we specify "
"that it is a function with no arguments:"
msgstr ""
-#: C/image-viewer.js.page:107(item/code)
+#. (itstool) path: item/code
+#: C/image-viewer.js.page:107
#, no-wrap
msgid "_init: function ()"
msgstr "_init: function ()"
-#: C/image-viewer.js.page:108(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:108
msgid ""
"We write the function inside some curly braces. Two fields are defined here, "
"<code>propertyA</code> and <code>propertyB</code>. The first is set to a "
@@ -13852,7 +16949,8 @@ msgid ""
"any value."
msgstr ""
-#: C/image-viewer.js.page:111(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:111
msgid ""
"The next method is called <code>aMethod</code> and has two arguments, which "
"it prints out when you call it. The final method is <code>dumpProperties</"
@@ -13860,17 +16958,20 @@ msgid ""
"code>."
msgstr ""
-#: C/image-viewer.js.page:114(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:114
msgid ""
"Note how the class definition (prototype) is arranged; each function "
"definition is separated by a comma."
msgstr ""
-#: C/image-viewer.js.page:118(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:118
msgid "Now that MyClass has been defined, we can play with it:"
msgstr ""
-#: C/image-viewer.js.page:119(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.js.page:119
#, no-wrap
msgid ""
"\n"
@@ -13880,30 +16981,34 @@ msgid ""
"o.dumpProperties ();"
msgstr ""
-#: C/image-viewer.js.page:124(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:124
msgid ""
"This code creates a new instance of the class called <code>o</code>, runs "
"<code>aMethod</code>, changes <code>propertyA</code> to a different string, "
"and then calls <code>dumpProperties</code> (which outputs the fields)."
msgstr ""
-#: C/image-viewer.js.page:125(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:125
msgid ""
"Save the code in the <file>main.js</file> and then run it by using "
"<guiseq><gui>Run</gui><gui>Execute</gui></guiseq> from the menu or using the "
"toolbar."
msgstr ""
-#: C/image-viewer.js.page:130(section/title)
-#: C/image-viewer.py.page:69(section/title)
+#. (itstool) path: section/title
+#: C/image-viewer.js.page:130 C/image-viewer.py.page:69
msgid "A first Gtk application"
msgstr "Eine erste Gtk-Anwendung"
-#: C/image-viewer.js.page:131(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:131
msgid "Let's see what a very basic Gtk application looks like in JavaScript:"
msgstr ""
-#: C/image-viewer.js.page:132(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.js.page:132
#, no-wrap
msgid ""
"\n"
@@ -13917,24 +17022,28 @@ msgid ""
"Gtk.main ();"
msgstr ""
-#: C/image-viewer.js.page:141(section/p) C/image-viewer.py.page:94(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:141 C/image-viewer.py.page:94
msgid "Let's take a look at what's happening:"
msgstr ""
-#: C/image-viewer.js.page:144(item/p) C/image-viewer.py.page:97(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:144 C/image-viewer.py.page:97
msgid ""
"The first line imports the Gtk namespace (that is, it includes the Gtk "
"library). The libraries are provided by GObject Introspection (gi), which "
"provides language bindings for many GNOME libraries."
msgstr ""
-#: C/image-viewer.js.page:147(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:147
msgid ""
"<code>Gtk.init</code> initializes the Gtk library; this statement is "
"mandatory for all Gtk programs."
msgstr ""
-#: C/image-viewer.js.page:150(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:150
msgid ""
"The next line creates the main window by creating a new <code>Gtk.Window</"
"code> object. You can pass several properties to the window's constructor by "
@@ -13942,13 +17051,15 @@ msgid ""
"this case we are setting the title of the window."
msgstr ""
-#: C/image-viewer.js.page:151(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:151
msgid ""
"The next line explicitly shows the window. In Gtk, every widget is hidden by "
"default."
msgstr ""
-#: C/image-viewer.js.page:152(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:152
msgid ""
"Finally, <code>Gtk.main</code> runs the main loop — in other words, it "
"executes the program. The main loop listens for events (signals) from the "
@@ -13956,27 +17067,31 @@ msgid ""
"useful. We'll learn more about signals shortly."
msgstr ""
-#: C/image-viewer.js.page:155(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:155
msgid ""
"Save the code in <file>main.js</file> and run it. You will notice that the "
"application does not quit when you close the window. This is because we "
"haven't set up a signal handler to deal with the window's <code>destroy</"
-"code> (close) signal yet. We'll do this shortly, but for now you can just hit "
-"<keyseq><key>Ctrl</key><key>C</key></keyseq> in the terminal window to quit "
-"the program."
+"code> (close) signal yet. We'll do this shortly, but for now you can just "
+"hit <keyseq><key>Ctrl</key><key>C</key></keyseq> in the terminal window to "
+"quit the program."
msgstr ""
-#: C/image-viewer.js.page:160(section/title)
+#. (itstool) path: section/title
+#: C/image-viewer.js.page:160
msgid "Adding classes"
msgstr "Hinzufügen von Klassen"
-#: C/image-viewer.js.page:161(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:161
msgid ""
"The proper way of doing Gtk programming is by using classes. Let's rewrite "
"the simple code you just wrote using classes:"
msgstr ""
-#: C/image-viewer.js.page:162(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.js.page:162
#, no-wrap
msgid ""
"\n"
@@ -13993,31 +17108,35 @@ msgid ""
" }\n"
"}\n"
"\n"
-"Gtk.init (0, null);\n"
+"Gtk.init (null, null);\n"
"var iv = new ImageViewer ();\n"
"Gtk.main ();"
msgstr ""
-#: C/image-viewer.js.page:180(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:180
msgid ""
"Notice that the program is the same; we just moved the window creation code "
"to our own <code>ImageViewer</code> class. The class's constructor calls the "
-"<code>_init</code> method, which creates and shows the window. We then create "
-"an instance of the class before running the main loop (<code>Gtk.main</code>)."
+"<code>_init</code> method, which creates and shows the window. We then "
+"create an instance of the class before running the main loop (<code>Gtk."
+"main</code>)."
msgstr ""
-#: C/image-viewer.js.page:181(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:181
msgid ""
"This code is modular and can be split into multiple files easily. This makes "
"it cleaner and easier to read."
msgstr ""
-#: C/image-viewer.js.page:185(section/title)
-#: C/image-viewer.py.page:118(section/title)
+#. (itstool) path: section/title
+#: C/image-viewer.js.page:185 C/image-viewer.py.page:118
msgid "Signals"
msgstr "Signale"
-#: C/image-viewer.js.page:186(section/p) C/image-viewer.py.page:119(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:186 C/image-viewer.py.page:119
msgid ""
"Signals are one of the key concepts in Gtk programming. Whenever something "
"happens to an object, it emits a signal; for example, when a button is "
@@ -14026,7 +17145,8 @@ msgid ""
"(a \"signal handler\") to that signal. Here's an example:"
msgstr ""
-#: C/image-viewer.js.page:187(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.js.page:187
#, no-wrap
msgid ""
"\n"
@@ -14037,56 +17157,71 @@ msgid ""
"b.connect (\"clicked\", button_clicked);"
msgstr ""
-#: C/image-viewer.js.page:193(section/p) C/image-viewer.py.page:126(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:193 C/image-viewer.py.page:126
msgid ""
-"The last two lines create a <code>Gtk.Button</code> called <code>b</code> and "
-"connect its <code>clicked</code> signal to the <code>button_clicked</code> "
-"function, which is defined above. Every time the button is clicked, the code "
-"in the <code>button_clicked</code> function will be executed. It just prints "
-"a message here."
+"The last two lines create a <code>Gtk.Button</code> called <code>b</code> "
+"and connect its <code>clicked</code> signal to the <code>button_clicked</"
+"code> function, which is defined above. Every time the button is clicked, "
+"the code in the <code>button_clicked</code> function will be executed. It "
+"just prints a message here."
msgstr ""
-#: C/image-viewer.js.page:194(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:194
msgid "The syntax for connecting any signal to a function is:"
msgstr ""
-#: C/image-viewer.js.page:195(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.js.page:195
#, no-wrap
msgid ""
"\n"
"object.connect (<signal_name>, <function_to_be_called>);"
msgstr ""
-#: C/image-viewer.js.page:197(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:197
+#, fuzzy
+#| msgid ""
+#| "<link href=\"http://developer.gnome.org/gtk3/stable/GtkScale.html"
+#| "\">GtkScale</link>"
msgid ""
-"You can find signal definitions for any object in the <link href=\"http://"
-"library.gnome.org/devel/gtk/stable/ch01.html\">GTK class reference</link>."
+"You can find signal definitions for any object in the <link href=\"https://"
+"developer.gnome.org/gtk3/stable/gtkobjects.html\">GTK class reference</link>."
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkScale.html"
+"\">GtkScale</link>"
-#: C/image-viewer.js.page:200(note/p)
+#. (itstool) path: note/p
+#: C/image-viewer.js.page:200
msgid ""
"You can simplify the code by making use of an inline function definition:"
msgstr ""
-#: C/image-viewer.js.page:201(note/code)
+#. (itstool) path: note/code
+#: C/image-viewer.js.page:201
#, no-wrap
msgid ""
"\n"
"b.connect (\"clicked\", function () { print (\"you clicked me!\"); });"
msgstr ""
-#: C/image-viewer.js.page:208(section/title)
+#. (itstool) path: section/title
+#: C/image-viewer.js.page:208
msgid "Closing the window"
msgstr "Schließen des Fensters"
-#: C/image-viewer.js.page:209(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:209
msgid ""
"When you close a Gtk window it's not really closed, it's hidden. This allows "
-"you to keep the window around (which is useful if you want to ask the user if "
-"they really want to close the window, for example)."
+"you to keep the window around (which is useful if you want to ask the user "
+"if they really want to close the window, for example)."
msgstr ""
-#: C/image-viewer.js.page:210(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:210
msgid ""
"In our case, we really do just want to close the window. The simplest way of "
"doing this is by connecting the <code>hide</code> signal of the GtkWindow "
@@ -14095,12 +17230,14 @@ msgid ""
"method, on the line above <code>this.window.show</code>:"
msgstr ""
-#: C/image-viewer.js.page:211(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.js.page:211
#, no-wrap
msgid "this.window.connect (\"hide\", Gtk.main_quit);"
msgstr "this.window.connect (\"hide\", Gtk.main_quit);"
-#: C/image-viewer.js.page:212(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:212
msgid ""
"This connects the <code>hide</code> signal of the window to Gtk's "
"<code>main_quit</code> function, which ends the execution of the Gtk main "
@@ -14110,45 +17247,51 @@ msgid ""
"point, the program just ends."
msgstr ""
-#: C/image-viewer.js.page:216(section/title)
-#: C/image-viewer.py.page:130(section/title)
+#. (itstool) path: section/title
+#: C/image-viewer.js.page:216 C/image-viewer.py.page:130
msgid "Containers: Laying-out the user interface"
msgstr ""
-#: C/image-viewer.js.page:217(section/p) C/image-viewer.py.page:131(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:217 C/image-viewer.py.page:131
msgid ""
"Widgets (controls, such as buttons and labels) can be arranged in the window "
"by making use of <em>containers</em>. You can organize the layout by mixing "
"different types of containers, like boxes and grids."
msgstr ""
-#: C/image-viewer.js.page:218(section/p) C/image-viewer.py.page:132(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:218 C/image-viewer.py.page:132
msgid ""
-"A <code>Gtk.Window</code> is itself a type of container, but you can only put "
-"one widget directly into it. We would like to have two widgets, an image and "
-"a button, so we must put a \"higher-capacity\" container inside the window to "
-"hold the other widgets. A number of <link href=\"http://library.gnome.org/"
-"devel/gtk/stable/GtkContainer.html\">container types</link> are available, "
-"but we will use a <code>Gtk.Box</code> here. A <code>Gtk.Box</code> can hold "
-"several widgets, organized horizontally or vertically. You can do more "
-"complicated layouts by putting several boxes inside another box and so on."
+"A <code>Gtk.Window</code> is itself a type of container, but you can only "
+"put one widget directly into it. We would like to have two widgets, an image "
+"and a button, so we must put a \"higher-capacity\" container inside the "
+"window to hold the other widgets. A number of <link href=\"http://library."
+"gnome.org/devel/gtk/stable/GtkContainer.html\">container types</link> are "
+"available, but we will use a <code>Gtk.Box</code> here. A <code>Gtk.Box</"
+"code> can hold several widgets, organized horizontally or vertically. You "
+"can do more complicated layouts by putting several boxes inside another box "
+"and so on."
msgstr ""
-#: C/image-viewer.js.page:220(note/p) C/image-viewer.py.page:134(note/p)
+#. (itstool) path: note/p
+#: C/image-viewer.js.page:220 C/image-viewer.py.page:134
msgid ""
"There is a graphical user interface designer called <app>Glade</app> "
"integrated in <app>Anjuta</app> which makes UI design really easy. For this "
"simple example, however, we will code everything manually."
msgstr ""
-#: C/image-viewer.js.page:222(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:222
msgid ""
"Let's add the box and widgets to the window. Insert the following code into "
"the <code>_init</code> method, immediately above the <code>this.window.show</"
"code> line:"
msgstr ""
-#: C/image-viewer.js.page:223(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.js.page:223
#, no-wrap
msgid ""
"\n"
@@ -14156,7 +17299,8 @@ msgid ""
"this.window.add (main_box);"
msgstr ""
-#: C/image-viewer.js.page:226(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:226
msgid ""
"The first line creates a <code>Gtk.Box</code> called <code>main_box</code> "
"and sets two of its properties: the <code>orientation</code> is set to "
@@ -14165,25 +17309,28 @@ msgid ""
"created <code>Gtk.Box</code> to the window."
msgstr ""
-#: C/image-viewer.js.page:227(section/p) C/image-viewer.py.page:145(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:227 C/image-viewer.py.page:145
msgid ""
-"So far the window only contains an empty <code>Gtk.Box</code>, and if you run "
-"the program now you will see no changes at all (the <code>Gtk.Box</code> is a "
-"transparent container, so you can't see that it's there)."
+"So far the window only contains an empty <code>Gtk.Box</code>, and if you "
+"run the program now you will see no changes at all (the <code>Gtk.Box</code> "
+"is a transparent container, so you can't see that it's there)."
msgstr ""
-#: C/image-viewer.js.page:231(section/title)
-#: C/image-viewer.py.page:149(section/title)
+#. (itstool) path: section/title
+#: C/image-viewer.js.page:231 C/image-viewer.py.page:149
msgid "Packing: Adding widgets to the container"
msgstr "Packen: Hinzufügen von Widgets zum Container"
-#: C/image-viewer.js.page:232(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:232
msgid ""
"To add some widgets to the <code>Gtk.Box</code>, insert the following code "
"directly below the <code>this.window.add (main_box)</code> line:"
msgstr ""
-#: C/image-viewer.js.page:233(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.js.page:233
#, no-wrap
msgid ""
"\n"
@@ -14191,16 +17338,19 @@ msgid ""
"main_box.pack_start (this.image, true, true, 0);"
msgstr ""
-#: C/image-viewer.js.page:236(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:236
msgid ""
"The first line creates a new <code>Gtk.Image</code> called <code>image</"
-"code>, which will be used to display an image file. Then, the image widget is "
-"added (<em>packed</em>) into the <code>main_box</code> container using "
-"<code>Gtk.Box</code>'s <link href=\"http://library.gnome.org/devel/gtk/stable/"
-"GtkBox.html#gtk-box-pack-start\"><code>pack_start</code></link> method."
+"code>, which will be used to display an image file. Then, the image widget "
+"is added (<em>packed</em>) into the <code>main_box</code> container using "
+"<code>Gtk.Box</code>'s <link href=\"http://library.gnome.org/devel/gtk/"
+"stable/GtkBox.html#gtk-box-pack-start\"><code>pack_start</code></link> "
+"method."
msgstr ""
-#: C/image-viewer.js.page:237(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:237
msgid ""
"<code>pack_start</code> takes 4 arguments: the widget that is to be added to "
"the <code>Gtk.Box</code> (<code>child</code>); whether the <code>Gtk.Box</"
@@ -14211,7 +17361,8 @@ msgid ""
"<code>Gtk.Box</code> (<code>padding</code>)."
msgstr ""
-#: C/image-viewer.js.page:238(section/p) C/image-viewer.py.page:157(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:238 C/image-viewer.py.page:157
msgid ""
"Gtk containers (and widgets) dynamically expand to fill the available space, "
"if you let them. You don't position widgets by giving them a precise x,y-"
@@ -14220,20 +17371,23 @@ msgid ""
"should automatically take a sensible size in most situations."
msgstr ""
-#: C/image-viewer.js.page:239(section/p) C/image-viewer.py.page:158(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:239 C/image-viewer.py.page:158
msgid ""
"Also note how the widgets are organized in a hierarchy. Once packed in the "
"<code>Gtk.Box</code>, the <code>Gtk.Image</code> is considered a <em>child</"
-"em> of the <code>Gtk.Box</code>. This allows you to treat all of the children "
-"of a widget as a group; for example, you could hide the <code>Gtk.Box</code>, "
-"which would also hide all of its children at the same time."
+"em> of the <code>Gtk.Box</code>. This allows you to treat all of the "
+"children of a widget as a group; for example, you could hide the <code>Gtk."
+"Box</code>, which would also hide all of its children at the same time."
msgstr ""
-#: C/image-viewer.js.page:240(section/p) C/image-viewer.py.page:159(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:240 C/image-viewer.py.page:159
msgid "Now insert these two lines, below the two you just added:"
msgstr ""
-#: C/image-viewer.js.page:241(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.js.page:241
#, no-wrap
msgid ""
"\n"
@@ -14241,90 +17395,102 @@ msgid ""
"main_box.pack_start (open_button, false, false, 0);"
msgstr ""
-#: C/image-viewer.js.page:244(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:244
msgid ""
"These lines are similar to the first two, but this time they create a "
"<code>Gtk.Button</code> and add it to <code>main_box</code>. Notice that we "
-"are setting the <code>expand</code> argument (the second one) to <code>false</"
-"code> here, whereas it was set to <code>true</code> for the <code>Gtk.Image</"
-"code>. This will cause the image to take up all available space and the "
-"button to take only the space it needs. When you maximize the window, the "
-"button size will remain the same, but the image size will increase, taking up "
-"all of the rest of the window."
+"are setting the <code>expand</code> argument (the second one) to "
+"<code>false</code> here, whereas it was set to <code>true</code> for the "
+"<code>Gtk.Image</code>. This will cause the image to take up all available "
+"space and the button to take only the space it needs. When you maximize the "
+"window, the button size will remain the same, but the image size will "
+"increase, taking up all of the rest of the window."
msgstr ""
-#: C/image-viewer.js.page:245(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:245
msgid ""
"Finally, we must change the <code>this.window.show ();</code> line to read:"
msgstr ""
-#: C/image-viewer.js.page:246(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.js.page:246
#, no-wrap
msgid "this.window.show_all ();"
msgstr "this.window.show_all ();"
-#: C/image-viewer.js.page:247(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:247
msgid ""
"This will show the child of the Gtk window, and all of its children, and its "
"children's children, and so on. (Remember that Gtk widgets are all hidden by "
"default.)"
msgstr ""
-#: C/image-viewer.js.page:251(section/title)
-#: C/image-viewer.py.page:168(section/title)
+#. (itstool) path: section/title
+#: C/image-viewer.js.page:251 C/image-viewer.py.page:168
msgid ""
"Loading the image: Connecting to the button's <code>clicked</code> signal"
msgstr ""
-#: C/image-viewer.js.page:252(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:252
msgid ""
-"When the user clicks on the <gui>Open</gui> button, a dialog should appear so "
-"that the user can choose a picture. Once chosen, the picture should be loaded "
-"and shown in the image widget."
+"When the user clicks on the <gui>Open</gui> button, a dialog should appear "
+"so that the user can choose a picture. Once chosen, the picture should be "
+"loaded and shown in the image widget."
msgstr ""
-#: C/image-viewer.js.page:253(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:253
msgid ""
-"The first step is to connect the <code>clicked</code> signal of the button to "
-"a signal handler function, which we call <code>_openClicked</code>. Put this "
-"code immediately after the <code>var open_button = new Gtk.Button</code> line "
-"where the button was created:"
+"The first step is to connect the <code>clicked</code> signal of the button "
+"to a signal handler function, which we call <code>_openClicked</code>. Put "
+"this code immediately after the <code>var open_button = new Gtk.Button</"
+"code> line where the button was created:"
msgstr ""
-#: C/image-viewer.js.page:254(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.js.page:254
#, no-wrap
msgid ""
"\n"
"open_button.connect (\"clicked\", Lang.bind (this, this._openClicked));"
msgstr ""
-#: C/image-viewer.js.page:256(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:256
msgid ""
"We are using the <em>Lang</em> JavaScript helper here. It allows us to "
"connect a <em>class method</em> to the signal, rather than a plain function "
-"(without a class) which we had used before for the window's <code>hide</code> "
-"signal. Don't worry about this for now, it's just a technical detail. For it "
-"to work, you also need to put the following line at the top of the file:"
+"(without a class) which we had used before for the window's <code>hide</"
+"code> signal. Don't worry about this for now, it's just a technical detail. "
+"For it to work, you also need to put the following line at the top of the "
+"file:"
msgstr ""
-#: C/image-viewer.js.page:257(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.js.page:257
#, no-wrap
msgid "const Lang = imports.lang;"
msgstr "const Lang = imports.lang;"
-#: C/image-viewer.js.page:261(section/title)
-#: C/image-viewer.py.page:179(section/title)
+#. (itstool) path: section/title
+#: C/image-viewer.js.page:261 C/image-viewer.py.page:179
msgid "Loading the image: Writing the signal's callback"
msgstr ""
-#: C/image-viewer.js.page:262(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:262
msgid ""
"Now we can create the <code>_openClicked()</code> method. Insert the "
"following into the <code>ImageViewer.prototype</code> code block, after the "
"<code>_init</code> method (and not forgetting the comma):"
msgstr ""
-#: C/image-viewer.js.page:263(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.js.page:263
#, no-wrap
msgid ""
"\n"
@@ -14348,19 +17514,21 @@ msgid ""
" }"
msgstr ""
-#: C/image-viewer.js.page:285(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:285
msgid ""
"The line beginning with <code>var chooser</code> creates an <gui>Open</gui> "
"dialog, which the user can use to choose files. We set four properties: the "
"title of the dialog; the action (type) of the dialog (it's an \"open\" "
-"dialog, but we could have used <code>SAVE</code> if the intention was to save "
-"a file; <code>transient_for</code>, which sets the parent window of the "
+"dialog, but we could have used <code>SAVE</code> if the intention was to "
+"save a file; <code>transient_for</code>, which sets the parent window of the "
"dialog; and <code>modal</code> which, if set to <code>true</code>, prevents "
-"the user from clicking on another area of the application until the dialog is "
-"closed."
+"the user from clicking on another area of the application until the dialog "
+"is closed."
msgstr ""
-#: C/image-viewer.js.page:288(item/p) C/image-viewer.py.page:202(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:288 C/image-viewer.py.page:202
msgid ""
"The next two lines add <gui>Cancel</gui> and <gui>Open</gui> buttons to the "
"dialog. The second argument of the <code>add_button</code> method is the "
@@ -14368,7 +17536,8 @@ msgid ""
"<gui>Cancel</gui> and 1 for <gui>Open</gui>."
msgstr ""
-#: C/image-viewer.js.page:292(item/p) C/image-viewer.py.page:206(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:292 C/image-viewer.py.page:206
msgid ""
"<code>set_default_response</code> determines the button that will be "
"activated if the user double-clicks a file or presses <key>Enter</key>. In "
@@ -14376,7 +17545,8 @@ msgid ""
"value 1)."
msgstr ""
-#: C/image-viewer.js.page:295(item/p) C/image-viewer.py.page:209(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:295 C/image-viewer.py.page:209
msgid ""
"The next three lines restrict the <gui>Open</gui> dialog to only display "
"files which can be opened by <code>Gtk.Image</code>. A filter object is "
@@ -14385,89 +17555,103 @@ msgid ""
"Finally, we set this filter to be the <gui>Open</gui> dialog's filter."
msgstr ""
-#: C/image-viewer.js.page:298(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:298
msgid ""
-"<code>chooser.run</code> displays the <gui>Open</gui> dialog. The dialog will "
-"wait for the user to choose an image; when they do, <code>chooser.run</code> "
-"will return the value <output>1</output> (it would return <output>0</output> "
-"if the user clicked <gui>Cancel</gui>). The <code>if</code> statement tests "
-"for this."
+"<code>chooser.run</code> displays the <gui>Open</gui> dialog. The dialog "
+"will wait for the user to choose an image; when they do, <code>chooser.run</"
+"code> will return the value <output>1</output> (it would return <output>0</"
+"output> if the user clicked <gui>Cancel</gui>). The <code>if</code> "
+"statement tests for this."
msgstr ""
-#: C/image-viewer.js.page:300(item/p) C/image-viewer.py.page:214(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:300 C/image-viewer.py.page:214
msgid ""
"Assuming that the user did click <gui>Open</gui>, the next line sets the "
"<code>file</code> property of the <code>Gtk.Image</code> to the filename of "
-"the image selected by the user. The <code>Gtk.Image</code> will then load and "
-"display the chosen image."
+"the image selected by the user. The <code>Gtk.Image</code> will then load "
+"and display the chosen image."
msgstr ""
-#: C/image-viewer.js.page:303(item/p) C/image-viewer.py.page:217(item/p)
-#: C/image-viewer.vala.page:272(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.js.page:303 C/image-viewer.py.page:217
+#: C/image-viewer.vala.page:272
msgid ""
"In the final line of this method, we destroy the <gui>Open</gui> dialog "
"because we don't need it any more."
msgstr ""
-#: C/image-viewer.js.page:311(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:311
msgid ""
"All of the code you need should now be in place, so try running the code. "
"That should be it; a fully-functioning image viewer (and a whistlestop tour "
"of JavaScript and Gtk) in not much time at all!"
msgstr ""
-#: C/image-viewer.js.page:316(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.js.page:316
msgid ""
-"If you run into problems with the tutorial, compare your code with this <link "
-"href=\"image-viewer/image-viewer.js\">reference code</link>."
+"If you run into problems with the tutorial, compare your code with this "
+"<link href=\"image-viewer/image-viewer.js\">reference code</link>."
msgstr ""
-#: C/image-viewer.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/image-viewer.py.page:7
msgctxt "text"
msgid "Image viewer (Python)"
msgstr "Bildbetrachter (Python)"
-#: C/image-viewer.py.page:10(info/desc)
+#. (itstool) path: info/desc
+#: C/image-viewer.py.page:10
msgid ""
"A little bit more than a simple \"Hello world\" application - write an image "
"viewer in GTK."
msgstr ""
-#: C/image-viewer.py.page:33(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.py.page:33
msgid "Write a basic GTK user interface in Python"
msgstr ""
-#: C/image-viewer.py.page:41(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.py.page:41
msgid "Basic knowledge of the python programming language"
msgstr ""
-#: C/image-viewer.py.page:55(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.py.page:55
msgid ""
"Choose <gui>PyGTK (automake)</gui> from the <gui>Python</gui> tab, click "
"<gui>Continue</gui>, and fill out your details on the next few pages. Use "
"<file>image-viewer</file> as project name and directory."
msgstr ""
-#: C/image-viewer.py.page:58(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.py.page:58
msgid ""
"Be sure to disable <gui>Use GtkBuilder for user interface</gui> as we will "
"build the user interface manually in this example. For an example of using "
-"the interface designer, check the <link xref=\"guitar-tuner.py\">Guitar-Tuner "
-"demo</link>."
+"the interface designer, check the <link xref=\"guitar-tuner.py\">Guitar-"
+"Tuner demo</link>."
msgstr ""
-#: C/image-viewer.py.page:63(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.py.page:63
msgid ""
"Click <gui>Apply</gui> and the project will be created for you. Open "
"<file>src/image_viewer.py</file> from the <gui>Project</gui> or <gui>File</"
"gui> tabs. It contains very basic example code."
msgstr ""
-#: C/image-viewer.py.page:70(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.py.page:70
msgid "Let's see what a very basic Gtk application looks like in Python:"
msgstr ""
-#: C/image-viewer.py.page:71(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.py.page:71
#, no-wrap
msgid ""
"\n"
@@ -14495,31 +17679,36 @@ msgid ""
" "
msgstr ""
-#: C/image-viewer.py.page:100(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.py.page:100
msgid ""
"In the <code>__init__</code> method of the <code>GUI</code> class creates an "
-"(empty) <code>Gtk.Window</code>, sets its title and then connects a signal to "
-"quit the application once the window is closed. That's pretty simple overall, "
-"more on signals later."
+"(empty) <code>Gtk.Window</code>, sets its title and then connects a signal "
+"to quit the application once the window is closed. That's pretty simple "
+"overall, more on signals later."
msgstr ""
-#: C/image-viewer.py.page:105(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.py.page:105
msgid ""
-"Next, <code>destroy</code> is defined which just quits the application. It is "
-"called by the <code>destroy</code> signal connected above."
+"Next, <code>destroy</code> is defined which just quits the application. It "
+"is called by the <code>destroy</code> signal connected above."
msgstr ""
-#: C/image-viewer.py.page:109(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.py.page:109
msgid "The rest of the file does initialisation for Gtk and displays the GUI."
msgstr ""
-#: C/image-viewer.py.page:113(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.py.page:113
msgid ""
"This code is ready to run, so try it using <guiseq><gui>Run</"
"gui><gui>Execute</gui></guiseq>. It should show you an empty window."
msgstr ""
-#: C/image-viewer.py.page:120(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.py.page:120
#, no-wrap
msgid ""
"\n"
@@ -14530,14 +17719,16 @@ msgid ""
"b.connect_after ('clicked', button_clicked)"
msgstr ""
-#: C/image-viewer.py.page:136(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.py.page:136
msgid ""
"Let's add the box and widgets to the window. Insert the following code into "
"the <code>__init__</code> method, immediately after the <code>window."
"connect_after</code> line:"
msgstr ""
-#: C/image-viewer.py.page:137(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.py.page:137
#, no-wrap
msgid ""
"\n"
@@ -14548,22 +17739,25 @@ msgid ""
"\n"
msgstr ""
-#: C/image-viewer.py.page:144(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.py.page:144
msgid ""
-"The first line creates a <code>Gtk.Box</code> called <code>box</code> and the "
-"following lines set two of its properties: the <code>orientation</code> is "
-"set to vertical (so the widgets are arranged in a column), and the "
+"The first line creates a <code>Gtk.Box</code> called <code>box</code> and "
+"the following lines set two of its properties: the <code>orientation</code> "
+"is set to vertical (so the widgets are arranged in a column), and the "
"<code>spacing</code> between the widgets is set to 5 pixels. The next line "
"then adds the newly-created <code>Gtk.Box</code> to the window."
msgstr ""
-#: C/image-viewer.py.page:150(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.py.page:150
msgid ""
"To add some widgets to the <code>Gtk.Box</code>, insert the following code "
"directly below the <code>window.add (box)</code> line:"
msgstr ""
-#: C/image-viewer.py.page:151(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.py.page:151
#, no-wrap
msgid ""
"\n"
@@ -14571,29 +17765,33 @@ msgid ""
"box.pack_start (self.image, False, False, 0)"
msgstr ""
-#: C/image-viewer.py.page:154(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.py.page:154
msgid ""
"The first line creates a new <code>Gtk.Image</code> called <code>image</"
"code>, which will be used to display an image file. As we need that later on "
"in the signal handler, we will define it as a class-wide variable. You need "
-"to add <code>image = 0</code> to the beginning of the <code>GUI</code> class. "
-"Then, the image widget is added (<em>packed</em>) into the <code>box</code> "
-"container using GtkBox's <link href=\"http://library.gnome.org/devel/gtk/"
-"stable/GtkBox.html#gtk-box-pack-start\"><code>pack_start</code></link> method."
+"to add <code>image = 0</code> to the beginning of the <code>GUI</code> "
+"class. Then, the image widget is added (<em>packed</em>) into the <code>box</"
+"code> container using GtkBox's <link href=\"http://library.gnome.org/devel/"
+"gtk/stable/GtkBox.html#gtk-box-pack-start\"><code>pack_start</code></link> "
+"method."
msgstr ""
-#: C/image-viewer.py.page:156(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.py.page:156
msgid ""
"<code>pack_start</code> takes 4 arguments: the widget that is to be added to "
-"the GtkBox (<code>child</code>); whether the <code>Gtk.Box</code> should grow "
-"larger when the new widget is added (<code>expand</code>); whether the new "
-"widget should take up all of the extra space created if the <code>Gtk.Box</"
-"code> gets bigger (<code>fill</code>); and how much space there should be, in "
-"pixels, between the widget and its neighbors inside the <code>Gtk.Box</code> "
-"(<code>padding</code>)."
+"the GtkBox (<code>child</code>); whether the <code>Gtk.Box</code> should "
+"grow larger when the new widget is added (<code>expand</code>); whether the "
+"new widget should take up all of the extra space created if the <code>Gtk."
+"Box</code> gets bigger (<code>fill</code>); and how much space there should "
+"be, in pixels, between the widget and its neighbors inside the <code>Gtk."
+"Box</code> (<code>padding</code>)."
msgstr ""
-#: C/image-viewer.py.page:160(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.py.page:160
#, no-wrap
msgid ""
"\n"
@@ -14601,7 +17799,8 @@ msgid ""
"box.pack_start (button, False, False, 0)\n"
msgstr ""
-#: C/image-viewer.py.page:164(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.py.page:164
msgid ""
"These lines are similar to the first two, but this time they create a "
"<code>Gtk.Button</code> and add it to <code>box</code>. Notice that we are "
@@ -14609,46 +17808,52 @@ msgid ""
"code> here, whereas it was set to <code>True</code> for the <code>Gtk.Image</"
"code>. This will cause the image to take up all available space and the "
"button to take only the space it needs. When you maximize the window, the "
-"button size will remain the same, but the image size will increase, taking up "
-"all of the rest of the window."
+"button size will remain the same, but the image size will increase, taking "
+"up all of the rest of the window."
msgstr ""
-#: C/image-viewer.py.page:169(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.py.page:169
msgid ""
"When the user clicks on the <gui>Open Image...</gui> button, a dialog should "
-"appear so that the user can choose a picture. Once chosen, the picture should "
-"be loaded and shown in the image widget."
+"appear so that the user can choose a picture. Once chosen, the picture "
+"should be loaded and shown in the image widget."
msgstr ""
-#: C/image-viewer.py.page:170(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.py.page:170
msgid ""
-"The first step is to connect the <code>clicked</code> signal of the button to "
-"a signal handler function, which we call <code>on_open_clicked</code>. Put "
-"this code immediately after the <code>button = Gtk.Button()</code> line where "
-"the button was created:"
+"The first step is to connect the <code>clicked</code> signal of the button "
+"to a signal handler function, which we call <code>on_open_clicked</code>. "
+"Put this code immediately after the <code>button = Gtk.Button()</code> line "
+"where the button was created:"
msgstr ""
-#: C/image-viewer.py.page:171(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.py.page:171
#, no-wrap
msgid ""
"\n"
"button.connect_after('clicked', self.on_open_clicked)\n"
msgstr ""
-#: C/image-viewer.py.page:174(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.py.page:174
msgid ""
"This will connect the <code>clicked</code> signal to <code>on_open_clicked</"
"code> method that we will define below."
msgstr ""
-#: C/image-viewer.py.page:180(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.py.page:180
msgid ""
"Now we can create the <code>on_open_clicked</code> method. Insert the "
"following into the <code>GUI</code> class code block, after the "
"<code>__init__</code> method:"
msgstr ""
-#: C/image-viewer.py.page:181(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.py.page:181
#, no-wrap
msgid ""
"\n"
@@ -14668,17 +17873,19 @@ msgid ""
"\tdialog.destroy()"
msgstr ""
-#: C/image-viewer.py.page:199(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.py.page:199
msgid ""
"The line beginning with <code>dialog</code> creates an <gui>Open</gui> "
"dialog, which the user can use to choose files. We set three properties: the "
"title of the dialog; the action (type) of the dialog (it's an \"open\" "
-"dialog, but we could have used <code>SAVE</code> if the intention was to save "
-"a file; and <code>transient_for</code>, which sets the parent window of the "
-"dialog."
+"dialog, but we could have used <code>SAVE</code> if the intention was to "
+"save a file; and <code>transient_for</code>, which sets the parent window of "
+"the dialog."
msgstr ""
-#: C/image-viewer.py.page:212(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.py.page:212
msgid ""
"<code>dialog.run</code> displays the <gui>Open</gui> dialog. The dialog will "
"wait for the user to choose an image; when they do, <code>dialog.run</code> "
@@ -14687,89 +17894,104 @@ msgid ""
"for this."
msgstr ""
-#: C/image-viewer.py.page:225(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.py.page:225
msgid ""
"All of the code you need should now be in place, so try running the code. "
"That should be it; a fully-functioning image viewer (and a whistlestop tour "
"of Python and Gtk) in not much time at all!"
msgstr ""
-#: C/image-viewer.py.page:230(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.py.page:230
msgid ""
-"If you run into problems with the tutorial, compare your code with this <link "
-"href=\"image-viewer/image-viewer.py\">reference code</link>."
+"If you run into problems with the tutorial, compare your code with this "
+"<link href=\"image-viewer/image-viewer.py\">reference code</link>."
msgstr ""
-#: C/image-viewer.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/image-viewer.vala.page:7
msgctxt "text"
msgid "Image viewer (Vala)"
msgstr "Bildbetrachter (Vala)"
-#: C/image-viewer.vala.page:10(info/desc)
+#. (itstool) path: info/desc
+#: C/image-viewer.vala.page:10
msgid "A little bit more than a simple \"Hello world\" GTK+ application."
msgstr ""
-#: C/image-viewer.vala.page:22(credit/name)
+#. (itstool) path: credit/name
+#: C/image-viewer.vala.page:22
msgid "Philip Chimento"
msgstr "Philip Chimento"
-#: C/image-viewer.vala.page:38(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/image-viewer.vala.page:38
msgid ""
"In this tutorial you will create an application which opens and displays an "
"image file. You will learn:"
msgstr ""
-#: C/image-viewer.vala.page:40(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:40
msgid ""
"How to set up a basic project using the <link xref=\"getting-ready\">Anjuta "
"IDE</link>."
msgstr ""
-#: C/image-viewer.vala.page:41(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:41
msgid ""
"How to write a <link href=\"http://developer.gnome.org/platform-overview/"
"stable/gtk\">Gtk application</link> in Vala"
msgstr ""
-#: C/image-viewer.vala.page:42(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:42
msgid ""
-"Some basic concepts of <link href=\"http://developer.gnome.org/gobject/stable/"
-"\">GObject</link> programming"
+"Some basic concepts of <link href=\"http://developer.gnome.org/gobject/"
+"stable/\">GObject</link> programming"
msgstr ""
-#: C/image-viewer.vala.page:49(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:49
msgid ""
"You may find the <link href=\"http://valadoc.org/gtk+-3.0/\">gtk+-3.0</link> "
"API Reference useful, although it is not necessary to follow the tutorial."
msgstr ""
-#: C/image-viewer.vala.page:65(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:65
msgid ""
"From the <gui>Vala</gui> tab choose <gui>GTK+ (Simple)</gui>, click "
"<gui>Continue</gui>, and fill out your details on the next page. Use "
"<file>image-viewer</file> as project name and directory."
msgstr ""
-#: C/image-viewer.vala.page:69(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:69
msgid ""
"Make sure that <gui>Use GtkBuilder for user interface</gui> is unchecked as "
"we will create the UI manually in this tutorial."
msgstr ""
-#: C/image-viewer.vala.page:70(note/p)
+#. (itstool) path: note/p
+#: C/image-viewer.vala.page:70
msgid ""
"You will learn how to use the interface builder in the <link xref=\"guitar-"
"tuner.vala\">Guitar-Tuner</link> tutorial."
msgstr ""
-#: C/image-viewer.vala.page:74(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:74
msgid ""
"Click <gui>Continue</gui> then <gui>Apply</gui> and the project will be "
"created for you. Open <file>src/image_viewer.vala</file> from the "
"<gui>Project</gui> or <gui>File</gui> tabs. You will see this code:"
msgstr ""
-#: C/image-viewer.vala.page:77(item/code)
+#. (itstool) path: item/code
+#: C/image-viewer.vala.page:77
#, no-wrap
msgid ""
"\n"
@@ -14804,60 +18026,67 @@ msgid ""
"}"
msgstr ""
-#: C/image-viewer.vala.page:113(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.vala.page:113
msgid ""
-"The code loads an (empty) window from the user interface description file and "
-"shows it. More details are given below; skip this list if you understand the "
-"basics:"
+"The code loads an (empty) window from the user interface description file "
+"and shows it. More details are given below; skip this list if you understand "
+"the basics:"
msgstr ""
-#: C/image-viewer.vala.page:118(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:118
msgid ""
"The two <code>using</code> lines at the top import namespaces so we don't "
"have to name them explicitly."
msgstr ""
-#: C/image-viewer.vala.page:121(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:121
msgid ""
"The constructor of the <code>Main</code> class creates a new (empty) window "
"and connects a <link href=\"https://live.gnome.org/Vala/SignalsAndCallbacks"
"\">signal</link> to exit the application when that window is closed."
msgstr ""
-#: C/image-viewer.vala.page:126(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:126
msgid ""
-"The <code>static main</code> function is run by default when you start a Vala "
-"application. It calls a few functions which create the <code>Main</code> "
-"class, set up and then run the application. The <link href=\"http://valadoc."
-"org/gtk+-3.0/Gtk.main.html\"><code>Gtk.main</code></link> function starts the "
-"GTK <link href=\"http://en.wikipedia.org/wiki/Event_loop\">main loop</link>, "
-"which runs the user interface and starts listening for events (like clicks "
-"and key presses)."
+"The <code>static main</code> function is run by default when you start a "
+"Vala application. It calls a few functions which create the <code>Main</"
+"code> class, set up and then run the application. The <link href=\"http://"
+"valadoc.org/gtk+-3.0/Gtk.main.html\"><code>Gtk.main</code></link> function "
+"starts the GTK <link href=\"http://en.wikipedia.org/wiki/Event_loop\">main "
+"loop</link>, which runs the user interface and starts listening for events "
+"(like clicks and key presses)."
msgstr ""
-#: C/image-viewer.vala.page:133(section/p)
-#: C/magic-mirror.vala.page:93(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.vala.page:133 C/magic-mirror.vala.page:93
msgid ""
"Change the <gui>Configuration</gui> to <gui>Default</gui> and then press "
-"<gui>Execute</gui> to configure the build directory. You only need to do this "
-"once, for the first build."
+"<gui>Execute</gui> to configure the build directory. You only need to do "
+"this once, for the first build."
msgstr ""
-#: C/image-viewer.vala.page:139(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.vala.page:139
msgid ""
"Now we will bring life into the empty window. GTK organizes the user "
-"interface with <link href=\"http://www.valadoc.org/gtk+-2.0/Gtk.Container.html"
-"\"><code>Gtk.Container</code></link>s that can contain other widgets and even "
-"other containers. Here we will use the simplest available container, a <link "
-"href=\"http://unstable.valadoc.org/gtk+-2.0/Gtk.Box.html\"><code>Gtk.Box</"
-"code></link>."
+"interface with <link href=\"http://www.valadoc.org/gtk+-2.0/Gtk.Container."
+"html\"><code>Gtk.Container</code></link>s that can contain other widgets and "
+"even other containers. Here we will use the simplest available container, a "
+"<link href=\"http://unstable.valadoc.org/gtk+-2.0/Gtk.Box.html\"><code>Gtk."
+"Box</code></link>."
msgstr ""
-#: C/image-viewer.vala.page:143(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.vala.page:143
msgid "Add the following lines to the top of the <code>Main</code> class:"
msgstr ""
-#: C/image-viewer.vala.page:144(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.vala.page:144
#, no-wrap
msgid ""
"\n"
@@ -14865,11 +18094,13 @@ msgid ""
"private Image image;\n"
msgstr ""
-#: C/image-viewer.vala.page:149(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.vala.page:149
msgid "Now replace the current constructor with the one below:"
msgstr ""
-#: C/image-viewer.vala.page:150(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.vala.page:150
#, no-wrap
msgid ""
"\n"
@@ -14896,47 +18127,54 @@ msgid ""
"}\n"
msgstr ""
-#: C/image-viewer.vala.page:175(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:175
msgid ""
-"The first two lines are the parts of the GUI that we will need to access from "
-"more than one method. We declare them up here so that they are accessible "
-"throughout the class instead of only in the method where they are created."
+"The first two lines are the parts of the GUI that we will need to access "
+"from more than one method. We declare them up here so that they are "
+"accessible throughout the class instead of only in the method where they are "
+"created."
msgstr ""
-#: C/image-viewer.vala.page:179(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:179
msgid ""
"The first lines of the constructor create the empty window. The next lines "
"create the widgets we want to use: a button for opening up an image, the "
"image view widget itself and the box we will use as a container."
msgstr ""
-#: C/image-viewer.vala.page:183(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:183
msgid ""
"The calls to <link href=\"http://unstable.valadoc.org/gtk+-2.0/Gtk.Box."
"pack_start.html\"><code>pack_start</code></link> add the two widgets to the "
"box and define their behaviour. The image will expand into any available "
"space whereas the button will just be as big as needed. You will notice that "
-"we don't set explicit sizes on the widgets. In GTK this is usually not needed "
-"as it makes it much easier to have a layout that looks good in different "
-"window sizes. Next, the box is added to the window."
+"we don't set explicit sizes on the widgets. In GTK this is usually not "
+"needed as it makes it much easier to have a layout that looks good in "
+"different window sizes. Next, the box is added to the window."
msgstr ""
-#: C/image-viewer.vala.page:190(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:190
msgid ""
"We need to define what happens when the user clicks on the button. GTK uses "
"the concept of <em>signals</em>."
msgstr ""
-#: C/image-viewer.vala.page:191(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:191
msgid ""
"When the <link href=\"http://valadoc.org/gtk+-3.0/Gtk.Button.html\">button</"
"link> is clicked, it fires the <link href=\"http://valadoc.org/gtk+-3.0/Gtk."
"Button.clicked.html\"><code>clicked</code></link> signal, which we can "
-"connect to some action (defined in a <link href=\"https://live.gnome.org/Vala/"
-"SignalsAndCallbacks\">callback</link> method)."
+"connect to some action (defined in a <link href=\"https://live.gnome.org/"
+"Vala/SignalsAndCallbacks\">callback</link> method)."
msgstr ""
-#: C/image-viewer.vala.page:194(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:194
msgid ""
"This is done using the <code>connect</code> method of the button's "
"<code>clicked</code> signal, which in this case tells GTK to call the (yet "
@@ -14944,30 +18182,34 @@ msgid ""
"clicked. We will define the <em>callback</em> in the next section."
msgstr ""
-#: C/image-viewer.vala.page:198(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:198
msgid ""
"In the callback, we need to access the <code>window</code> and <code>image</"
"code> widgets, which is why we defined them as private members at the top of "
"our class."
msgstr ""
-#: C/image-viewer.vala.page:202(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:202
msgid ""
-"The last <code>connect</code> call makes sure that the application exits when "
-"the window is closed. The code generated by Anjuta called an "
+"The last <code>connect</code> call makes sure that the application exits "
+"when the window is closed. The code generated by Anjuta called an "
"<code>on_destroy</code> callback method which called <link href=\"http://www."
"valadoc.org/gtk+-2.0/Gtk.main_quit.html\"><code>Gtk.main_quit</code></link>, "
"but just connecting our signal to <code>main_quit</code> directly is easier. "
"You can delete the <code>on_destroy</code> method."
msgstr ""
-#: C/image-viewer.vala.page:210(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.vala.page:210
msgid ""
-"We will now define the signal handler for the <code>clicked</code> signal for "
-"the button we mentioned before. Add this code after the constructor:"
+"We will now define the signal handler for the <code>clicked</code> signal "
+"for the button we mentioned before. Add this code after the constructor:"
msgstr ""
-#: C/image-viewer.vala.page:213(section/code)
+#. (itstool) path: section/code
+#: C/image-viewer.vala.page:213
#, no-wrap
msgid ""
"\n"
@@ -14994,78 +18236,90 @@ msgid ""
"}\n"
msgstr ""
-#: C/image-viewer.vala.page:236(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.vala.page:236
msgid "This is a bit complicated, so let's break it down:"
msgstr ""
-#: C/image-viewer.vala.page:237(note/p)
+#. (itstool) path: note/p
+#: C/image-viewer.vala.page:237
msgid ""
-"A signal handler is a type of callback method that is called when a signal is "
-"emitted. Here the terms are used interchangeably."
+"A signal handler is a type of callback method that is called when a signal "
+"is emitted. Here the terms are used interchangeably."
msgstr ""
-#: C/image-viewer.vala.page:240(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:240
msgid ""
"The first argument of the callback method is always the widget that sent the "
"signal. Sometimes other arguments related to the signal come after that, but "
"<em>clicked</em> doesn't have any."
msgstr ""
-#: C/image-viewer.vala.page:242(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:242
msgid ""
"In this case the <code>button</code> sent the <code>clicked</code> signal, "
"which is connected to the <code>on_open_image</code> callback method:"
msgstr ""
-#: C/image-viewer.vala.page:243(item/code)
+#. (itstool) path: item/code
+#: C/image-viewer.vala.page:243
#, no-wrap
msgid ""
"\n"
" button.clicked.connect (on_open_image);\n"
msgstr ""
-#: C/image-viewer.vala.page:247(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:247
msgid ""
"The <code>on_open_image</code> method takes the button that emitted the "
"signal as an argument:"
msgstr ""
-#: C/image-viewer.vala.page:248(item/code)
+#. (itstool) path: item/code
+#: C/image-viewer.vala.page:248
#, no-wrap
msgid ""
"\n"
" public void on_open_image (Button self)\n"
msgstr ""
-#: C/image-viewer.vala.page:253(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:253
msgid ""
"The next interesting line is where the dialog for choosing the file is "
"created. <link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.FileChooserDialog."
-"html\"><code>FileChooserDialog</code></link>'s constructor takes the title of "
-"the dialog, the parent window of the dialog and several options like the "
+"html\"><code>FileChooserDialog</code></link>'s constructor takes the title "
+"of the dialog, the parent window of the dialog and several options like the "
"number of buttons and their corresponding values."
msgstr ""
-#: C/image-viewer.vala.page:255(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:255
msgid ""
"Notice that we are using <link href=\"http://unstable.valadoc.org/gtk+-3.0/"
"Gtk.Stock.html\"><em>stock</em></link> button names from Gtk, instead of "
-"manually typing \"Cancel\" or \"Open\". The advantage of using stock names is "
-"that the button labels will already be translated into the user's language."
+"manually typing \"Cancel\" or \"Open\". The advantage of using stock names "
+"is that the button labels will already be translated into the user's "
+"language."
msgstr ""
-#: C/image-viewer.vala.page:259(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:259
msgid ""
"The next two lines restrict the <gui>Open</gui> dialog to only display files "
-"which can be opened by <em>GtkImage</em>. GtkImage is a widget which displays "
-"an image. A filter object is created first; we then add all kinds of files "
-"supported by <link href=\"http://www.valadoc.org/gdk-pixbuf-2.0/Gdk.Pixbuf."
-"html\"><code>Gdk.Pixbuf</code></link> (which includes most image formats like "
-"PNG and JPEG) to the filter. Finally, we set this filter to be the <gui>Open</"
-"gui> dialog's filter."
+"which can be opened by <em>GtkImage</em>. GtkImage is a widget which "
+"displays an image. A filter object is created first; we then add all kinds "
+"of files supported by <link href=\"http://www.valadoc.org/gdk-pixbuf-2.0/Gdk."
+"Pixbuf.html\"><code>Gdk.Pixbuf</code></link> (which includes most image "
+"formats like PNG and JPEG) to the filter. Finally, we set this filter to be "
+"the <gui>Open</gui> dialog's filter."
msgstr ""
-#: C/image-viewer.vala.page:264(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:264
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Dialog.run.html"
"\"><code>dialog.run</code></link> displays the <gui>Open</gui> dialog. The "
@@ -15076,98 +18330,142 @@ msgid ""
"<gui>Cancel</gui>). The <code>switch</code> statement tests for this."
msgstr ""
-#: C/image-viewer.vala.page:269(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:269
msgid ""
"Assuming that the user did click <gui>Open</gui>, the next lines get the "
"filename of the image selected by the user, and tell the <code>GtkImage</"
"code> widget to load and display the selected image."
msgstr ""
-#: C/image-viewer.vala.page:273(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:273
msgid "Destroying automatically hides the dialog."
msgstr ""
-#: C/image-viewer.vala.page:282(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.vala.page:282
msgid ""
"If you haven't already done so, choose the <file>src/image-viewer</file> "
-"application in the dialog that appears. Finally, hit <gui>Run</gui> and enjoy!"
+"application in the dialog that appears. Finally, hit <gui>Run</gui> and "
+"enjoy!"
msgstr ""
-#: C/image-viewer.vala.page:288(section/p)
+#. (itstool) path: section/p
+#: C/image-viewer.vala.page:288
msgid ""
-"If you run into problems with the tutorial, compare your code with this <link "
-"href=\"image-viewer/image-viewer.vala\">reference code</link>."
+"If you run into problems with the tutorial, compare your code with this "
+"<link href=\"image-viewer/image-viewer.vala\">reference code</link>."
msgstr ""
-#: C/image-viewer.vala.page:295(item/p)
+#. (itstool) path: item/p
+#: C/image-viewer.vala.page:295
msgid ""
-"Set it up so that when the window opens it is of a specific size to start off "
-"with. For example, 200 X 200 pixels."
+"Set it up so that when the window opens it is of a specific size to start "
+"off with. For example, 200 X 200 pixels."
+msgstr ""
+
+#. (itstool) path: credit/name
+#: C/index.page:7
+msgid "GNOME Documentation Team"
+msgstr "GNOME-Dokumentationsteam"
+
+#. (itstool) path: credit/years
+#: C/index.page:9
+msgid "2010, 2011"
+msgstr "2010, 2011"
+
+#. (itstool) path: credit/name
+#: C/index.page:12 C/message-board.c.page:14
+msgid "Shaun McCance"
+msgstr "Shaun McCance"
+
+#. (itstool) path: credit/years
+#: C/index.page:14 C/message-board.c.page:16
+msgid "2010"
+msgstr "2010"
+
+#. (itstool) path: page/title
+#: C/index.page:27
+msgid "GNOME Developer Platform Demos"
+msgstr "Demos zur GNOME-Entwicklerplattform"
+
+#. (itstool) path: section/title
+#: C/index.page:30
+msgid "How to set up your development environment"
+msgstr "Einrichten Ihrer Entwicklungsumgebung"
+
+#. (itstool) path: section/title
+#: C/index.page:34
+msgid "Tutorials, code samples, platform demos and more"
msgstr ""
-#: C/js.page:7(info/title)
+#. (itstool) path: section/title
+#: C/index.page:38
+msgid "Get Involved"
+msgstr "Mithelfen"
+
+#. (itstool) path: info/title
+#: C/js.page:7
msgctxt "link"
msgid "JavaScript"
msgstr "JavaScript"
-#: C/js.page:20(credit/name)
+#. (itstool) path: credit/name
+#: C/js.page:20
msgid "Ekaterina Gerasimova"
msgstr "Ekaterina Gerasimova"
-#: C/js.page:25(page/title)
+#. (itstool) path: page/title
+#: C/js.page:25
msgid "Tutorials, code samples and platform demos in JavaScript"
msgstr ""
-#: C/js.page:30(section/title)
+#. (itstool) path: section/title
+#: C/js.page:30
msgid "Code samples and tutorials"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/label.c.page:25(media) C/label.js.page:21(media) C/label.py.page:29(media)
-#: C/label.vala.page:21(media)
+#: C/label.c.page:25 C/label.js.page:21 C/label.py.page:29
+#: C/label.vala.page:21
msgctxt "_"
msgid "external ref='media/label.png' md5='734975c18653d88379f983e4501c3fc0'"
msgstr "external ref='media/label.png' md5='734975c18653d88379f983e4501c3fc0'"
-#: C/label.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/label.c.page:7
+#, fuzzy
msgctxt "text"
msgid "Label (C)"
-msgstr ""
+msgstr "Be_zeichnung"
-#: C/label.c.page:18(info/desc) C/label.vala.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/label.c.page:18 C/label.vala.page:17
msgid "A widget which displays text"
msgstr ""
-#: C/label.c.page:21(page/title) C/label.js.page:20(page/title)
-#: C/label.py.page:28(page/title) C/label.vala.page:20(page/title)
-#: C/toolbar_builder.py.page:97(td/p) C/toolbar_builder.vala.page:80(td/p)
+#. (itstool) path: page/title
+#. (itstool) path: td/p
+#: C/label.c.page:21 C/label.js.page:20 C/label.py.page:28
+#: C/label.vala.page:20 C/toolbar_builder.py.page:97
+#: C/toolbar_builder.vala.page:80
+#, fuzzy
msgid "Label"
-msgstr ""
+msgstr "Beschriftung"
-#: C/label.c.page:26(td/p) C/label.py.page:30(page/p)
-#: C/label.vala.page:22(page/p)
+#. (itstool) path: td/p
+#. (itstool) path: page/p
+#: C/label.c.page:26 C/label.py.page:30 C/label.vala.page:22
msgid "A simple label"
msgstr ""
-#: C/label.c.page:31(page/code)
+#. (itstool) path: page/code
+#: C/label.c.page:31
#, no-wrap
msgid ""
"#include <gtk/gtk.h>\n"
@@ -15214,29 +18512,79 @@ msgid ""
" return status;\n"
"}\n"
msgstr ""
+"#include <gtk/gtk.h>\n"
+"\n"
+"\n"
+"\n"
+"static void\n"
+"activate (GtkApplication *app,\n"
+" gpointer user_data)\n"
+"{\n"
+" GtkWidget *window;\n"
+" GtkWidget *label;\n"
+"\n"
+" /*Create a window with a title and a default size*/\n"
+" window = gtk_application_window_new (app);\n"
+" gtk_window_set_application (GTK_WINDOW (window), GTK_APPLICATION (app));\n"
+" gtk_window_set_title (GTK_WINDOW (window), \"Welcome to GNOME\");\n"
+" gtk_window_set_default_size (GTK_WINDOW (window), 200,100);\n"
+" \n"
+" /*Create a label and set its alignment. Setting the line wrap to TRUE makes \n"
+" the label break lines if the text exceeds the widget's size. When set to \n"
+" FALSE the text gets cut off by the edge of the widget*/\n"
+" label = gtk_label_new (\"Hello GNOME!\");\n"
+" gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_CENTER);\n"
+" gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);\n"
+"\n"
+" gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (label));\n"
+"\n"
+" gtk_widget_show_all (GTK_WIDGET (window));\n"
+"}\n"
+"\n"
+"\n"
+"\n"
+"int\n"
+"main (int argc, char **argv)\n"
+"{\n"
+" GtkApplication *app;\n"
+" int status;\n"
+"\n"
+" app = gtk_application_new (\"org.gtk.example\",G_APPLICATION_FLAGS_NONE);\n"
+" g_signal_connect (app, \"activate\", G_CALLBACK (activate), NULL);\n"
+" status = g_application_run (G_APPLICATION (app), argc, argv);\n"
+" g_object_unref (app);\n"
+" return status;\n"
+"}\n"
-#: C/label.c.page:38(item/p)
+#. (itstool) path: item/p
+#: C/label.c.page:38
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/3.4/GtkLabel.html\">GtkLabel</"
"link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/3.4/GtkLabel.html\">GtkLabel</"
+"link>"
-#: C/label.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/label.js.page:7
#, fuzzy
#| msgid "JavaScript"
msgctxt "text"
msgid "Label (JavaScript)"
msgstr "JavaScript"
-#: C/label.js.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/label.js.page:17
msgid "A label which can contain text"
msgstr ""
-#: C/label.js.page:22(page/p)
+#. (itstool) path: page/p
+#: C/label.js.page:22
msgid "A label displaying a friendly message."
msgstr ""
-#: C/label.js.page:24(page/code)
+#. (itstool) path: page/code
+#: C/label.js.page:24
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -15301,66 +18649,36 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/label.js.page:31(item/p)
+#. (itstool) path: item/p
+#: C/label.js.page:31
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Label.html"
"\">Gtk.Label</link>"
msgstr ""
-#: C/label.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/label.py.page:7
#, fuzzy
#| msgid "Python"
msgctxt "text"
msgid "Label (Python)"
msgstr "Python"
-#: C/label.py.page:25(info/desc)
+#. (itstool) path: info/desc
+#: C/label.py.page:25
msgid "A widget that displays a small to medium amount of text"
msgstr ""
-#: C/label.py.page:37(section/code)
-#, no-wrap
-msgid ""
-"from gi.repository import Gtk\n"
-"import sys\n"
-"\n"
-"class MyWindow(Gtk.ApplicationWindow):\n"
-" # constructor for a Gtk.ApplicationWindow\n"
-" def __init__(self, app):\n"
-" Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
-" self.set_default_size(200, 100)\n"
-"\n"
-" # create a label\n"
-" label = Gtk.Label()\n"
-" # set the text of the label\n"
-" label.set_text(\"Hello GNOME!\")\n"
-" # add the label to the window\n"
-" self.add(label)\n"
-"\n"
-"class MyApplication(Gtk.Application):\n"
-" def __init__(self):\n"
-" Gtk.Application.__init__(self)\n"
-"\n"
-" def do_activate(self):\n"
-" win = MyWindow(self)\n"
-" win.show_all()\n"
-"\n"
-" def do_startup(self):\n"
-" Gtk.Application.do_startup(self)\n"
-"\n"
-"app = MyApplication()\n"
-"exit_status = app.run(sys.argv)\n"
-"sys.exit(exit_status)\n"
-msgstr ""
-
-#: C/label.py.page:39(section/p)
+#. (itstool) path: section/p
+#: C/label.py.page:39
msgid ""
"Another way to obtain what we have in the example is to create the label as "
"an instance of another class and add it to the instance of <code>MyWindow</"
"code> in the <code>do_activate(self)</code> method:"
msgstr ""
-#: C/label.py.page:40(section/code)
+#. (itstool) path: section/code
+#: C/label.py.page:40
#, no-wrap
msgid ""
"\n"
@@ -15391,23 +18709,27 @@ msgid ""
" win.show_all()"
msgstr ""
-#: C/label.py.page:70(section/title)
+#. (itstool) path: section/title
+#: C/label.py.page:70
msgid "Useful methods for a Label widget"
msgstr ""
-#: C/label.py.page:71(section/p)
+#. (itstool) path: section/p
+#: C/label.py.page:71
msgid ""
-"An explanation of how to deal with strings in GTK+ can be found in <link xref="
-"\"strings.py\"/>."
+"An explanation of how to deal with strings in GTK+ can be found in <link "
+"xref=\"strings.py\"/>."
msgstr ""
-#: C/label.py.page:73(item/p)
+#. (itstool) path: item/p
+#: C/label.py.page:73
msgid ""
"<code>set_line_wrap(True)</code> breaks lines if the text of the label "
"exceeds the size of the widget."
msgstr ""
-#: C/label.py.page:74(item/p)
+#. (itstool) path: item/p
+#: C/label.py.page:74
msgid ""
"<code>set_justify(Gtk.Justification.LEFT)</code> (or <code>Gtk.Justification."
"RIGHT, Gtk.Justification.CENTER, Gtk.Justification.FILL</code>) sets the "
@@ -15415,7 +18737,8 @@ msgid ""
"method has no effect on a single-line label."
msgstr ""
-#: C/label.py.page:75(item/p)
+#. (itstool) path: item/p
+#: C/label.py.page:75
msgid ""
"For decorated text we can use <code>set_markup(\"text\")</code>, where <code>"
"\"text\"</code> is a text in the <link href=\"http://developer.gnome.org/"
@@ -15423,7 +18746,8 @@ msgid ""
"example:"
msgstr ""
-#: C/label.py.page:76(item/code)
+#. (itstool) path: item/code
+#: C/label.py.page:76
#, no-wrap
msgid ""
"\n"
@@ -15433,12 +18757,14 @@ msgid ""
" \"title=\\\"Click to find out more\\\">internets</a>.\")"
msgstr ""
-#: C/label.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/label.vala.page:7
msgctxt "text"
msgid "Label (Vala)"
msgstr ""
-#: C/label.vala.page:24(page/code)
+#. (itstool) path: page/code
+#: C/label.vala.page:24
#, no-wrap
msgid ""
"\n"
@@ -15469,15 +18795,18 @@ msgid ""
"}\n"
msgstr ""
-#: C/license.page:8(info/desc)
+#. (itstool) path: info/desc
+#: C/license.page:8
msgid "Legal information."
msgstr "Rechtliche Hinweise."
-#: C/license.page:11(page/title)
+#. (itstool) path: page/title
+#: C/license.page:11
msgid "License"
msgstr "Lizenz"
-#: C/license.page:12(page/p)
+#. (itstool) path: page/p
+#: C/license.page:12
msgid ""
"This work is distributed under a CreativeCommons Attribution-Share Alike 3.0 "
"Unported license."
@@ -15485,51 +18814,61 @@ msgstr ""
"Dieses Werk wird unter einer »CreativeCommons Attribution-Share Alike 3.0 "
"Unported license« verbreitet."
-#: C/license.page:20(page/p)
+#. (itstool) path: page/p
+#: C/license.page:20
msgid "You are free:"
msgstr "Es ist Ihnen gestattet:"
-#: C/license.page:25(item/title)
+#. (itstool) path: item/title
+#: C/license.page:25
msgid "<em>To share</em>"
msgstr "<em>Freizugeben</em>"
-#: C/license.page:26(item/p)
+#. (itstool) path: item/p
+#: C/license.page:26
msgid "To copy, distribute and transmit the work."
msgstr ""
"Das Werk bzw. den Inhalt zu vervielfältigen, zu verbreiten und öffentlich "
"zugänglich zu machen."
-#: C/license.page:29(item/title)
+#. (itstool) path: item/title
+#: C/license.page:29
msgid "<em>To remix</em>"
msgstr "<em>Änderungen vorzunehmen</em>"
-#: C/license.page:30(item/p)
+#. (itstool) path: item/p
+#: C/license.page:30
msgid "To adapt the work."
msgstr "Abwandlungen und Bearbeitungen des Werkes bzw. Inhaltes anzufertigen."
-#: C/license.page:33(page/p)
+#. (itstool) path: page/p
+#: C/license.page:33
msgid "Under the following conditions:"
msgstr "Unter den folgenden Bedingungen:"
-#: C/license.page:38(item/title)
+#. (itstool) path: item/title
+#: C/license.page:38
msgid "<em>Attribution</em>"
msgstr "<em>Weitergabe</em>"
-#: C/license.page:39(item/p)
+#. (itstool) path: item/p
+#: C/license.page:39
msgid ""
-"You must attribute the work in the manner specified by the author or licensor "
-"(but not in any way that suggests that they endorse you or your use of the "
-"work)."
+"You must attribute the work in the manner specified by the author or "
+"licensor (but not in any way that suggests that they endorse you or your use "
+"of the work)."
msgstr ""
"Sie dürfen das Werk nur unter gleichen Bedingungen weitergeben, wie Sie vom "
-"Autor oder Lizenzgeber festgelegt wurden (aber nicht so, dass es wie Ihr Werk "
-"aussieht)."
+"Autor oder Lizenzgeber festgelegt wurden (aber nicht so, dass es wie Ihr "
+"Werk aussieht)."
-#: C/license.page:46(item/title)
+#. (itstool) path: item/title
+#: C/license.page:46
msgid "<em>Share Alike</em>"
msgstr "<em>Unter gleichen Bedingungen</em>"
-#: C/license.page:47(item/p)
+#. (itstool) path: item/p
+#: C/license.page:47
msgid ""
"If you alter, transform, or build upon this work, you may distribute the "
"resulting work only under the same, similar or a compatible license."
@@ -15540,74 +18879,67 @@ msgstr ""
"unter Verwendung von Lizenzbedingungen weitergeben, die mit denen dieses "
"Lizenzvertrages identisch, vergleichbar oder kompatibel sind."
-#: C/license.page:53(page/p)
+#. (itstool) path: page/p
+#: C/license.page:53
msgid ""
-"For the full text of the license, see the <link href=\"http://creativecommons."
-"org/licenses/by-sa/3.0/legalcode\">CreativeCommons website</link>, or read "
-"the full <link href=\"http://creativecommons.org/licenses/by-sa/3.0/"
-"\">Commons Deed</link>."
+"For the full text of the license, see the <link href=\"http://"
+"creativecommons.org/licenses/by-sa/3.0/legalcode\">CreativeCommons website</"
+"link>, or read the full <link href=\"http://creativecommons.org/licenses/by-"
+"sa/3.0/\">Commons Deed</link>."
msgstr ""
"Den vollständigen Text der Lizenz finden Sie auf der <link href=\"http://"
"creativecommons.org/licenses/by-sa/3.0/legalcode\">CreativeCommons-Webseite</"
"link>. Oder Sie können den vollständigen <link href=\"http://creativecommons."
"org/licenses/by-sa/3.0/\">Commons Deed</link> lesen."
-#: C/license.page:60(note/p)
+#. (itstool) path: note/p
+#: C/license.page:60
msgid ""
"As a special exception, the copyright holders give you permission to copy, "
-"modify, and distribute the example code contained in this documentation under "
-"the terms of your choosing, without restriction."
+"modify, and distribute the example code contained in this documentation "
+"under the terms of your choosing, without restriction."
msgstr ""
"Als besondere Ausnahme erteilen Ihnen die Urheberrechtsinhaber die "
"Genehmigung, den in diesem Dokument enthaltenen Beispielcode ohne "
"Einschränkung unter den Bedingungen Ihrer Wahl zu verbreiten."
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/linkbutton.c.page:22(media) C/linkbutton.js.page:21(media)
-#: C/linkbutton.py.page:23(media) C/linkbutton.vala.page:21(media)
+#: C/linkbutton.c.page:22 C/linkbutton.js.page:21 C/linkbutton.py.page:23
+#: C/linkbutton.vala.page:21
msgctxt "_"
msgid ""
"external ref='media/linkbutton.png' md5='3712eae8953e87c65a6aa74503b8e32b'"
msgstr ""
"external ref='media/linkbutton.png' md5='3712eae8953e87c65a6aa74503b8e32b'"
-#: C/linkbutton.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/linkbutton.c.page:7
msgctxt "text"
msgid "LinkButton (C)"
msgstr ""
-#: C/linkbutton.c.page:17(info/desc) C/linkbutton.vala.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/linkbutton.c.page:17 C/linkbutton.vala.page:17
msgid "Create buttons bound to a URL"
msgstr ""
-#: C/linkbutton.c.page:20(page/title) C/linkbutton.js.page:20(page/title)
-#: C/linkbutton.py.page:21(page/title) C/linkbutton.vala.page:20(page/title)
+#. (itstool) path: page/title
+#: C/linkbutton.c.page:20 C/linkbutton.js.page:20 C/linkbutton.py.page:21
+#: C/linkbutton.vala.page:20
msgid "LinkButton"
msgstr ""
-#: C/linkbutton.c.page:23(page/p)
+#. (itstool) path: page/p
+#: C/linkbutton.c.page:23
msgid "This button links to the GNOME live webpage."
msgstr ""
-#: C/linkbutton.c.page:25(page/code)
+#. (itstool) path: page/code
+#: C/linkbutton.c.page:25
#, no-wrap
msgid ""
"\n"
@@ -15648,28 +18980,35 @@ msgid ""
"}\n"
msgstr ""
-#: C/linkbutton.c.page:33(item/p)
+#. (itstool) path: item/p
+#: C/linkbutton.c.page:33
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkLinkButton.html"
"\">GtkLinkButton</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkLinkButton.html"
+"\">GtkLinkButton</link>"
-#: C/linkbutton.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/linkbutton.js.page:7
#, fuzzy
#| msgid "JavaScript"
msgctxt "text"
msgid "LinkButton (JavaScript)"
msgstr "JavaScript"
-#: C/linkbutton.js.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/linkbutton.js.page:17
msgid "A button that links to a web page"
msgstr ""
-#: C/linkbutton.js.page:22(page/p)
+#. (itstool) path: page/p
+#: C/linkbutton.js.page:22
msgid "A button that links to live.gnome.org."
msgstr ""
-#: C/linkbutton.js.page:24(page/code)
+#. (itstool) path: page/code
+#: C/linkbutton.js.page:24
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -15729,33 +19068,81 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/linkbutton.js.page:31(item/p)
+#. (itstool) path: item/p
+#: C/linkbutton.js.page:31
msgid ""
-"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.LinkButton.html"
-"\">Gtk.LinkButton</link>"
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.LinkButton."
+"html\">Gtk.LinkButton</link>"
msgstr ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.LinkButton."
+"html\">Gtk.LinkButton</link>"
-#: C/linkbutton.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/linkbutton.py.page:7
msgctxt "text"
msgid "LinkButton (Python)"
msgstr ""
-#: C/linkbutton.py.page:18(info/desc)
+#. (itstool) path: info/desc
+#: C/linkbutton.py.page:18
msgid "A button bound to an URL"
msgstr ""
-#: C/linkbutton.py.page:24(page/p)
+#. (itstool) path: page/p
+#: C/linkbutton.py.page:24
msgid "A button that links to a web page."
msgstr ""
-#: C/linkbutton.py.page:31(section/code)
-#, no-wrap
+#. (itstool) path: section/code
+#: C/linkbutton.py.page:31
+#, fuzzy, no-wrap
+#| msgid ""
+#| "from gi.repository import Gtk\n"
+#| "import sys\n"
+#| "\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"ScrolledWindow Example\", application=app)\n"
+#| " self.set_default_size(200, 200)\n"
+#| "\n"
+#| " # the scrolledwindow\n"
+#| " scrolled_window = Gtk.ScrolledWindow()\n"
+#| " scrolled_window.set_border_width(10)\n"
+#| " # there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
+#| " scrolled_window.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\n"
+#| "\n"
+#| " # an image - slightly larger than the window...\n"
+#| " image = Gtk.Image()\n"
+#| " image.set_from_file(\"gnome-image.png\")\n"
+#| "\n"
+#| " # add the image to the scrolledwindow\n"
+#| " scrolled_window.add_with_viewport(image)\n"
+#| "\n"
+#| " # add the scrolledwindow to the window\n"
+#| " self.add(scrolled_window)\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " win = MyWindow(self)\n"
+#| " win.show_all()\n"
+#| "\n"
+#| " def do_startup(self):\n"
+#| " Gtk.Application.do_startup(self)\n"
+#| "\n"
+#| "app = MyApplication()\n"
+#| "exit_status = app.run(sys.argv)\n"
+#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
" # a window\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"GNOME LinkButton\", application=app)\n"
" self.set_default_size(250, 50)\n"
@@ -15768,7 +19155,9 @@ msgid ""
" # add the button to the window\n"
" self.add(button)\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -15776,54 +19165,100 @@ msgid ""
" win = MyWindow(self)\n"
" win.show_all()\n"
"\n"
-" def do_startup (self):\n"
-" Gtk.Application.do_startup (self)\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
"\n"
"app = MyApplication()\n"
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
msgstr ""
+"from gi.repository import Gtk\n"
+"import sys\n"
+"\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"ScrolledWindow Example\", application=app)\n"
+" self.set_default_size(200, 200)\n"
+"\n"
+" # the scrolledwindow\n"
+" scrolled_window = Gtk.ScrolledWindow()\n"
+" scrolled_window.set_border_width(10)\n"
+" # there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
+" scrolled_window.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\n"
+"\n"
+" # an image - slightly larger than the window...\n"
+" image = Gtk.Image()\n"
+" image.set_from_file(\"gnome-image.png\")\n"
+"\n"
+" # add the image to the scrolledwindow\n"
+" scrolled_window.add_with_viewport(image)\n"
+"\n"
+" # add the scrolledwindow to the window\n"
+" self.add(scrolled_window)\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
+"\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)\n"
-#: C/linkbutton.py.page:35(section/title)
+#. (itstool) path: section/title
+#: C/linkbutton.py.page:35
msgid "Useful methods for a LinkButton widget"
msgstr ""
-#: C/linkbutton.py.page:37(item/p)
+#. (itstool) path: item/p
+#: C/linkbutton.py.page:37
msgid ""
"<code>get_visited()</code> returns the 'visited' state (<code>True</code> or "
"<code>False</code>) of the URI where the LinkButton points. The button "
"becomes visited when it is clicked."
msgstr ""
-#: C/linkbutton.py.page:38(item/p)
+#. (itstool) path: item/p
+#: C/linkbutton.py.page:38
msgid ""
"<code>set_visited(True)</code> sets the 'visited' state of the URI where the "
"LinkButton points as <code>True</code> (analogously for <code>False</code>)."
msgstr ""
-#: C/linkbutton.py.page:39(item/p)
+#. (itstool) path: item/p
+#: C/linkbutton.py.page:39
msgid ""
-"Each time the button is clicked, the signal <code>\"activate-link\"</code> is "
-"emitted. For an explanation of signals and callback functions, see <link xref="
-"\"signals-callbacks.py\"/>."
+"Each time the button is clicked, the signal <code>\"activate-link\"</code> "
+"is emitted. For an explanation of signals and callback functions, see <link "
+"xref=\"signals-callbacks.py\"/>."
msgstr ""
-#: C/linkbutton.py.page:47(item/p)
+#. (itstool) path: item/p
+#: C/linkbutton.py.page:47
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkLinkButton.html"
"\">GtkLinkButton</link>"
msgstr ""
-#: C/linkbutton.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/linkbutton.vala.page:7
msgctxt "text"
msgid "LinkButton (Vala)"
msgstr ""
-#: C/linkbutton.vala.page:22(page/p)
+#. (itstool) path: page/p
+#: C/linkbutton.vala.page:22
msgid "This button links to GNOME live."
msgstr ""
-#: C/linkbutton.vala.page:24(page/code)
+#. (itstool) path: page/code
+#: C/linkbutton.vala.page:24
#, no-wrap
msgid ""
"/* This is the application. */\n"
@@ -15849,133 +19284,160 @@ msgid ""
"}\n"
msgstr ""
-#: C/linkbutton.vala.page:29(item/p)
+#. (itstool) path: item/p
+#: C/linkbutton.vala.page:29
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.LinkButton.html\">Gtk."
"LinkButton</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.LinkButton.html\">Gtk."
+"LinkButton</link>"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/magic-mirror.vala.page:46(media)
+#: C/magic-mirror.vala.page:46
msgctxt "_"
msgid ""
"external ref='media/magic-mirror.png' md5='8171faea6ed3b6ddac0da084c29e4e22'"
-msgstr "@@image: 'media/magic-mirror.png'; md5=8171faea6ed3b6ddac0da084c29e4e22"
+msgstr ""
+"@@image: 'media/magic-mirror.png'; md5=8171faea6ed3b6ddac0da084c29e4e22"
-#: C/magic-mirror.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/magic-mirror.vala.page:7
msgctxt "text"
msgid "Magic mirror (Vala)"
msgstr ""
-#: C/magic-mirror.vala.page:10(info/desc)
+#. (itstool) path: info/desc
+#: C/magic-mirror.vala.page:10
msgid "Use your webcam as a mirror using the GStreamer framework and GTK+"
msgstr ""
-#: C/magic-mirror.vala.page:14(credit/name)
+#. (itstool) path: credit/name
+#: C/magic-mirror.vala.page:14
msgid "Daniel G. Siegel"
msgstr "Daniel G. Siegel"
-#: C/magic-mirror.vala.page:28(page/title)
+#. (itstool) path: page/title
+#: C/magic-mirror.vala.page:28
msgid "Magic mirror"
msgstr ""
-#: C/magic-mirror.vala.page:31(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/magic-mirror.vala.page:31
msgid ""
-"<em>Your mirror just fell off the wall and broke into a thousand pieces — but "
-"you need a mirror to shave your beard off or add some makeup! You only have "
-"15 minutes left before catching the bus to work. So what can you do?</em>"
+"<em>Your mirror just fell off the wall and broke into a thousand pieces — "
+"but you need a mirror to shave your beard off or add some makeup! You only "
+"have 15 minutes left before catching the bus to work. So what can you do?</"
+"em>"
msgstr ""
-#: C/magic-mirror.vala.page:32(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/magic-mirror.vala.page:32
msgid ""
"In this tutorial, we're going to make a program which lets you use your "
"webcam as a mirror. You will learn how to:"
msgstr ""
-#: C/magic-mirror.vala.page:34(item/p)
+#. (itstool) path: item/p
+#: C/magic-mirror.vala.page:34
msgid "Create a GTK+ application"
msgstr ""
-#: C/magic-mirror.vala.page:35(item/p)
+#. (itstool) path: item/p
+#: C/magic-mirror.vala.page:35
msgid "Access your webcam using GStreamer and embed the result into a window"
msgstr ""
-#: C/magic-mirror.vala.page:36(item/p)
+#. (itstool) path: item/p
+#: C/magic-mirror.vala.page:36
msgid "Grab photos off your webcam"
msgstr ""
-#: C/magic-mirror.vala.page:41(item/p)
+#. (itstool) path: item/p
+#: C/magic-mirror.vala.page:41
msgid "Installed copies of GTK, GStreamer, and a Vala compiler"
msgstr ""
-#: C/magic-mirror.vala.page:42(item/p)
+#. (itstool) path: item/p
+#: C/magic-mirror.vala.page:42
msgid "Basic knowledge of an object-oriented programming language"
msgstr ""
-#: C/magic-mirror.vala.page:56(item/p)
+#. (itstool) path: item/p
+#: C/magic-mirror.vala.page:56
msgid ""
"Choose <gui>GTK+ (simple)</gui> from the <gui>Vala</gui> tab, click "
"<gui>Forward</gui>, and fill out your details on the next few pages. Use "
"<file>guitar-tuner</file> as project name and directory."
msgstr ""
-#: C/magic-mirror.vala.page:59(item/p)
+#. (itstool) path: item/p
+#: C/magic-mirror.vala.page:59
msgid ""
-"Disable <gui>Use GtkBuilder for user interface</gui> as we will create the UI "
-"manually in this tutorial. Check the <link xref=\"guitar-tuner.vala\">Guitar-"
-"Tuner</link> tutorial using the interface builder."
+"Disable <gui>Use GtkBuilder for user interface</gui> as we will create the "
+"UI manually in this tutorial. Check the <link xref=\"guitar-tuner.vala"
+"\">Guitar-Tuner</link> tutorial using the interface builder."
msgstr ""
-#: C/magic-mirror.vala.page:64(item/p)
+#. (itstool) path: item/p
+#: C/magic-mirror.vala.page:64
msgid ""
"Make sure that <gui>Configure external packages</gui> is selected. On the "
"next page, select <em>gstreamer-0.10</em> from the list to include the "
"<app>GStreamer</app> library into your project."
msgstr ""
-#: C/magic-mirror.vala.page:68(item/p)
+#. (itstool) path: item/p
+#: C/magic-mirror.vala.page:68
msgid ""
"Click <gui>Apply</gui> and the project will be created for you. Open "
"<file>src/magic_mirror.vala</file> from the <gui>Project</gui> or <gui>File</"
"gui> tabs. You should see some code which starts with the lines:"
msgstr ""
-#: C/magic-mirror.vala.page:78(section/p)
+#. (itstool) path: section/p
+#: C/magic-mirror.vala.page:78
msgid ""
"The code loads an (empty) window and shows it. More details are given below; "
"skip this list if you understand the basics:"
msgstr ""
-#: C/magic-mirror.vala.page:84(item/p)
+#. (itstool) path: item/p
+#: C/magic-mirror.vala.page:84
msgid ""
"The constructor of the <code>Main</code> class creates a new window and sets "
"its title. Afterwards the window is shown and a signal is connected which "
"quits the application if the window is closed. More on signals later on."
msgstr ""
-#: C/magic-mirror.vala.page:88(item/p)
+#. (itstool) path: item/p
+#: C/magic-mirror.vala.page:88
msgid ""
-"The static <code>main</code> function is run by default when you start a Vala "
-"application. It calls a few functions which create the Main class, set up and "
-"then run the application. The <code>Gtk.Main</code> function starts the GTK "
-"main loop, which runs the user interface and starts listening for events "
-"(like clicks and key presses)."
+"The static <code>main</code> function is run by default when you start a "
+"Vala application. It calls a few functions which create the Main class, set "
+"up and then run the application. The <code>Gtk.Main</code> function starts "
+"the GTK main loop, which runs the user interface and starts listening for "
+"events (like clicks and key presses)."
msgstr ""
-#: C/magic-mirror.vala.page:97(section/title)
+#. (itstool) path: section/title
+#: C/magic-mirror.vala.page:97
msgid "Access the webcam video stream with GStreamer"
msgstr ""
-#: C/magic-mirror.vala.page:98(section/p)
+#. (itstool) path: section/p
+#: C/magic-mirror.vala.page:98
msgid ""
"The GStreamer multimedia framework is able to handle video from webcams. "
"Let's add GStreamer to our application and so we can access the video stream."
msgstr ""
-#: C/magic-mirror.vala.page:100(section/code)
+#. (itstool) path: section/code
+#: C/magic-mirror.vala.page:100
#, no-wrap
msgid ""
"\n"
@@ -16003,55 +19465,66 @@ msgid ""
"}\n"
msgstr ""
-#: C/magic-mirror.vala.page:125(item/p)
+#. (itstool) path: item/p
+#: C/magic-mirror.vala.page:125
msgid ""
-"First we remove the window we created before because GStreamer will take care "
-"of showing the picture on screen."
+"First we remove the window we created before because GStreamer will take "
+"care of showing the picture on screen."
msgstr ""
-#: C/magic-mirror.vala.page:129(item/p)
+#. (itstool) path: item/p
+#: C/magic-mirror.vala.page:129
msgid ""
"Now we are creating a GStreamer element which accesses our webcam. We are "
"using the Camerabin element, which is an all-in-one camera element and is "
-"capable of taking photos, videos, applying effects and much more. Perfect for "
-"our use case! With <code>this.camerabin.set_state (Gst.State.PLAYING)</code> "
-"we tell the GStreamer pipeline we just created to start playing. Easy, no?"
+"capable of taking photos, videos, applying effects and much more. Perfect "
+"for our use case! With <code>this.camerabin.set_state (Gst.State.PLAYING)</"
+"code> we tell the GStreamer pipeline we just created to start playing. Easy, "
+"no?"
msgstr ""
-#: C/magic-mirror.vala.page:136(item/p)
+#. (itstool) path: item/p
+#: C/magic-mirror.vala.page:136
msgid ""
"Of course it is also possible to integrate the video more tighly into other "
"windows but that is an advanced topic that includes some details of the X "
"Window System we will omit here."
msgstr ""
-#: C/magic-mirror.vala.page:140(item/p)
+#. (itstool) path: item/p
+#: C/magic-mirror.vala.page:140
msgid ""
"Compile and run it again. You will end up with two windows. In the next step "
"we will integrate the video into the GTK+ window."
msgstr ""
-#: C/magic-mirror.vala.page:150(section/p)
+#. (itstool) path: section/p
+#: C/magic-mirror.vala.page:150
msgid ""
-"If you run into problems with the tutorial, compare your code with this <link "
-"href=\"magic-mirror/magic-mirror.vala\">reference code</link>. There is also "
-"a more <link href=\"magic-mirror/magic-mirror-advanced.vala\">extensive "
-"implementation</link> that embeds the window into a regular Gtk.Window which "
-"involves some advanced techniques, and adds buttons to start/stop the picture."
+"If you run into problems with the tutorial, compare your code with this "
+"<link href=\"magic-mirror/magic-mirror.vala\">reference code</link>. There "
+"is also a more <link href=\"magic-mirror/magic-mirror-advanced.vala"
+"\">extensive implementation</link> that embeds the window into a regular Gtk."
+"Window which involves some advanced techniques, and adds buttons to start/"
+"stop the picture."
msgstr ""
-#: C/magic-mirror.vala.page:157(section/p)
+#. (itstool) path: section/p
+#: C/magic-mirror.vala.page:157
msgid ""
"To find out more about the Vala programming language you might want to check "
"out the <link href=\"http://live.gnome.org/Vala/Tutorial\">Vala Tutorial</"
"link>."
msgstr ""
-#: C/magic-mirror.vala.page:162(section/title)
+#. (itstool) path: section/title
+#: C/magic-mirror.vala.page:162
+#, fuzzy
msgid "Conclusion"
-msgstr ""
+msgstr "Schlussfolgerung"
-#: C/magic-mirror.vala.page:163(section/p)
+#. (itstool) path: section/p
+#: C/magic-mirror.vala.page:163
msgid ""
"That's it, you have managed to create a full-featured webcam photo "
"application in 15 minutes. Now you can shave your beard off or add some "
@@ -16060,53 +19533,48 @@ msgid ""
"application you just made in 15 minutes."
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/menubar.c.page:24(media) C/menubar.py.page:28(media)
-#: C/menubar.vala.page:23(media)
+#: C/menubar.c.page:24 C/menubar.py.page:28 C/menubar.vala.page:23
msgctxt "_"
msgid "external ref='media/menubar.png' md5='7b642aaa1628d5e43ab85ac230ac1c78'"
-msgstr "external ref='media/menubar.png' md5='7b642aaa1628d5e43ab85ac230ac1c78'"
+msgstr ""
+"external ref='media/menubar.png' md5='7b642aaa1628d5e43ab85ac230ac1c78'"
-#: C/menubar.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/menubar.c.page:7
msgctxt "text"
msgid "MenuBar (C)"
-msgstr ""
+msgstr "Menüleiste (C)"
-#: C/menubar.c.page:19(info/desc) C/menubar.py.page:24(info/desc)
-#: C/menubar.vala.page:19(info/desc)
+#. (itstool) path: info/desc
+#: C/menubar.c.page:19 C/menubar.py.page:24 C/menubar.vala.page:19
msgid "A widget which holds GtkMenuItem widgets"
msgstr ""
-#: C/menubar.c.page:22(page/title) C/menubar.vala.page:22(page/title)
+#. (itstool) path: page/title
+#: C/menubar.c.page:22 C/menubar.vala.page:22
msgid "MenuBar"
-msgstr ""
+msgstr "Menüleiste"
-#: C/menubar.c.page:25(page/p) C/menubar.py.page:29(page/p)
-#: C/menubar.vala.page:24(page/p)
+#. (itstool) path: page/p
+#: C/menubar.c.page:25 C/menubar.py.page:29 C/menubar.vala.page:24
msgid "A MenuBar created using XML and GtkBuilder."
msgstr ""
-#: C/menubar.c.page:26(note/p)
+#. (itstool) path: note/p
+#: C/menubar.c.page:26
msgid ""
"For a more in-depth look at this sample, please do not hesitate to check out "
"the <link xref=\"menubar.vala\">Vala MenuBar</link> and/or <link xref="
"\"menubar.py\">Python MenuBar</link> tutorials."
msgstr ""
-#: C/menubar.c.page:30(page/code)
+#. (itstool) path: page/code
+#: C/menubar.c.page:30
#, no-wrap
msgid ""
"\n"
@@ -16347,7 +19815,7 @@ msgid ""
"\n"
" GtkBuilder *builder;\n"
"\n"
-" GError **error;\n"
+" GError *error = NULL;\n"
"\n"
" /* Begin creating the \"new\" action.\n"
" * Note that it is an action without a state.\n"
@@ -16388,12 +19856,13 @@ msgid ""
" builder = gtk_builder_new ();\n"
" /* Get the file (if it is there):\n"
" * Note: you must make sure that the file is in the current directory for\n"
-" * this to work. The function used here returns a value within our variable\n"
-" * \"error\", and it is equal to zero if an error is indeed found.\n"
+" * this to work. The function used here returns a non-null value within\n"
+" * our variable \"error\" if an error is indeed found.\n"
" */\n"
-" gtk_builder_add_from_file (builder, \"menubar.ui\", error);\n"
-" if (error == 0) {\n"
-" g_print (\"File not found.\\n\");\n"
+" gtk_builder_add_from_file (builder, \"menubar.ui\", &error);\n"
+" if (error != NULL) {\n"
+" g_print (\"%s\\n\", error->message);\n"
+" g_error_free (error);\n"
" }\n"
"\n"
" /* Extract the menubar */\n"
@@ -16424,34 +19893,33 @@ msgid ""
"}\n"
msgstr ""
-#: C/menubar.c.page:36(item/p) C/scrolledwindow.c.page:33(item/p)
+#. (itstool) path: item/p
+#: C/menubar.c.page:36 C/scrolledwindow.c.page:33
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkApplication.html"
"\">GtkApplication</link>"
msgstr ""
-#: C/menubar.c.page:39(item/p)
+#. (itstool) path: item/p
+#: C/menubar.c.page:39
msgid ""
"<link href=\"http://developer.gnome.org/gtk/stable/GtkAboutDialog.html"
"\">GtkAboutDialog</link>"
msgstr ""
-#: C/menubar.c.page:40(item/p)
+#. (itstool) path: item/p
+#: C/menubar.c.page:40
msgid ""
"<link href=\"http://developer.gnome.org/glib/stable/glib-GVariantType.html"
"\">GtkVariantType</link>"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/menubar.py.page:131(media) C/menubar.vala.page:133(media)
+#: C/menubar.py.page:131 C/menubar.vala.page:133
msgctxt "_"
msgid ""
"external ref='media/menubar_choices.png' "
@@ -16460,32 +19928,39 @@ msgstr ""
"external ref='media/menubar_choices.png' "
"md5='47cdfa12caf85ba20dd3e835bd7f893f'"
-#: C/menubar.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/menubar.py.page:7
msgctxt "text"
msgid "MenuBar (Python)"
msgstr ""
-#: C/menubar.py.page:27(page/title)
+#. (itstool) path: page/title
+#: C/menubar.py.page:27
msgid "MenuBar created using XML and GtkBuilder"
msgstr ""
-#: C/menubar.py.page:33(section/title) C/menubar.vala.page:28(section/title)
+#. (itstool) path: section/title
+#: C/menubar.py.page:33 C/menubar.vala.page:28
msgid "Create a MenuBar using XML"
msgstr ""
-#: C/menubar.py.page:34(section/p) C/menubar.vala.page:29(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:34 C/menubar.vala.page:29
msgid "To create the menubar using XML:"
msgstr ""
-#: C/menubar.py.page:36(item/p) C/menubar.vala.page:31(item/p)
+#. (itstool) path: item/p
+#: C/menubar.py.page:36 C/menubar.vala.page:31
msgid "Create <file>menubar.ui</file> using your favorite text editor."
msgstr ""
-#: C/menubar.py.page:37(item/p) C/menubar.vala.page:32(item/p)
+#. (itstool) path: item/p
+#: C/menubar.py.page:37 C/menubar.vala.page:32
msgid "Enter the following line at the top of the file:"
msgstr ""
-#: C/menubar.py.page:38(item/code) C/menubar.vala.page:33(item/code)
+#. (itstool) path: item/code
+#: C/menubar.py.page:38 C/menubar.vala.page:33
#, no-wrap
msgid ""
"\n"
@@ -16494,7 +19969,8 @@ msgstr ""
"\n"
"<?xml version=\"1.0\"? encoding=\"UTF-8\"?>"
-#: C/menubar.py.page:41(item/p) C/menubar.vala.page:36(item/p)
+#. (itstool) path: item/p
+#: C/menubar.py.page:41 C/menubar.vala.page:36
msgid ""
"We want to create the interface which will contain our menubar and its "
"submenus. Our menubar will contain <gui>File</gui>, <gui>Edit</gui>, "
@@ -16502,7 +19978,8 @@ msgid ""
"code to the file:"
msgstr ""
-#: C/menubar.py.page:42(item/code) C/menubar.vala.page:37(item/code)
+#. (itstool) path: item/code
+#: C/menubar.py.page:42 C/menubar.vala.page:37
#, no-wrap
msgid ""
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
@@ -16541,28 +20018,35 @@ msgstr ""
" </menu>\n"
"</interface>\n"
-#: C/menubar.py.page:44(item/p)
+#. (itstool) path: item/p
+#: C/menubar.py.page:44
msgid ""
"Now we will create the .py file and use GtkBuilder to import the "
"<file>menubar.ui</file> we just created."
msgstr ""
-#: C/menubar.py.page:48(section/title) C/menubar.vala.page:42(section/title)
+#. (itstool) path: section/title
+#: C/menubar.py.page:48 C/menubar.vala.page:42
msgid "Add the MenuBar to the window using GtkBuilder"
msgstr ""
-#: C/menubar.py.page:49(section/code)
+#. (itstool) path: section/code
+#: C/menubar.py.page:49
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"MenuBar Example\", application=app)\n"
" self.set_default_size(200, 200)\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -16591,17 +20075,20 @@ msgid ""
"sys.exit(exit_status)\n"
msgstr ""
-#: C/menubar.py.page:50(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:50
msgid ""
-"Now run the python application. It should look like the picture at the top of "
-"this page."
+"Now run the python application. It should look like the picture at the top "
+"of this page."
msgstr ""
-#: C/menubar.py.page:54(section/title) C/menubar.vala.page:50(section/title)
+#. (itstool) path: section/title
+#: C/menubar.py.page:54 C/menubar.vala.page:50
msgid "Add items to the menus"
msgstr ""
-#: C/menubar.py.page:55(section/p) C/menubar.vala.page:51(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:55 C/menubar.vala.page:51
msgid ""
"We start off by adding 2 menuitems to the <gui>File</gui> menu: <gui>New</"
"gui> and <gui>Quit</gui>. We do this by adding a <code>section</code> to the "
@@ -16610,11 +20097,14 @@ msgid ""
"section):"
msgstr ""
-#: C/menubar.py.page:58(listing/title)
+#. (itstool) path: listing/title
+#: C/menubar.py.page:58
msgid "menubar.ui"
msgstr "menubar.ui"
-#: C/menubar.py.page:59(listing/code) C/menubar.vala.page:52(section/code)
+#. (itstool) path: listing/code
+#. (itstool) path: section/code
+#: C/menubar.py.page:59 C/menubar.vala.page:52
#, no-wrap
msgid ""
"\n"
@@ -16645,24 +20135,28 @@ msgid ""
"</interface>"
msgstr ""
-#: C/menubar.py.page:87(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:87
msgid ""
"Following this pattern, you can now add a <code>Copy</code> and a "
-"<code>Paste</code> item to the <code>Edit</code> submenu, and an <code>About</"
-"code> item to the <code>Help</code> submenu."
+"<code>Paste</code> item to the <code>Edit</code> submenu, and an "
+"<code>About</code> item to the <code>Help</code> submenu."
msgstr ""
-#: C/menubar.py.page:92(section/title) C/menubar.vala.page:86(section/title)
+#. (itstool) path: section/title
+#: C/menubar.py.page:92 C/menubar.vala.page:86
msgid "Setup actions"
msgstr "Aktionen einrichten"
-#: C/menubar.py.page:94(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:94
msgid ""
"We now create the actions for \"New\" and \"Quit\" connected to a callback "
"function in the Python file; for instance we create \"new\" as:"
msgstr ""
-#: C/menubar.py.page:95(section/code)
+#. (itstool) path: section/code
+#: C/menubar.py.page:95
#, no-wrap
msgid ""
"\n"
@@ -16670,11 +20164,13 @@ msgid ""
"new_action.connect(\"activate\", self.new_callback)"
msgstr ""
-#: C/menubar.py.page:99(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:99
msgid "And we create the callback function of \"new\" as"
msgstr ""
-#: C/menubar.py.page:100(section/code)
+#. (itstool) path: section/code
+#: C/menubar.py.page:100
#, no-wrap
msgid ""
"\n"
@@ -16682,13 +20178,15 @@ msgid ""
" print \"You clicked \\\"New\\\"\""
msgstr ""
-#: C/menubar.py.page:104(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:104
msgid ""
"Now, in the XML file, we connect the menu items to the actions in the XML "
"file by adding the \"action\" attribute:"
msgstr ""
-#: C/menubar.py.page:105(section/code)
+#. (itstool) path: section/code
+#: C/menubar.py.page:105
#, no-wrap
msgid ""
"\n"
@@ -16698,87 +20196,101 @@ msgid ""
"</item>"
msgstr ""
-#: C/menubar.py.page:111(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:111
msgid ""
"Note that for an action that is relative to the application, we use the "
"prefix <code>app.</code>; for actions that are relative to the window we use "
"the prefix <code>win.</code>."
msgstr ""
-#: C/menubar.py.page:113(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:113
msgid ""
"Finally, in the Python file, we add the action to the application or to the "
"window - so for instance <code>app.new</code> will be added to the "
"application in the method <code>do_startup(self)</code> as"
msgstr ""
-#: C/menubar.py.page:114(section/code)
+#. (itstool) path: section/code
+#: C/menubar.py.page:114
#, no-wrap
msgid ""
"\n"
"self.add_action(new_action)"
msgstr ""
-#: C/menubar.py.page:117(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:117
msgid ""
"See <link xref=\"signals-callbacks.py\"/> for a more detailed explanation of "
"signals and callbacks."
msgstr ""
-#: C/menubar.py.page:121(section/title) C/menubar.vala.page:138(section/title)
+#. (itstool) path: section/title
+#: C/menubar.py.page:121 C/menubar.vala.page:138
msgid "Actions: Application or Window?"
msgstr "Aktionen: Anwendung oder Fenster?"
-#: C/menubar.py.page:122(section/p) C/menubar.vala.page:139(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:122 C/menubar.vala.page:139
msgid ""
"Above, we created the \"new\" and \"open\" actions as part of the "
"MyApplication class. Actions which control the application itself, such as "
"\"quit\" should be created similarly."
msgstr ""
-#: C/menubar.py.page:124(section/p) C/menubar.vala.page:142(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:124 C/menubar.vala.page:142
msgid ""
"Some actions, such as \"copy\" and \"paste\" deal with the window, not the "
"application. Window actions should be created as part of the window class."
msgstr ""
-#: C/menubar.py.page:126(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:126
msgid ""
"The complete example files contain both application actions and window "
"actions. The window actions are the ones usually included in the <link xref="
-"\"gmenu.py\">application menu</link> also. It is not good practice to include "
-"window actions in the applcation menu. For demonstration purposes, the "
-"complete example files which follow include XML in the UI file which creates "
-"the application menu which includes a \"New\" and \"Open\" item, and these "
-"are hooked up to the same actions as the menubar items of the same name."
+"\"gmenu.py\">application menu</link> also. It is not good practice to "
+"include window actions in the applcation menu. For demonstration purposes, "
+"the complete example files which follow include XML in the UI file which "
+"creates the application menu which includes a \"New\" and \"Open\" item, and "
+"these are hooked up to the same actions as the menubar items of the same "
+"name."
msgstr ""
-#: C/menubar.py.page:130(section/title) C/menubar.vala.page:132(section/title)
+#. (itstool) path: section/title
+#: C/menubar.py.page:130 C/menubar.vala.page:132
msgid "Choices submenu and items with state"
msgstr ""
-#: C/menubar.py.page:132(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:132
msgid ""
"Lines 30 to 80 inclusive of the <link xref=\"menubar.py#xml-code\"/> "
"demonstrate the XML code used to create the UI for <gui>Choices</gui> menu."
msgstr ""
-#: C/menubar.py.page:134(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:134
msgid ""
-"The actions created so far are <em>stateless</em>, that is they do not retain "
-"or depend on a state given by the action itself. The actions we need to "
-"create for the Choices submenu, on the other hand, are <em>stateful</em>. An "
-"example of creation of a stateful action is:"
+"The actions created so far are <em>stateless</em>, that is they do not "
+"retain or depend on a state given by the action itself. The actions we need "
+"to create for the Choices submenu, on the other hand, are <em>stateful</em>. "
+"An example of creation of a stateful action is:"
msgstr ""
-#: C/menubar.py.page:135(section/code)
+#. (itstool) path: section/code
+#: C/menubar.py.page:135
#, no-wrap
msgid ""
"\n"
"shape_action = Gio.SimpleAction.new_stateful(\"shape\", GLib.VariantType.new('s'),
GLib.Variant.new_string('line'))"
msgstr ""
-#: C/menubar.py.page:138(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:138
msgid ""
"where the variables of the method are: name, parameter type (in this case, a "
"string - see <link href=\"http://developer.gnome.org/glib/unstable/glib-"
@@ -16789,14 +20301,16 @@ msgid ""
"\">here</link> for a complete list)"
msgstr ""
-#: C/menubar.py.page:140(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:140
msgid ""
"After creating the stateful SimpleAction we connect it to the callback "
-"function and we add it to the window (or the application, if it is the case), "
-"as before:"
+"function and we add it to the window (or the application, if it is the "
+"case), as before:"
msgstr ""
-#: C/menubar.py.page:142(section/code)
+#. (itstool) path: section/code
+#: C/menubar.py.page:142
#, no-wrap
msgid ""
"\n"
@@ -16804,11 +20318,13 @@ msgid ""
"self.add_action(shape_action)"
msgstr ""
-#: C/menubar.py.page:149(section/title) C/menubar.vala.page:153(section/title)
+#. (itstool) path: section/title
+#: C/menubar.py.page:149 C/menubar.vala.page:153
msgid "Complete XML UI file for this example"
msgstr ""
-#: C/menubar.py.page:150(section/code) C/menubar.vala.page:154(section/code)
+#. (itstool) path: section/code
+#: C/menubar.py.page:150 C/menubar.vala.page:154
#, no-wrap
msgid ""
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
@@ -16916,11 +20432,13 @@ msgid ""
"</interface>\n"
msgstr ""
-#: C/menubar.py.page:154(section/title)
+#. (itstool) path: section/title
+#: C/menubar.py.page:154
msgid "Complete Python file for this example"
msgstr ""
-#: C/menubar.py.page:155(section/code)
+#. (itstool) path: section/code
+#: C/menubar.py.page:155
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -16928,7 +20446,9 @@ msgid ""
"from gi.repository import Gio\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"MenuBar Example\", application=app)\n"
" self.set_default_size(200, 200)\n"
@@ -16948,7 +20468,8 @@ msgid ""
" self.add_action(paste_action)\n"
"\n"
" # action with a state created (name, parameter type, initial state)\n"
-" shape_action = Gio.SimpleAction.new_stateful(\"shape\", GLib.VariantType.new('s'),
GLib.Variant.new_string('line'))\n"
+" shape_action = Gio.SimpleAction.new_stateful(\n"
+" \"shape\", GLib.VariantType.new('s'), GLib.Variant.new_string('line'))\n"
" # connected to the callback function\n"
" shape_action.connect(\"activate\", self.shape_callback)\n"
" # added to the window\n"
@@ -16971,9 +20492,9 @@ msgid ""
"\n"
" # callback function for shape_action\n"
" def shape_callback(self, action, parameter):\n"
-"\t\tprint \"Shape is set to\", parameter.get_string()\n"
-"\t\t# Note that we set the state of the action!\n"
-"\t\taction.set_state(parameter)\n"
+" print \"Shape is set to\", parameter.get_string()\n"
+" # Note that we set the state of the action!\n"
+" action.set_state(parameter)\n"
"\n"
" # callback function for about (see the AboutDialog example)\n"
" def about_callback(self, action, parameter):\n"
@@ -16986,7 +20507,8 @@ msgid ""
"\n"
" # we fill in the aboutdialog\n"
" aboutdialog.set_program_name(\"MenuBar Example\")\n"
-" aboutdialog.set_copyright(\"Copyright \\xc2\\xa9 2012 GNOME Documentation Team\")\n"
+" aboutdialog.set_copyright(\n"
+" \"Copyright \\xc2\\xa9 2012 GNOME Documentation Team\")\n"
" aboutdialog.set_authors(authors)\n"
" aboutdialog.set_documenters(documenters)\n"
" aboutdialog.set_website(\"http://developer.gnome.org\")\n"
@@ -17002,7 +20524,9 @@ msgid ""
" def on_close(self, action, parameter):\n"
" action.destroy()\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -17029,14 +20553,16 @@ msgid ""
" self.add_action(quit_action)\n"
"\n"
" # action with a state created\n"
-" state_action = Gio.SimpleAction.new_stateful(\"state\", GLib.VariantType.new('s'),
GLib.Variant.new_string('off'))\n"
+" state_action = Gio.SimpleAction.new_stateful(\n"
+" \"state\", GLib.VariantType.new('s'), GLib.Variant.new_string('off'))\n"
" # action connected to the callback function\n"
" state_action.connect(\"activate\", self.state_callback)\n"
" # action added to the application\n"
" self.add_action(state_action)\n"
"\n"
" # action with a state created\n"
-" awesome_action = Gio.SimpleAction.new_stateful(\"awesome\", None,
GLib.Variant.new_boolean(False))\n"
+" awesome_action = Gio.SimpleAction.new_stateful(\n"
+" \"awesome\", None, GLib.Variant.new_boolean(False))\n"
" # action connected to the callback function\n"
" awesome_action.connect(\"activate\", self.awesome_callback)\n"
" # action added to the application\n"
@@ -17084,11 +20610,13 @@ msgid ""
"sys.exit(exit_status)\n"
msgstr ""
-#: C/menubar.py.page:158(section/title)
+#. (itstool) path: section/title
+#: C/menubar.py.page:158
msgid "Mnemonics and Accelerators"
-msgstr ""
+msgstr "Tastenkürzel und Tastenkombinationen"
-#: C/menubar.py.page:159(section/p) C/menubar.vala.page:161(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:159 C/menubar.vala.page:161
msgid ""
"Labels may contain mnemonics. Mnemonics are underlined characters in the "
"label, used for keyboard navigation. Mnemonics are created by placing an "
@@ -17096,14 +20624,16 @@ msgid ""
"just \"File\" in the menubar.ui label attribute."
msgstr ""
-#: C/menubar.py.page:160(section/p) C/menubar.vala.page:162(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:160 C/menubar.vala.page:162
msgid ""
"The mnemonics are visible when you press the <key>Alt</key> key. Pressing "
"<keyseq><key>Alt</key><key>F</key></keyseq> will open the <gui>File</gui> "
"menu."
msgstr ""
-#: C/menubar.py.page:162(section/p) C/menubar.vala.page:167(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:162 C/menubar.vala.page:167
msgid ""
"Accelerators can be explicitly added in the UI definitions. For example, it "
"is common to be able to quit an application by pressing <keyseq><key>Ctrl</"
@@ -17112,7 +20642,8 @@ msgid ""
"simply need add an \"accel\" attribute to the item."
msgstr ""
-#: C/menubar.py.page:163(section/p) C/menubar.vala.page:168(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:163 C/menubar.vala.page:168
msgid ""
"<code mime=\"application/xml\"><attribute name=\"accel\">&lt;"
"Primary&gt;q</attribute></code> will create the <keyseq><key>Ctrl</"
@@ -17121,7 +20652,8 @@ msgid ""
"<key>⌘</key> key on a Mac."
msgstr ""
-#: C/menubar.py.page:165(section/code) C/menubar.vala.page:170(section/code)
+#. (itstool) path: section/code
+#: C/menubar.py.page:165 C/menubar.vala.page:170
#, no-wrap
msgid ""
"\n"
@@ -17132,11 +20664,13 @@ msgid ""
"</item>"
msgstr ""
-#: C/menubar.py.page:173(section/title) C/menubar.vala.page:178(section/title)
+#. (itstool) path: section/title
+#: C/menubar.py.page:173 C/menubar.vala.page:178
msgid "Translatable strings"
msgstr "Übersetzbare Strings"
-#: C/menubar.py.page:174(section/p) C/menubar.vala.page:179(section/p)
+#. (itstool) path: section/p
+#: C/menubar.py.page:174 C/menubar.vala.page:179
msgid ""
"Since GNOME applications are being translated into <link href=\"http://l10n."
"gnome.org/languages/\">many languages</link>, it is important that the "
@@ -17144,35 +20678,45 @@ msgid ""
"simple set <code>translatable=\"yes\"</code>:"
msgstr ""
-#: C/menubar.py.page:178(section/code)
+#. (itstool) path: section/code
+#: C/menubar.py.page:178
#, no-wrap
msgid "<attribute name=\"label\" translatable=\"yes\">Quit</attribute>"
msgstr ""
-#: C/menubar.py.page:185(item/p)
+#. (itstool) path: item/p
+#: C/menubar.py.page:185
msgid ""
"<link href=\"http://developer.gnome.org/gio/unstable/GSimpleAction.html"
"\">GSimpleAction</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gio/unstable/GSimpleAction.html"
+"\">GSimpleAction</link>"
-#: C/menubar.py.page:186(item/p) C/toolbar_builder.py.page:196(item/p)
+#. (itstool) path: item/p
+#: C/menubar.py.page:186 C/toolbar_builder.py.page:196
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkBuilder.html"
"\">GtkBuilder</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkBuilder.html"
+"\">GtkBuilder</link>"
-#: C/menubar.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/menubar.vala.page:7
msgctxt "text"
msgid "MenuBar (Vala)"
msgstr ""
-#: C/menubar.vala.page:39(item/p)
+#. (itstool) path: item/p
+#: C/menubar.vala.page:39
msgid ""
"Now we will create the .vala file and use GtkBuilder to import the "
"<file>menubar.ui</file> we just created."
msgstr ""
-#: C/menubar.vala.page:43(section/code)
+#. (itstool) path: section/code
+#: C/menubar.vala.page:43
#, no-wrap
msgid ""
"public class MyWindow : Gtk.ApplicationWindow {\n"
@@ -17210,63 +20754,74 @@ msgid ""
"}\n"
msgstr ""
-#: C/menubar.vala.page:44(section/p)
+#. (itstool) path: section/p
+#: C/menubar.vala.page:44
msgid ""
"Now, compile the vala file, and run it. The application should look like the "
"picture at the top of this page."
msgstr ""
-#: C/menubar.vala.page:79(section/p)
+#. (itstool) path: section/p
+#: C/menubar.vala.page:79
msgid ""
"Following this pattern, you can now add a <code>Copy</code> and a "
-"<code>Paste</code> item to the <code>Edit</code> submenu, and an <code>About</"
-"code> item to the <code>Help</code> submenu. We will hold off on adding items "
-"to the <link xref=\"menubar.vala#choices\">Choices submenu</link> until "
-"further in the tutorial."
+"<code>Paste</code> item to the <code>Edit</code> submenu, and an "
+"<code>About</code> item to the <code>Help</code> submenu. We will hold off "
+"on adding items to the <link xref=\"menubar.vala#choices\">Choices submenu</"
+"link> until further in the tutorial."
msgstr ""
-#: C/menubar.vala.page:81(note/p)
+#. (itstool) path: note/p
+#: C/menubar.vala.page:81
msgid ""
-"You do not need to recompile the vala program if you only made changes to the "
-"UI file. Just run your previously compiled application, and the UI changes "
-"will be reflected."
+"You do not need to recompile the vala program if you only made changes to "
+"the UI file. Just run your previously compiled application, and the UI "
+"changes will be reflected."
msgstr ""
-#: C/menubar.vala.page:87(section/p)
+#. (itstool) path: section/p
+#: C/menubar.vala.page:87
msgid "This is a three step process."
msgstr ""
-#: C/menubar.vala.page:89(item/p)
+#. (itstool) path: item/p
+#: C/menubar.vala.page:89
msgid ""
"First we create the ActionEntry array in the MyApplication class. An "
"ActionEntry consists of:"
msgstr ""
-#: C/menubar.vala.page:92(item/p)
+#. (itstool) path: item/p
+#: C/menubar.vala.page:92
msgid "the \"action name\" (mandatory)"
msgstr ""
-#: C/menubar.vala.page:93(item/p)
+#. (itstool) path: item/p
+#: C/menubar.vala.page:93
msgid ""
-"the callback function to connect to the \"activate\" signal of the action (if "
-"applicable)"
+"the callback function to connect to the \"activate\" signal of the action "
+"(if applicable)"
msgstr ""
-#: C/menubar.vala.page:94(item/p)
+#. (itstool) path: item/p
+#: C/menubar.vala.page:94
msgid ""
"the type of the parameter that must be passed to the activate function for "
"the action (if applicable)"
msgstr ""
-#: C/menubar.vala.page:95(item/p)
+#. (itstool) path: item/p
+#: C/menubar.vala.page:95
msgid "the initial state for this action (if applicable)"
msgstr ""
-#: C/menubar.vala.page:96(item/p)
+#. (itstool) path: item/p
+#: C/menubar.vala.page:96
msgid "the callback to connect to \"change-state\" signal (if applicable)"
msgstr ""
-#: C/menubar.vala.page:98(item/code)
+#. (itstool) path: item/code
+#: C/menubar.vala.page:98
#, no-wrap
msgid ""
"\n"
@@ -17276,11 +20831,13 @@ msgid ""
"};"
msgstr ""
-#: C/menubar.vala.page:105(item/p)
+#. (itstool) path: item/p
+#: C/menubar.vala.page:105
msgid "Second, we create the callback functions the actions are connected to."
msgstr ""
-#: C/menubar.vala.page:106(item/code)
+#. (itstool) path: item/code
+#: C/menubar.vala.page:106
#, no-wrap
msgid ""
"\n"
@@ -17295,13 +20852,15 @@ msgid ""
"}"
msgstr ""
-#: C/menubar.vala.page:117(item/p)
+#. (itstool) path: item/p
+#: C/menubar.vala.page:117
msgid ""
"And lastly, we connect the menu items to the actions in the XML file by "
"adding the \"action\" attribute:"
msgstr ""
-#: C/menubar.vala.page:118(item/code)
+#. (itstool) path: item/code
+#: C/menubar.vala.page:118
#, no-wrap
msgid ""
"\n"
@@ -17315,13 +20874,15 @@ msgid ""
"</item>"
msgstr ""
-#: C/menubar.vala.page:134(section/p)
+#. (itstool) path: section/p
+#: C/menubar.vala.page:134
msgid ""
"Lines 30 to 80 inclusive of the <link xref=\"menubar.vala#xml-code\"/> "
"demonstrate the XML code used to create the UI for <gui>Choices</gui> menu."
msgstr ""
-#: C/menubar.vala.page:145(section/p)
+#. (itstool) path: section/p
+#: C/menubar.vala.page:145
msgid ""
"The complete example files contain both application actions and window "
"applications. The window actions are the ones usually included in the <link "
@@ -17329,14 +20890,17 @@ msgid ""
"include window actions in the applcation menu. For demonstration purposes, "
"the complete example files which follow include XML in the UI file which "
"creates the application menu which includes a \"New\" and \"Open\" item, and "
-"these are hooked up to the same actions as the menubar items of the same name."
+"these are hooked up to the same actions as the menubar items of the same "
+"name."
msgstr ""
-#: C/menubar.vala.page:156(section/title)
+#. (itstool) path: section/title
+#: C/menubar.vala.page:156
msgid "Complete Vala file for this example"
msgstr ""
-#: C/menubar.vala.page:157(section/code)
+#. (itstool) path: section/code
+#: C/menubar.vala.page:157
#, no-wrap
msgid ""
"public class MyWindow : Gtk.ApplicationWindow {\n"
@@ -17440,90 +21004,244 @@ msgid ""
"}\n"
msgstr ""
-#: C/menubar.vala.page:160(section/title)
+#. (itstool) path: section/title
+#: C/menubar.vala.page:160
msgid "Mnemonics"
-msgstr ""
+msgstr "Tastenkürzel"
-#: C/menubar.vala.page:166(section/title)
+#. (itstool) path: section/title
+#: C/menubar.vala.page:166
msgid "Accelerators"
-msgstr ""
+msgstr "Tastenkombinationen"
-#: C/menubar.vala.page:182(section/p)
+#. (itstool) path: section/p
+#: C/menubar.vala.page:182
msgid ""
-"<code mime=\"application/xml\"><attribute name=\"label\" translatable=\"yes"
-"\">Quit</attribute></code>"
+"<code mime=\"application/xml\"><attribute name=\"label\" translatable="
+"\"yes\">Quit</attribute></code>"
msgstr ""
-#: C/menubar.vala.page:191(item/p)
+#. (itstool) path: item/p
+#: C/menubar.vala.page:191
msgid ""
"<link href=\"http://valadoc.org/gio-2.0/GLib.ActionEntry.html\">Glib."
"ActionEntry</link>"
msgstr ""
-#: C/menubar.vala.page:192(item/p)
+#. (itstool) path: item/p
+#: C/menubar.vala.page:192
msgid ""
"<link href=\"http://valadoc.org/gio-2.0/Gtk.Builder.html\">Gtk.Builder</link>"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/menubutton.js.page:21(media) C/menubutton.py.page:28(media)
-#: C/menubutton.vala.page:21(media)
+#: C/menubutton.c.page:21 C/menubutton.js.page:21 C/menubutton.py.page:28
+#: C/menubutton.vala.page:21
+#, fuzzy
+#| msgctxt "_"
+#| msgid ""
+#| "external ref='media/linkbutton.png' md5='3712eae8953e87c65a6aa74503b8e32b'"
msgctxt "_"
msgid ""
-"external ref='media/menubutton.png' md5='1feb7b836a522c3007079d4420621d9d'"
+"external ref='media/menubutton.png' md5='99eedc5ef2d6c56d32ca9ae7f3f3320f'"
msgstr ""
-"external ref='media/menubutton.png' md5='1feb7b836a522c3007079d4420621d9d'"
+"external ref='media/linkbutton.png' md5='3712eae8953e87c65a6aa74503b8e32b'"
-#: C/menubutton.js.page:7(info/title)
-#, fuzzy
-#| msgid "JavaScript"
+#. (itstool) path: info/title
+#: C/menubutton.c.page:7 C/menubutton.py.page:7
msgctxt "text"
-msgid "MenuButton (JavaScript)"
-msgstr "JavaScript"
-
-#: C/menubutton.js.page:12(credit/name)
-msgid "Anna Zacchi"
-msgstr "Anna Zacchi"
+msgid "MenuButton"
+msgstr ""
-#: C/menubutton.js.page:17(info/desc) C/menubutton.py.page:24(info/desc)
-#: C/menubutton.vala.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/menubutton.c.page:17 C/menubutton.js.page:17 C/menubutton.py.page:24
+#: C/menubutton.vala.page:17
msgid "A widget that shows a menu when clicked on"
msgstr ""
-#: C/menubutton.js.page:20(page/title) C/menubutton.py.page:27(page/title)
-#: C/menubutton.vala.page:20(page/title)
+#. (itstool) path: page/title
+#: C/menubutton.c.page:20 C/menubutton.js.page:20 C/menubutton.py.page:27
+#: C/menubutton.vala.page:20
msgid "MenuButton"
msgstr ""
-#: C/menubutton.js.page:22(page/p) C/menubutton.py.page:29(page/p)
-#: C/menubutton.vala.page:22(page/p)
+#. (itstool) path: page/p
+#: C/menubutton.c.page:22 C/menubutton.js.page:22 C/menubutton.py.page:29
+#: C/menubutton.vala.page:22
msgid ""
-"The GtkMenuButton widget is used to display a menu when clicked on. This menu "
-"can be provided either as a GtkMenu, or an abstract GMenuModel. The "
+"The GtkMenuButton widget is used to display a menu when clicked on. This "
+"menu can be provided either as a GtkMenu, or an abstract GMenuModel. The "
"GtkMenuButton widget can hold any valid child widget. That is, it can hold "
"almost any other standard GtkWidget. The most commonly used child is the "
"provided GtkArrow."
msgstr ""
-#: C/menubutton.js.page:26(note/p) C/menubutton.py.page:31(note/p)
-#: C/menubutton.vala.page:26(note/p)
-msgid "You need to be running GNOME 3.6 for the MenuButton to work."
+#. (itstool) path: note/p
+#: C/menubutton.c.page:24 C/menubutton.js.page:26
+msgid "You need to be running GNOME 3.6 or later for the MenuButton to work."
msgstr ""
-#: C/menubutton.js.page:27(page/code)
+#. (itstool) path: section/code
+#: C/menubutton.c.page:30
+#, no-wrap
+msgid ""
+"#include <gtk/gtk.h>\n"
+"\n"
+"/* Callback function for the undo action */\n"
+"static void\n"
+"about_callback (GSimpleAction *simple,\n"
+" GVariant *parameter,\n"
+" gpointer user_data)\n"
+"{\n"
+" g_print (\"You clicked \\\"About\\\"\\n\");\n"
+"}\n"
+"\n"
+"static void\n"
+"activate (GtkApplication *app,\n"
+" gpointer user_data)\n"
+"{\n"
+" GMenu *submenu;\n"
+" GtkWidget *grid;\n"
+" GMenu *menumodel;\n"
+" GtkWidget *window;\n"
+" GtkWidget *menubutton;\n"
+" GSimpleAction *about_action;\n"
+"\n"
+" window = gtk_application_window_new (app);\n"
+" grid = gtk_grid_new ();\n"
+"\n"
+" gtk_window_set_title (GTK_WINDOW (window), \"MenuButton Example\");\n"
+" gtk_window_set_default_size (GTK_WINDOW (window), 600, 400);\n"
+"\n"
+" menubutton = gtk_menu_button_new ();\n"
+" gtk_widget_set_size_request (menubutton, 80, 35);\n"
+"\n"
+" gtk_grid_attach (GTK_GRID (grid), menubutton, 0, 0, 1, 1);\n"
+" gtk_container_add (GTK_CONTAINER (window), grid);\n"
+"\n"
+" menumodel = g_menu_new ();\n"
+" g_menu_append (menumodel, \"New\", \"app.new\");\n"
+" g_menu_append (menumodel, \"About\", \"win.about\");\n"
+"\n"
+" submenu = g_menu_new ();\n"
+" g_menu_append_submenu (menumodel, \"Other\", G_MENU_MODEL (submenu));\n"
+" g_menu_append (submenu, \"Quit\", \"app.quit\");\n"
+" gtk_menu_button_set_menu_model (GTK_MENU_BUTTON (menubutton), G_MENU_MODEL (menumodel));\n"
+"\n"
+" about_action = g_simple_action_new (\"about\", NULL);\n"
+" g_signal_connect (about_action, \"activate\", G_CALLBACK (about_callback),\n"
+" GTK_WINDOW (window));\n"
+" g_action_map_add_action (G_ACTION_MAP (window), G_ACTION (about_action));\n"
+"\n"
+" gtk_widget_show_all (window);\n"
+"}\n"
+"\n"
+"\n"
+"static void\n"
+"new_callback (GSimpleAction *simple,\n"
+" GVariant *parameter,\n"
+" gpointer user_data)\n"
+"{\n"
+" g_print (\"You clicked \\\"New\\\"\\n\");\n"
+"}\n"
+"\n"
+"static void\n"
+"quit_callback (GSimpleAction *simple,\n"
+" GVariant *parameter,\n"
+" gpointer user_data)\n"
+"{\n"
+" GApplication *application = user_data;\n"
+"\n"
+" g_application_quit (application);\n"
+"}\n"
+"\n"
+"static void\n"
+"startup (GApplication *app,\n"
+" gpointer user_data)\n"
+"{\n"
+" GSimpleAction *new_action;\n"
+" GSimpleAction *quit_action;\n"
+"\n"
+" new_action = g_simple_action_new (\"new\", NULL);\n"
+" g_signal_connect (new_action, \"activate\", G_CALLBACK (new_callback), app);\n"
+" g_action_map_add_action (G_ACTION_MAP (app), G_ACTION (new_action));\n"
+"\n"
+" quit_action = g_simple_action_new (\"quit\", NULL);\n"
+" g_signal_connect (quit_action, \"activate\", G_CALLBACK (quit_callback), app);\n"
+" g_action_map_add_action (G_ACTION_MAP (app), G_ACTION (quit_action));\n"
+"}\n"
+"\n"
+"\n"
+"int\n"
+"main (int argc, char **argv)\n"
+"{\n"
+" GtkApplication *app;\n"
+" int status;\n"
+"\n"
+" app = gtk_application_new (\"org.gtk.example\", G_APPLICATION_FLAGS_NONE);\n"
+" g_signal_connect (app, \"activate\", G_CALLBACK (activate), NULL);\n"
+" g_signal_connect (app, \"startup\", G_CALLBACK (startup), NULL);\n"
+" status = g_application_run (G_APPLICATION (app), argc, argv);\n"
+" g_object_unref (app);\n"
+" return status;\n"
+"}\n"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/menubutton.c.page:37
+msgid ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkMenuButton.html"
+"\">GtkMenuButton</link>"
+msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkMenuButton.html"
+"\">GtkMenuButton</link>"
+
+#. (itstool) path: item/p
+#: C/menubutton.c.page:38
+msgid ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkMenu.html"
+"\">GtkMenu</link>"
+msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkMenu.html"
+"\">GtkMenu</link>"
+
+#. (itstool) path: item/p
+#: C/menubutton.c.page:39
+msgid ""
+"<link href=\"https://developer.gnome.org/gio/unstable/GMenuModel.html"
+"\">GMenuModel</link>"
+msgstr ""
+"<link href=\"https://developer.gnome.org/gio/unstable/GMenuModel.html"
+"\">GMenuModel</link>"
+
+#. (itstool) path: item/p
+#: C/menubutton.c.page:40
+msgid ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkArrow.html"
+"\">GtkArrow</link>"
+msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkArrow.html"
+"\">GtkArrow</link>"
+
+#. (itstool) path: info/title
+#: C/menubutton.js.page:7
+#, fuzzy
+#| msgid "JavaScript"
+msgctxt "text"
+msgid "MenuButton (JavaScript)"
+msgstr "JavaScript"
+
+#. (itstool) path: credit/name
+#: C/menubutton.js.page:12
+msgid "Anna Zacchi"
+msgstr "Anna Zacchi"
+
+#. (itstool) path: page/code
+#: C/menubutton.js.page:27
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -17550,7 +21268,7 @@ msgid ""
" _buildUI: function() {\n"
" this._window = new Gtk.ApplicationWindow({ application: this.application,\n"
" window_position: Gtk.WindowPosition.CENTER,\n"
-" title: \"Welcome to GNOME\" });\n"
+" title: \"MenuButton Example\" });\n"
" this._window.set_default_size(600, 400);\n"
" this.grid = new Gtk.Grid();\n"
" this._window.add(this.grid);\n"
@@ -17561,7 +21279,7 @@ msgid ""
" this.menu = new Gtk.Menu.new_from_model(this.menuModel);\n"
"\n"
" this.menu.show();\n"
-" this._menuButton.set_menu(this.menu);\n"
+" this._menuButton.set_menu_model (this.menuModel);\n"
" this._menuButton.set_size_request(80, 35);\n"
" this._menuButton.show();\n"
"\n"
@@ -17569,11 +21287,11 @@ msgid ""
" },\n"
"\n"
" _showNew: function() {\n"
-" print(\"New Menu. It doesn't do anything. It is only a demonstration.\");\n"
+" print(\"You clicked \\\"New\\\"\");\n"
" },\n"
"\n"
" _showAbout: function() {\n"
-" print(\"No AboutDialog here. This is only a demonstration.\");\n"
+" print(\"You clicked \\\"About\\\"\");\n"
" },\n"
"\n"
" //create the menu items and connect the signals to the callback functions.\n"
@@ -17634,37 +21352,43 @@ msgid ""
"app.application.run(ARGV);\n"
msgstr ""
-#: C/menubutton.js.page:32(item/p) C/menubutton.vala.page:32(item/p)
+#. (itstool) path: item/p
+#: C/menubutton.js.page:32 C/menubutton.vala.page:32
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/3.5/gtk3-GtkMenuButton.html"
"\">MenuButton</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/3.5/gtk3-GtkMenuButton.html"
+"\">MenuButton</link>"
-#: C/menubutton.py.page:7(info/title)
-msgctxt "text"
-msgid "MenuButton"
+#. (itstool) path: note/p
+#: C/menubutton.py.page:31 C/menubutton.vala.page:26
+msgid "You need to be running GNOME 3.6 for the MenuButton to work."
msgstr ""
-#: C/menubutton.py.page:37(section/code)
+#. (itstool) path: section/code
+#: C/menubutton.py.page:37
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import Gio\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"Menubutton Example\", application=app)\n"
" self.set_default_size(600, 400)\n"
"\n"
" grid = Gtk.Grid()\n"
-" \n"
+"\n"
" # a menubutton\n"
" menubutton = Gtk.MenuButton()\n"
" menubutton.set_size_request(80, 35)\n"
-" \n"
+"\n"
" grid.attach(menubutton, 0, 0, 1, 1)\n"
-" \n"
+"\n"
" # a menu with two actions\n"
" menumodel = Gio.Menu()\n"
" menumodel.append(\"New\", \"app.new\")\n"
@@ -17682,14 +21406,16 @@ msgid ""
" about_action = Gio.SimpleAction.new(\"about\", None)\n"
" about_action.connect(\"activate\", self.about_callback)\n"
" self.add_action(about_action)\n"
-" \n"
+"\n"
" self.add(grid)\n"
"\n"
" # callback for \"about\"\n"
" def about_callback(self, action, parameter):\n"
" print \"You clicked \\\"About\\\"\"\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -17704,11 +21430,11 @@ msgid ""
" new_action = Gio.SimpleAction.new(\"new\", None)\n"
" new_action.connect(\"activate\", self.new_callback)\n"
" self.add_action(new_action)\n"
-" \n"
+"\n"
" quit_action = Gio.SimpleAction.new(\"quit\", None)\n"
" quit_action.connect(\"activate\", self.quit_callback)\n"
" self.add_action(quit_action)\n"
-" \n"
+"\n"
" # callback functions for the actions related to the application\n"
" def new_callback(self, action, parameter):\n"
" print \"You clicked \\\"New\\\"\"\n"
@@ -17722,58 +21448,66 @@ msgid ""
"sys.exit(exit_status)\n"
msgstr ""
-#: C/menubutton.py.page:41(section/title)
+#. (itstool) path: section/title
+#: C/menubutton.py.page:41
msgid "Useful methods for a MenuButton widget"
msgstr ""
-#: C/menubutton.py.page:42(section/p)
+#. (itstool) path: section/p
+#: C/menubutton.py.page:42
msgid ""
"In line 33 the signal <code>\"activate\"</code> from the action "
"<code>about_action</code> is connected to the callback function "
-"<code>about_callback()</code> using <code><var>action</var>.connect"
-"(<var>signal</var>, <var>callback function</var>)</code>. See <link xref="
-"\"signals-callbacks.py\"/> for a more detailed explanation."
+"<code>about_callback()</code> using <code><var>action</var>."
+"connect(<var>signal</var>, <var>callback function</var>)</code>. See <link "
+"xref=\"signals-callbacks.py\"/> for a more detailed explanation."
msgstr ""
-#: C/menubutton.py.page:44(section/p)
+#. (itstool) path: section/p
+#: C/menubutton.py.page:44
msgid ""
"The positioning of the menu is determined by the \"direction\" property of "
"the menu button and the \"halign\" or \"valign\" properties of the menu. For "
-"example, when the direction is <code>Gtk.ArrowType.DOWN</code> (other option: "
-"<code>UP</code>) and the horizontal alignment is <code>Gtk.Align.START</code> "
-"(other options: <code>CENTER</code> and <code>END</code>), the menu will be "
-"positioned below the button, with the starting edge (depending on the text "
-"direction) of the menu aligned with the starting edge of the button. If there "
-"is not enough space below the button, the menu is popped up above the button "
-"instead. If the alignment would move part of the menu offscreen, it is "
-"'pushed in'."
+"example, when the direction is <code>Gtk.ArrowType.DOWN</code> (other "
+"option: <code>UP</code>) and the horizontal alignment is <code>Gtk.Align."
+"START</code> (other options: <code>CENTER</code> and <code>END</code>), the "
+"menu will be positioned below the button, with the starting edge (depending "
+"on the text direction) of the menu aligned with the starting edge of the "
+"button. If there is not enough space below the button, the menu is popped up "
+"above the button instead. If the alignment would move part of the menu "
+"offscreen, it is 'pushed in'."
msgstr ""
-#: C/menubutton.py.page:46(section/p)
+#. (itstool) path: section/p
+#: C/menubutton.py.page:46
msgid ""
"In the case of vertical alignment, the possible ArrowType directions are "
"<code>LEFT</code> and <code>RIGHT</code> and the vertical alignment is again "
"<code>START</code>, <code>CENTER</code> or <code>END</code>."
msgstr ""
-#: C/menubutton.py.page:48(section/p)
+#. (itstool) path: section/p
+#: C/menubutton.py.page:48
msgid ""
"<code>set_align_widget(alignment)</code> and <code>set_direction(direction)</"
"code> can be used to set these properties."
msgstr ""
-#: C/menubutton.py.page:55(item/p)
+#. (itstool) path: item/p
+#: C/menubutton.py.page:55
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkMenuButton.html"
"\">MenuButton</link>"
msgstr ""
-#: C/menubutton.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/menubutton.vala.page:7
msgctxt "text"
msgid "MenuButton (Vala)"
msgstr ""
-#: C/menubutton.vala.page:27(page/code)
+#. (itstool) path: page/code
+#: C/menubutton.vala.page:27
#, no-wrap
msgid ""
"public class MyWindow : Gtk.ApplicationWindow {\n"
@@ -17843,48 +21577,56 @@ msgid ""
"}\n"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/message-board.c.page:40(media)
+#: C/message-board.c.page:40
msgctxt "_"
msgid ""
"external ref='media/message-board.ogv' md5='beb80c4538776dc2cdd26c95abea5027'"
msgstr ""
"external ref='media/message-board.ogv' md5='beb80c4538776dc2cdd26c95abea5027'"
-#: C/message-board.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/message-board.c.page:7
msgctxt "text"
msgid "Message board (C)"
msgstr ""
-#: C/message-board.c.page:10(info/desc)
+#. (itstool) path: info/desc
+#: C/message-board.c.page:10
msgid "A simple program using WebKitGTK+ and the DOM."
msgstr ""
-#: C/message-board.c.page:25(page/title)
+#. (itstool) path: page/title
+#: C/message-board.c.page:25
msgid "Message board"
msgstr ""
-#: C/message-board.c.page:30(item/p)
+#. (itstool) path: item/p
+#: C/message-board.c.page:30
msgid "How to display a web page with WebKit."
msgstr ""
-#: C/message-board.c.page:31(item/p)
+#. (itstool) path: item/p
+#: C/message-board.c.page:31
msgid ""
"How to manipulate the contents of a web page using WebKit's DOM functions."
msgstr ""
-#: C/message-board.c.page:34(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/message-board.c.page:34
msgid ""
"This tutorial assumes you are familiar with the C programming language and "
-"have a basic understanding of GTK+, including how to create and place widgets "
-"and how to connect callback functions to signals. See <link xref=\"image-"
-"viewer.c\"/> to learn the basics of GTK+."
+"have a basic understanding of GTK+, including how to create and place "
+"widgets and how to connect callback functions to signals. See <link xref="
+"\"image-viewer.c\"/> to learn the basics of GTK+."
msgstr ""
-#: C/message-board.c.page:47(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:47
msgid ""
"The GNOME platform includes WebKitGTK+, built on top of the powerful WebKit "
"HTML framework. WebKit is used throughout GNOME, not just to view web pages "
@@ -17892,38 +21634,45 @@ msgid ""
"styled with CSS."
msgstr ""
-#: C/message-board.c.page:52(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:52
msgid ""
"In this tutorial, you will create a simple message board using WebKit. The "
"message board will allow you to enter some text and have it added to a list "
-"of messages in HTML. Before you begin, you need to set up a project in Anjuta."
+"of messages in HTML. Before you begin, you need to set up a project in "
+"Anjuta."
msgstr ""
-#: C/message-board.c.page:58(item/p)
+#. (itstool) path: item/p
+#: C/message-board.c.page:58
msgid ""
"In Anjuta, click <guiseq><gui>File</gui><gui>New</gui> <gui>Project</gui></"
"guiseq> to open the new project assistant."
msgstr ""
-#: C/message-board.c.page:60(item/p)
+#. (itstool) path: item/p
+#: C/message-board.c.page:60
msgid ""
"Select <gui>GTK+ (simple)</gui> on the <gui>C</gui> tab, and click "
"<gui>Continue</gui>."
msgstr ""
-#: C/message-board.c.page:62(item/p)
+#. (itstool) path: item/p
+#: C/message-board.c.page:62
msgid ""
"Fill out your details on the <gui>Basic information</gui> page. Use "
"<input>message-board</input> for the project name. Click <gui>Continue</gui>."
msgstr ""
-#: C/message-board.c.page:65(item/p)
+#. (itstool) path: item/p
+#: C/message-board.c.page:65
msgid ""
"Disable the <gui>Use GtkBuilder for user interface</gui> option as this "
"tutorial builds the user-interface manually."
msgstr ""
-#: C/message-board.c.page:68(item/p)
+#. (itstool) path: item/p
+#: C/message-board.c.page:68
msgid ""
"You need to tell Anjuta you're using WebKitGTK+ on this project. On the "
"<gui>Project options</gui> page, select <gui>Configure external packages</"
@@ -17931,7 +21680,8 @@ msgid ""
"gui> page, check <gui>webkitgtk-3.0</gui>."
msgstr ""
-#: C/message-board.c.page:74(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:74
msgid ""
"After you finish the new project assistant, open the file <file>src/main.c</"
"file> from either the <gui>Project</gui> or the <gui>File</gui> tab. Anjuta "
@@ -17941,32 +21691,37 @@ msgid ""
"following line:"
msgstr ""
-#: C/message-board.c.page:81(section/code)
+#. (itstool) path: section/code
+#: C/message-board.c.page:81
#, no-wrap
msgid "#include <webkit/webkit.h>"
msgstr "#include <webkit/webkit.h>"
-#: C/message-board.c.page:83(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:83
msgid ""
"Verify that everything works by building what you have so far. Click "
"<guiseq><gui>Build</gui><gui>Build Project</gui></guiseq> or just press "
-"<keyseq><key>Shift</key><key>F7</key></keyseq>. The first time you build, you "
-"will be asked for some configure options. Just accept the defaults and click "
-"<gui>Execute</gui>."
+"<keyseq><key>Shift</key><key>F7</key></keyseq>. The first time you build, "
+"you will be asked for some configure options. Just accept the defaults and "
+"click <gui>Execute</gui>."
msgstr ""
-#: C/message-board.c.page:89(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:89
msgid ""
"You should now be able to run the program. Click <guiseq> <gui>Run</"
"gui><gui>Execute</gui></guiseq> or just press <key>F3</key>. You should see "
"an empty window appear."
msgstr ""
-#: C/message-board.c.page:95(section/title)
+#. (itstool) path: section/title
+#: C/message-board.c.page:95
msgid "Lay out your window and web view"
msgstr ""
-#: C/message-board.c.page:97(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:97
msgid ""
"Now that you can show a window, it's time to start working with WebKit. For "
"this tutorial, you'll create a text entry and a web view and pack them both "
@@ -17974,7 +21729,8 @@ msgid ""
"with the following:"
msgstr ""
-#: C/message-board.c.page:102(section/code)
+#. (itstool) path: section/code
+#: C/message-board.c.page:102
#, no-wrap
msgid ""
"\n"
@@ -18012,35 +21768,39 @@ msgid ""
"}\n"
msgstr ""
-#: C/message-board.c.page:137(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:137
msgid ""
"You first create a <code>GtkWindow</code> object and set its title and "
-"default size. You also connect the <code>gtk_main_quit</code> function to the "
-"<code>delete-event</code> signal. The <code>delete-event</code> signal is "
-"emitted when the window is closed. The <code>gtk_main_quit</code> function is "
-"part of GTK, and it quits the application."
+"default size. You also connect the <code>gtk_main_quit</code> function to "
+"the <code>delete-event</code> signal. The <code>delete-event</code> signal "
+"is emitted when the window is closed. The <code>gtk_main_quit</code> "
+"function is part of GTK, and it quits the application."
msgstr ""
-#: C/message-board.c.page:143(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:143
msgid ""
"You then create a vertical box and add it to the window. A window can only "
-"hold a single child widget, so you need to use a box to add multiple widgets. "
-"The second argument to <code>gtk_box_new</code> sets the amount of padding "
-"(in pixels) between each child, and the next line puts a six-pixel border "
-"around the entire thing."
+"hold a single child widget, so you need to use a box to add multiple "
+"widgets. The second argument to <code>gtk_box_new</code> sets the amount of "
+"padding (in pixels) between each child, and the next line puts a six-pixel "
+"border around the entire thing."
msgstr ""
-#: C/message-board.c.page:149(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:149
msgid ""
"You next create a <code>GtkEntry</code> object and pack it into the box. The "
"third and fourth arguments to <code>gtk_box_pack_start</code> specify that "
-"the entry shouldn't take up any extra space the box has available. The fourth "
-"argument is the amount of padding you want around the entry. In this case, "
-"you set the padding to zero, because you're allowing the box to handle all "
-"the padding."
+"the entry shouldn't take up any extra space the box has available. The "
+"fourth argument is the amount of padding you want around the entry. In this "
+"case, you set the padding to zero, because you're allowing the box to handle "
+"all the padding."
msgstr ""
-#: C/message-board.c.page:156(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:156
msgid ""
"Before you add a web view, you have to create a scrolled window to put it "
"inside of. The scrolled window will place scrollbars on the right and bottom "
@@ -18050,92 +21810,109 @@ msgid ""
"web view) to use any extra space available in the box."
msgstr ""
-#: C/message-board.c.page:163(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:163
msgid ""
"Finally, you create a <code>WebKitWebView</code> and add it to the scrolled "
"window. Then load a very basic HTML page into the web view by calling "
"<code>webkit_web_view_load_string</code> with the following arguments:"
msgstr ""
-#: C/message-board.c.page:169(item/title)
+#. (itstool) path: item/title
+#: C/message-board.c.page:169
msgid "<code>WEBKIT_WEB_VIEW (view)</code>"
msgstr ""
-#: C/message-board.c.page:170(item/p)
+#. (itstool) path: item/p
+#: C/message-board.c.page:170
msgid ""
"The view itself. Because <code>view</code> is typed as a <code>GtkWidget*</"
-"code>, you have to use <code>WEBKIT_WEB_VIEW</code> to safely cast the object."
+"code>, you have to use <code>WEBKIT_WEB_VIEW</code> to safely cast the "
+"object."
msgstr ""
-#: C/message-board.c.page:175(item/title)
+#. (itstool) path: item/title
+#: C/message-board.c.page:175
msgid "<code>\"<html><body></body></html>\"</code>"
msgstr "<code>\"<html><body></body></html>\"</code>"
-#: C/message-board.c.page:176(item/p)
+#. (itstool) path: item/p
+#: C/message-board.c.page:176
msgid "The simplest HTML file you could possibly write."
msgstr ""
-#: C/message-board.c.page:179(item/title)
+#. (itstool) path: item/title
+#: C/message-board.c.page:179
msgid "<code>\"text/html\"</code>"
msgstr "<code>\"text/html\"</code>"
-#: C/message-board.c.page:180(item/p)
+#. (itstool) path: item/p
+#: C/message-board.c.page:180
msgid ""
"The MIME type of the content you provided. In this case, you're using plain "
"HTML."
msgstr ""
-#: C/message-board.c.page:184(item/title)
+#. (itstool) path: item/title
+#: C/message-board.c.page:184
msgid "<code>\"UTF-8\"</code>"
msgstr "<code>\"UTF-8\"</code>"
-#: C/message-board.c.page:185(item/p)
+#. (itstool) path: item/p
+#: C/message-board.c.page:185
msgid ""
"The character encoding of the content you provided. Although you only used "
"ASCII characters, it's a good idea to specify UTF-8. UTF-8 is used as the "
"default encoding throughout the GNOME platform."
msgstr ""
-#: C/message-board.c.page:190(item/title)
+#. (itstool) path: item/title
+#: C/message-board.c.page:190
msgid "<code>NULL</code>"
msgstr "<code>NULL</code>"
-#: C/message-board.c.page:191(item/p)
+#. (itstool) path: item/p
+#: C/message-board.c.page:191
msgid ""
-"The base URI. You don't need it in this simple example, but you might want to "
-"provide a <sys>file:</sys> URI if you add images or other features where you "
-"want to use relative URI references."
+"The base URI. You don't need it in this simple example, but you might want "
+"to provide a <sys>file:</sys> URI if you add images or other features where "
+"you want to use relative URI references."
msgstr ""
-#: C/message-board.c.page:198(note/p)
+#. (itstool) path: note/p
+#: C/message-board.c.page:198
msgid ""
-"Every time you add a widget, you have to call <code>gtk_widget_show</code> on "
-"it for it to be visible. If you call <code>gtk_widget_show_all</code> on a "
-"container widget like a <code>GtkBox</code>, GTK+ will automatically show all "
-"the widgets inside the container, to any depth. Sometimes you don't want to "
-"call <code>gtk_widget_show_all</code>, such as when you want to dynamically "
-"hide and show some widgets in response to events."
+"Every time you add a widget, you have to call <code>gtk_widget_show</code> "
+"on it for it to be visible. If you call <code>gtk_widget_show_all</code> on "
+"a container widget like a <code>GtkBox</code>, GTK+ will automatically show "
+"all the widgets inside the container, to any depth. Sometimes you don't want "
+"to call <code>gtk_widget_show_all</code>, such as when you want to "
+"dynamically hide and show some widgets in response to events."
msgstr ""
-#: C/message-board.c.page:206(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:206
msgid ""
"Finally, you have to call <code>gtk_widget_show_all</code> on the box. "
"Otherwise, none of the widgets you created will be visible. (The window is "
"shown in the <code>main</code> function with <code>gtk_widget_show</code>.)"
msgstr ""
-#: C/message-board.c.page:210(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:210
msgid ""
"Build and run the message board again. You should see a window with a text "
"entry and a web view. It doesn't do anything yet because the text entry and "
"the web view don't know anything about each other."
msgstr ""
-#: C/message-board.c.page:216(section/title)
+#. (itstool) path: section/title
+#: C/message-board.c.page:216
msgid "Hook up signals"
msgstr ""
-#: C/message-board.c.page:218(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:218
msgid ""
"Now you want to make the message board actually <em>do</em> something when "
"you enter text into the text entry. To do this, connect a callback function "
@@ -18145,20 +21922,23 @@ msgid ""
"both <code>entry</code> and <code>view</code> have been defined:"
msgstr ""
-#: C/message-board.c.page:225(section/code)
+#. (itstool) path: section/code
+#: C/message-board.c.page:225
#, no-wrap
msgid ""
"\n"
"g_signal_connect (entry, \"activate\", G_CALLBACK (entry_activate_cb), view);\n"
msgstr ""
-#: C/message-board.c.page:229(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:229
msgid ""
-"You then have to actually define <code>entry_activate_cb</code>. Define it as "
-"follows, anywhere above <code>create_window</code>:"
+"You then have to actually define <code>entry_activate_cb</code>. Define it "
+"as follows, anywhere above <code>create_window</code>:"
msgstr ""
-#: C/message-board.c.page:232(section/code)
+#. (itstool) path: section/code
+#: C/message-board.c.page:232
#, no-wrap
msgid ""
"\n"
@@ -18181,7 +21961,8 @@ msgid ""
"}\n"
msgstr ""
-#: C/message-board.c.page:252(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:252
msgid ""
"The first thing you do is get a <code>WebKitDOMDocument</code> object that "
"represents the HTML document displayed in <code>view</code>. The DOM classes "
@@ -18190,7 +21971,8 @@ msgid ""
"JavaScript."
msgstr ""
-#: C/message-board.c.page:258(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:258
msgid ""
"Once you have the document, you want to get the <code>body</code> element so "
"that you can add <code>div</code> elements to it. The "
@@ -18199,38 +21981,43 @@ msgid ""
"write tedious loops to traverse the document."
msgstr ""
-#: C/message-board.c.page:269(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:269
msgid ""
"Next, you create a new <code>div</code> element to hold the message. Every "
"element you create has to be attached to a document, so the function to "
"create an element takes the <code>WebKitDOMDocument</code> as its first "
"arguments. You then set the text content of the element to the contents of "
-"the text entry. Because <code>gtk_entry_get_text</code> returns a <code>const "
-"gchar*</code>, you don't have to free the result."
+"the text entry. Because <code>gtk_entry_get_text</code> returns a "
+"<code>const gchar*</code>, you don't have to free the result."
msgstr ""
-#: C/message-board.c.page:282(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:282
msgid ""
"Finally, you append the new <code>div</code> element to the body and clear "
"out the text entry so you can type something new. Build and run the program "
"again and test it for yourself."
msgstr ""
-#: C/message-board.c.page:289(section/title)
+#. (itstool) path: section/title
+#: C/message-board.c.page:289
msgid "Make it look better with CSS"
msgstr ""
-#: C/message-board.c.page:291(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:291
msgid ""
"At this point, your program is completely functional, but not very pretty. "
"You can style the message display with CSS, just like you can with any other "
"HTML page. There are many ways you could attach some CSS to the page: You "
"could add it in the initial HTML document. You could inline it in the "
-"<code>style</code> attribute of the <code>div</code> elements. You could even "
-"programmatically construct it using the DOM APIs."
+"<code>style</code> attribute of the <code>div</code> elements. You could "
+"even programmatically construct it using the DOM APIs."
msgstr ""
-#: C/message-board.c.page:298(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:298
msgid ""
"In this tutorial, you'll attach the CSS using the <code>user-stylesheet-uri</"
"code> property of the <code>WebKitWebSetting</code> object attached to your "
@@ -18238,12 +22025,13 @@ msgid ""
"your HTML file. Keeping the style information outside the actual HTML means "
"that you can change the styling completely within your application, without "
"having to change users' files. You would normally just install a file along "
-"with your application, but just to keep everything in one file for this demo, "
-"we'll use a trick called a data URI. First, define the CSS as a static string "
-"near the top of your file."
+"with your application, but just to keep everything in one file for this "
+"demo, we'll use a trick called a data URI. First, define the CSS as a static "
+"string near the top of your file."
msgstr ""
-#: C/message-board.c.page:307(section/code)
+#. (itstool) path: section/code
+#: C/message-board.c.page:307
#, no-wrap
msgid ""
"\n"
@@ -18259,7 +22047,8 @@ msgid ""
"\"}\";\n"
msgstr ""
-#: C/message-board.c.page:320(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:320
msgid ""
"All you have in this example are <code>div</code> elements inside a "
"<code>body</code> element. If you created more complicated HTML, you could "
@@ -18267,14 +22056,16 @@ msgid ""
"should trying changing this to something you like better."
msgstr ""
-#: C/message-board.c.page:325(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:325
msgid ""
"To apply the CSS, you set the <code>user-stylesheet-uri</code> in the "
"<code>create_window</code> function, anywhere after <code>view</code> has "
"already been defined."
msgstr ""
-#: C/message-board.c.page:331(section/code)
+#. (itstool) path: section/code
+#: C/message-board.c.page:331
#, no-wrap
msgid ""
"\n"
@@ -18287,13 +22078,15 @@ msgid ""
"g_free (tmp);\n"
msgstr ""
-#: C/message-board.c.page:341(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:341
msgid ""
"Also, make sure to add variable declarations for <code>tmp</code> and "
"<code>css</code> to the top of <code>create_window</code>."
msgstr ""
-#: C/message-board.c.page:344(section/code)
+#. (itstool) path: section/code
+#: C/message-board.c.page:344
#, no-wrap
msgid ""
"\n"
@@ -18302,17 +22095,19 @@ msgstr ""
"\n"
"gchar *tmp, *css;\n"
-#: C/message-board.c.page:348(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:348
msgid ""
"A data URI starts with <sys>data:</sys> and some information about the "
"content type and how the data is encoded. The actual data follows after a "
"comma, in this case encoded in Base64. Unlike other URI schemes like "
-"<sys>http:</sys>, <sys>ftp:</sys>, and <sys>file:</sys>, the <sys>data:</sys> "
-"URI scheme doesn't specify where to find a file to load. Rather, it gives the "
-"entire contents of the file."
+"<sys>http:</sys>, <sys>ftp:</sys>, and <sys>file:</sys>, the <sys>data:</"
+"sys> URI scheme doesn't specify where to find a file to load. Rather, it "
+"gives the entire contents of the file."
msgstr ""
-#: C/message-board.c.page:355(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:355
msgid ""
"The code above first encodes your CSS definitions in Base64, then combines "
"that with a fixed string to create a data URI. The <code>g_strconcat</code> "
@@ -18322,49 +22117,56 @@ msgid ""
"you set the stylesheet property."
msgstr ""
-#: C/message-board.c.page:362(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:362
msgid ""
"Build and run the program again. It should now work exactly the same as at "
-"the end of the last section, except the messages will be nicely styled with a "
-"border and a subtle background gradient."
+"the end of the last section, except the messages will be nicely styled with "
+"a border and a subtle background gradient."
msgstr ""
-#: C/message-board.c.page:368(section/title)
+#. (itstool) path: section/title
+#: C/message-board.c.page:368
msgid "Learn more"
msgstr "Mehr erfahren"
-#: C/message-board.c.page:370(section/p)
+#. (itstool) path: section/p
+#: C/message-board.c.page:370
msgid ""
"This tutorial showed you how to create a basic application using GTK+ and "
-"WebKit, including showing a document and manipulating its contents. To create "
-"a real application, you probably want to do a little bit more. Try adding "
-"features on your own. Here are a few ideas:"
+"WebKit, including showing a document and manipulating its contents. To "
+"create a real application, you probably want to do a little bit more. Try "
+"adding features on your own. Here are a few ideas:"
msgstr ""
-#: C/message-board.c.page:376(item/p)
+#. (itstool) path: item/p
+#: C/message-board.c.page:376
msgid ""
"If you're comfortable with CSS, try changing the style of the message "
"display. CSS is easy to get started with, but increasingly more powerful. "
-"There is a wealth of CSS tutorials on the Internet, and just about everything "
-"you can do on the web, you can do in this application."
+"There is a wealth of CSS tutorials on the Internet, and just about "
+"everything you can do on the web, you can do in this application."
msgstr ""
-#: C/message-board.c.page:382(item/p)
+#. (itstool) path: item/p
+#: C/message-board.c.page:382
msgid ""
"Right now, you lose all your messages whenever you close the message board. "
"Try saving the HTML contents after each post, and loading the saved file (if "
"it exists) on startup."
msgstr ""
-#: C/message-board.c.page:390(item/p)
+#. (itstool) path: item/p
+#: C/message-board.c.page:390
msgid ""
-"If you keep your messages around for a long time, you'll start wondering when "
-"you posted them. Add a timestamp to each message when it's posted. You'll "
-"probably want to create some additional child <code>div</code> elements with "
-"different classes that you can style in the CSS."
+"If you keep your messages around for a long time, you'll start wondering "
+"when you posted them. Add a timestamp to each message when it's posted. "
+"You'll probably want to create some additional child <code>div</code> "
+"elements with different classes that you can style in the CSS."
msgstr ""
-#: C/message-board.c.page:397(item/p)
+#. (itstool) path: item/p
+#: C/message-board.c.page:397
msgid ""
"This program keeps messages around forever. Think about ways you could allow "
"the user to delete messages. Perhaps you want messages to disappear "
@@ -18374,60 +22176,51 @@ msgid ""
"These features involve exploring WebKit's DOM API more."
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/messagedialog.c.page:23(media) C/messagedialog.js.page:24(media)
-#: C/messagedialog.py.page:22(media) C/messagedialog.vala.page:21(media)
+#: C/messagedialog.c.page:23 C/messagedialog.js.page:24
+#: C/messagedialog.py.page:22 C/messagedialog.vala.page:21
msgctxt "_"
msgid ""
"external ref='media/messagedialog.png' md5='1956288274018e2386d9cba96a2101de'"
msgstr ""
"external ref='media/messagedialog.png' md5='1956288274018e2386d9cba96a2101de'"
-#: C/messagedialog.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/messagedialog.c.page:7
msgctxt "text"
msgid "MessageDialog (C)"
msgstr ""
-#: C/messagedialog.c.page:18(info/desc) C/messagedialog.py.page:18(info/desc)
-#: C/messagedialog.vala.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/messagedialog.c.page:18 C/messagedialog.py.page:18
+#: C/messagedialog.vala.page:17
msgid "A message window"
msgstr ""
-#: C/messagedialog.c.page:21(page/title) C/messagedialog.js.page:23(page/title)
-#: C/messagedialog.py.page:21(page/title)
-#: C/messagedialog.vala.page:20(page/title)
+#. (itstool) path: page/title
+#: C/messagedialog.c.page:21 C/messagedialog.js.page:23
+#: C/messagedialog.py.page:21 C/messagedialog.vala.page:20
msgid "MessageDialog"
msgstr ""
-#: C/messagedialog.c.page:24(page/p) C/messagedialog.vala.page:22(page/p)
+#. (itstool) path: page/p
+#: C/messagedialog.c.page:24 C/messagedialog.vala.page:22
msgid "A modal message dialog which can cause the world to explode."
msgstr ""
-#: C/messagedialog.c.page:25(note/p)
+#. (itstool) path: note/p
+#: C/messagedialog.c.page:25
msgid ""
-"To test out the application once it has started running, you can click on the "
-"\"Message Dialog\" tab that appears in the top menubar of the screen."
+"To test out the application once it has started running, you can click on "
+"the \"Message Dialog\" tab that appears in the top menubar of the screen."
msgstr ""
-#: C/messagedialog.c.page:29(page/code)
+#. (itstool) path: page/code
+#: C/messagedialog.c.page:29
#, no-wrap
msgid ""
"\n"
@@ -18603,55 +22396,63 @@ msgid ""
"}\n"
msgstr ""
-#: C/messagedialog.c.page:36(item/p)
+#. (itstool) path: item/p
+#: C/messagedialog.c.page:36
msgid ""
"<link href=\"http://developer.gnome.org/gio/stable/GApplication.html"
"\">GApplication</link>"
msgstr ""
-#: C/messagedialog.c.page:38(item/p)
+#. (itstool) path: item/p
+#: C/messagedialog.c.page:38
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkMessageDialog.html"
"\">GtkMessageDialog</link>"
msgstr ""
-#: C/messagedialog.c.page:39(item/p)
+#. (itstool) path: item/p
+#: C/messagedialog.c.page:39
msgid ""
"<link href=\"http://developer.gnome.org/gio/stable/GSimpleAction.html#g-"
"simple-action-new\">GSimpleAction</link>"
msgstr ""
-#: C/messagedialog.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/messagedialog.js.page:7
#, fuzzy
#| msgid "Classes in JavaScript"
msgctxt "text"
msgid "MessageDialog (JavaScript)"
msgstr "Klassen in JavaScript"
-#: C/messagedialog.js.page:20(info/desc)
+#. (itstool) path: info/desc
+#: C/messagedialog.js.page:20
msgid "A popup message attached to a window"
msgstr ""
-#: C/messagedialog.js.page:25(page/p)
+#. (itstool) path: page/p
+#: C/messagedialog.js.page:25
msgid ""
"A MessageDialog is a modal message dialog, which means a popup that you have "
"to respond to before you get back to what you were doing in the window that "
"it's attached to. This one can cause the world to explode (or at least it "
"says that it can). To make the popup appear when you run this sample, click "
-"on \"Message\" inside of its application menu -- that's the menu that appears "
-"when you click on an application's name in the upper-left screen corner, next "
-"to Activities."
+"on \"Message\" inside of its application menu -- that's the menu that "
+"appears when you click on an application's name in the upper-left screen "
+"corner, next to Activities."
msgstr ""
-#: C/messagedialog.js.page:26(note/p)
+#. (itstool) path: note/p
+#: C/messagedialog.js.page:26
msgid ""
-"The difference between a MessageDialog and a <link xref=\"dialog.js\">Dialog</"
-"link> is that a Dialog can contain whatever widgets and content you want to "
-"put in it, whereas a MessageDialog is just a convenient way to make popups "
-"appear with a basic message and buttons."
+"The difference between a MessageDialog and a <link xref=\"dialog.js"
+"\">Dialog</link> is that a Dialog can contain whatever widgets and content "
+"you want to put in it, whereas a MessageDialog is just a convenient way to "
+"make popups appear with a basic message and buttons."
msgstr ""
-#: C/messagedialog.js.page:43(section/code)
+#. (itstool) path: section/code
+#: C/messagedialog.js.page:43
#, no-wrap
msgid ""
"\n"
@@ -18681,16 +22482,18 @@ msgid ""
" },\n"
msgstr ""
-#: C/messagedialog.js.page:70(note/p) C/switch.js.page:75(note/p)
+#. (itstool) path: note/p
+#: C/messagedialog.js.page:70 C/switch.js.page:75
msgid ""
"Before we call _buildUI to create the window and the widgets inside it, we "
-"need to call _initMenus, which tells GNOME to create the menu. We can put the "
-"actual code for _initMenus after the code for _buildUI, since it doesn't "
+"need to call _initMenus, which tells GNOME to create the menu. We can put "
+"the actual code for _initMenus after the code for _buildUI, since it doesn't "
"matter what order we put them in so long as _initMenus is called first in "
"_onStartup."
msgstr ""
-#: C/messagedialog.js.page:71(section/code)
+#. (itstool) path: section/code
+#: C/messagedialog.js.page:71
#, no-wrap
msgid ""
"\n"
@@ -18706,7 +22509,8 @@ msgid ""
" default_width: 400 });\n"
msgstr ""
-#: C/messagedialog.js.page:85(section/code)
+#. (itstool) path: section/code
+#: C/messagedialog.js.page:85
#, no-wrap
msgid ""
"\n"
@@ -18716,17 +22520,20 @@ msgid ""
" this._window.add (this.warningLabel);\n"
msgstr ""
-#: C/messagedialog.js.page:91(section/p)
+#. (itstool) path: section/p
+#: C/messagedialog.js.page:91
msgid ""
"For this example, all that we have in the window the popup comes out of is a "
"silly warning <link xref=\"label.js\">Label</link>."
msgstr ""
-#: C/messagedialog.js.page:95(section/title)
+#. (itstool) path: section/title
+#: C/messagedialog.js.page:95
msgid "Creating the application's menu"
msgstr "Entwurf des Anwendungsmenüs"
-#: C/messagedialog.js.page:96(section/code)
+#. (itstool) path: section/code
+#: C/messagedialog.js.page:96
#, no-wrap
msgid ""
"\n"
@@ -18755,7 +22562,8 @@ msgid ""
" },\n"
msgstr ""
-#: C/messagedialog.js.page:121(section/p)
+#. (itstool) path: section/p
+#: C/messagedialog.js.page:121
msgid ""
"Here, we build the <link xref=\"gmenu.js\">GMenu</link> where we'll be "
"putting the \"Message\" button which triggers the popup MessageDialog. The "
@@ -18764,13 +22572,15 @@ msgid ""
"has two options in it: Message, and Quit."
msgstr ""
-#: C/messagedialog.js.page:125(section/title)
+#. (itstool) path: section/title
+#: C/messagedialog.js.page:125
#, fuzzy
#| msgid "Creating the user interface"
msgid "Creating the MessageDialog"
msgstr "Erstellen der Benutzeroberfläche"
-#: C/messagedialog.js.page:126(section/code)
+#. (itstool) path: section/code
+#: C/messagedialog.js.page:126
#, no-wrap
msgid ""
"\n"
@@ -18789,7 +22599,8 @@ msgid ""
" },\n"
msgstr ""
-#: C/messagedialog.js.page:141(section/p)
+#. (itstool) path: section/p
+#: C/messagedialog.js.page:141
msgid ""
"To make our MessageDialog a popup attached to the main window, we set its "
"modal property to true and set it to be \"transient_for\" _window. After "
@@ -18799,23 +22610,27 @@ msgid ""
"function which handles it."
msgstr ""
-#: C/messagedialog.js.page:142(note/p)
+#. (itstool) path: note/p
+#: C/messagedialog.js.page:142
msgid "Here are some resources for making your own MessageDialogs:"
msgstr ""
-#: C/messagedialog.js.page:144(item/p)
+#. (itstool) path: item/p
+#: C/messagedialog.js.page:144
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkMessageDialog."
"html#GtkButtonsType\">List of button types</link>"
msgstr ""
-#: C/messagedialog.js.page:145(item/p)
+#. (itstool) path: item/p
+#: C/messagedialog.js.page:145
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkMessageDialog."
"html#GtkMessageType\">List of message types</link>"
msgstr ""
-#: C/messagedialog.js.page:149(section/code)
+#. (itstool) path: section/code
+#: C/messagedialog.js.page:149
#, no-wrap
msgid ""
"\n"
@@ -18842,7 +22657,8 @@ msgid ""
"});\n"
msgstr ""
-#: C/messagedialog.js.page:172(section/p)
+#. (itstool) path: section/p
+#: C/messagedialog.js.page:172
msgid ""
"This function takes two parameters, the MessageDialog and its response_id, "
"both of which are automatically supplied (you don't have to manually pass "
@@ -18853,7 +22669,8 @@ msgid ""
"afterwards."
msgstr ""
-#: C/messagedialog.js.page:174(section/code)
+#. (itstool) path: section/code
+#: C/messagedialog.js.page:174
#, no-wrap
msgid ""
"\n"
@@ -18862,13 +22679,15 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/messagedialog.js.page:179(section/p)
+#. (itstool) path: section/p
+#: C/messagedialog.js.page:179
msgid ""
-"Finally, we create a new instance of the finished MessageDialogExample class, "
-"and set the application running."
+"Finally, we create a new instance of the finished MessageDialogExample "
+"class, and set the application running."
msgstr ""
-#: C/messagedialog.js.page:184(section/code)
+#. (itstool) path: section/code
+#: C/messagedialog.js.page:184
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -18995,27 +22814,31 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/messagedialog.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/messagedialog.py.page:7
msgctxt "text"
msgid "MessageDialog (Python)"
msgstr ""
-#: C/messagedialog.py.page:23(page/p)
+#. (itstool) path: page/p
+#: C/messagedialog.py.page:23
msgid ""
"A message dialog which prints messages on the terminal, depending on your "
"choices."
msgstr ""
-#: C/messagedialog.py.page:30(section/code)
+#. (itstool) path: section/code
+#: C/messagedialog.py.page:30
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import Gio\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
"\n"
-" # constructor for a window (the parent window) with a label\n"
+" # constructor for a window (the parent window) with a label\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"GMenu Example\", application=app)\n"
" self.set_default_size(400, 200)\n"
@@ -19048,8 +22871,8 @@ msgid ""
" def dialog_response(self, widget, response_id):\n"
" # if the button clicked gives response OK (-5)\n"
" if response_id == Gtk.ResponseType.OK:\n"
-"\t\t print \"*boom*\"\n"
-"\t\t# if the button clicked gives response CANCEL (-6)\n"
+" print \"*boom*\"\n"
+" # if the button clicked gives response CANCEL (-6)\n"
" elif response_id == Gtk.ResponseType.CANCEL:\n"
" print \"good choice\"\n"
" # if the messagedialog is destroyed (by pressing ESC)\n"
@@ -19058,7 +22881,9 @@ msgid ""
" # finally, destroy the messagedialog\n"
" widget.destroy()\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -19069,7 +22894,7 @@ msgid ""
" def quit_cb(self, action, parameter):\n"
" self.quit()\n"
"\n"
-" def do_startup (self):\n"
+" def do_startup(self):\n"
" Gtk.Application.do_startup(self)\n"
"\n"
" # create a menu (a Gio.Menu)\n"
@@ -19084,34 +22909,38 @@ msgid ""
" # a new simpleaction - for the application\n"
" quit_action = Gio.SimpleAction.new(\"quit\", None)\n"
" quit_action.connect(\"activate\", self.quit_cb)\n"
-" self.add_action (quit_action)\n"
+" self.add_action(quit_action)\n"
"\n"
"app = MyApplication()\n"
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
msgstr ""
-#: C/messagedialog.py.page:35(section/title)
+#. (itstool) path: section/title
+#: C/messagedialog.py.page:35
msgid "Useful methods for a MessageDialog widget"
msgstr ""
-#: C/messagedialog.py.page:36(section/p)
+#. (itstool) path: section/p
+#: C/messagedialog.py.page:36
msgid ""
"In line 18 the signal <code>\"activate\"</code> is connected to the callback "
-"function <code>message_cb()</code> using <code><var>widget</var>.connect"
-"(<var>signal</var>, <var>callback function</var>)</code>. See <link xref="
-"\"signals-callbacks.py\"/> for a more detailed explanation."
+"function <code>message_cb()</code> using <code><var>widget</var>."
+"connect(<var>signal</var>, <var>callback function</var>)</code>. See <link "
+"xref=\"signals-callbacks.py\"/> for a more detailed explanation."
msgstr ""
-#: C/messagedialog.py.page:38(item/p)
+#. (itstool) path: item/p
+#: C/messagedialog.py.page:38
msgid ""
"In the constructor of MessageDialog we could set flags as <code>Gtk."
"DialogFlags.DESTROY_WITH_PARENT</code> (to destroy the messagedialog window "
-"when its parent window is destroyed) or as <code>Gtk.DialogFlags.MODAL</code> "
-"(no interaction with other windows of the application)."
+"when its parent window is destroyed) or as <code>Gtk.DialogFlags.MODAL</"
+"code> (no interaction with other windows of the application)."
msgstr ""
-#: C/messagedialog.py.page:39(item/p)
+#. (itstool) path: item/p
+#: C/messagedialog.py.page:39
msgid ""
"In the constructor of MessageDialog we could set type as any of <code>Gtk."
"MessageType.INFO, Gtk.MessageType.WARNING, Gtk.MessageType.QUESTION, Gtk."
@@ -19119,7 +22948,8 @@ msgid ""
"message we want."
msgstr ""
-#: C/messagedialog.py.page:40(item/p)
+#. (itstool) path: item/p
+#: C/messagedialog.py.page:40
msgid ""
"In the constructor of MessageDialog we could set buttons as any of <code>Gtk."
"ButtonsType.NONE, Gtk.ButtonsType.OK, Gtk.ButtonsType.CLOSE, Gtk.ButtonsType."
@@ -19127,13 +22957,15 @@ msgid ""
"button using <code>add_button()</code> as in Gtk.Dialog."
msgstr ""
-#: C/messagedialog.py.page:41(item/p)
+#. (itstool) path: item/p
+#: C/messagedialog.py.page:41
msgid ""
-"We could substitute the default image of the MessageDialog with another image "
-"using"
+"We could substitute the default image of the MessageDialog with another "
+"image using"
msgstr ""
-#: C/messagedialog.py.page:42(item/code)
+#. (itstool) path: item/code
+#: C/messagedialog.py.page:42
#, no-wrap
msgid ""
"\n"
@@ -19143,7 +22975,8 @@ msgid ""
"messagedialog.set_image(image)"
msgstr ""
-#: C/messagedialog.py.page:47(item/p)
+#. (itstool) path: item/p
+#: C/messagedialog.py.page:47
msgid ""
"where <code>Gtk.STOCK_CAPS_LOCK_WARNING</code> is any image from <link href="
"\"http://developer.gnome.org/gtk3/unstable/gtk3-Stock-Items.html\">Stock "
@@ -19151,30 +22984,39 @@ msgid ""
"<code>image.set_from_file(\"filename.png\")</code>."
msgstr ""
-#: C/messagedialog.py.page:48(item/p)
+#. (itstool) path: item/p
+#: C/messagedialog.py.page:48
msgid ""
"<code>format_secondary_text(\"some secondary message\")</code> sets a "
"secondary message. The primary text becomes bold."
msgstr ""
-#: C/messagedialog.py.page:58(item/p)
+#. (itstool) path: item/p
+#: C/messagedialog.py.page:58
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkMessageDialog.html"
"\">GtkMessageDialog</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkMessageDialog.html"
+"\">GtkMessageDialog</link>"
-#: C/messagedialog.py.page:62(item/p)
+#. (itstool) path: item/p
+#: C/messagedialog.py.page:62
msgid ""
"<link href=\"http://developer.gnome.org/gio/unstable/GActionMap.html"
"\">GActionMap</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gio/unstable/GActionMap.html"
+"\">GActionMap</link>"
-#: C/messagedialog.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/messagedialog.vala.page:7
msgctxt "text"
msgid "MessageDialog (Vala)"
msgstr ""
-#: C/messagedialog.vala.page:24(page/code)
+#. (itstool) path: page/code
+#: C/messagedialog.vala.page:24
#, no-wrap
msgid ""
"\n"
@@ -19251,152 +23093,183 @@ msgid ""
"}\n"
msgstr ""
-#: C/messagedialog.vala.page:30(item/p)
+#. (itstool) path: item/p
+#: C/messagedialog.vala.page:30
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ResponseType.html\">Gtk."
"ResponseType</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ResponseType.html\">Gtk."
+"ResponseType</link>"
-#: C/messagedialog.vala.page:31(item/p)
+#. (itstool) path: item/p
+#: C/messagedialog.vala.page:31
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.MessageDialog.html\">Gtk."
"MessageDialog</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.MessageDialog.html\">Gtk."
+"MessageDialog</link>"
-#: C/messagedialog.vala.page:32(item/p)
+#. (itstool) path: item/p
+#: C/messagedialog.vala.page:32
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.DialogFlags.html\">Gtk."
"DialogFlags</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.DialogFlags.html\">Gtk."
+"DialogFlags</link>"
-#: C/messagedialog.vala.page:33(item/p)
+#. (itstool) path: item/p
+#: C/messagedialog.vala.page:33
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.MessageType.html\">Gtk."
"MessageType</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.MessageType.html\">Gtk."
+"MessageType</link>"
-#: C/messagedialog.vala.page:34(item/p)
+#. (itstool) path: item/p
+#: C/messagedialog.vala.page:34
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ButtonsType.html\">Gtk."
"ButtonsType</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ButtonsType.html\">Gtk."
+"ButtonsType</link>"
-#: C/model-view-controller.py.page:8(info/title)
+#. (itstool) path: info/title
+#: C/model-view-controller.py.page:8
msgctxt "text"
msgid "The Model/View/Controller design (Python)"
msgstr ""
-#: C/model-view-controller.py.page:13(info/desc)
-#: C/model-view-controller.py.page:26(page/title)
+#. (itstool) path: info/desc
+#. (itstool) path: page/title
+#: C/model-view-controller.py.page:13 C/model-view-controller.py.page:26
msgid "The Model/View/Controller design"
msgstr ""
-#: C/model-view-controller.py.page:31(section/title)
-#: C/properties.py.page:31(section/title)
-#: C/signals-callbacks.py.page:31(section/title)
+#. (itstool) path: section/title
+#: C/model-view-controller.py.page:31 C/properties.py.page:31
+#: C/signals-callbacks.py.page:31
msgid "Overview"
msgstr "Überblick"
-#: C/model-view-controller.py.page:33(section/p)
+#. (itstool) path: section/p
+#: C/model-view-controller.py.page:33
msgid ""
"Both the <link xref=\"treeview_simple_liststore.py\">TreeView</link> and the "
-"<link xref=\"combobox.py\">ComboBox</link> widgets are built on the <em>Model/"
-"View/Controller</em> design. The <em>Model</em> (an implementation of "
-"<code>Gtk.TreeModel</code>, usually <code>Gtk.TreeStore</code> or <code>Gtk."
-"ListStore</code>) stores the data; the <em>View</em> (e.g. <code>Gtk."
-"TreeView</code>, <code>Gtk.ComboBox</code>, or <code>Gtk.ComboBoxText</code>) "
-"gets change notifications and displays the content of the model. The "
-"<em>Controller</em>, finally, changes the state of the model (via some "
-"methods in the model's implementation - such as <code>append()</code> or "
-"<code>remove()</code>) and notifies the view of these changes (via signals "
-"like <code>\"changed\"</code>)."
-msgstr ""
-
-#: C/model-view-controller.py.page:38(section/title)
+"<link xref=\"combobox.py\">ComboBox</link> widgets are built on the "
+"<em>Model/View/Controller</em> design. The <em>Model</em> (an implementation "
+"of <code>Gtk.TreeModel</code>, usually <code>Gtk.TreeStore</code> or "
+"<code>Gtk.ListStore</code>) stores the data; the <em>View</em> (e.g. "
+"<code>Gtk.TreeView</code>, <code>Gtk.ComboBox</code>, or <code>Gtk."
+"ComboBoxText</code>) gets change notifications and displays the content of "
+"the model. The <em>Controller</em>, finally, changes the state of the model "
+"(via some methods in the model's implementation - such as <code>append()</"
+"code> or <code>remove()</code>) and notifies the view of these changes (via "
+"signals like <code>\"changed\"</code>)."
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/model-view-controller.py.page:38
msgid "The Model"
msgstr "Das Modell"
-#: C/model-view-controller.py.page:40(section/p)
+#. (itstool) path: section/p
+#: C/model-view-controller.py.page:40
msgid ""
"The main difference between the two main implementations of <code>Gtk."
"TreeModel</code> is that <code>Gtk.ListStore</code> contains simple rows of "
"data without children, whereas <code>Gtk.TreeStore</code> also contains rows "
-"of data, but each row may have child rows (which in turn can have child rows, "
-"and so on)."
+"of data, but each row may have child rows (which in turn can have child "
+"rows, and so on)."
msgstr ""
-#: C/model-view-controller.py.page:42(section/p)
+#. (itstool) path: section/p
+#: C/model-view-controller.py.page:42
msgid ""
"The data in the Model can be retrieved or modified using the tree iter and "
"column index, or <code>Gtk.TreeIter</code>, or <code>Gtk.TreePath</code>."
msgstr ""
-#: C/model-view-controller.py.page:44(section/p)
+#. (itstool) path: section/p
+#: C/model-view-controller.py.page:44
msgid ""
"As with Python's built-in list object you can use <code>len()</code> to get "
"the number of rows and use slices to retrieve or set values. Otherwise, the "
"method <code>append()</code> returns a <code>Gtk.TreeIter</code> instance, "
-"which points to the location of the newly inserted row. You can also retrieve "
-"a <code>Gtk.TreeIter</code> by calling <code>get_iter()</code>."
+"which points to the location of the newly inserted row. You can also "
+"retrieve a <code>Gtk.TreeIter</code> by calling <code>get_iter()</code>."
msgstr ""
-#: C/model-view-controller.py.page:46(section/p)
+#. (itstool) path: section/p
+#: C/model-view-controller.py.page:46
msgid ""
-"As <code>Gtk.ListStore</code> contains only one level, i.e. nodes do not have "
-"any child nodes, a path is essentially the index of the row you want to "
+"As <code>Gtk.ListStore</code> contains only one level, i.e. nodes do not "
+"have any child nodes, a path is essentially the index of the row you want to "
"access. In the case of <code>Gtk.TreeStore</code>, a path is a list of "
"indexes or a string. The string form is a list of numbers separated by a "
"colon. Each number refers to the offset at that level. Thus, the path <code>"
-"\"0\"</code> refers to the root node and the path <code>\"2:4\"</code> refers "
-"to the fifth child of the third node."
+"\"0\"</code> refers to the root node and the path <code>\"2:4\"</code> "
+"refers to the fifth child of the third node."
msgstr ""
-#: C/model-view-controller.py.page:48(section/p)
+#. (itstool) path: section/p
+#: C/model-view-controller.py.page:48
msgid "Useful methods for a <code>Gtk.TreeModel</code>:"
msgstr ""
-#: C/model-view-controller.py.page:50(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:50
msgid ""
"<code>get_iter(path)</code> returns a <code>Gtk.TreeIter</code> instance "
"pointing to <code>path</code>. This is expected to be a colon-separated list "
"of numbers, or a tuple. For example, the string <code>\"10:4:0\"</code> is "
"equivalent to the tuple <code>(10, 4, 0)</code>, as both would create a path "
-"of depth 3 pointing to the 11th child of the root node, the 5th child of that "
-"11th child, and the 1st child of that 5th child."
+"of depth 3 pointing to the 11th child of the root node, the 5th child of "
+"that 11th child, and the 1st child of that 5th child."
msgstr ""
-#: C/model-view-controller.py.page:51(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:51
msgid ""
-"<code>iter_next(treeiter)</code> returns a <code>Gtk.TreeIter</code> instance "
-"pointing the node following treeiter at the current level or <code>None</"
-"code> if there is no next iter."
+"<code>iter_next(treeiter)</code> returns a <code>Gtk.TreeIter</code> "
+"instance pointing the node following treeiter at the current level or "
+"<code>None</code> if there is no next iter."
msgstr ""
-#: C/model-view-controller.py.page:52(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:52
msgid ""
"<code>iter_has_child(treeiter)</code> returns <code>True</code> if "
"<code>treeiter</code> has children, <code>False</code> otherwise."
msgstr ""
-#: C/model-view-controller.py.page:53(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:53
msgid ""
"<code>iter_children(treeiter)</code> returns a <code>Gtk.TreeIter</code> "
"instance pointing to the first child of <code>treeiter</code> or <code>None</"
"code> if <code>treeiter</code> has no children."
msgstr ""
-#: C/model-view-controller.py.page:54(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:54
msgid ""
"<code>get_iter_first()</code> returns a <code>Gtk.TreeIter</code> instance "
"pointing to the first iterator in the tree (the one at the path <code>\"0\"</"
"code>) or <code>None</code> if the tree is empty."
msgstr ""
-#: C/model-view-controller.py.page:57(section/p)
+#. (itstool) path: section/p
+#: C/model-view-controller.py.page:57
msgid "Useful methods for a <code>Gtk.ListStore</code>:"
msgstr ""
-#: C/model-view-controller.py.page:59(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:59
msgid ""
"<code>append(row)</code> appends a new row to this list store, where "
"<code>row</code> can be a list of values for each column; <code>row</code> "
@@ -19405,86 +23278,99 @@ msgid ""
"appended row."
msgstr ""
-#: C/model-view-controller.py.page:60(item/p)
-#: C/model-view-controller.py.page:66(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:60 C/model-view-controller.py.page:66
msgid ""
"<code>remove(iter)</code> removes <code>iter</code> from the <code>Gtk."
"ListStore</code>, and returns <code>True</code> if the iter is valid, and "
-"<code>False</code> if the iter is not. After being removed, <code>iter</code> "
-"is set to be the next valid row."
+"<code>False</code> if the iter is not. After being removed, <code>iter</"
+"code> is set to be the next valid row."
msgstr ""
-#: C/model-view-controller.py.page:63(section/p)
+#. (itstool) path: section/p
+#: C/model-view-controller.py.page:63
msgid "Useful methods for a <code>Gtk.TreeStore</code>:"
msgstr ""
-#: C/model-view-controller.py.page:65(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:65
msgid ""
"<code>append(parent, row)</code> appends a new row to this tree store; "
"<code>parent</code> must be a valid Gtk.TreeIter. If parent is not "
"<code>None</code>, then it will append the new row after the last child of "
-"parent, otherwise it will append a row to the top level; <code>row</code> can "
-"be a list of values for each column, or it can be omitted or <code>None</"
+"parent, otherwise it will append a row to the top level; <code>row</code> "
+"can be a list of values for each column, or it can be omitted or <code>None</"
"code>; in this latter case an empty row will be appended. The method returns "
"a <code>Gtk.TreeIter</code> pointing to the appended row."
msgstr ""
-#: C/model-view-controller.py.page:72(section/title)
+#. (itstool) path: section/title
+#: C/model-view-controller.py.page:72
msgid "The View: the TreeView case"
msgstr ""
-#: C/model-view-controller.py.page:74(section/p)
+#. (itstool) path: section/p
+#: C/model-view-controller.py.page:74
msgid ""
"A Treeview shows the structure of children and parent items as a tree. See "
"for instance <link xref=\"treeview_treestore.py\">this example</link>."
msgstr ""
-#: C/model-view-controller.py.page:76(section/p)
+#. (itstool) path: section/p
+#: C/model-view-controller.py.page:76
msgid ""
"The <code>Gtk.TreeViewColumn</code> is used to organize the vertical columns."
msgstr ""
-#: C/model-view-controller.py.page:78(section/p)
+#. (itstool) path: section/p
+#: C/model-view-controller.py.page:78
msgid "Useful methods for a <code>Gtk.TreeView</code>:"
msgstr ""
-#: C/model-view-controller.py.page:80(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:80
msgid ""
-"<code>set_model(model)</code> sets the model for this tree view. If this tree "
-"view already has a model set, it will remove it before setting the new model. "
-"If model is <code>None</code>, then it will unset the old model."
+"<code>set_model(model)</code> sets the model for this tree view. If this "
+"tree view already has a model set, it will remove it before setting the new "
+"model. If model is <code>None</code>, then it will unset the old model."
msgstr ""
-#: C/model-view-controller.py.page:81(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:81
msgid ""
"<code>get_model()</code> returns the model this tree view is based on, "
"<code>None</code> if the model is unset."
msgstr ""
-#: C/model-view-controller.py.page:82(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:82
msgid ""
-"<code>append_column(column)</code> appends <code>column</code> to the list of "
-"columns."
+"<code>append_column(column)</code> appends <code>column</code> to the list "
+"of columns."
msgstr ""
-#: C/model-view-controller.py.page:83(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:83
msgid ""
"<code>get_selection()</code> gets the <code>Gtk.TreeSelection</code> "
"associated with this tree view."
msgstr ""
-#: C/model-view-controller.py.page:86(section/p)
+#. (itstool) path: section/p
+#: C/model-view-controller.py.page:86
msgid "Useful methods for a <code>Gtk.TreeViewColumn</code>:"
msgstr ""
-#: C/model-view-controller.py.page:88(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:88
msgid ""
"<code>add_attribute(renderer, attribute, value)</code> adds an attribute "
"mapping to this column. <code>attribute</code> is the parameter on "
"<code>renderer</code> to be set from the <code>value</code>"
msgstr ""
-#: C/model-view-controller.py.page:89(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:89
msgid ""
"<code>pack_start(renderer, expand)</code> packs <code>renderer</code> into "
"the beginning of this column. If <code>expand</code> is <code>False</code>, "
@@ -19493,7 +23379,8 @@ msgid ""
"code>."
msgstr ""
-#: C/model-view-controller.py.page:90(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:90
msgid ""
"<code>pack_end(renderer, expand)</code> adds <code>renderer</code> to end of "
"this column. If <code>expand</code> is <code>False</code>, then "
@@ -19502,32 +23389,37 @@ msgid ""
"<code>True</code>."
msgstr ""
-#: C/model-view-controller.py.page:91(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:91
msgid ""
"<code>set_sort_column_id(sort_column_id)</code> sets the column of the model "
"by which this column (of the view) should be sorted. This also makes the "
"column header clickable."
msgstr ""
-#: C/model-view-controller.py.page:92(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:92
msgid ""
"<code>set_sort_indicator(setting)</code> sets whether a little arrow is "
"displayed in the column header; <code>setting</code> can either be "
"<code>True</code> (indicator is shown) or <code>False</code>."
msgstr ""
-#: C/model-view-controller.py.page:93(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:93
msgid ""
"<code>set_sort_order(order)</code> changes the order by which the column is "
"sorted; <code>order</code> can either be <code>Gtk.SortType.ASCENDING</code> "
"or <code>Gtk.SortType.DESCENDING</code>."
msgstr ""
-#: C/model-view-controller.py.page:99(section/title)
+#. (itstool) path: section/title
+#: C/model-view-controller.py.page:99
msgid "The View: the ComboBox case"
msgstr ""
-#: C/model-view-controller.py.page:101(section/p)
+#. (itstool) path: section/p
+#: C/model-view-controller.py.page:101
msgid ""
"A <code>Gtk.ComboBox</code> allows for the selection of an item from a "
"dropdown menu, see for instance <link xref=\"combobox.py\">this example</"
@@ -19536,27 +23428,31 @@ msgid ""
"ComboBoxText</code> can contain an entry."
msgstr ""
-#: C/model-view-controller.py.page:103(section/p)
+#. (itstool) path: section/p
+#: C/model-view-controller.py.page:103
msgid "Useful methods for a <code>Gtk.ComboBox</code>:"
msgstr ""
-#: C/model-view-controller.py.page:105(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:105
msgid ""
-"The static method <code>new_with_entry()</code> creates a new empty <code>Gtk."
-"ComboBox</code> with an entry; the static method <code>new_with_model(model)</"
-"code> creates a new one with the model initialized to <code>model</code>; and "
-"the static method <code>new_with_model_and_entry(model)</code> is a "
-"combination of the two."
+"The static method <code>new_with_entry()</code> creates a new empty "
+"<code>Gtk.ComboBox</code> with an entry; the static method "
+"<code>new_with_model(model)</code> creates a new one with the model "
+"initialized to <code>model</code>; and the static method "
+"<code>new_with_model_and_entry(model)</code> is a combination of the two."
msgstr ""
-#: C/model-view-controller.py.page:106(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:106
msgid ""
"<code>get_active_iter()</code> returns a <code>Gtk.TreeIter</code> pointing "
"to the current active item. If no active item exists, <code>None</code> is "
"returned."
msgstr ""
-#: C/model-view-controller.py.page:107(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:107
msgid ""
"<code>set_model(model)</code> sets the model used by this combo box to be "
"<code>model</code>, and it will unset a previously set model (if there is "
@@ -19564,39 +23460,45 @@ msgid ""
"model. Note that this function does not clear the cell renderers."
msgstr ""
-#: C/model-view-controller.py.page:108(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:108
msgid ""
"<code>set_entry_text_column(text_column)</code> sets the model column which "
-"this combo box should use to get strings from to be <code>text_column</code>. "
-"The column <code>text_column</code> in the model of this combo box must be of "
-"type <code>str</code> (this is only relevant if this combo box has been "
-"created with the “has-entry” property set to True)."
+"this combo box should use to get strings from to be <code>text_column</"
+"code>. The column <code>text_column</code> in the model of this combo box "
+"must be of type <code>str</code> (this is only relevant if this combo box "
+"has been created with the “has-entry” property set to True)."
msgstr ""
-#: C/model-view-controller.py.page:109(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:109
msgid ""
"<code>set_wrap_width(width)</code> sets the wrap width of this combo box to "
"be <code>width</code>. The wrap width is basically the preferred number of "
"columns when you want the popup to be layed out in a grid."
msgstr ""
-#: C/model-view-controller.py.page:112(section/p)
+#. (itstool) path: section/p
+#: C/model-view-controller.py.page:112
msgid "Useful methods for a <code>Gtk.ComboBoxText</code>:"
msgstr ""
-#: C/model-view-controller.py.page:114(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:114
msgid ""
-"The static method <code>new_with_entry()</code> creates a new empty <code>Gtk."
-"ComboBoxText</code> with an entry."
+"The static method <code>new_with_entry()</code> creates a new empty "
+"<code>Gtk.ComboBoxText</code> with an entry."
msgstr ""
-#: C/model-view-controller.py.page:115(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:115
msgid ""
"<code>append_text(text)</code> appends <code>text</code> to the list of "
"strings stored in this combo box."
msgstr ""
-#: C/model-view-controller.py.page:116(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:116
msgid ""
"<code>get_active_text()</code> returns the currently active string in this "
"combo box, or <code>None</code> if none is selected. If this combo box "
@@ -19604,40 +23506,48 @@ msgid ""
"necessarily be an item from the list)."
msgstr ""
-#: C/model-view-controller.py.page:122(section/title)
+#. (itstool) path: section/title
+#: C/model-view-controller.py.page:122
msgid "The View: the Cellrenderers"
msgstr ""
-#: C/model-view-controller.py.page:124(section/p)
+#. (itstool) path: section/p
+#: C/model-view-controller.py.page:124
msgid ""
-"The View makes use of <code>Gtk.CellRenderer</code>s of various types to draw "
-"the data."
+"The View makes use of <code>Gtk.CellRenderer</code>s of various types to "
+"draw the data."
msgstr ""
-#: C/model-view-controller.py.page:126(section/p)
+#. (itstool) path: section/p
+#: C/model-view-controller.py.page:126
msgid "Implementations of <code>Gtk.CellRenderer</code> and useful methods:"
msgstr ""
-#: C/model-view-controller.py.page:128(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:128
msgid "<code>Gtk.CellRendererText</code> - renders text in a cell"
msgstr ""
-#: C/model-view-controller.py.page:129(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:129
msgid ""
"<code>Gtk.CellRendererToggle</code> - renders a toggle or radio button in a "
"cell. Useful methods:"
msgstr ""
-#: C/model-view-controller.py.page:131(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:131
msgid ""
"<code>set_active(setting)</code> - activates or deactivates a cell renderer"
msgstr ""
-#: C/model-view-controller.py.page:132(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:132
msgid "<code>get_active()</code> - returns whether the cell renderer is active"
msgstr ""
-#: C/model-view-controller.py.page:133(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:133
msgid ""
"<code>set_radio(radio)</code> - if radio is <code>True</code>, the cell "
"renderer renders a radio toggle (i.e. a toggle in a group of mutually-"
@@ -19645,17 +23555,20 @@ msgid ""
"standalone boolean option)"
msgstr ""
-#: C/model-view-controller.py.page:134(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:134
msgid ""
"<code>get_radio()</code> - returns whether we are rendering radio toggles "
"rather than checkboxes."
msgstr ""
-#: C/model-view-controller.py.page:137(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:137
msgid "<code>Gtk.CellRendererPixbuf</code> - renders an image in a cell"
msgstr ""
-#: C/model-view-controller.py.page:138(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:138
msgid ""
"<code>Gtk.CellRendererCombo</code> - renders text in a cell; but while "
"<code>Gtk.CellRendererText</code> offers a simple entry to edit the text, "
@@ -19664,38 +23577,45 @@ msgid ""
"widget, depending on the value of the “has-entry” property."
msgstr ""
-#: C/model-view-controller.py.page:139(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:139
msgid ""
-"<code>Gtk.CellRendererProgress</code> - renders a numeric value as a progress "
-"bar in a cell; it can display a text on top of the progress bar"
+"<code>Gtk.CellRendererProgress</code> - renders a numeric value as a "
+"progress bar in a cell; it can display a text on top of the progress bar"
msgstr ""
-#: C/model-view-controller.py.page:140(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:140
msgid ""
"<code>Gtk.CellRendererSpinner</code> - renders a spinning animation in a cell"
msgstr ""
-#: C/model-view-controller.py.page:141(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:141
msgid "<code>Gtk.CellRendererSpin</code> - renders a spin button in a cell"
msgstr ""
-#: C/model-view-controller.py.page:142(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:142
msgid ""
"<code>Gtk.CellRendererAccel</code> - renders a keyboard accelerator in a cell"
msgstr ""
-#: C/model-view-controller.py.page:148(section/title)
+#. (itstool) path: section/title
+#: C/model-view-controller.py.page:148
msgid "The Controller: the Selection"
msgstr ""
-#: C/model-view-controller.py.page:150(section/p)
+#. (itstool) path: section/p
+#: C/model-view-controller.py.page:150
msgid ""
"Most applications will need to not only deal with displaying data, but also "
"receiving input events from users. To do this, simply get a reference to a "
"selection object and connect to the <code>\"changed\"</code> signal."
msgstr ""
-#: C/model-view-controller.py.page:152(section/code)
+#. (itstool) path: section/code
+#: C/model-view-controller.py.page:152
#, no-wrap
msgid ""
"\n"
@@ -19703,11 +23623,13 @@ msgid ""
"select.connect(\"changed\", on_tree_selection_changed)\n"
msgstr ""
-#: C/model-view-controller.py.page:157(section/p)
+#. (itstool) path: section/p
+#: C/model-view-controller.py.page:157
msgid "Then to retrieve data for the row selected:"
msgstr ""
-#: C/model-view-controller.py.page:159(section/code)
+#. (itstool) path: section/code
+#: C/model-view-controller.py.page:159
#, no-wrap
msgid ""
"\n"
@@ -19717,25 +23639,30 @@ msgid ""
" print \"You selected\", model[treeiter][0]\n"
msgstr ""
-#: C/model-view-controller.py.page:166(section/p)
+#. (itstool) path: section/p
+#: C/model-view-controller.py.page:166
msgid "Useful methods for a <code>Gtk.TreeSelection</code>:"
msgstr ""
-#: C/model-view-controller.py.page:169(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:169
msgid ""
"<code>set_mode(type)</code> sets the type of selection, where type is one of"
msgstr ""
-#: C/model-view-controller.py.page:171(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:171
msgid "<code>Gtk.SelectionMode.NONE</code> - no selection is possible"
msgstr ""
-#: C/model-view-controller.py.page:172(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:172
msgid ""
"<code>Gtk.SelectionMode.SINGLE</code> - zero or one element may be selected"
msgstr ""
-#: C/model-view-controller.py.page:173(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:173
msgid ""
"<code>Gtk.SelectionMode.BROWSE</code> - exactly one element is selected. In "
"some circumstances, such as initially or during a search operation, it’s "
@@ -19744,16 +23671,18 @@ msgid ""
"element."
msgstr ""
-#: C/model-view-controller.py.page:174(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:174
msgid ""
"<code>Gtk.SelectionMode.MULTIPLE</code> -any number of elements may be "
"selected. Clicks toggle the state of an item. The Ctrl key may be used to "
"enlarge the selection, and Shift key to select between the focus and the "
-"child pointed to. Some widgets may also allow Click-drag to select a range of "
-"elements."
+"child pointed to. Some widgets may also allow Click-drag to select a range "
+"of elements."
msgstr ""
-#: C/model-view-controller.py.page:177(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:177
msgid ""
"<code>get_selected()</code> returns a tuple <code>(model, treeiter)</code>, "
"where <code>model</code> is the current model and <code>treeiter</code> a "
@@ -19764,18 +23693,17 @@ msgid ""
"TreePath</code> instances of all selected rows."
msgstr ""
-#: C/model-view-controller.py.page:183(section/title)
-#: C/properties.py.page:50(section/title)
-#: C/signals-callbacks.py.page:45(section/title)
-#: C/strings.py.page:111(section/title)
+#. (itstool) path: section/title
+#: C/model-view-controller.py.page:183 C/properties.py.page:50
+#: C/signals-callbacks.py.page:45 C/strings.py.page:111
msgid "References"
msgstr "Referenzen"
-#: C/model-view-controller.py.page:186(item/p)
-#: C/treeview_advanced_liststore.py.page:44(item/p)
-#: C/treeview_cellrenderertoggle.py.page:44(item/p)
-#: C/treeview_simple_liststore.py.page:45(item/p)
-#: C/treeview_treestore.py.page:44(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:186
+#: C/treeview_advanced_liststore.py.page:44
+#: C/treeview_cellrenderertoggle.py.page:44
+#: C/treeview_simple_liststore.py.page:45 C/treeview_treestore.py.page:44
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkTreeModel.html"
"\">GtkTreeModel</link>"
@@ -19783,11 +23711,11 @@ msgstr ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkTreeModel.html"
"\">GtkTreeModel</link>"
-#: C/model-view-controller.py.page:187(item/p)
-#: C/treeview_advanced_liststore.py.page:43(item/p)
-#: C/treeview_cellrenderertoggle.py.page:43(item/p)
-#: C/treeview_simple_liststore.py.page:44(item/p)
-#: C/treeview_treestore.py.page:43(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:187
+#: C/treeview_advanced_liststore.py.page:43
+#: C/treeview_cellrenderertoggle.py.page:43
+#: C/treeview_simple_liststore.py.page:44 C/treeview_treestore.py.page:43
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkTreeView.html"
"\">GtkTreeView</link>"
@@ -19795,11 +23723,11 @@ msgstr ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkTreeView.html"
"\">GtkTreeView</link>"
-#: C/model-view-controller.py.page:188(item/p)
-#: C/treeview_advanced_liststore.py.page:47(item/p)
-#: C/treeview_cellrenderertoggle.py.page:48(item/p)
-#: C/treeview_simple_liststore.py.page:48(item/p)
-#: C/treeview_treestore.py.page:47(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:188
+#: C/treeview_advanced_liststore.py.page:47
+#: C/treeview_cellrenderertoggle.py.page:48
+#: C/treeview_simple_liststore.py.page:48 C/treeview_treestore.py.page:47
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkTreeViewColumn.html"
"\">GtkTreeViewColumn</link>"
@@ -19807,7 +23735,8 @@ msgstr ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkTreeViewColumn.html"
"\">GtkTreeViewColumn</link>"
-#: C/model-view-controller.py.page:190(item/p)
+#. (itstool) path: item/p
+#: C/model-view-controller.py.page:190
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkCellRenderer.html"
"\">GtkCellRenderer</link>"
@@ -19815,41 +23744,261 @@ msgstr ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkCellRenderer.html"
"\">GtkCellRenderer</link>"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/paned.py.page:22(media)
+#: C/paned.c.page:21 C/paned.js.page:21 C/paned.py.page:22
+#: C/paned.vala.page:21
+#, fuzzy
+#| msgctxt "_"
+#| msgid ""
+#| "external ref='media/paned.png' md5='01e36d8a51ee18313616d63d2e15d993'"
msgctxt "_"
-msgid "external ref='media/paned.png' md5='01e36d8a51ee18313616d63d2e15d993'"
+msgid "external ref='media/paned.png' md5='8c7e1df065395c9aafcd65036a293d8a'"
msgstr "external ref='media/paned.png' md5='01e36d8a51ee18313616d63d2e15d993'"
-#: C/paned.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/paned.c.page:7
#, fuzzy
#| msgid "Python"
msgctxt "text"
-msgid "Paned (Python)"
-msgstr "Python"
+msgid "Paned (C)"
+msgstr "Paned"
-#: C/paned.py.page:18(info/desc)
+#. (itstool) path: info/desc
+#: C/paned.c.page:17 C/paned.js.page:17 C/paned.py.page:18
+#: C/paned.vala.page:17
msgid "A widget with two adjustable panes"
msgstr ""
-#: C/paned.py.page:21(page/title)
+#. (itstool) path: page/title
+#: C/paned.c.page:20 C/paned.js.page:20 C/paned.py.page:21
+#: C/paned.vala.page:20
+#, fuzzy
msgid "Paned"
-msgstr ""
+msgstr "Paned"
-#: C/paned.py.page:23(page/p)
+#. (itstool) path: page/p
+#: C/paned.c.page:22 C/paned.js.page:22 C/paned.py.page:23
+#: C/paned.vala.page:22
msgid "Two images in two adjustable panes, horizontally aligned."
msgstr ""
-#: C/paned.py.page:29(section/code)
+#. (itstool) path: section/code
+#: C/paned.c.page:28
#, no-wrap
msgid ""
+"#include <gtk/gtk.h>\n"
+"\n"
+"static void\n"
+"activate (GtkApplication *app,\n"
+" gpointer user_data)\n"
+"{\n"
+" GtkWidget *paned;\n"
+" GtkWidget *window;\n"
+" GtkWidget *image1;\n"
+" GtkWidget *image2;\n"
+"\n"
+" window = gtk_application_window_new (app);\n"
+" gtk_window_set_title (GTK_WINDOW (window), \"Paned Example\");\n"
+" gtk_window_set_default_size (GTK_WINDOW (window), 450, 350);\n"
+"\n"
+" paned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);\n"
+" image1 = gtk_image_new_from_file (\"gnome-image.png\");\n"
+" image2 = gtk_image_new_from_file (\"tux.png\");\n"
+"\n"
+" gtk_paned_add1 (GTK_PANED (paned), image1);\n"
+" gtk_paned_add2 (GTK_PANED (paned), image2);\n"
+"\n"
+" gtk_container_add (GTK_CONTAINER (window), paned);\n"
+"\n"
+" gtk_widget_show_all (window);\n"
+"}\n"
+"\n"
+"int\n"
+"main (int argc, char **argv)\n"
+"{\n"
+" GtkApplication *app;\n"
+" int status;\n"
+"\n"
+" app = gtk_application_new (\"org.gtk.example\", G_APPLICATION_FLAGS_NONE);\n"
+" g_signal_connect (app, \"activate\", G_CALLBACK (activate), NULL);\n"
+" status = g_application_run (G_APPLICATION (app), argc, argv);\n"
+" g_object_unref (app);\n"
+" return status;\n"
+"}\n"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/paned.c.page:35 C/paned.py.page:41
+msgid ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkPaned.html"
+"\">GtkPaned</link>"
+msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkPaned.html"
+"\">GtkPaned</link>"
+
+#. (itstool) path: item/p
+#: C/paned.c.page:36 C/paned.js.page:36 C/paned.py.page:42
+#: C/paned.vala.page:36
+msgid ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/gtk3-Standard-"
+"Enumerations.html#GtkOrientation\">Standard Enumerations</link>"
+msgstr ""
+
+#. (itstool) path: info/title
+#: C/paned.js.page:7
+#, fuzzy
+#| msgctxt "text"
+#| msgid "Image (JavaScript)"
+msgctxt "text"
+msgid "Paned (JavaScript)"
+msgstr "Bild (JavaScript)"
+
+#. (itstool) path: section/code
+#: C/paned.js.page:28
+#, no-wrap
+msgid ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"\n"
+"const PanedExample = new Lang.Class ({\n"
+" Name: 'Paned Example',\n"
+"\n"
+" // Create the application itself\n"
+" _init: function () {\n"
+" this.application = new Gtk.Application({ application_id: 'org.example.panedexample' });\n"
+"\n"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Callback function for 'activate' signal presents windows when active\n"
+" _onActivate: function() {\n"
+" this.window.present();\n"
+" },\n"
+"\n"
+" // Callback function for 'startup' signal builds the UI\n"
+" _onStartup: function () {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+" // Build the application's UI\n"
+" _buildUI: function() {\n"
+" // Create the application window\n"
+" this.window = new Gtk.ApplicationWindow ({ application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" title: \"Paned Window Example\",\n"
+" default_width: 450,\n"
+" default_height: 350,\n"
+" border_width: 10 });\n"
+"\n"
+" // a new widget with two adjustable panes,\n"
+" // one on the left and one on the right\n"
+" this.paned = Gtk.Paned.new(Gtk.Orientation.HORIZONTAL);\n"
+"\n"
+" // two images\n"
+" this.image1 = new Gtk.Image();\n"
+" this.image1.set_from_file(\"gnome-image.png\");\n"
+" this.image2 = new Gtk.Image();\n"
+" this.image2.set_from_file(\"tux.png\");\n"
+"\n"
+" // add the first image to the left pane\n"
+" this.paned.add1(this.image1);\n"
+" // add the second image to the right pane\n"
+" this.paned.add2(this.image2)\n"
+"\n"
+" // add the panes to the window\n"
+" this.window.add(this.paned)\n"
+" this.window.show_all();\n"
+" }\n"
+"});\n"
+"\n"
+"// Run the application\n"
+"let app = new PanedExample();\n"
+"app.application.run (ARGV);\n"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/paned.js.page:35
+msgid ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Paned.html"
+"\">GtkPaned</link>"
+msgstr ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Paned.html"
+"\">GtkPaned</link>"
+
+#. (itstool) path: item/p
+#: C/paned.js.page:37 C/scrolledwindow.js.page:37
+msgid ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Image.html"
+"\">GtkImage</link>"
+msgstr ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Image.html"
+"\">GtkImage</link>"
+
+#. (itstool) path: info/title
+#: C/paned.py.page:7
+#, fuzzy
+#| msgid "Python"
+msgctxt "text"
+msgid "Paned (Python)"
+msgstr "Python"
+
+#. (itstool) path: section/code
+#: C/paned.py.page:29
+#, fuzzy, no-wrap
+#| msgid ""
+#| "from gi.repository import Gtk\n"
+#| "import sys\n"
+#| "\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"ScrolledWindow Example\", application=app)\n"
+#| " self.set_default_size(200, 200)\n"
+#| "\n"
+#| " # the scrolledwindow\n"
+#| " scrolled_window = Gtk.ScrolledWindow()\n"
+#| " scrolled_window.set_border_width(10)\n"
+#| " # there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
+#| " scrolled_window.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\n"
+#| "\n"
+#| " # an image - slightly larger than the window...\n"
+#| " image = Gtk.Image()\n"
+#| " image.set_from_file(\"gnome-image.png\")\n"
+#| "\n"
+#| " # add the image to the scrolledwindow\n"
+#| " scrolled_window.add_with_viewport(image)\n"
+#| "\n"
+#| " # add the scrolledwindow to the window\n"
+#| " self.add(scrolled_window)\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " win = MyWindow(self)\n"
+#| " win.show_all()\n"
+#| "\n"
+#| " def do_startup(self):\n"
+#| " Gtk.Application.do_startup(self)\n"
+#| "\n"
+#| "app = MyApplication()\n"
+#| "exit_status = app.run(sys.argv)\n"
+#| "sys.exit(exit_status)\n"
+msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"Paned Example\", application=app)\n"
" self.set_default_size(450, 350)\n"
@@ -19872,7 +24021,9 @@ msgid ""
" # add the panes to the window\n"
" self.add(paned)\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -19887,47 +24038,139 @@ msgid ""
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
msgstr ""
+"from gi.repository import Gtk\n"
+"import sys\n"
+"\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"ScrolledWindow Example\", application=app)\n"
+" self.set_default_size(200, 200)\n"
+"\n"
+" # the scrolledwindow\n"
+" scrolled_window = Gtk.ScrolledWindow()\n"
+" scrolled_window.set_border_width(10)\n"
+" # there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
+" scrolled_window.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\n"
+"\n"
+" # an image - slightly larger than the window...\n"
+" image = Gtk.Image()\n"
+" image.set_from_file(\"gnome-image.png\")\n"
+"\n"
+" # add the image to the scrolledwindow\n"
+" scrolled_window.add_with_viewport(image)\n"
+"\n"
+" # add the scrolledwindow to the window\n"
+" self.add(scrolled_window)\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
+"\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)\n"
-#: C/paned.py.page:33(section/title)
+#. (itstool) path: section/title
+#: C/paned.py.page:33
msgid "Useful methods for a Paned widget"
msgstr ""
-#: C/paned.py.page:34(section/p)
+#. (itstool) path: section/p
+#: C/paned.py.page:34
msgid ""
"To have two vertically aligned panes, use <code>Gtk.Orientation.VERTICAL</"
"code> instead of <code>Gtk.Orientation.HORIZONTAL</code>. The method "
-"<code>add1(widget1)</code> will add the <code>widget1</code> to the top pane, "
-"and <code>add2(widget2)</code> will add the <code>widget2</code> to the "
-"bottom pane."
+"<code>add1(widget1)</code> will add the <code>widget1</code> to the top "
+"pane, and <code>add2(widget2)</code> will add the <code>widget2</code> to "
+"the bottom pane."
msgstr ""
-#: C/paned.py.page:41(item/p)
+#. (itstool) path: info/title
+#: C/paned.vala.page:7
+#, fuzzy
+#| msgctxt "text"
+#| msgid "Window (Vala)"
+msgctxt "text"
+msgid "Paned (Vala)"
+msgstr "Fenster (Vala)"
+
+#. (itstool) path: section/code
+#: C/paned.vala.page:28
+#, no-wrap
msgid ""
-"<link href=\"http://developer.gnome.org/gtk3/stable/GtkPaned.html\">GtkPaned</"
-"link>"
+"/* This is the application. */\n"
+"public class MyApplication : Gtk.Application {\n"
+"\t/* Override the 'activate' signal of GLib.Application. */\n"
+"\tprotected override void activate () {\n"
+"\n"
+"\t\tvar window = new Gtk.ApplicationWindow (this);\n"
+"\t\twindow.title = \"Paned Example\";\n"
+"\t\twindow.set_default_size (450,350);\n"
+"\n"
+"\t\t// a new widget with two adjustable panes,\n"
+"\t\t// one on the left and one on the right\n"
+"\t\tvar paned = new Gtk.Paned (Gtk.Orientation.HORIZONTAL);\n"
+"\n"
+"\t\t/* two images */\n"
+"\t\tvar image1 = new Gtk.Image ();\n"
+"\t\timage1.set_from_file (\"gnome-image.png\");\n"
+"\t\tvar image2 = new Gtk.Image ();\n"
+"\t\timage2.set_from_file (\"tux.png\");\n"
+"\n"
+"\t\t/* add the first image to the left pane */\n"
+"\t\tpaned.add1 (image1);\n"
+"\n"
+"\t\t/* add the second image to the right pane */\n"
+"\t\tpaned.add2 (image2);\n"
+"\n"
+"\t\t/* add the panes to the window */\n"
+"\t\twindow.add (paned);\n"
+"\t\twindow.show_all ();\n"
+"\t}\n"
+"}\n"
+"\n"
+"/* main creates and runs the application. */\n"
+"public int main (string[] args) {\n"
+"\treturn new MyApplication ().run (args);\n"
+"}\n"
msgstr ""
-#: C/paned.py.page:42(item/p)
+#. (itstool) path: item/p
+#: C/paned.vala.page:35
+#, fuzzy
+#| msgid ""
+#| "<link href=\"http://developer.gnome.org/gtk3/stable/GtkRange.html"
+#| "\">GtkRange</link>"
msgid ""
-"<link href=\"http://developer.gnome.org/gtk3/stable/gtk3-Standard-"
-"Enumerations.html#GtkOrientation\">Standard Enumerations</link>"
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Paned.html\">GtkPaned</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkRange.html"
+"\">GtkRange</link>"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/photo-wall.c.page:83(media)
+#: C/photo-wall.c.page:83
msgctxt "_"
msgid ""
"external ref='media/photo-wall.png' md5='f19590d97e8ec029cda3c44b769c11cd'"
msgstr "@@image: 'media/photo-wall.png'; md5=f19590d97e8ec029cda3c44b769c11cd"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/photo-wall.c.page:86(media)
+#: C/photo-wall.c.page:86
msgctxt "_"
msgid ""
"external ref='media/photo-wall-focused.png' "
@@ -19935,62 +24178,75 @@ msgid ""
msgstr ""
"@@image: 'media/photo-wall-focused.png'; md5=9f1ceecf3a28c1e468597b093a10cbae"
-#: C/photo-wall.c.page:6(info/title)
+#. (itstool) path: info/title
+#: C/photo-wall.c.page:6
msgctxt "text"
msgid "Photo wall (C)"
msgstr ""
-#: C/photo-wall.c.page:9(info/desc)
+#. (itstool) path: info/desc
+#: C/photo-wall.c.page:9
msgid "A Clutter image viewer"
msgstr "Ein Clutter-Bildbetrachter"
-#: C/photo-wall.c.page:13(credit/name)
+#. (itstool) path: credit/name
+#: C/photo-wall.c.page:13
msgid "Chris Kühl"
msgstr "Chris Kühl"
-#: C/photo-wall.c.page:27(page/title)
+#. (itstool) path: page/title
+#: C/photo-wall.c.page:27
msgid "Photo wall"
msgstr ""
-#: C/photo-wall.c.page:30(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/photo-wall.c.page:30
msgid ""
"For this example we will build a simple image viewer using Clutter. You will "
"learn:"
msgstr ""
-#: C/photo-wall.c.page:32(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:32
msgid "How to size and position <code>ClutterActor</code>s"
msgstr ""
-#: C/photo-wall.c.page:33(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:33
msgid "How to place an image in a <code>ClutterActor</code>"
msgstr ""
-#: C/photo-wall.c.page:34(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:34
msgid "How to do simple transitions using Clutter's animation framework"
msgstr ""
-#: C/photo-wall.c.page:35(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:35
msgid "How to make <code>ClutterActor</code>s respond to mouse events"
msgstr ""
-#: C/photo-wall.c.page:36(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:36
msgid "How to get file names from a directory"
msgstr ""
-#: C/photo-wall.c.page:41(section/title)
-#: C/record-collection.js.page:39(section/title)
+#. (itstool) path: section/title
+#: C/photo-wall.c.page:41 C/record-collection.js.page:39
msgid "Introduction"
msgstr "Einführung"
-#: C/photo-wall.c.page:42(section/p)
+#. (itstool) path: section/p
+#: C/photo-wall.c.page:42
msgid ""
"Clutter is a library for creating dynamic user interfaces using OpenGL for "
-"hardware acceleration. This example demonstates a small, but central, part of "
-"the Clutter library to create a simple but attractive image viewing program."
+"hardware acceleration. This example demonstates a small, but central, part "
+"of the Clutter library to create a simple but attractive image viewing "
+"program."
msgstr ""
-#: C/photo-wall.c.page:45(section/p)
+#. (itstool) path: section/p
+#: C/photo-wall.c.page:45
msgid ""
"To help us reach our goal we will be utilising a few other common pieces of "
"GLib as well. Most importantly, we'll use one <code>GPtrArray</code>, a "
@@ -19999,54 +24255,63 @@ msgid ""
"image directory and gather file paths."
msgstr ""
-#: C/photo-wall.c.page:58(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:58
msgid ""
"Choose <gui>GTK+ (simple)</gui> from the <gui>C</gui> tab, click "
"<gui>Continue</gui>, and fill out your details on the next few pages. Use "
"<file>photo-wall</file> as project name and directory."
msgstr ""
-#: C/photo-wall.c.page:61(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:61
msgid ""
-"Make sure that <gui>Use GtkBuilder for user interface</gui> is disabled as we "
-"will create the UI manually in this tutorial. Check the <link xref=\"guitar-"
-"tuner.c\">Guitar-Tuner</link> tutorial using the interface builder."
+"Make sure that <gui>Use GtkBuilder for user interface</gui> is disabled as "
+"we will create the UI manually in this tutorial. Check the <link xref="
+"\"guitar-tuner.c\">Guitar-Tuner</link> tutorial using the interface builder."
msgstr ""
-#: C/photo-wall.c.page:66(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:66
msgid ""
"Enable <gui>Configure external packages</gui>. On the next page, select "
"<em>clutter-1.0</em> from the list to include the Clutter library in your "
"project."
msgstr ""
-#: C/photo-wall.c.page:79(section/title)
+#. (itstool) path: section/title
+#: C/photo-wall.c.page:79
msgid "A look at Photo Wall"
msgstr ""
-#: C/photo-wall.c.page:80(section/p)
+#. (itstool) path: section/p
+#: C/photo-wall.c.page:80
msgid "Our image viewer presents the user with a wall of images."
msgstr ""
-#: C/photo-wall.c.page:84(section/p)
+#. (itstool) path: section/p
+#: C/photo-wall.c.page:84
msgid ""
"When an image is clicked, it is animated to fill the viewing area. When the "
"image having focus is clicked it is returned to its original position using "
"an animation with the same duration of 500 milliseconds."
msgstr ""
-#: C/photo-wall.c.page:90(section/title)
+#. (itstool) path: section/title
+#: C/photo-wall.c.page:90
msgid "Initial setup"
-msgstr ""
+msgstr "Ersteinrichtung"
-#: C/photo-wall.c.page:91(section/p)
+#. (itstool) path: section/p
+#: C/photo-wall.c.page:91
msgid ""
-"The following code segment contains many of the defines and variables we will "
-"be using in the following sections. Use this as a reference for later "
+"The following code segment contains many of the defines and variables we "
+"will be using in the following sections. Use this as a reference for later "
"sections. Copy this code to the beginning of <file>src/main.c</file>:"
msgstr ""
-#: C/photo-wall.c.page:94(section/code)
+#. (itstool) path: section/code
+#: C/photo-wall.c.page:94
#, no-wrap
msgid ""
"\n"
@@ -20071,20 +24336,23 @@ msgid ""
"\n"
msgstr ""
-#: C/photo-wall.c.page:118(section/title)
+#. (itstool) path: section/title
+#: C/photo-wall.c.page:118
msgid "Jumping into the code"
msgstr ""
-#: C/photo-wall.c.page:119(section/p)
+#. (itstool) path: section/p
+#: C/photo-wall.c.page:119
msgid ""
"We will start by taking a look at the <code>main()</code> function as a "
"whole. Then we'll discuss the other code sections in detail. Change the "
-"<file>src/main.c</file> to contain this <code>main()</code> function. You can "
-"delete the <code>create_window()</code> function as we don't need it in this "
-"example."
+"<file>src/main.c</file> to contain this <code>main()</code> function. You "
+"can delete the <code>create_window()</code> function as we don't need it in "
+"this example."
msgstr ""
-#: C/photo-wall.c.page:122(section/code)
+#. (itstool) path: section/code
+#: C/photo-wall.c.page:122
#, no-wrap
msgid ""
"\n"
@@ -20150,71 +24418,83 @@ msgid ""
"}"
msgstr ""
-#: C/photo-wall.c.page:184(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:184
msgid ""
"Line 4: <code>ClutterColor</code> is defined by setting the red, green, blue "
"and transparency (alpha) values. The values range from 0-255. For "
"transparency a value of 255 is opaque."
msgstr ""
-#: C/photo-wall.c.page:185(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:185
msgid ""
"Line 7: You must initialize Clutter. If you forget to do this, you will get "
"very strange errors. Be warned."
msgstr ""
-#: C/photo-wall.c.page:186(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:186
msgid ""
-"Lines 10‒14: Here we create a new <code>ClutterStage</code> . We then set the "
-"size using the defines from the previous section and the address of the "
+"Lines 10‒14: Here we create a new <code>ClutterStage</code> . We then set "
+"the size using the defines from the previous section and the address of the "
"<code>ClutterColor</code> we just defined."
msgstr ""
-#: C/photo-wall.c.page:187(note/p)
+#. (itstool) path: note/p
+#: C/photo-wall.c.page:187
msgid ""
"A <code>ClutterStage</code> is the top-level <code>ClutterActor</code> onto "
"which other <code>ClutterActor</code>s are placed."
msgstr ""
-#: C/photo-wall.c.page:189(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:189
msgid ""
"Line 16: Here we call our function for getting the image file paths. We'll "
"look at this in a bit."
msgstr ""
-#: C/photo-wall.c.page:190(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:190
msgid ""
-"Lines 18‒49: This is where we set up the <code>ClutterActor</code>s, load the "
-"images and place them into their spot in the image wall. We will look at this "
-"in detail in the next section."
+"Lines 18‒49: This is where we set up the <code>ClutterActor</code>s, load "
+"the images and place them into their spot in the image wall. We will look at "
+"this in detail in the next section."
msgstr ""
-#: C/photo-wall.c.page:191(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:191
msgid ""
"Line 52: Show the stage and <em>all its children</em>, meaning our images."
msgstr ""
-#: C/photo-wall.c.page:192(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:192
msgid "Line 55: Start the Clutter main loop."
msgstr ""
-#: C/photo-wall.c.page:197(section/title)
+#. (itstool) path: section/title
+#: C/photo-wall.c.page:197
msgid "Setting up our image actors"
msgstr ""
-#: C/photo-wall.c.page:198(note/p)
+#. (itstool) path: note/p
+#: C/photo-wall.c.page:198
msgid ""
"In Clutter, an actor is the most basic visual element. Basically, everything "
"you see is an actor."
msgstr ""
-#: C/photo-wall.c.page:199(section/p)
+#. (itstool) path: section/p
+#: C/photo-wall.c.page:199
msgid ""
"In this section, we are going to take a closer look at the loop used for "
"setting up the <code>ClutterActor</code>s that will display our images."
msgstr ""
-#: C/photo-wall.c.page:202(section/code)
+#. (itstool) path: section/code
+#: C/photo-wall.c.page:202
#, no-wrap
msgid ""
"\n"
@@ -20253,22 +24533,25 @@ msgid ""
"\n"
msgstr ""
-#: C/photo-wall.c.page:238(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:238
msgid ""
"Line 7: Here we want to get the path at the <var>n</var>th location in the "
"<code>GPtrArray</code> that is holding our image path names. The <var>n</"
"var>th position is calculated based on <code>row</code> and <code>col</code>."
msgstr ""
-#: C/photo-wall.c.page:240(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:240
msgid ""
-"Line 8‒23: This is where we actually create the <code>ClutterActor</code> and "
-"place the image into the actor. The first argument is the path which we "
-"access through our <code>GSList</code> node. The second argument is for error "
-"reporting but we are ignoring that to keep things short."
+"Line 8‒23: This is where we actually create the <code>ClutterActor</code> "
+"and place the image into the actor. The first argument is the path which we "
+"access through our <code>GSList</code> node. The second argument is for "
+"error reporting but we are ignoring that to keep things short."
msgstr ""
-#: C/photo-wall.c.page:242(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:242
msgid ""
"Line 47: This adds the <code>ClutterActor</code> to the stage, which is a "
"container. It also assumes ownership of the <code>ClutterActor</code> which "
@@ -20278,17 +24561,20 @@ msgid ""
"the gory details."
msgstr ""
-#: C/photo-wall.c.page:248(section/title)
+#. (itstool) path: section/title
+#: C/photo-wall.c.page:248
msgid "Loading the images"
msgstr "Laden der Bilder"
-#: C/photo-wall.c.page:249(section/p)
+#. (itstool) path: section/p
+#: C/photo-wall.c.page:249
msgid ""
"Let's take a short break from Clutter to see how we can get the file names "
"from our image directory."
msgstr ""
-#: C/photo-wall.c.page:250(section/code)
+#. (itstool) path: section/code
+#: C/photo-wall.c.page:250
#, no-wrap
msgid ""
"\n"
@@ -20320,33 +24606,38 @@ msgid ""
"}"
msgstr ""
-#: C/photo-wall.c.page:278(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:278
msgid ""
"Lines 5 and 12: This opens our directory or, if an error occured, returns "
"after printing an error message."
msgstr ""
-#: C/photo-wall.c.page:279(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:279
msgid ""
-"Lines 16‒25: The first line gets another file name from the <code>GDir</code> "
-"we opened earlier. If there was an image file (which we check by looking at "
-"its extension, \".png\" or \".jpg\") in the directory we proceed to prepend "
-"the image directory path to the filename and prepend that to the list we set "
-"up earlier. Lastly we attempt to get the next path name and reenter the loop "
-"if another file was found."
+"Lines 16‒25: The first line gets another file name from the <code>GDir</"
+"code> we opened earlier. If there was an image file (which we check by "
+"looking at its extension, \".png\" or \".jpg\") in the directory we proceed "
+"to prepend the image directory path to the filename and prepend that to the "
+"list we set up earlier. Lastly we attempt to get the next path name and "
+"reenter the loop if another file was found."
msgstr ""
-#: C/photo-wall.c.page:284(section/title)
+#. (itstool) path: section/title
+#: C/photo-wall.c.page:284
msgid "Set up the actors"
msgstr ""
-#: C/photo-wall.c.page:285(section/p)
+#. (itstool) path: section/p
+#: C/photo-wall.c.page:285
msgid ""
"We now take a look at the sizing and positioning of <code>ClutterActor</"
"code>s and also readying the <code>ClutterActor</code> for user interaction."
msgstr ""
-#: C/photo-wall.c.page:288(section/code)
+#. (itstool) path: section/code
+#: C/photo-wall.c.page:288
#, no-wrap
msgid ""
"\n"
@@ -20365,28 +24656,33 @@ msgid ""
"}"
msgstr ""
-#: C/photo-wall.c.page:304(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:304
msgid ""
"Line 7: Setting an actor reactive means that it reacts to events, such as "
"<code>button-press-event</code> in our case. For Photo Wall, all "
"<code>ClutterActor</code>s in the wall should initially be reactive."
msgstr ""
-#: C/photo-wall.c.page:307(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:307
msgid ""
"Line 9‒12: Now we connect the <code>button-press-event</code> to the "
"<code>actor_clicked_cb</code> callback which we will look at next."
msgstr ""
-#: C/photo-wall.c.page:310(section/p)
+#. (itstool) path: section/p
+#: C/photo-wall.c.page:310
msgid "At this point we've got a wall of images that are ready to be viewed."
msgstr ""
-#: C/photo-wall.c.page:314(section/title)
+#. (itstool) path: section/title
+#: C/photo-wall.c.page:314
msgid "Reacting to the clicks"
msgstr ""
-#: C/photo-wall.c.page:318(section/code)
+#. (itstool) path: section/code
+#: C/photo-wall.c.page:318
#, no-wrap
msgid ""
"\n"
@@ -20437,7 +24733,8 @@ msgid ""
"}"
msgstr ""
-#: C/photo-wall.c.page:365(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:365
msgid ""
"Lines 1‒4: We have to make sure our callback function matches the signature "
"required for the <code>button_clicked_event</code> signal. For our example, "
@@ -20445,7 +24742,8 @@ msgid ""
"actually clicked."
msgstr ""
-#: C/photo-wall.c.page:367(note/p)
+#. (itstool) path: note/p
+#: C/photo-wall.c.page:367
msgid ""
"A few words on the arguments we are not using in this example. The "
"<code>ClutterEvent</code> is different depending on what event is being "
@@ -20456,130 +24754,144 @@ msgid ""
"documentation for other <code>ClutterEvent</code> types."
msgstr ""
-#: C/photo-wall.c.page:368(note/p)
+#. (itstool) path: note/p
+#: C/photo-wall.c.page:368
msgid ""
-"The <code>user_data</code> is what one uses to pass data into the function. A "
-"pointer to any data type can be passed in. If you need multiple data to be "
+"The <code>user_data</code> is what one uses to pass data into the function. "
+"A pointer to any data type can be passed in. If you need multiple data to be "
"passed into the callback, you can place the data into a struct and pass its "
"address in."
msgstr ""
-#: C/photo-wall.c.page:372(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:372
msgid ""
"Line 7: We set up a static flag to track which state we are in: wall mode or "
-"focus mode. We start out in wall mode so no image has focus. Thus, we set the "
-"flag to <code>FALSE</code> initially."
+"focus mode. We start out in wall mode so no image has focus. Thus, we set "
+"the flag to <code>FALSE</code> initially."
msgstr ""
-#: C/photo-wall.c.page:373(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:373
msgid ""
"Line 12‒14: These set the image actors to receive events if they are focused."
msgstr ""
-#: C/photo-wall.c.page:374(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:374
msgid ""
"Line 16‒17: Here we set the animation duration and save the current state."
msgstr ""
-#: C/photo-wall.c.page:375(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:375
msgid ""
"Lines 21‒23: Reaching this code means that one image currently has focus and "
"we want to return to wall mode. Setting a position on a <code>ClutterActor</"
"code> begins an animation with the duration that we set in line 17."
msgstr ""
-#: C/photo-wall.c.page:377(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:377
msgid ""
"Line 24: Reaching this line of code means we are currently in the wall state "
"and are about to give a <code>ClutterActor</code> focus. Here we save the "
"starting position so that we can return to it later."
msgstr ""
-#: C/photo-wall.c.page:378(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:378
msgid ""
"Line 25: Setting the <code>ClutterActor</code>'s <code>reactive</code> "
"property to <code>TRUE</code> makes this <code>ClutterActor</code> react to "
-"events. In this focused state the only <code>ClutterActor</code> that we want "
-"to receive events will be the <code>ClutterActor</code> being viewed. "
+"events. In this focused state the only <code>ClutterActor</code> that we "
+"want to receive events will be the <code>ClutterActor</code> being viewed. "
"Clicking on the <code>ClutterActor</code> will return it to its starting "
"position."
msgstr ""
-#: C/photo-wall.c.page:379(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:379
msgid ""
"Lines 27‒36: This is where we save the current position of the image, set it "
"to receive events and then make it appear above the other images and start "
"animating it to fill the stage."
msgstr ""
-#: C/photo-wall.c.page:380(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:380
msgid ""
"Line 39: Here we restore the easing state to what was set before we changed "
"it in line 16."
msgstr ""
-#: C/photo-wall.c.page:381(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:381
msgid ""
-"Line 42: Here we toggle the <code>is_focused</code> flag to the current state."
+"Line 42: Here we toggle the <code>is_focused</code> flag to the current "
+"state."
msgstr ""
-#: C/photo-wall.c.page:382(item/p)
+#. (itstool) path: item/p
+#: C/photo-wall.c.page:382
msgid ""
"As mentioned previously, the <code>ClutterActor</code>s with higher "
"<code>depth</code> values receive events but can allow <code>ClutterActor</"
"code>s below them to also receive events. Returning <code>TRUE</code> will "
-"stop events from being passed down, while <code>FALSE</code> will pass events "
-"down."
+"stop events from being passed down, while <code>FALSE</code> will pass "
+"events down."
msgstr ""
-#: C/photo-wall.c.page:384(note/p)
+#. (itstool) path: note/p
+#: C/photo-wall.c.page:384
msgid ""
-"Remember, however, that to receive events the <code>ClutterActor</code>s must "
-"be set <code>reactive</code>."
+"Remember, however, that to receive events the <code>ClutterActor</code>s "
+"must be set <code>reactive</code>."
msgstr ""
-#: C/photo-wall.c.page:392(section/p)
+#. (itstool) path: section/p
+#: C/photo-wall.c.page:392
msgid ""
"All of the code should now be ready to go. All you need now is some pictures "
"to load. By default, the pictures are loaded from a <file>berlin_images</"
"file> directory. If you want, you can change the <code>#define "
"IMAGE_DIR_PATH</code> line near the top to refer to your photo directory, or "
"create a <file>berlin_images</file> directory by clicking "
-"<guiseq><gui>Project</gui><gui>New Directory...</gui></guiseq> and creating a "
-"<file>berlin_images</file> directory as a subdirectory of the <file>photo-"
+"<guiseq><gui>Project</gui><gui>New Directory...</gui></guiseq> and creating "
+"a <file>berlin_images</file> directory as a subdirectory of the <file>photo-"
"wall</file> directory. Make sure to put at least twelve images in the "
"directory!"
msgstr ""
-#: C/photo-wall.c.page:394(section/p)
+#. (itstool) path: section/p
+#: C/photo-wall.c.page:394
msgid ""
"When you have done that, click <guiseq><gui>Build</gui><gui>Build Project</"
"gui></guiseq> to build everything again, then <guiseq><gui>Run</"
"gui><gui>Execute</gui></guiseq> to start the application."
msgstr ""
-#: C/photo-wall.c.page:395(section/p)
+#. (itstool) path: section/p
+#: C/photo-wall.c.page:395
msgid ""
"If you haven't already done so, choose the <file>Debug/src/photo-wall</file> "
-"application in the dialog that appears. Finally, hit <gui>Run</gui> and enjoy!"
+"application in the dialog that appears. Finally, hit <gui>Run</gui> and "
+"enjoy!"
msgstr ""
-#: C/photo-wall.c.page:400(section/p)
+#. (itstool) path: section/p
+#: C/photo-wall.c.page:400
msgid ""
-"If you run into problems with the tutorial, compare your code with this <link "
-"href=\"photo-wall/photo-wall.c\">reference code</link>."
+"If you run into problems with the tutorial, compare your code with this "
+"<link href=\"photo-wall/photo-wall.c\">reference code</link>."
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/progressbar.c.page:23(media) C/progressbar.vala.page:21(media)
+#: C/progressbar.c.page:23 C/progressbar.vala.page:21
msgctxt "_"
msgid ""
"external ref='media/progressbar_fill.ogv' "
@@ -20588,25 +24900,31 @@ msgstr ""
"external ref='media/progressbar_fill.ogv' "
"md5='287763d1d3f4a328212ea2243910f5e4'"
-#: C/progressbar.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/progressbar.c.page:7
msgctxt "text"
msgid "ProgressBar (C)"
msgstr ""
-#: C/progressbar.c.page:18(info/desc) C/progressbar.vala.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/progressbar.c.page:18 C/progressbar.vala.page:17
msgid "A widget which indicates progress visually"
msgstr ""
-#: C/progressbar.c.page:21(page/title) C/progressbar.js.page:19(page/title)
-#: C/progressbar.py.page:21(page/title) C/progressbar.vala.page:20(page/title)
+#. (itstool) path: page/title
+#: C/progressbar.c.page:21 C/progressbar.js.page:19 C/progressbar.py.page:21
+#: C/progressbar.vala.page:20
msgid "ProgressBar"
msgstr ""
-#: C/progressbar.c.page:24(page/p) C/progressbar.vala.page:22(page/p)
-msgid "This ProgressBar \"fills in\" by a fraction of the bar until it is full."
+#. (itstool) path: page/p
+#: C/progressbar.c.page:24 C/progressbar.vala.page:22
+msgid ""
+"This ProgressBar \"fills in\" by a fraction of the bar until it is full."
msgstr ""
-#: C/progressbar.c.page:26(page/code)
+#. (itstool) path: page/code
+#: C/progressbar.c.page:26
#, no-wrap
msgid ""
"\n"
@@ -20681,46 +24999,48 @@ msgid ""
"}\n"
msgstr ""
-#: C/progressbar.c.page:35(item/p)
+#. (itstool) path: item/p
+#: C/progressbar.c.page:35
msgid ""
"<link href=\"http://developer.gnome.org/glib/stable/glib-The-Main-Event-Loop."
"html#g-timeout-add\">G_Timeout</link>"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/progressbar.js.page:20(media) C/progressbar.py.page:22(media)
+#: C/progressbar.js.page:20 C/progressbar.py.page:22
msgctxt "_"
msgid ""
"external ref='media/progressbar.ogv' md5='36deab3dd4b5be968828fa2ef416d612'"
msgstr ""
"external ref='media/progressbar.ogv' md5='36deab3dd4b5be968828fa2ef416d612'"
-#: C/progressbar.js.page:6(info/title)
+#. (itstool) path: info/title
+#: C/progressbar.js.page:6
msgctxt "text"
msgid "ProgressBar (JavaScript)"
msgstr ""
-#: C/progressbar.js.page:16(info/desc)
+#. (itstool) path: info/desc
+#: C/progressbar.js.page:16
msgid "A bar which animates to indicate progress"
msgstr ""
-#: C/progressbar.js.page:24(div/p) C/progressbar.py.page:26(div/p)
+#. (itstool) path: div/p
+#: C/progressbar.js.page:24 C/progressbar.py.page:26
msgid "Pressing any key stops and starts this ProgressBar."
msgstr ""
-#: C/progressbar.js.page:31(page/p) C/progressbar.py.page:33(page/p)
+#. (itstool) path: page/p
+#: C/progressbar.js.page:31 C/progressbar.py.page:33
msgid "This ProgressBar is stopped and started by pressing any key."
msgstr ""
-#: C/progressbar.js.page:33(page/code)
+#. (itstool) path: page/code
+#: C/progressbar.js.page:33
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -20806,30 +25126,36 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/progressbar.js.page:38(item/p)
+#. (itstool) path: item/p
+#: C/progressbar.js.page:38
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/GLib.html\">GLib</"
"link>"
msgstr ""
-#: C/progressbar.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/progressbar.py.page:7
msgctxt "text"
msgid "ProgressBar (Python)"
msgstr ""
-#: C/progressbar.py.page:18(info/desc)
+#. (itstool) path: info/desc
+#: C/progressbar.py.page:18
msgid "A widget which indicates progress visually."
msgstr ""
-#: C/progressbar.py.page:40(section/code)
+#. (itstool) path: section/code
+#: C/progressbar.py.page:40
#, no-wrap
msgid ""
"from gi.repository import GLib\n"
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
" # a window\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"ProgressBar Example\", application=app)\n"
" self.set_default_size(220, 20)\n"
@@ -20866,7 +25192,9 @@ msgid ""
" # call the function again\n"
" return True\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -20882,11 +25210,13 @@ msgid ""
"sys.exit(exit_status)\n"
msgstr ""
-#: C/progressbar.py.page:45(section/title)
+#. (itstool) path: section/title
+#: C/progressbar.py.page:45
msgid "Useful methods for a ProgressBar widget"
msgstr ""
-#: C/progressbar.py.page:47(item/p)
+#. (itstool) path: item/p
+#: C/progressbar.py.page:47
msgid ""
"Instead of <code>pulse()</code>, that makes the bar go back and forth, if we "
"want the ProgressBar to \"fill in\" a fraction (a <code>float</code> between "
@@ -20894,38 +25224,44 @@ msgid ""
"completed, use <code>set_fraction(fraction)</code>."
msgstr ""
-#: C/progressbar.py.page:48(item/p)
+#. (itstool) path: item/p
+#: C/progressbar.py.page:48
msgid ""
-"To set a text and show it (superimposed over the bar) use <code>set_text(<var>"
-"\"text\"</var>)</code> and <code>set_show_text(True)</code>. If a text is not "
-"set and <code>set_show_text(True)</code> the text will be the percentage of "
-"the work that has been completed."
+"To set a text and show it (superimposed over the bar) use "
+"<code>set_text(<var>\"text\"</var>)</code> and <code>set_show_text(True)</"
+"code>. If a text is not set and <code>set_show_text(True)</code> the text "
+"will be the percentage of the work that has been completed."
msgstr ""
-#: C/progressbar.py.page:56(item/p)
+#. (itstool) path: item/p
+#: C/progressbar.py.page:56
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkProgressBar.html"
"\">GtkProgressBar</link>"
msgstr ""
-#: C/progressbar.py.page:57(item/p)
+#. (itstool) path: item/p
+#: C/progressbar.py.page:57
msgid ""
"<link href=\"http://developer.gnome.org/glib/stable/glib-The-Main-Event-Loop."
"html\">GLib - The Main Event Loop</link>"
msgstr ""
-#: C/progressbar.py.page:58(item/p)
+#. (itstool) path: item/p
+#: C/progressbar.py.page:58
msgid ""
"<link href=\"http://developer.gnome.org/gdk/stable/gdk-Keyboard-Handling"
"\">Gdk - Key Values</link>"
msgstr ""
-#: C/progressbar.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/progressbar.vala.page:7
msgctxt "text"
msgid "ProgressBar (Vala)"
msgstr ""
-#: C/progressbar.vala.page:24(page/code)
+#. (itstool) path: page/code
+#: C/progressbar.vala.page:24
#, no-wrap
msgid ""
"public class MyApplication : Gtk.Application {\n"
@@ -20966,54 +25302,63 @@ msgid ""
"}\n"
msgstr ""
-#: C/progressbar.vala.page:29(item/p)
+#. (itstool) path: item/p
+#: C/progressbar.vala.page:29
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ProgressBar.html\">Gtk."
"ProgressBar</link>"
msgstr ""
-#: C/progressbar.vala.page:30(item/p)
+#. (itstool) path: item/p
+#: C/progressbar.vala.page:30
msgid ""
"<link href=\"http://www.valadoc.org/glib-2.0/GLib.Timeout.html\">GLib."
"Timeout</link>"
msgstr ""
-#: C/properties.py.page:8(info/title)
+#. (itstool) path: info/title
+#: C/properties.py.page:8
msgctxt "text"
msgid "Properties (Python)"
msgstr ""
-#: C/properties.py.page:13(info/desc)
+#. (itstool) path: info/desc
+#: C/properties.py.page:13
msgid "An explanation of properties, getters and setters."
msgstr ""
-#: C/properties.py.page:26(page/title)
+#. (itstool) path: page/title
+#: C/properties.py.page:26
msgid "Properties"
msgstr "Eigenschaften"
-#: C/properties.py.page:33(section/p)
+#. (itstool) path: section/p
+#: C/properties.py.page:33
msgid ""
-"<em>Properties</em> describe the configuration and state of widgets, and each "
-"widget has its own particular set of properties. For example, a widget such "
-"as a button or a label has the property <code>label</code> which contains the "
-"text of the widget. You can specify the name and value of any number of "
-"properties as keyword arguments when creating an instance of a widget: for "
-"example, to create a label with the text “Hello World”, an angle of 25 "
-"degrees, and aligned to the right, you can use:"
+"<em>Properties</em> describe the configuration and state of widgets, and "
+"each widget has its own particular set of properties. For example, a widget "
+"such as a button or a label has the property <code>label</code> which "
+"contains the text of the widget. You can specify the name and value of any "
+"number of properties as keyword arguments when creating an instance of a "
+"widget: for example, to create a label with the text “Hello World”, an angle "
+"of 25 degrees, and aligned to the right, you can use:"
msgstr ""
-#: C/properties.py.page:34(section/code)
+#. (itstool) path: section/code
+#: C/properties.py.page:34
#, no-wrap
msgid ""
"\n"
"label = Gtk.Label(label=\"Hello World\", angle=25, halign=Gtk.Align.END)"
msgstr ""
-#: C/properties.py.page:37(section/p)
+#. (itstool) path: section/p
+#: C/properties.py.page:37
msgid "which is equivalent to using:"
msgstr ""
-#: C/properties.py.page:38(section/code)
+#. (itstool) path: section/code
+#: C/properties.py.page:38
#, no-wrap
msgid ""
"\n"
@@ -21023,13 +25368,15 @@ msgid ""
"label.set_halign(Gtk.Align.END)"
msgstr ""
-#: C/properties.py.page:44(section/p)
+#. (itstool) path: section/p
+#: C/properties.py.page:44
msgid ""
"Once you have created such a label, you can get the text of the label with "
"<code>label.get_label()</code>, and analogously for the other properties."
msgstr ""
-#: C/properties.py.page:46(section/p)
+#. (itstool) path: section/p
+#: C/properties.py.page:46
msgid ""
"Instead of using getters and setters you can also get and set the properties "
"with <code>get_property(<var>\"prop-name\"</var>)</code> and "
@@ -21037,66 +25384,66 @@ msgid ""
"respectively."
msgstr ""
-#: C/properties.py.page:52(section/p)
+#. (itstool) path: section/p
+#: C/properties.py.page:52
msgid ""
"<link href=\"http://python-gtk-3-tutorial.readthedocs.org/en/latest/basics."
"html\">Basics - Properties</link> in Python GTK+ 3 Tutorial"
msgstr ""
-#: C/py.page:6(info/title)
+#. (itstool) path: info/title
+#: C/py.page:6
msgctxt "link"
msgid "Python"
msgstr "Python"
-#: C/py.page:20(page/title)
+#. (itstool) path: page/title
+#: C/py.page:20
msgid "Tutorials, code samples and platform demos in Python"
msgstr ""
-#: C/py.page:25(section/title) C/tutorial.py.page:30(page/title)
+#. (itstool) path: section/title
+#. (itstool) path: page/title
+#: C/py.page:25 C/tutorial.py.page:30
msgid "Tutorial for beginners"
msgstr "Tutorial für Einsteiger"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/radiobutton.c.page:24(media) C/radiobutton.py.page:23(media)
-#: C/radiobutton.vala.page:24(media)
+#: C/radiobutton.c.page:24 C/radiobutton.py.page:23 C/radiobutton.vala.page:24
msgctxt "_"
msgid ""
"external ref='media/radiobutton.png' md5='d115460280d8e41493dd98054b5822a5'"
msgstr ""
"external ref='media/radiobutton.png' md5='d115460280d8e41493dd98054b5822a5'"
-#: C/radiobutton.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/radiobutton.c.page:7
msgctxt "text"
msgid "RadioButton (C)"
-msgstr ""
+msgstr "Auswahlknopf (C)"
-#: C/radiobutton.c.page:19(info/desc)
+#. (itstool) path: info/desc
+#: C/radiobutton.c.page:19
msgid "A choice from multiple checkbuttons"
msgstr ""
-#: C/radiobutton.c.page:22(page/title) C/radiobutton.js.page:20(page/title)
-#: C/radiobutton.py.page:22(page/title) C/radiobutton.vala.page:23(page/title)
+#. (itstool) path: page/title
+#: C/radiobutton.c.page:22 C/radiobutton.js.page:20 C/radiobutton.py.page:22
+#: C/radiobutton.vala.page:23
msgid "RadioButton"
-msgstr ""
+msgstr "Auswahlknopf"
-#: C/radiobutton.c.page:25(page/p)
+#. (itstool) path: page/p
+#: C/radiobutton.c.page:25
msgid "These radiobuttons report their activity in the terminal."
msgstr ""
-#: C/radiobutton.c.page:27(page/code)
+#. (itstool) path: page/code
+#: C/radiobutton.c.page:27
#, no-wrap
msgid ""
"\n"
@@ -21199,17 +25546,19 @@ msgid ""
"}\n"
msgstr ""
-#: C/radiobutton.c.page:37(item/p) C/switch.c.page:35(item/p)
+#. (itstool) path: item/p
+#: C/radiobutton.c.page:37 C/switch.c.page:35
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkSwitch.html"
"\">GtkSwitch</link>"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/radiobutton.js.page:21(media)
+#: C/radiobutton.js.page:21
msgctxt "_"
msgid ""
"external ref='media/radiobuttontravel.png' "
@@ -21218,18 +25567,21 @@ msgstr ""
"external ref='media/radiobuttontravel.png' "
"md5='0c5f01ee160bb42716ccf5dccbd080c0'"
-#: C/radiobutton.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/radiobutton.js.page:7
#, fuzzy
#| msgid "Classes in JavaScript"
msgctxt "text"
msgid "RadioButton (JavaScript)"
msgstr "Klassen in JavaScript"
-#: C/radiobutton.js.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/radiobutton.js.page:17
msgid "Only one can be selected at a time"
msgstr ""
-#: C/radiobutton.js.page:22(page/p)
+#. (itstool) path: page/p
+#: C/radiobutton.js.page:22
msgid ""
"RadioButtons are named after old-style car radios, which had buttons for "
"switching between channel presets. Because the radio could only be tuned to "
@@ -21238,16 +25590,18 @@ msgid ""
"That's how these buttons work, too."
msgstr ""
-#: C/radiobutton.js.page:23(page/p)
+#. (itstool) path: page/p
+#: C/radiobutton.js.page:23
msgid ""
"Each RadioButton needs a text label and a group. Only one button in a group "
"can be selected at a time. You don't name each group; you just set new "
-"RadioButtons to be part of the same group as an existing one. If you create a "
-"new one outside of a group, it automatically creates a new group for it to be "
-"part of."
+"RadioButtons to be part of the same group as an existing one. If you create "
+"a new one outside of a group, it automatically creates a new group for it to "
+"be part of."
msgstr ""
-#: C/radiobutton.js.page:40(section/code)
+#. (itstool) path: section/code
+#: C/radiobutton.js.page:40
#, no-wrap
msgid ""
"\n"
@@ -21277,14 +25631,17 @@ msgid ""
" },\n"
msgstr ""
-#: C/radiobutton.js.page:66(section/p) C/togglebutton.js.page:66(section/p)
+#. (itstool) path: section/p
+#: C/radiobutton.js.page:66 C/togglebutton.js.page:66
msgid ""
"All the code for this sample goes in the RadioButtonExample class. The above "
-"code creates a <link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk."
-"Application.html\">Gtk.Application</link> for our widgets and window to go in."
+"code creates a <link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/"
+"Gtk.Application.html\">Gtk.Application</link> for our widgets and window to "
+"go in."
msgstr ""
-#: C/radiobutton.js.page:67(section/code)
+#. (itstool) path: section/code
+#: C/radiobutton.js.page:67
#, no-wrap
msgid ""
"\n"
@@ -21299,13 +25656,15 @@ msgid ""
" title: \"Travel Planning\"});\n"
msgstr ""
-#: C/radiobutton.js.page:82(section/title)
+#. (itstool) path: section/title
+#: C/radiobutton.js.page:82
#, fuzzy
#| msgid "Creating the user interface"
msgid "Creating the radiobuttons"
msgstr "Erstellen der Benutzeroberfläche"
-#: C/radiobutton.js.page:83(section/code)
+#. (itstool) path: section/code
+#: C/radiobutton.js.page:83
#, no-wrap
msgid ""
"\n"
@@ -21313,7 +25672,8 @@ msgid ""
" this._placeLabel = new Gtk.Label ({label: \"Where would you like to travel to?\"});\n"
msgstr ""
-#: C/radiobutton.js.page:88(section/p)
+#. (itstool) path: section/p
+#: C/radiobutton.js.page:88
msgid ""
"We use a <link xref=\"label.js\">Gtk.Label</link> to set each group of "
"RadioButtons apart. Nothing will stop you from putting RadioButtons from all "
@@ -21321,7 +25681,8 @@ msgid ""
"go together you need to organize things accordingly."
msgstr ""
-#: C/radiobutton.js.page:90(section/code)
+#. (itstool) path: section/code
+#: C/radiobutton.js.page:90
#, no-wrap
msgid ""
"\n"
@@ -21335,25 +25696,28 @@ msgid ""
" // this._place3.set_active (true);\n"
msgstr ""
-#: C/radiobutton.js.page:101(section/p)
+#. (itstool) path: section/p
+#: C/radiobutton.js.page:101
msgid ""
"Here are three different ways to create RadioButtons. The first is the usual "
"way, where we create a new Gtk.RadioButton and assign its properties at the "
-"same time. The second and third use functions which automatically handle some "
-"of the properties; new_from_widget takes a single argument, the RadioButton "
-"that you want to put this new one in the same group as. Meanwhile, "
-"new_with_label_from_widget takes that and the RadioButton's label at the same "
-"time."
+"same time. The second and third use functions which automatically handle "
+"some of the properties; new_from_widget takes a single argument, the "
+"RadioButton that you want to put this new one in the same group as. "
+"Meanwhile, new_with_label_from_widget takes that and the RadioButton's label "
+"at the same time."
msgstr ""
-#: C/radiobutton.js.page:102(section/p)
+#. (itstool) path: section/p
+#: C/radiobutton.js.page:102
msgid ""
"The first RadioButton in a group is the one that's selected by default. Try "
"uncommenting the last line in this sample code to see how you can set a "
"different one to be the default selection."
msgstr ""
-#: C/radiobutton.js.page:104(section/code)
+#. (itstool) path: section/code
+#: C/radiobutton.js.page:104
#, no-wrap
msgid ""
"\n"
@@ -21366,20 +25730,22 @@ msgid ""
" this._thing3 = new Gtk.RadioButton ({label: \"A spacesuit\", group: this._thing1 });\n"
msgstr ""
-#: C/radiobutton.js.page:113(section/p)
+#. (itstool) path: section/p
+#: C/radiobutton.js.page:113
msgid ""
"Here we create the label for the second group of buttons, and then create "
"them all the same way."
msgstr ""
-#: C/radiobutton.js.page:117(section/title)
-#: C/textview.js.page:131(section/title)
+#. (itstool) path: section/title
+#: C/radiobutton.js.page:117 C/textview.js.page:131
#, fuzzy
#| msgid "Creating the user interface"
msgid "Creating the rest of the user interface"
msgstr "Erstellen der Benutzeroberfläche"
-#: C/radiobutton.js.page:119(section/code)
+#. (itstool) path: section/code
+#: C/radiobutton.js.page:119
#, no-wrap
msgid ""
"\n"
@@ -21393,22 +25759,25 @@ msgid ""
" this._okButton.connect ('clicked', Lang.bind (this, this._okClicked));\n"
msgstr ""
-#: C/radiobutton.js.page:129(section/p)
+#. (itstool) path: section/p
+#: C/radiobutton.js.page:129
msgid ""
"This code creates a <link xref=\"button.js\">Gtk.Button</link> and binds it "
"to a function which will show people a silly message when they click OK, "
"depending on which RadioButtons were selected."
msgstr ""
-#: C/radiobutton.js.page:130(section/p)
+#. (itstool) path: section/p
+#: C/radiobutton.js.page:130
msgid ""
"To make sure the button's \"OK\" label shows up properly in every language "
"that GNOME is translated into, remember to use one of Gtk's <link href="
-"\"http://developer.gnome.org/gtk/2.24/gtk-Stock-Items.html\">stock button "
+"\"https://developer.gnome.org/gtk3/3.4/gtk3-Stock-Items.html\">stock button "
"types</link>."
msgstr ""
-#: C/radiobutton.js.page:132(section/code)
+#. (itstool) path: section/code
+#: C/radiobutton.js.page:132
#, no-wrap
msgid ""
"\n"
@@ -21446,7 +25815,8 @@ msgid ""
" this._window.add (this._grid);\n"
msgstr ""
-#: C/radiobutton.js.page:166(section/p)
+#. (itstool) path: section/p
+#: C/radiobutton.js.page:166
msgid ""
"We use a separate <link xref=\"grid.js\">Gtk.Grid</link> to organize each "
"group of radio buttons. This way we can change the layout with less fuss "
@@ -21454,19 +25824,22 @@ msgid ""
"sets of choices."
msgstr ""
-#: C/radiobutton.js.page:167(section/p)
+#. (itstool) path: section/p
+#: C/radiobutton.js.page:167
msgid ""
-"After we've organized them, we put them into a third, master Grid, along with "
-"the OK button. Then we attach that to the window."
+"After we've organized them, we put them into a third, master Grid, along "
+"with the OK button. Then we attach that to the window."
msgstr ""
-#: C/radiobutton.js.page:175(section/p)
+#. (itstool) path: section/p
+#: C/radiobutton.js.page:175
msgid ""
"Finally, we tell the window and everything inside it to become visible when "
"the application is run."
msgstr ""
-#: C/radiobutton.js.page:181(section/code)
+#. (itstool) path: section/code
+#: C/radiobutton.js.page:181
#, no-wrap
msgid ""
"\n"
@@ -21489,16 +25862,18 @@ msgid ""
" },\n"
msgstr ""
-#: C/radiobutton.js.page:200(section/p)
+#. (itstool) path: section/p
+#: C/radiobutton.js.page:200
msgid ""
-"When you click OK, a <link xref=\"messagedialog.js\">Gtk.MessageDialog</link> "
-"appears. This function creates and displays the popup window, then binds its "
-"OK button to a function that closes it. What text appears in the popup "
-"depends on the _messageText() function, which returns a different value "
-"depending on which set of options you chose."
+"When you click OK, a <link xref=\"messagedialog.js\">Gtk.MessageDialog</"
+"link> appears. This function creates and displays the popup window, then "
+"binds its OK button to a function that closes it. What text appears in the "
+"popup depends on the _messageText() function, which returns a different "
+"value depending on which set of options you chose."
msgstr ""
-#: C/radiobutton.js.page:202(section/code)
+#. (itstool) path: section/code
+#: C/radiobutton.js.page:202
#, no-wrap
msgid ""
"\n"
@@ -21546,7 +25921,8 @@ msgid ""
" },\n"
msgstr ""
-#: C/radiobutton.js.page:246(section/p)
+#. (itstool) path: section/p
+#: C/radiobutton.js.page:246
msgid ""
"The get_active() method is how we can tell which RadioButton's pressed in. "
"This function returns a different silly message depending on which set of "
@@ -21554,7 +25930,8 @@ msgid ""
"property."
msgstr ""
-#: C/radiobutton.js.page:248(section/code)
+#. (itstool) path: section/code
+#: C/radiobutton.js.page:248
#, no-wrap
msgid ""
"\n"
@@ -21567,13 +25944,15 @@ msgid ""
"});\n"
msgstr ""
-#: C/radiobutton.js.page:257(section/p)
+#. (itstool) path: section/p
+#: C/radiobutton.js.page:257
msgid ""
"This function is called when the MessageDialog's OK button is pressed. It "
"simply makes the popup go away."
msgstr ""
-#: C/radiobutton.js.page:259(section/code)
+#. (itstool) path: section/code
+#: C/radiobutton.js.page:259
#, no-wrap
msgid ""
"\n"
@@ -21582,13 +25961,15 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/radiobutton.js.page:264(section/p) C/togglebutton.js.page:143(section/p)
+#. (itstool) path: section/p
+#: C/radiobutton.js.page:264 C/togglebutton.js.page:143
msgid ""
"Finally, we create a new instance of the finished RadioButtonExample class, "
"and set the application running."
msgstr ""
-#: C/radiobutton.js.page:269(section/code)
+#. (itstool) path: section/code
+#: C/radiobutton.js.page:269
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -21781,56 +26162,128 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/radiobutton.js.page:277(item/p) C/statusbar.js.page:224(item/p)
-#: C/textview.js.page:251(item/p)
+#. (itstool) path: item/p
+#: C/radiobutton.js.page:277 C/statusbar.js.page:224 C/textview.js.page:251
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Button.html"
"\">Gtk.Button</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Button.html"
+"\">Gtk.Button</link>"
-#: C/radiobutton.js.page:278(item/p) C/scale.js.page:212(item/p)
-#: C/spinbutton.js.page:203(item/p) C/switch.js.page:269(item/p)
-#: C/textview.js.page:252(item/p) C/togglebutton.js.page:156(item/p)
+#. (itstool) path: item/p
+#: C/radiobutton.js.page:278 C/scale.js.page:212 C/spinbutton.js.page:203
+#: C/switch.js.page:269 C/textview.js.page:252 C/togglebutton.js.page:156
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Grid.html"
"\">Gtk.Grid</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Grid.html"
+"\">Gtk.Grid</link>"
-#: C/radiobutton.js.page:279(item/p) C/scale.js.page:213(item/p)
-#: C/spinbutton.js.page:204(item/p) C/switch.js.page:271(item/p)
-#: C/textview.js.page:253(item/p)
+#. (itstool) path: item/p
+#: C/radiobutton.js.page:279 C/scale.js.page:213 C/spinbutton.js.page:204
+#: C/switch.js.page:271 C/textview.js.page:253
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Label.html"
"\">Gtk.Label</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Label.html"
+"\">Gtk.Label</link>"
-#: C/radiobutton.js.page:280(item/p) C/textview.js.page:254(item/p)
+#. (itstool) path: item/p
+#: C/radiobutton.js.page:280 C/textview.js.page:254
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.RadioButton."
"html\">Gtk.RadioButton</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.RadioButton."
+"html\">Gtk.RadioButton</link>"
-#: C/radiobutton.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/radiobutton.py.page:7
msgctxt "text"
msgid "RadioButton (Python)"
msgstr ""
-#: C/radiobutton.py.page:19(info/desc)
+#. (itstool) path: info/desc
+#: C/radiobutton.py.page:19
msgid "Mutually exclusive buttons."
msgstr ""
-#: C/radiobutton.py.page:24(page/p)
+#. (itstool) path: page/p
+#: C/radiobutton.py.page:24
msgid ""
"Three RadioButtons. You can see in the terminal if they are turned off or on."
msgstr ""
-#: C/radiobutton.py.page:30(section/code)
-#, no-wrap
+#. (itstool) path: section/code
+#: C/radiobutton.py.page:30
+#, fuzzy, no-wrap
+#| msgid ""
+#| "from gi.repository import Gtk\n"
+#| "import sys\n"
+#| "\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " # a window\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"Switch Example\", application=app)\n"
+#| " self.set_default_size(300, 100)\n"
+#| " self.set_border_width(10)\n"
+#| "\n"
+#| " # a switch\n"
+#| " switch = Gtk.Switch()\n"
+#| " # turned on by default\n"
+#| " switch.set_active(True)\n"
+#| " # connect the signal notify::active emitted by the switch\n"
+#| " # to the callback function activate_cb\n"
+#| " switch.connect(\"notify::active\", self.activate_cb)\n"
+#| "\n"
+#| " # a label\n"
+#| " label = Gtk.Label()\n"
+#| " label.set_text(\"Title\")\n"
+#| "\n"
+#| " # a grid to allocate the widgets\n"
+#| " grid = Gtk.Grid()\n"
+#| " grid.set_column_spacing (10);\n"
+#| " grid.attach (label, 0, 0, 1, 1);\n"
+#| " grid.attach (switch, 1, 0, 1, 1);\n"
+#| "\n"
+#| " # add the grid to the window\n"
+#| " self.add(grid)\n"
+#| "\n"
+#| " # Callback function. Since the signal is notify::active\n"
+#| " # we need the argument 'active'\n"
+#| " def activate_cb(self, button, active):\n"
+#| " # if the button (i.e. the switch) is active, set the title\n"
+#| " # of the window to \"Switch Example\"\n"
+#| " if button.get_active():\n"
+#| " self.set_title(\"Switch Example\")\n"
+#| " # else, set it to \"\" (empty string)\n"
+#| " else:\n"
+#| " self.set_title(\"\")\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " win = MyWindow(self)\n"
+#| " win.show_all()\n"
+#| "\n"
+#| " def do_startup(self):\n"
+#| " Gtk.Application.do_startup(self)\n"
+#| "\n"
+#| "app = MyApplication()\n"
+#| "exit_status = app.run(sys.argv)\n"
+#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"RadioButton Example\", application=app)\n"
" self.set_default_size(250, 100)\n"
@@ -21854,7 +26307,8 @@ msgid ""
"\n"
" # another radiobutton, in the same group as button1,\n"
" # with label \"Button 3\"\n"
-" button3 = Gtk.RadioButton.new_with_label_from_widget(button1, \"Button 3\")\n"
+" button3 = Gtk.RadioButton.new_with_label_from_widget(\n"
+" button1, \"Button 3\")\n"
" # connect the signal \"toggled\" emitted by the radiobutton\n"
" # with the callback function toggled_cb\n"
" button3.connect(\"toggled\", self.toggled_cb)\n"
@@ -21863,9 +26317,9 @@ msgid ""
"\n"
" # a grid to place the buttons\n"
" grid = Gtk.Grid.new()\n"
-" grid.attach(button1, 0, 0, 1, 1);\n"
-" grid.attach(button2, 0, 1, 1, 1);\n"
-" grid.attach(button3, 0, 2, 1, 1);\n"
+" grid.attach(button1, 0, 0, 1, 1)\n"
+" grid.attach(button2, 0, 1, 1, 1)\n"
+" grid.attach(button3, 0, 2, 1, 1)\n"
" # add the grid to the window\n"
" self.add(grid)\n"
"\n"
@@ -21883,7 +26337,9 @@ msgid ""
" # print on the terminal which button was turned on/off\n"
" print button.get_label() + \" was turned \" + state\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -21898,27 +26354,87 @@ msgid ""
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
msgstr ""
+"from gi.repository import Gtk\n"
+"import sys\n"
+"\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+" # a window\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"Switch Example\", application=app)\n"
+" self.set_default_size(300, 100)\n"
+" self.set_border_width(10)\n"
+"\n"
+" # a switch\n"
+" switch = Gtk.Switch()\n"
+" # turned on by default\n"
+" switch.set_active(True)\n"
+" # connect the signal notify::active emitted by the switch\n"
+" # to the callback function activate_cb\n"
+" switch.connect(\"notify::active\", self.activate_cb)\n"
+"\n"
+" # a label\n"
+" label = Gtk.Label()\n"
+" label.set_text(\"Title\")\n"
+"\n"
+" # a grid to allocate the widgets\n"
+" grid = Gtk.Grid()\n"
+" grid.set_column_spacing (10);\n"
+" grid.attach (label, 0, 0, 1, 1);\n"
+" grid.attach (switch, 1, 0, 1, 1);\n"
+"\n"
+" # add the grid to the window\n"
+" self.add(grid)\n"
+"\n"
+" # Callback function. Since the signal is notify::active\n"
+" # we need the argument 'active'\n"
+" def activate_cb(self, button, active):\n"
+" # if the button (i.e. the switch) is active, set the title\n"
+" # of the window to \"Switch Example\"\n"
+" if button.get_active():\n"
+" self.set_title(\"Switch Example\")\n"
+" # else, set it to \"\" (empty string)\n"
+" else:\n"
+" self.set_title(\"\")\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
+"\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)\n"
-#: C/radiobutton.py.page:34(section/title)
+#. (itstool) path: section/title
+#: C/radiobutton.py.page:34
msgid "Useful methods for a RadioButton widget"
msgstr ""
-#: C/radiobutton.py.page:35(section/p)
+#. (itstool) path: section/p
+#: C/radiobutton.py.page:35
msgid ""
"In line 16 the signal <code>\"toggled\"</code> is connected to the callback "
-"function <code>toggled_cb()</code> using <code><var>widget</var>.connect"
-"(<var>signal</var>, <var>callback function</var>)</code>. See <link xref="
-"\"signals-callbacks.py\"/> for a more detailed explanation."
+"function <code>toggled_cb()</code> using <code><var>widget</var>."
+"connect(<var>signal</var>, <var>callback function</var>)</code>. See <link "
+"xref=\"signals-callbacks.py\"/> for a more detailed explanation."
msgstr ""
-#: C/radiobutton.py.page:37(section/p)
+#. (itstool) path: section/p
+#: C/radiobutton.py.page:37
msgid ""
"As seen in <link xref=\"properties.py\"/>, instead of <code>button1 = Gtk."
"RadioButton(label=\"Button 1\")</code> we could create the button and label "
"it with"
msgstr ""
-#: C/radiobutton.py.page:38(section/code)
+#. (itstool) path: section/code
+#: C/radiobutton.py.page:38
#, no-wrap
msgid ""
"\n"
@@ -21926,7 +26442,8 @@ msgid ""
"button1.set_label(\"Button 1\")."
msgstr ""
-#: C/radiobutton.py.page:41(section/p)
+#. (itstool) path: section/p
+#: C/radiobutton.py.page:41
msgid ""
"Yet another way to create a new RadioButton with a label is <code>button1 = "
"Gtk.RadioButton.new_with_label(None, \"Button 1\")</code> (the first "
@@ -21934,26 +26451,31 @@ msgid ""
"<code>get_group()</code>, the second argument is the label)."
msgstr ""
-#: C/radiobutton.py.page:50(item/p)
+#. (itstool) path: item/p
+#: C/radiobutton.py.page:50
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkRadioButton.html"
"\">GtkRadioButton</link>"
msgstr ""
-#: C/radiobutton.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/radiobutton.vala.page:7
msgctxt "text"
msgid "RadioButton (Vala)"
msgstr ""
-#: C/radiobutton.vala.page:20(info/desc)
+#. (itstool) path: info/desc
+#: C/radiobutton.vala.page:20
msgid "A choice from multiple CheckButtons."
msgstr ""
-#: C/radiobutton.vala.page:25(page/p)
+#. (itstool) path: page/p
+#: C/radiobutton.vala.page:25
msgid "These RadioButtons report their activity in the terminal."
msgstr ""
-#: C/radiobutton.vala.page:27(page/code)
+#. (itstool) path: page/code
+#: C/radiobutton.vala.page:27
#, no-wrap
msgid ""
"public class MyWindow : Gtk.ApplicationWindow {\n"
@@ -22021,17 +26543,19 @@ msgid ""
"}\n"
msgstr ""
-#: C/radiobutton.vala.page:32(item/p)
+#. (itstool) path: item/p
+#: C/radiobutton.vala.page:32
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.RadioButton.html\">Gtk."
"RadioButton</link>"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/record-collection.js.page:69(media)
+#: C/record-collection.js.page:69
msgctxt "_"
msgid ""
"external ref='media/record-collection.png' "
@@ -22039,38 +26563,45 @@ msgid ""
msgstr ""
"@@image: 'media/record-collection.png'; md5=2d645997687ed5aacd36aafafc16e072"
-#: C/record-collection.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/record-collection.js.page:7
msgctxt "text"
msgid "Record collection (JavaScript)"
msgstr ""
-#: C/record-collection.js.page:10(info/desc)
+#. (itstool) path: info/desc
+#: C/record-collection.js.page:10
msgid "Create a small database application for ordering your music collection"
msgstr ""
"Erstellung einer kleinen Datenbankanwendung zum Verwalten Ihrer Musiksammlung"
-#: C/record-collection.js.page:28(page/title)
+#. (itstool) path: page/title
+#: C/record-collection.js.page:28
msgid "Record collection"
msgstr ""
-#: C/record-collection.js.page:33(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:33
msgid "How to connect to a database using libgda"
msgstr "eine Verbindung zu einer Datenbank mittels libgda erstellt wird"
-#: C/record-collection.js.page:34(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:34
msgid "How to insert and browse records in a database table"
msgstr ""
"Datensätze in eine Datenbanktabelle eingefügt werden oder wie die Tabelle "
"durchsucht werden kann"
-#: C/record-collection.js.page:40(section/p)
+#. (itstool) path: section/p
+#: C/record-collection.js.page:40
msgid ""
"This demo uses the Javascript language. We are going to demonstrate how to "
"connect and use a database from a GTK program, by using the GDA (GNOME Data "
"Access) library. Thus you also need this library installed."
msgstr ""
-#: C/record-collection.js.page:43(section/p)
+#. (itstool) path: section/p
+#: C/record-collection.js.page:43
msgid ""
"GNOME Data Access (GDA) is library whose purpose is to provide universal "
"access to different kinds and types of data sources. This goes from "
@@ -22080,7 +26611,8 @@ msgid ""
"gnome.org/devel/libgda/stable/\">GDA website</link>."
msgstr ""
-#: C/record-collection.js.page:46(section/p)
+#. (itstool) path: section/p
+#: C/record-collection.js.page:46
msgid ""
"Although a big part of the code is related to user interface (GUI), we are "
"going to focus our tutorial on the database parts (we might mention other "
@@ -22089,25 +26621,29 @@ msgid ""
"tutorial."
msgstr ""
-#: C/record-collection.js.page:59(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:59
msgid ""
"Choose <gui>Generic Javascript</gui> from the <gui>JS</gui> tab, click "
"<gui>Forward</gui>, and fill-out your details on the next few pages. Use "
"<file>record-collection</file> as project name and directory."
msgstr ""
-#: C/record-collection.js.page:62(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:62
msgid ""
"Click <gui>Finished</gui> and the project will be created for you. Open "
-"<file>src/main.js</file> from the <gui>Project</gui> or <gui>File</gui> tabs. "
-"It contains very basic example code."
+"<file>src/main.js</file> from the <gui>Project</gui> or <gui>File</gui> "
+"tabs. It contains very basic example code."
msgstr ""
-#: C/record-collection.js.page:68(section/title)
+#. (itstool) path: section/title
+#: C/record-collection.js.page:68
msgid "Program Structure"
msgstr "Programmstruktur"
-#: C/record-collection.js.page:70(section/p)
+#. (itstool) path: section/p
+#: C/record-collection.js.page:70
msgid ""
"This demo is a simple GTK application (with a single window) capable of "
"inserting records into a database table as well as browsing all records of "
@@ -22118,15 +26654,18 @@ msgid ""
"refreshed every time a new record is inserted and on the application startup."
msgstr ""
-#: C/record-collection.js.page:75(section/title)
+#. (itstool) path: section/title
+#: C/record-collection.js.page:75
msgid "Starting the fun"
msgstr ""
-#: C/record-collection.js.page:76(section/p)
+#. (itstool) path: section/p
+#: C/record-collection.js.page:76
msgid "Let's start by examining the skeleton of the program:"
msgstr ""
-#: C/record-collection.js.page:77(section/code)
+#. (itstool) path: section/code
+#: C/record-collection.js.page:77
#, no-wrap
msgid ""
"\n"
@@ -22148,42 +26687,48 @@ msgid ""
" }\n"
"}\n"
"\n"
-"Gtk.init (0, null);\n"
+"Gtk.init (null, null);\n"
"\n"
"var demo = new Demo ();\n"
"\n"
"Gtk.main ();"
msgstr ""
-#: C/record-collection.js.page:102(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:102
msgid ""
"Lines 1‒4: Initial imports. Pay special attention to line 3, which tells "
"Javascript to import the GDA library, our focus in this tutorial."
msgstr ""
-#: C/record-collection.js.page:103(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:103
msgid ""
"Lines 6‒17: Define our <code>Demo</code> class. Pay special attention to "
"lines 13‒15, where we call 3 methods which will do the whole job. They will "
"be detailed below."
msgstr ""
-#: C/record-collection.js.page:104(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:104
msgid "Lines 19‒23: Start the application."
msgstr ""
-#: C/record-collection.js.page:109(section/title)
+#. (itstool) path: section/title
+#: C/record-collection.js.page:109
msgid "Designing the application"
msgstr "Entwurf der Anwendung"
-#: C/record-collection.js.page:110(section/p)
+#. (itstool) path: section/p
+#: C/record-collection.js.page:110
msgid ""
"Let's take a look at the <code>setupWindow</code> method. It is responsible "
-"for creating the User Interface (UI). As UI is not our focus, we will explain "
-"only the relevant parts."
+"for creating the User Interface (UI). As UI is not our focus, we will "
+"explain only the relevant parts."
msgstr ""
-#: C/record-collection.js.page:111(section/code)
+#. (itstool) path: section/code
+#: C/record-collection.js.page:111
#, no-wrap
msgid ""
"\n"
@@ -22237,42 +26782,49 @@ msgid ""
" },"
msgstr ""
-#: C/record-collection.js.page:161(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:161
msgid ""
"Lines 22 and 27: Create the 2 entries (for the two fields) in which users "
"will type something to get inserted in the database."
msgstr ""
-#: C/record-collection.js.page:162(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:162
msgid ""
"Lines 31‒34: Create the Insert button. We connect its <code>clicked</code> "
"signal to the <code>_insertClicked</code> private method of the class. This "
"method is detailed below."
msgstr ""
-#: C/record-collection.js.page:163(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:163
msgid ""
"Line 39: Create the widget (<code>TextView</code>) where we will show the "
"contents of the table."
msgstr ""
-#: C/record-collection.js.page:164(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:164
msgid ""
"Line 44: Create the label where we will show the number of records in the "
"table. Initially it's empty, it will be updated later."
msgstr ""
-#: C/record-collection.js.page:169(section/title)
+#. (itstool) path: section/title
+#: C/record-collection.js.page:169
msgid "Connecting to and initializing the database"
msgstr ""
-#: C/record-collection.js.page:170(section/p)
+#. (itstool) path: section/p
+#: C/record-collection.js.page:170
msgid ""
"The code which makes the connection to the database is in the "
"<code>setupDatabase</code> method below:"
msgstr ""
-#: C/record-collection.js.page:173(section/code)
+#. (itstool) path: section/code
+#: C/record-collection.js.page:173
#, no-wrap
msgid ""
"\n"
@@ -22289,21 +26841,24 @@ msgid ""
" },"
msgstr ""
-#: C/record-collection.js.page:187(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:187
msgid ""
-"Lines 2‒3: Create the GDA's <code>Connection</code> object. We must supply to "
-"its constructor some properties:"
+"Lines 2‒3: Create the GDA's <code>Connection</code> object. We must supply "
+"to its constructor some properties:"
msgstr ""
-#: C/record-collection.js.page:190(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:190
msgid ""
-"<code>provider</code>: One of GDA's supported providers. GDA supports SQLite, "
-"MySQL, PostgreSQL, Oracle and many others. For demo purposes we will use a "
-"SQLite database, as it comes installed by default in most distributions and "
-"it is simple to use (it just uses a file as a database)."
+"<code>provider</code>: One of GDA's supported providers. GDA supports "
+"SQLite, MySQL, PostgreSQL, Oracle and many others. For demo purposes we will "
+"use a SQLite database, as it comes installed by default in most "
+"distributions and it is simple to use (it just uses a file as a database)."
msgstr ""
-#: C/record-collection.js.page:193(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:193
msgid ""
"<code>cnc_string</code>: The connection string. It may change from provider "
"to provider. The syntax for SQLite is: <code>DB_DIR=<var>PATH</var>;"
@@ -22312,7 +26867,8 @@ msgid ""
"<code>get_home_dir</code> function)."
msgstr ""
-#: C/record-collection.js.page:197(note/p)
+#. (itstool) path: note/p
+#: C/record-collection.js.page:197
msgid ""
"If the provider is not supported by GDA, or if the connection string is "
"missing some element, line 2 will raise an exception. So, in real life we "
@@ -22320,13 +26876,15 @@ msgid ""
"code>."
msgstr ""
-#: C/record-collection.js.page:201(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:201
msgid ""
-"Line 4: Open the connection. In the SQLite provider, if the database does not "
-"exist, it will be created in this step."
+"Line 4: Open the connection. In the SQLite provider, if the database does "
+"not exist, it will be created in this step."
msgstr ""
-#: C/record-collection.js.page:203(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:203
msgid ""
"Lines 6‒10: Try to do a simple select to check if the table exists (line 7). "
"If it does not exist (because the database was just created), this command "
@@ -22335,7 +26893,8 @@ msgid ""
"statement (line 9)."
msgstr ""
-#: C/record-collection.js.page:204(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:204
msgid ""
"In order to run the SQL commands above we are using global GDA functions, "
"<code>execute_select_command</code> and <code>execute_non_select_command</"
@@ -22343,23 +26902,27 @@ msgid ""
"<code>Connection</code> object and the SQL command to be parsed."
msgstr ""
-#: C/record-collection.js.page:208(section/p)
+#. (itstool) path: section/p
+#: C/record-collection.js.page:208
msgid "At this point we have the database set up, and are ready to use it."
msgstr ""
-#: C/record-collection.js.page:212(section/title)
+#. (itstool) path: section/title
+#: C/record-collection.js.page:212
msgid "Selecting"
msgstr "Auswählen"
-#: C/record-collection.js.page:213(section/p)
+#. (itstool) path: section/p
+#: C/record-collection.js.page:213
msgid ""
"After connecting to the database, our demo's constructor calls the "
-"<code>selectData</code> method. It is responsible for getting all the records "
-"in the table and showing them on the <code>TextView</code> widget. Let's take "
-"a look at it:"
+"<code>selectData</code> method. It is responsible for getting all the "
+"records in the table and showing them on the <code>TextView</code> widget. "
+"Let's take a look at it:"
msgstr ""
-#: C/record-collection.js.page:216(section/code)
+#. (itstool) path: section/code
+#: C/record-collection.js.page:216
#, no-wrap
msgid ""
"\n"
@@ -22381,20 +26944,23 @@ msgid ""
" },"
msgstr ""
-#: C/record-collection.js.page:234(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:234
msgid ""
"Line 2: The <code>SELECT</code> command. We are using the global GDA's "
"function <code>execute_select_command</code> for that. It returns a "
"<code>DataModel</code> object, which is later used to retrieve the rows."
msgstr ""
-#: C/record-collection.js.page:235(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:235
msgid ""
-"Line 3: Create an <code>Iter</code> object, which is used to iterate over the "
-"<code>DataModel</code>'s records."
+"Line 3: Create an <code>Iter</code> object, which is used to iterate over "
+"the <code>DataModel</code>'s records."
msgstr ""
-#: C/record-collection.js.page:236(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:236
msgid ""
"Line 7: Loop through all the records, fetching them with the help of the "
"<code>Iter</code> object. At this point, the <code>iter</code> variable "
@@ -22402,19 +26968,22 @@ msgid ""
"returns <code>false</code> when it reaches the last record."
msgstr ""
-#: C/record-collection.js.page:238(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:238
msgid "Lines 8‒9: We do two things in each line:"
msgstr ""
-#: C/record-collection.js.page:240(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:240
msgid ""
-"Use <code>Iter</code>'s method <code>get_value_at</code>, which requires only "
-"one argument: the column number to retrieve, starting at 0. As our "
+"Use <code>Iter</code>'s method <code>get_value_at</code>, which requires "
+"only one argument: the column number to retrieve, starting at 0. As our "
"<code>SELECT</code> command returns only two columns, we are retrieving "
"columns 0 and 1."
msgstr ""
-#: C/record-collection.js.page:241(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:241
msgid ""
"The method <code>get_value_at</code> returns the field in GLib's "
"<code>GValue</code> format. A simple way to convert this format to a string "
@@ -22423,39 +26992,45 @@ msgid ""
"code> and <code>name_field</code>."
msgstr ""
-#: C/record-collection.js.page:244(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:244
msgid ""
-"Line 11: Concatenate the two fields to make one text line, separated by <code>"
-"\"=>\"</code>, and store it in the <code>text</code> variable."
+"Line 11: Concatenate the two fields to make one text line, separated by "
+"<code>\"=>\"</code>, and store it in the <code>text</code> variable."
msgstr ""
-#: C/record-collection.js.page:245(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:245
msgid ""
-"Line 14: After the loop is finished, we have all the records formatted in the "
-"<code>text</code> variable. In this line we just set the contents of the "
+"Line 14: After the loop is finished, we have all the records formatted in "
+"the <code>text</code> variable. In this line we just set the contents of the "
"<code>TextView</code> with that variable."
msgstr ""
-#: C/record-collection.js.page:246(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:246
msgid ""
"Line 15: Display the number of records in the table, making use of the "
"<code>DataModel</code>'s <code>get_n_rows</code> method."
msgstr ""
-#: C/record-collection.js.page:251(section/title)
+#. (itstool) path: section/title
+#: C/record-collection.js.page:251
msgid "Inserting"
-msgstr ""
+msgstr "Einfügen"
-#: C/record-collection.js.page:252(section/p)
+#. (itstool) path: section/p
+#: C/record-collection.js.page:252
msgid ""
-"OK, we know how to connect to a database and how to select rows from a table. "
-"Now it's time to do an <code>INSERT</code> on the table. Do you remember "
-"above, in the method <code>setupWindow</code> we connected the <gui>Insert</"
-"gui> button's <code>clicked</code> signal to the method <code>_insertClicked</"
-"code>? Let's see the implementation of this method."
+"OK, we know how to connect to a database and how to select rows from a "
+"table. Now it's time to do an <code>INSERT</code> on the table. Do you "
+"remember above, in the method <code>setupWindow</code> we connected the "
+"<gui>Insert</gui> button's <code>clicked</code> signal to the method "
+"<code>_insertClicked</code>? Let's see the implementation of this method."
msgstr ""
-#: C/record-collection.js.page:255(section/code)
+#. (itstool) path: section/code
+#: C/record-collection.js.page:255
#, no-wrap
msgid ""
"\n"
@@ -22478,7 +27053,8 @@ msgid ""
" },"
msgstr ""
-#: C/record-collection.js.page:273(section/p)
+#. (itstool) path: section/p
+#: C/record-collection.js.page:273
msgid ""
"We have learned how to use GDA's convenience functions "
"<code>execute_select_command</code> and <code>execute_non_select_command</"
@@ -22489,63 +27065,73 @@ msgid ""
"use the same SQL dialect the provider uses). Let's study the code:"
msgstr ""
-#: C/record-collection.js.page:277(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:277
msgid ""
"Lines 2‒3: Check if the user filled all the fields. The code for the private "
"method <code>_validateFields</code> is really simple and you can read it in "
"the full demo source code."
msgstr ""
-#: C/record-collection.js.page:278(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:278
msgid ""
"Line 5: The faster way of doing the <code>INSERT</code>. It's commented out "
"as we want to show how to use the <code>SqlBuilder</code> object to build a "
"SQL statement portable across databases."
msgstr ""
-#: C/record-collection.js.page:279(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:279
msgid ""
"Line 7: Create the <code>SqlBuilder</code> object. We must pass the type of "
-"statement we are going to build. It can be <code>SELECT</code>, <code>UPDATE</"
-"code>, <code>INSERT</code> or <code>DELETE</code>."
+"statement we are going to build. It can be <code>SELECT</code>, "
+"<code>UPDATE</code>, <code>INSERT</code> or <code>DELETE</code>."
msgstr ""
-#: C/record-collection.js.page:280(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:280
msgid ""
"Line 8: Set the name of the table on which the built statement will operate "
"(it will generate <code>INSERT INTO demo</code>)"
msgstr ""
-#: C/record-collection.js.page:281(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:281
msgid ""
-"Lines 9‒10: Set the fields and its values that will be part of the statement. "
-"The first argument is the field name (as in the table). The second one is the "
-"value for that field."
+"Lines 9‒10: Set the fields and its values that will be part of the "
+"statement. The first argument is the field name (as in the table). The "
+"second one is the value for that field."
msgstr ""
-#: C/record-collection.js.page:282(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:282
msgid ""
"Line 11: Get the dynamically generated <code>Statement</code> object, which "
"represents a SQL statement."
msgstr ""
-#: C/record-collection.js.page:283(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:283
msgid "Line 12: Finally, execute the SQL statement (<code>INSERT</code>)."
msgstr ""
-#: C/record-collection.js.page:284(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:284
msgid ""
-"Line 14: Clear the id and name fields on the screen. The code for the private "
-"method <code>_clearFields</code> is really simple and you can read it in the "
-"full demo source code."
+"Line 14: Clear the id and name fields on the screen. The code for the "
+"private method <code>_clearFields</code> is really simple and you can read "
+"it in the full demo source code."
msgstr ""
-#: C/record-collection.js.page:285(item/p)
+#. (itstool) path: item/p
+#: C/record-collection.js.page:285
msgid ""
"Line 15: Refresh the view on the screen by doing another <code>SELECT</code>."
msgstr ""
-#: C/record-collection.js.page:287(note/p)
+#. (itstool) path: note/p
+#: C/record-collection.js.page:287
msgid ""
"You can also make use of parameters while building the statement. By using "
"the <code>SqlBuilder</code> objects and parameters you are less subject to "
@@ -22554,48 +27140,168 @@ msgid ""
"parameters."
msgstr ""
-#: C/record-collection.js.page:292(section/p)
+#. (itstool) path: section/p
+#: C/record-collection.js.page:292
msgid ""
-"All of the code you need should now be in place, so try running the code. You "
-"now have a database for your record collection!"
+"All of the code you need should now be in place, so try running the code. "
+"You now have a database for your record collection!"
msgstr ""
-#: C/record-collection.js.page:297(section/p)
+#. (itstool) path: section/p
+#: C/record-collection.js.page:297
msgid ""
-"If you run into problems with the tutorial, compare your code with this <link "
-"href=\"record-collection/record-collection.js\">reference code</link>."
+"If you run into problems with the tutorial, compare your code with this "
+"<link href=\"record-collection/record-collection.js\">reference code</link>."
msgstr ""
+#. (itstool) path: page/title
+#: C/response-type.page:16
+msgid "enum ResponseType"
+msgstr "enum ResponseType"
+
+#. (itstool) path: item/title
+#: C/response-type.page:20
+msgid "ResponseType.NONE = -1"
+msgstr "ResponseType.NONE = -1"
+
+#. (itstool) path: item/p
+#: C/response-type.page:21
+msgid ""
+"Returned if an action widget has no response id, or if the dialog gets "
+"programmatically hidden or destroyed"
+msgstr ""
+
+#. (itstool) path: item/title
+#: C/response-type.page:24
+msgid "ResponseType.REJECT = -2"
+msgstr "ResponseType.REJECT = -2"
+
+#. (itstool) path: item/p
+#: C/response-type.page:25 C/response-type.page:29
+msgid "Generic response id, not used by GTK+ dialogs"
+msgstr ""
+
+#. (itstool) path: item/title
+#: C/response-type.page:28
+msgid "ResponseType.ACCEPT = -3"
+msgstr "ResponseType.ACCEPT = -3"
+
+#. (itstool) path: item/title
+#: C/response-type.page:32
+msgid "ResponseType.DELETE_EVENT = -4"
+msgstr "ResponseType.DELETE_EVENT = -4"
+
+#. (itstool) path: item/p
+#: C/response-type.page:33
+msgid "Returned if the dialog is deleted"
+msgstr ""
+
+#. (itstool) path: item/title
+#: C/response-type.page:36
+msgid "ResponseType.OK = -5"
+msgstr "ResponseType.OK = -5"
+
+#. (itstool) path: item/p
+#: C/response-type.page:37
+msgid "Returned by OK buttons in GTK+ dialogs"
+msgstr ""
+
+#. (itstool) path: item/title
+#: C/response-type.page:40
+msgid "ResponseType.CANCEL = -6"
+msgstr "ResponseType.CANCEL = -6"
+
+#. (itstool) path: item/p
+#: C/response-type.page:41
+msgid "Returned by Cancel buttons in GTK+ dialogs"
+msgstr ""
+
+#. (itstool) path: item/title
+#: C/response-type.page:44
+msgid "ResponseType.CLOSE = -7"
+msgstr "ResponseType.CLOSE = -7"
+
+#. (itstool) path: item/p
+#: C/response-type.page:45
+msgid "Returned by Close buttons in GTK+ dialogs"
+msgstr ""
+
+#. (itstool) path: item/title
+#: C/response-type.page:48
+msgid "ResponseType.YES = -8"
+msgstr "ResponseType.YES = -8"
+
+#. (itstool) path: item/p
+#: C/response-type.page:49
+msgid "Returned by Yes buttons in GTK+ dialogs"
+msgstr ""
+
+#. (itstool) path: item/title
+#: C/response-type.page:52
+msgid "ResponseType.NO = -9"
+msgstr "ResponseType.NO = -9"
+
+#. (itstool) path: item/p
+#: C/response-type.page:53
+msgid "Returned by No buttons in GTK+ dialogs"
+msgstr ""
+
+#. (itstool) path: item/title
+#: C/response-type.page:56
+msgid "ResponseType.APPLY = -10"
+msgstr "ResponseType.APPLY = -10"
+
+#. (itstool) path: item/p
+#: C/response-type.page:57
+msgid "Returned by Apply buttons in GTK+ dialogs"
+msgstr ""
+
+#. (itstool) path: item/title
+#: C/response-type.page:60
+msgid "ResponseType.HELP = -11"
+msgstr "ResponseType.HELP = -11"
+
+#. (itstool) path: item/p
+#: C/response-type.page:61
+msgid "Returned by Help buttons in GTK+ dialogs"
+msgstr ""
+
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/scale.c.page:24(media)
+#: C/scale.c.page:24
msgctxt "_"
msgid "external ref='media/scale2.png' md5='ae2ba0a6675f3d9cdcd961cdf32f1a5c'"
msgstr "external ref='media/scale2.png' md5='ae2ba0a6675f3d9cdcd961cdf32f1a5c'"
-#: C/scale.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/scale.c.page:7
+#, fuzzy
msgctxt "text"
msgid "Scale (C)"
-msgstr ""
+msgstr "Skalieren"
-#: C/scale.c.page:19(info/desc) C/scale.py.page:19(info/desc)
-#: C/scale.vala.page:19(info/desc)
+#. (itstool) path: info/desc
+#: C/scale.c.page:19 C/scale.py.page:19 C/scale.vala.page:19
msgid "A slider widget for selecting a value from a range"
msgstr ""
-#: C/scale.c.page:22(page/title) C/scale.js.page:20(page/title)
-#: C/scale.py.page:22(page/title) C/scale.vala.page:22(page/title)
+#. (itstool) path: page/title
+#: C/scale.c.page:22 C/scale.js.page:20 C/scale.py.page:22
+#: C/scale.vala.page:22
+#, fuzzy
msgid "Scale"
-msgstr ""
+msgstr "Skalieren"
-#: C/scale.c.page:25(page/p) C/scale.py.page:24(page/p)
-#: C/scale.vala.page:24(page/p)
+#. (itstool) path: page/p
+#: C/scale.c.page:25 C/scale.py.page:24 C/scale.vala.page:24
msgid "Slide the scales!"
msgstr ""
-#: C/scale.c.page:27(page/code)
+#. (itstool) path: page/code
+#: C/scale.c.page:27
#, no-wrap
msgid ""
"\n"
@@ -22757,23 +27463,26 @@ msgid ""
"}\n"
msgstr ""
-#: C/scale.c.page:35(item/p)
+#. (itstool) path: item/p
+#: C/scale.c.page:35
msgid ""
-"<link href=\"http://developer.gnome.org/gtk3/stable/GtkScale.html\">GtkScale</"
-"link>"
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkScale.html"
+"\">GtkScale</link>"
msgstr ""
-"<link href=\"http://developer.gnome.org/gtk3/stable/GtkScale.html\">GtkScale</"
-"link>"
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkScale.html"
+"\">GtkScale</link>"
-#: C/scale.c.page:36(item/p)
+#. (itstool) path: item/p
+#: C/scale.c.page:36
msgid ""
-"<link href=\"http://developer.gnome.org/gtk3/stable/GtkRange.html\">GtkRange</"
-"link>"
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkRange.html"
+"\">GtkRange</link>"
msgstr ""
-"<link href=\"http://developer.gnome.org/gtk3/stable/GtkRange.html\">GtkRange</"
-"link>"
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkRange.html"
+"\">GtkRange</link>"
-#: C/scale.c.page:37(item/p) C/spinbutton.c.page:38(item/p)
+#. (itstool) path: item/p
+#: C/scale.c.page:37 C/spinbutton.c.page:38
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkAdjustment.html"
"\">GtkAdjustment</link>"
@@ -22781,7 +27490,8 @@ msgstr ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkAdjustment.html"
"\">GtkAdjustment</link>"
-#: C/scale.c.page:38(item/p)
+#. (itstool) path: item/p
+#: C/scale.c.page:38
msgid ""
"<link href=\"http://developer.gnome.org/glib/stable/glib-String-Utility-"
"Functions.html#g-strdup-printf\">String Utility Functions</link>"
@@ -22789,29 +27499,33 @@ msgstr ""
"<link href=\"http://developer.gnome.org/glib/stable/glib-String-Utility-"
"Functions.html#g-strdup-printf\">String Utility Functions</link>"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/scale.js.page:21(media)
+#: C/scale.js.page:21
msgctxt "_"
msgid ""
"external ref='media/scalepenguins.png' md5='2dbe6a833fec86fde71a5ddb421e2cd5'"
msgstr ""
"external ref='media/scalepenguins.png' md5='2dbe6a833fec86fde71a5ddb421e2cd5'"
-#: C/scale.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/scale.js.page:7
#, fuzzy
#| msgid "JavaScript"
msgctxt "text"
msgid "Scale (JavaScript)"
msgstr "JavaScript"
-#: C/scale.js.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/scale.js.page:17
msgid "A slider which corresponds to a numerical value"
msgstr ""
-#: C/scale.js.page:22(page/p)
+#. (itstool) path: page/p
+#: C/scale.js.page:22
msgid ""
"A Scale is a horizontal or vertical slider, that represents a value inside a "
"numerical range. When you create a new Scale, you set what its default "
@@ -22822,7 +27536,8 @@ msgid ""
"keeps track of all that, then tell each new Scale to use that Adjustment."
msgstr ""
-#: C/scale.js.page:23(page/p)
+#. (itstool) path: page/p
+#: C/scale.js.page:23
msgid ""
"This scale is a simple widget that lets you adjust the size of an iceberg "
"that penguins live on. The number of penguins on the iceberg is the product "
@@ -22830,7 +27545,8 @@ msgid ""
"happens."
msgstr ""
-#: C/scale.js.page:40(section/code)
+#. (itstool) path: section/code
+#: C/scale.js.page:40
#, no-wrap
msgid ""
"\n"
@@ -22859,14 +27575,17 @@ msgid ""
" },\n"
msgstr ""
-#: C/scale.js.page:65(section/p)
+#. (itstool) path: section/p
+#: C/scale.js.page:65
msgid ""
"All the code for this sample goes in the ScaleExample class. The above code "
"creates a <link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk."
-"Application.html\">Gtk.Application</link> for our widgets and window to go in."
+"Application.html\">Gtk.Application</link> for our widgets and window to go "
+"in."
msgstr ""
-#: C/scale.js.page:66(section/code)
+#. (itstool) path: section/code
+#: C/scale.js.page:66
#, no-wrap
msgid ""
"\n"
@@ -22881,13 +27600,15 @@ msgid ""
" title: \"Birds on a Floe\"});\n"
msgstr ""
-#: C/scale.js.page:81(section/title)
+#. (itstool) path: section/title
+#: C/scale.js.page:81
#, fuzzy
#| msgid "Connecting the signals"
msgid "Creating the scales"
msgstr "Verbinden der Signale"
-#: C/scale.js.page:82(section/code)
+#. (itstool) path: section/code
+#: C/scale.js.page:82
#, no-wrap
msgid ""
"\n"
@@ -22899,24 +27620,27 @@ msgid ""
" // this._hScale.set_draw_value (false);\n"
msgstr ""
-#: C/scale.js.page:91(section/p)
+#. (itstool) path: section/p
+#: C/scale.js.page:91
msgid ""
"The new_with_range method is one way to create a new Scale widget. The "
"parameters it takes are a <link href=\"http://www.roojs.org/seed/gir-1.2-"
-"gtk-3.0/gjs/Gtk.Orientation.html\">Gtk.Orientation</link>, the minimum value, "
-"the maximum value, and the increment for a single step. After that we use the "
-"Scale's methods to set its starting value, and how many decimal places it "
-"runs to. We also set its vertical alignment in this case, to control where it "
-"appears in the window."
+"gtk-3.0/gjs/Gtk.Orientation.html\">Gtk.Orientation</link>, the minimum "
+"value, the maximum value, and the increment for a single step. After that we "
+"use the Scale's methods to set its starting value, and how many decimal "
+"places it runs to. We also set its vertical alignment in this case, to "
+"control where it appears in the window."
msgstr ""
-#: C/scale.js.page:92(section/p)
+#. (itstool) path: section/p
+#: C/scale.js.page:92
msgid ""
"We can use the set_draw_value method to tell it whether or not to show the "
"number next to the sliding scale. It's commented out in this example."
msgstr ""
-#: C/scale.js.page:94(section/code)
+#. (itstool) path: section/code
+#: C/scale.js.page:94
#, no-wrap
msgid ""
"\n"
@@ -22929,16 +27653,18 @@ msgid ""
" page_increment: 10 });\n"
msgstr ""
-#: C/scale.js.page:104(section/p)
+#. (itstool) path: section/p
+#: C/scale.js.page:104
msgid ""
"An Adjustment is an object we can use to simplify things when creating a new "
"Scale. The Adjustment's \"value\" property is what the Scale's default value "
-"is, while \"upper\" and \"lower\" make the high and low ends of the numerical "
-"range. Meanwhile, the increment values show how much the slider moves when "
-"you do things like click on it."
+"is, while \"upper\" and \"lower\" make the high and low ends of the "
+"numerical range. Meanwhile, the increment values show how much the slider "
+"moves when you do things like click on it."
msgstr ""
-#: C/scale.js.page:106(section/code)
+#. (itstool) path: section/code
+#: C/scale.js.page:106
#, no-wrap
msgid ""
"\n"
@@ -22951,16 +27677,18 @@ msgid ""
" margin_left: 10 });\n"
msgstr ""
-#: C/scale.js.page:116(section/p)
+#. (itstool) path: section/p
+#: C/scale.js.page:116
msgid ""
"Here we create a new Scale object using _adjustment as its \"adjustment\" "
-"property. This is a great shortcut. We still have to tell it to round off the "
-"decimal place, though. Note that the draw_value property is commented out; "
-"this is how you tell it not to show the number next to the Scale when you're "
-"creating one this way."
+"property. This is a great shortcut. We still have to tell it to round off "
+"the decimal place, though. Note that the draw_value property is commented "
+"out; this is how you tell it not to show the number next to the Scale when "
+"you're creating one this way."
msgstr ""
-#: C/scale.js.page:118(section/code)
+#. (itstool) path: section/code
+#: C/scale.js.page:118
#, no-wrap
msgid ""
"\n"
@@ -22977,7 +27705,8 @@ msgid ""
" this._vScale.connect (\"value-changed\", Lang.bind (this, this._recalc));\n"
msgstr ""
-#: C/scale.js.page:132(section/p)
+#. (itstool) path: section/p
+#: C/scale.js.page:132
msgid ""
"We can use the get_value method to find out the numerical value a Scale is "
"set at. We can then do whatever we want with it, including multiply the two "
@@ -22986,14 +27715,16 @@ msgid ""
"it display a silly message too."
msgstr ""
-#: C/scale.js.page:133(section/p)
+#. (itstool) path: section/p
+#: C/scale.js.page:133
msgid ""
"After we create the Label, we connect the two Scales' \"value-changed\" "
"signals to _recalc, a function that will recalculate the number of penguins "
"on the iceberg and come up with a new message."
msgstr ""
-#: C/scale.js.page:135(section/code)
+#. (itstool) path: section/code
+#: C/scale.js.page:135
#, no-wrap
msgid ""
"\n"
@@ -23010,14 +27741,16 @@ msgid ""
" this._UIGrid.attach (this._vScale, 1, 0, 1, 1);\n"
msgstr ""
-#: C/scale.js.page:148(section/p)
+#. (itstool) path: section/p
+#: C/scale.js.page:148
msgid ""
"Here we create a <link xref=\"grid.js\">Grid</link> to put everything in, "
"then attach all our widgets to it. Note that here and on some of the widgets "
"themselves we're using margins to keep things neatly spaced."
msgstr ""
-#: C/scale.js.page:149(section/code)
+#. (itstool) path: section/code
+#: C/scale.js.page:149
#, no-wrap
msgid ""
"\n"
@@ -23029,17 +27762,20 @@ msgid ""
" },\n"
msgstr ""
-#: C/scale.js.page:157(section/p)
+#. (itstool) path: section/p
+#: C/scale.js.page:157
msgid ""
"Finally, we add the Grid to the window, then tell the window to show itself "
"and all the widgets inside of it."
msgstr ""
-#: C/scale.js.page:161(section/title)
+#. (itstool) path: section/title
+#: C/scale.js.page:161
msgid "Function which handles the scales' values changing"
msgstr ""
-#: C/scale.js.page:163(section/code)
+#. (itstool) path: section/code
+#: C/scale.js.page:163
#, no-wrap
msgid ""
"\n"
@@ -23071,7 +27807,8 @@ msgid ""
"});\n"
msgstr ""
-#: C/scale.js.page:191(section/p)
+#. (itstool) path: section/p
+#: C/scale.js.page:191
msgid ""
"Remember, we can get a Scale's value using its get_value method. Here we "
"simply recalculate what the product of the two values is after one of the "
@@ -23079,7 +27816,8 @@ msgid ""
"left, and change the wording on _label to show the new number and message."
msgstr ""
-#: C/scale.js.page:193(section/code)
+#. (itstool) path: section/code
+#: C/scale.js.page:193
#, no-wrap
msgid ""
"\n"
@@ -23087,14 +27825,20 @@ msgid ""
"let app = new ScaleExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"\n"
+"// Die Anwendung ausführen\n"
+"let app = new ScaleExample ();\n"
+"app.application.run (ARGV);\n"
-#: C/scale.js.page:198(section/p)
+#. (itstool) path: section/p
+#: C/scale.js.page:198
msgid ""
-"Finally, we create a new instance of the finished ScaleExample class, and set "
-"the application running."
+"Finally, we create a new instance of the finished ScaleExample class, and "
+"set the application running."
msgstr ""
-#: C/scale.js.page:203(section/code)
+#. (itstool) path: section/code
+#: C/scale.js.page:203
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -23227,46 +27971,52 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/scale.js.page:209(item/p) C/spinbutton.js.page:200(item/p)
+#. (itstool) path: item/p
+#: C/scale.js.page:209 C/spinbutton.js.page:200
msgid ""
-"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Adjustment.html"
-"\">Gtk.Adjustment</link>"
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Adjustment."
+"html\">Gtk.Adjustment</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Adjustment."
+"html\">Gtk.Adjustment</link>"
-#: C/scale.js.page:214(item/p)
+#. (itstool) path: item/p
+#: C/scale.js.page:214
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Scale.html"
"\">Gtk.Scale</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Scale.html"
+"\">Gtk.Scale</link>"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/scale.py.page:23(media) C/scale.vala.page:23(media)
+#: C/scale.py.page:23 C/scale.vala.page:23
msgctxt "_"
msgid "external ref='media/scale.png' md5='462c52a53b773cb9e8c62c646bf88452'"
msgstr "external ref='media/scale.png' md5='462c52a53b773cb9e8c62c646bf88452'"
-#: C/scale.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/scale.py.page:7
#, fuzzy
#| msgid "Python"
msgctxt "text"
msgid "Scale (Python)"
msgstr "Python"
-#: C/scale.py.page:30(section/code)
+#. (itstool) path: section/code
+#: C/scale.py.page:30
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"Scale Example\", application=app)\n"
" self.set_default_size(400, 300)\n"
@@ -23280,12 +28030,15 @@ msgid ""
" ad2 = Gtk.Adjustment(50, 0, 100, 5, 10, 0)\n"
"\n"
" # an horizontal scale\n"
-" self.h_scale = Gtk.Scale(orientation=Gtk.Orientation.HORIZONTAL, adjustment=ad1)\n"
+" self.h_scale = Gtk.Scale(\n"
+" orientation=Gtk.Orientation.HORIZONTAL, adjustment=ad1)\n"
" # of integers (no digits)\n"
" self.h_scale.set_digits(0)\n"
-" # that can expand horizontally if there is space in the grid (see below)\n"
+" # that can expand horizontally if there is space in the grid (see\n"
+" # below)\n"
" self.h_scale.set_hexpand(True)\n"
-" # that is aligned at the top of the space allowed in the grid (see below)\n"
+" # that is aligned at the top of the space allowed in the grid (see\n"
+" # below)\n"
" self.h_scale.set_valign(Gtk.Align.START)\n"
"\n"
" # we connect the signal \"value-changed\" emitted by the scale with the callback\n"
@@ -23293,7 +28046,8 @@ msgid ""
" self.h_scale.connect(\"value-changed\", self.scale_moved)\n"
"\n"
" # a vertical scale\n"
-" self.v_scale = Gtk.Scale(orientation=Gtk.Orientation.VERTICAL, adjustment=ad2)\n"
+" self.v_scale = Gtk.Scale(\n"
+" orientation=Gtk.Orientation.VERTICAL, adjustment=ad2)\n"
" # that can expand vertically if there is space in the grid (see below)\n"
" self.v_scale.set_vexpand(True)\n"
"\n"
@@ -23310,17 +28064,21 @@ msgid ""
" grid.set_column_spacing(10)\n"
" grid.set_column_homogeneous(True)\n"
" grid.attach(self.h_scale, 0, 0, 1, 1)\n"
-" grid.attach_next_to(self.v_scale, self.h_scale, Gtk.PositionType.RIGHT, 1, 1)\n"
+" grid.attach_next_to(\n"
+" self.v_scale, self.h_scale, Gtk.PositionType.RIGHT, 1, 1)\n"
" grid.attach(self.label, 0, 1, 2, 1)\n"
"\n"
" self.add(grid)\n"
"\n"
-" # any signal from the scales is signaled to the label the text of which is changed\n"
+" # any signal from the scales is signaled to the label the text of which is\n"
+" # changed\n"
" def scale_moved(self, event):\n"
" self.label.set_text(\"Horizontal scale is \" + str(int(self.h_scale.get_value())) +\n"
" \"; vertical scale is \" + str(self.v_scale.get_value()) + \".\")\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -23336,11 +28094,13 @@ msgid ""
"sys.exit(exit_status)\n"
msgstr ""
-#: C/scale.py.page:34(section/title)
+#. (itstool) path: section/title
+#: C/scale.py.page:34
msgid "Useful methods for a Scale widget"
msgstr ""
-#: C/scale.py.page:35(section/p)
+#. (itstool) path: section/p
+#: C/scale.py.page:35
msgid ""
"A Gtk.Adjustment is needed to construct the Gtk.Scale. This is the "
"representation of a value with a lower and upper bound, together with step "
@@ -23353,7 +28113,8 @@ msgid ""
"be set to <code>0</code>."
msgstr ""
-#: C/scale.py.page:36(section/p)
+#. (itstool) path: section/p
+#: C/scale.py.page:36
msgid ""
"In line 28 the signal <code>\"value-changed\"</code> is connected to the "
"callback function <code>scale_moved()</code> using <code><var>widget</var>."
@@ -23361,7 +28122,8 @@ msgid ""
"xref=\"signals-callbacks.py\"/> for a more detailed explanation."
msgstr ""
-#: C/scale.py.page:38(item/p)
+#. (itstool) path: item/p
+#: C/scale.py.page:38
msgid ""
"<code>get_value()</code> retrieves the current value of the scale; "
"<code>set_value(value)</code> sets it (if the <code>value</code>, of type "
@@ -23369,18 +28131,21 @@ msgid ""
"clamped to fit inside them). These are methods of the class Gtk.Range."
msgstr ""
-#: C/scale.py.page:39(item/p)
+#. (itstool) path: item/p
+#: C/scale.py.page:39
msgid ""
"Use <code>set_draw_value(False)</code> to avoid displaying the current value "
"as a string next to the slider."
msgstr ""
-#: C/scale.py.page:40(item/p)
+#. (itstool) path: item/p
+#: C/scale.py.page:40
msgid ""
"To highlight the part of the scale between the origin and the current value:"
msgstr ""
-#: C/scale.py.page:41(item/code)
+#. (itstool) path: item/code
+#: C/scale.py.page:41
#, no-wrap
msgid ""
"\n"
@@ -23389,54 +28154,66 @@ msgid ""
"self.h_scale.set_show_fill_level(True)"
msgstr ""
-#: C/scale.py.page:45(item/p)
+#. (itstool) path: item/p
+#: C/scale.py.page:45
msgid ""
"in the callback function of the \"value-changed\" signal, so to have the new "
"filling every time the value is changed. These are methods of the class Gtk."
"Range."
msgstr ""
-#: C/scale.py.page:47(item/p)
+#. (itstool) path: item/p
+#: C/scale.py.page:47
msgid ""
"<code>add_mark(value, position, markup)</code> adds a mark at the "
"<code>value</code> (<code>float</code> or <code>int</code> if that is the "
"precision of the scale), in <code>position</code> (<code>Gtk.PositionType."
"LEFT, Gtk.PositionType.RIGHT, Gtk.PositionType.TOP, Gtk.PositionType.BOTTOM</"
-"code>) with text <code>Null</code> or <code>markup</code> in the Pango Markup "
-"Language. To clear marks, <code>clear_marks()</code>."
+"code>) with text <code>Null</code> or <code>markup</code> in the Pango "
+"Markup Language. To clear marks, <code>clear_marks()</code>."
msgstr ""
-#: C/scale.py.page:48(item/p)
+#. (itstool) path: item/p
+#: C/scale.py.page:48
msgid ""
"<code>set_digits(digits)</code> sets the precision of the scale at "
"<code>digits</code> digits."
msgstr ""
-#: C/scale.py.page:56(item/p)
+#. (itstool) path: item/p
+#: C/scale.py.page:56
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkScale.html"
"\">GtkScale</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkScale.html"
+"\">GtkScale</link>"
-#: C/scale.py.page:57(item/p) C/spinbutton.py.page:49(item/p)
+#. (itstool) path: item/p
+#: C/scale.py.page:57 C/spinbutton.py.page:49
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkAdjustment.html"
"\">GtkAdjustment</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkAdjustment.html"
+"\">GtkAdjustment</link>"
-#: C/scale.py.page:58(item/p) C/scrolledwindow.py.page:45(item/p)
-#: C/textview.py.page:99(item/p)
+#. (itstool) path: item/p
+#: C/scale.py.page:58 C/scrolledwindow.js.page:36 C/scrolledwindow.py.page:45
+#: C/textview.py.page:99
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/gtk3-Standard-"
"Enumerations.html\">Standard Enumerations</link>"
msgstr ""
-#: C/scale.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/scale.vala.page:7
msgctxt "text"
msgid "Scale (Vala)"
msgstr ""
-#: C/scale.vala.page:26(page/code)
+#. (itstool) path: page/code
+#: C/scale.vala.page:26
#, no-wrap
msgid ""
"/* This is the application. */\n"
@@ -23493,73 +28270,83 @@ msgid ""
"}\n"
msgstr ""
-#: C/scale.vala.page:31(item/p)
+#. (itstool) path: item/p
+#: C/scale.vala.page:31
msgid ""
-"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Scale.html\">Gtk.Scale</link>"
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Scale.html\">Gtk.Scale</"
+"link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Scale.html\">Gtk.Scale</"
+"link>"
-#: C/scale.vala.page:32(item/p)
+#. (itstool) path: item/p
+#: C/scale.vala.page:32
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Adjustment.html\">Gtk."
"Adjustment</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Adjustment.html\">Gtk."
+"Adjustment</link>"
-#: C/scale.vala.page:33(item/p)
+#. (itstool) path: item/p
+#: C/scale.vala.page:33
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.PositionType.html\">Gtk."
"PositionType</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.PositionType.html\">Gtk."
+"PositionType</link>"
-#: C/scale.vala.page:34(item/p)
+#. (itstool) path: item/p
+#: C/scale.vala.page:34
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Orientation.html\">Gtk."
"Orientation</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Orientation.html\">Gtk."
+"Orientation</link>"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/scrolledwindow.c.page:24(media) C/scrolledwindow.py.page:22(media)
-#: C/scrolledwindow.vala.page:22(media)
+#: C/scrolledwindow.c.page:24 C/scrolledwindow.js.page:21
+#: C/scrolledwindow.py.page:22 C/scrolledwindow.vala.page:22
msgctxt "_"
msgid ""
-"external ref='media/scrolledwindow.png' md5='697bb3205d5c4fb0b4ea8db435843157'"
+"external ref='media/scrolledwindow.png' "
+"md5='697bb3205d5c4fb0b4ea8db435843157'"
msgstr ""
-"external ref='media/scrolledwindow.png' md5='697bb3205d5c4fb0b4ea8db435843157'"
+"external ref='media/scrolledwindow.png' "
+"md5='697bb3205d5c4fb0b4ea8db435843157'"
-#: C/scrolledwindow.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/scrolledwindow.c.page:7
msgctxt "text"
msgid "ScrolledWindow (C)"
msgstr ""
-#: C/scrolledwindow.c.page:19(info/desc) C/scrolledwindow.py.page:18(info/desc)
-#: C/scrolledwindow.vala.page:18(info/desc)
+#. (itstool) path: info/desc
+#: C/scrolledwindow.c.page:19 C/scrolledwindow.js.page:17
+#: C/scrolledwindow.py.page:18 C/scrolledwindow.vala.page:18
msgid "Adds scrollbars to its child widget"
msgstr ""
-#: C/scrolledwindow.c.page:22(page/title)
-#: C/scrolledwindow.py.page:21(page/title)
-#: C/scrolledwindow.vala.page:21(page/title)
+#. (itstool) path: page/title
+#: C/scrolledwindow.c.page:22 C/scrolledwindow.js.page:20
+#: C/scrolledwindow.py.page:21 C/scrolledwindow.vala.page:21
msgid "ScrolledWindow"
msgstr ""
-#: C/scrolledwindow.c.page:25(page/p) C/scrolledwindow.py.page:23(page/p)
-#: C/scrolledwindow.vala.page:23(page/p)
+#. (itstool) path: page/p
+#: C/scrolledwindow.c.page:25 C/scrolledwindow.js.page:22
+#: C/scrolledwindow.py.page:23 C/scrolledwindow.vala.page:23
msgid "An image in a scrolled window."
msgstr ""
-#: C/scrolledwindow.c.page:27(page/code)
+#. (itstool) path: page/code
+#: C/scrolledwindow.c.page:27
#, no-wrap
msgid ""
"\n"
@@ -23621,24 +28408,312 @@ msgid ""
" return status;\n"
"}\n"
msgstr ""
+"\n"
+"#include <gtk/gtk.h>\n"
+"\n"
+"\n"
+"\n"
+"static void\n"
+"activate (GtkApplication *app,\n"
+" gpointer user_data)\n"
+"{\n"
+" /* Declare variables */\n"
+" GtkWidget *window;\n"
+" GtkWidget *scrolled_window;\n"
+" GtkWidget *image;\n"
+"\n"
+" /* Create a window with a title, and a default size */\n"
+" window = gtk_application_window_new (app);\n"
+" gtk_window_set_title (GTK_WINDOW (window), \"ScrolledWindow Example\");\n"
+" gtk_window_set_default_size (GTK_WINDOW (window), 220, 200);\n"
+"\n"
+" /* Create the scrolled window. Usually NULL is passed for both parameters so\n"
+" * that it creates the horizontal/vertical adjustments automatically. Setting\n"
+" * the scrollbar policy to automatic allows the scrollbars to only show up\n"
+" * when needed.\n"
+" */\n"
+" scrolled_window = gtk_scrolled_window_new (NULL, NULL);\n"
+" /* Set the border width */\n"
+" gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), 10);\n"
+" /* Extract our desired image from a file that we have */\n"
+" image = gtk_image_new_from_file (\"gnome-image.png\");\n"
+" /* And add it to the scrolled window */\n"
+" gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scrolled_window), image);\n"
+" /* Set the policy of the horizontal and vertical scrollbars to automatic.\n"
+" * What this means is that the scrollbars are only present if needed.\n"
+" */\n"
+" gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),\n"
+" GTK_POLICY_AUTOMATIC,\n"
+" GTK_POLICY_AUTOMATIC);\n"
+"\n"
+" gtk_container_add (GTK_CONTAINER (window), scrolled_window);\n"
+"\n"
+" gtk_widget_show_all (window);\n"
+"}\n"
+"\n"
+"\n"
+"\n"
+"int\n"
+"main (int argc, char **argv)\n"
+"{\n"
+" GtkApplication *app;\n"
+" int status;\n"
+"\n"
+" app = gtk_application_new (\"org.gtk.example\", G_APPLICATION_FLAGS_NONE);\n"
+" g_signal_connect (app, \"activate\", G_CALLBACK (activate), NULL);\n"
+" status = g_application_run (G_APPLICATION (app), argc, argv);\n"
+" g_object_unref (app);\n"
+"\n"
+" return status;\n"
+"}\n"
-#: C/scrolledwindow.c.page:36(item/p)
+#. (itstool) path: item/p
+#: C/scrolledwindow.c.page:36
msgid ""
-"<link href=\"http://developer.gnome.org/gtk/stable/gtk-Standard-Enumerations."
-"html#GtkPolicyType\">GtkPolicyType</link>"
+"<link href=\"http://developer.gnome.org/gtk/stable/gtk3-Standard-"
+"Enumerations.html#GtkPolicyType\">GtkPolicyType</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk/stable/gtk3-Standard-"
+"Enumerations.html#GtkPolicyType\">GtkPolicyType</link>"
-#: C/scrolledwindow.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/scrolledwindow.js.page:7
+#, fuzzy
+#| msgctxt "text"
+#| msgid "Window (JavaScript)"
+msgctxt "text"
+msgid "ScrolledWindow (JavaScript)"
+msgstr "Fenster (JavaScript)"
+
+#. (itstool) path: section/code
+#: C/scrolledwindow.js.page:28
+#, no-wrap
+msgid ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const GObject = imports.gi.GObject;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"\n"
+"const ScrolledWindowExample = new Lang.Class ({\n"
+" Name: 'ScrolledWindow Example',\n"
+"\n"
+" // Create the application itself\n"
+" _init: function () {\n"
+" this.application = new Gtk.Application({ application_id: 'org.example.jscrolledwindow' });\n"
+"\n"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Callback function for 'activate' signal presents windows when active\n"
+" _onActivate: function() {\n"
+" this.window.present();\n"
+" },\n"
+"\n"
+" // Callback function for 'startup' signal builds the UI\n"
+" _onStartup: function() {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+" // Build the application's UI\n"
+" _buildUI: function() {\n"
+" // Create the application window\n"
+" this.window = new Gtk.ApplicationWindow ({ application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" title: \"ScrolledWindow Example\",\n"
+" default_width: 200,\n"
+" default_height: 200,\n"
+" border_width: 10 });\n"
+" // the scrolledwindow\n"
+" this.scrolledWindow = new Gtk.ScrolledWindow();\n"
+" this.scrolledWindow.set_border_width(10);\n"
+" // there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
+" this.scrolledWindow.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS);\n"
+" // an image - slightly larger than the window\n"
+" this.image = new Gtk.Image();\n"
+" this.image.set_from_file(\"gnome-image.png\");\n"
+"\n"
+" // add the image to the scrolledwindow\n"
+" this.scrolledWindow.add_with_viewport(this.image);\n"
+"\n"
+" // add the scrolledwindow to the window\n"
+" this.window.add(this.scrolledWindow);\n"
+" this.window.show_all();\n"
+" }\n"
+"});\n"
+"\n"
+"// Run the application\n"
+"let app = new ScrolledWindowExample();\n"
+"app.application.run (ARGV);\n"
+msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const GObject = imports.gi.GObject;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"\n"
+"const ScrolledWindowExample = new Lang.Class ({\n"
+" Name: 'ScrolledWindow Example',\n"
+"\n"
+" // Create the application itself\n"
+" _init: function () {\n"
+" this.application = new Gtk.Application({ application_id: 'org.example.jscrolledwindow' });\n"
+"\n"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Callback function for 'activate' signal presents windows when active\n"
+" _onActivate: function() {\n"
+" this.window.present();\n"
+" },\n"
+"\n"
+" // Callback function for 'startup' signal builds the UI\n"
+" _onStartup: function() {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+" // Build the application's UI\n"
+" _buildUI: function() {\n"
+" // Create the application window\n"
+" this.window = new Gtk.ApplicationWindow ({ application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" title: \"ScrolledWindow Example\",\n"
+" default_width: 200,\n"
+" default_height: 200,\n"
+" border_width: 10 });\n"
+" // the scrolledwindow\n"
+" this.scrolledWindow = new Gtk.ScrolledWindow();\n"
+" this.scrolledWindow.set_border_width(10);\n"
+" // there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
+" this.scrolledWindow.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS);\n"
+" // an image - slightly larger than the window\n"
+" this.image = new Gtk.Image();\n"
+" this.image.set_from_file(\"gnome-image.png\");\n"
+"\n"
+" // add the image to the scrolledwindow\n"
+" this.scrolledWindow.add_with_viewport(this.image);\n"
+"\n"
+" // add the scrolledwindow to the window\n"
+" this.window.add(this.scrolledWindow);\n"
+" this.window.show_all();\n"
+" }\n"
+"});\n"
+"\n"
+"// Run the application\n"
+"let app = new ScrolledWindowExample();\n"
+"app.application.run (ARGV);\n"
+
+#. (itstool) path: item/p
+#: C/scrolledwindow.js.page:35
+msgid ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk."
+"ScrolledWindow.html\">GtkScrolledWindow</link>"
+msgstr ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk."
+"ScrolledWindow.html\">GtkScrolledWindow</link>"
+
+#. (itstool) path: info/title
+#: C/scrolledwindow.py.page:7
msgctxt "text"
msgid "ScrolledWindow (Python)"
msgstr ""
-#: C/scrolledwindow.py.page:29(section/code)
-#, no-wrap
+#. (itstool) path: section/code
+#: C/scrolledwindow.py.page:29
+#, fuzzy, no-wrap
+#| msgid ""
+#| "from gi.repository import Gtk\n"
+#| "import sys\n"
+#| "\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"ScrolledWindow Example\", application=app)\n"
+#| " self.set_default_size(200, 200)\n"
+#| "\n"
+#| " # the scrolledwindow\n"
+#| " scrolled_window = Gtk.ScrolledWindow()\n"
+#| " scrolled_window.set_border_width(10)\n"
+#| " # there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
+#| " scrolled_window.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\n"
+#| "\n"
+#| " # an image - slightly larger than the window...\n"
+#| " image = Gtk.Image()\n"
+#| " image.set_from_file(\"gnome-image.png\")\n"
+#| "\n"
+#| " # add the image to the scrolledwindow\n"
+#| " scrolled_window.add_with_viewport(image)\n"
+#| "\n"
+#| " # add the scrolledwindow to the window\n"
+#| " self.add(scrolled_window)\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " win = MyWindow(self)\n"
+#| " win.show_all()\n"
+#| "\n"
+#| " def do_startup(self):\n"
+#| " Gtk.Application.do_startup(self)\n"
+#| "\n"
+#| "app = MyApplication()\n"
+#| "exit_status = app.run(sys.argv)\n"
+#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(\n"
+" self, title=\"ScrolledWindow Example\", application=app)\n"
+" self.set_default_size(200, 200)\n"
+"\n"
+" # the scrolledwindow\n"
+" scrolled_window = Gtk.ScrolledWindow()\n"
+" scrolled_window.set_border_width(10)\n"
+" # there is always the scrollbar (otherwise: AUTOMATIC - only if needed\n"
+" # - or NEVER)\n"
+" scrolled_window.set_policy(\n"
+" Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\n"
+"\n"
+" # an image - slightly larger than the window...\n"
+" image = Gtk.Image()\n"
+" image.set_from_file(\"gnome-image.png\")\n"
+"\n"
+" # add the image to the scrolledwindow\n"
+" scrolled_window.add_with_viewport(image)\n"
+"\n"
+" # add the scrolledwindow to the window\n"
+" self.add(scrolled_window)\n"
+"\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+"\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
+"\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)\n"
+msgstr ""
+"from gi.repository import Gtk\n"
+"import sys\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"ScrolledWindow Example\", application=app)\n"
@@ -23674,13 +28749,14 @@ msgid ""
"app = MyApplication()\n"
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
-msgstr ""
-#: C/scrolledwindow.py.page:32(section/title)
+#. (itstool) path: section/title
+#: C/scrolledwindow.py.page:32
msgid "Useful methods for a ScrolledWindow widget"
msgstr ""
-#: C/scrolledwindow.py.page:34(item/p)
+#. (itstool) path: item/p
+#: C/scrolledwindow.py.page:34
msgid ""
"<code>set_policy(hscrollbar_policy, vscrollbar_policy)</code> where each of "
"the arguments is one of <code>Gtk.Policy.AUTOMATIC, Gtk.Policy.ALWAYS, Gtk."
@@ -23689,13 +28765,15 @@ msgid ""
"<code>ALWAYS</code> and <code>NEVER</code> are self-explanatory."
msgstr ""
-#: C/scrolledwindow.py.page:35(item/p)
+#. (itstool) path: item/p
+#: C/scrolledwindow.py.page:35
msgid ""
"<code>add_with_viewport(widget)</code> is used to add the Gtk.Widget "
"<code>widget</code> without native scrolling capabilities inside the window."
msgstr ""
-#: C/scrolledwindow.py.page:36(item/p)
+#. (itstool) path: item/p
+#: C/scrolledwindow.py.page:36
msgid ""
"<code>set_placement(window_placement)</code> sets the placement of the "
"contents with respect to the scrollbars for the scrolled window. The options "
@@ -23705,30 +28783,36 @@ msgid ""
"BOTTOM_RIGHT</code>."
msgstr ""
-#: C/scrolledwindow.py.page:37(item/p)
+#. (itstool) path: item/p
+#: C/scrolledwindow.py.page:37
msgid ""
-"<code>set_hadjustment(adjustment)</code> and <code>set_vadjustment(adjustment)"
-"</code> set the Gtk.Adjustment <code>adjustment</code>. This is the "
-"representation of a value with a lower and upper bound, together with step "
-"and page increments, and a page size, and it is constructed as <code>Gtk."
-"Adjustment(value, lower, upper, step_increment, page_increment, page_size)</"
-"code> where the fields are of type <code>float</code>. (Note that "
-"<code>step_increment</code> is not used in this case, it can be set to "
-"<code>0</code>.)"
+"<code>set_hadjustment(adjustment)</code> and "
+"<code>set_vadjustment(adjustment)</code> set the Gtk.Adjustment "
+"<code>adjustment</code>. This is the representation of a value with a lower "
+"and upper bound, together with step and page increments, and a page size, "
+"and it is constructed as <code>Gtk.Adjustment(value, lower, upper, "
+"step_increment, page_increment, page_size)</code> where the fields are of "
+"type <code>float</code>. (Note that <code>step_increment</code> is not used "
+"in this case, it can be set to <code>0</code>.)"
msgstr ""
-#: C/scrolledwindow.py.page:44(item/p) C/textview.py.page:98(item/p)
+#. (itstool) path: item/p
+#: C/scrolledwindow.py.page:44 C/textview.py.page:98
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkScrolledWindow.html"
"\">GtkScrolledWindow</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkScrolledWindow.html"
+"\">GtkScrolledWindow</link>"
-#: C/scrolledwindow.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/scrolledwindow.vala.page:7
msgctxt "text"
msgid "ScrolledWindow (Vala)"
msgstr ""
-#: C/scrolledwindow.vala.page:25(page/code)
+#. (itstool) path: page/code
+#: C/scrolledwindow.vala.page:25
#, no-wrap
msgid ""
"/* This is the application. */\n"
@@ -23756,53 +28840,195 @@ msgid ""
"}\n"
msgstr ""
-#: C/scrolledwindow.vala.page:30(item/p) C/textview.vala.page:36(item/p)
+#. (itstool) path: item/p
+#: C/scrolledwindow.vala.page:30 C/textview.vala.page:36
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ScrolledWindow.html\">Gtk."
"ScrolledWindow</link>"
msgstr ""
-#: C/scrolledwindow.vala.page:31(item/p) C/textview.vala.page:38(item/p)
+#. (itstool) path: item/p
+#: C/scrolledwindow.vala.page:31 C/textview.vala.page:38
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.PolicyType.html\">Gtk."
"PolicyType</link>"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/separator.py.page:24(media)
+#: C/separator.c.page:23 C/separator.py.page:24 C/separator.vala.page:25
msgctxt "_"
msgid ""
"external ref='media/separator.png' md5='8769b27662ce5c77f99e9ce33751a21a'"
msgstr ""
"external ref='media/separator.png' md5='8769b27662ce5c77f99e9ce33751a21a'"
-#: C/separator.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/separator.c.page:7
msgctxt "text"
-msgid "Seperator (Python)"
-msgstr ""
+msgid "Separator (C)"
+msgstr "Trennzeichen (C)"
-#: C/separator.py.page:19(info/desc)
+#. (itstool) path: info/desc
+#: C/separator.c.page:18 C/separator.py.page:19 C/separator.vala.page:20
msgid "A separator widget"
msgstr ""
-#: C/separator.py.page:22(page/title)
+#. (itstool) path: page/title
+#: C/separator.c.page:21 C/separator.py.page:22 C/separator.vala.page:23
msgid "Separator"
-msgstr ""
+msgstr "Trennzeichen"
-#: C/separator.py.page:25(page/p)
+#. (itstool) path: page/p
+#: C/separator.c.page:24 C/separator.py.page:25 C/separator.vala.page:26
msgid "A horizontal and a vertical separator divide some labels."
msgstr ""
-#: C/separator.py.page:31(section/code)
+#. (itstool) path: section/code
+#: C/separator.c.page:30
#, no-wrap
msgid ""
+"#include <gtk/gtk.h>\n"
+"\n"
+"static void\n"
+"activate (GtkApplication *app,\n"
+" gpointer user_data)\n"
+"{\n"
+" GtkWidget *grid;\n"
+" GtkWidget *window;\n"
+" GtkWidget *label1;\n"
+" GtkWidget *label2;\n"
+" GtkWidget *label3;\n"
+" GtkWidget *hseparator;\n"
+" GtkWidget *vseparator;\n"
+"\n"
+" window = gtk_application_window_new (app);\n"
+" gtk_window_set_title (GTK_WINDOW (window), \"Separator Example\");\n"
+"\n"
+" label1 = gtk_label_new (\"Below, a horizontal separator.\");\n"
+" label2 = gtk_label_new (\"On the right, a vertical separator.\");\n"
+" label3 = gtk_label_new (\"On the left, a vertical separator.\");\n"
+"\n"
+" vseparator = gtk_separator_new (GTK_ORIENTATION_VERTICAL);\n"
+" hseparator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);\n"
+"\n"
+" grid = gtk_grid_new ();\n"
+"\n"
+" gtk_grid_attach (GTK_GRID (grid), label1, 0, 0, 3, 1);\n"
+" gtk_grid_attach (GTK_GRID (grid), hseparator, 0, 1, 3, 1);\n"
+" gtk_grid_attach (GTK_GRID (grid), label2, 0, 2, 1, 1);\n"
+" gtk_grid_attach (GTK_GRID (grid), vseparator, 1, 2, 1, 1);\n"
+" gtk_grid_attach (GTK_GRID (grid), label3, 2, 2, 1, 1);\n"
+"\n"
+" gtk_grid_set_column_homogeneous (GTK_GRID (grid), TRUE);\n"
+"\n"
+" gtk_container_add (GTK_CONTAINER (window), grid);\n"
+"\n"
+" gtk_widget_show_all (window);\n"
+"}\n"
+"\n"
+"int\n"
+"main (int argc, char **argv)\n"
+"{\n"
+" GtkApplication *app;\n"
+" int status;\n"
+"\n"
+" app = gtk_application_new (\"org.gtk.example\", G_APPLICATION_FLAGS_NONE);\n"
+" g_signal_connect (app, \"activate\", G_CALLBACK (activate), NULL);\n"
+" status = g_application_run (G_APPLICATION (app), argc, argv);\n"
+" g_object_unref (app);\n"
+" return status;\n"
+"}\n"
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/separator.c.page:34 C/separator.py.page:35 C/separator.vala.page:36
+msgid "API Reference"
+msgstr "API-Referenz"
+
+#. (itstool) path: item/p
+#: C/separator.c.page:38 C/separator.py.page:39
+msgid ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkSeparator.html"
+"\">GtkSeparator</link>"
+msgstr ""
+
+#. (itstool) path: info/title
+#: C/separator.py.page:7
+msgctxt "text"
+msgid "Seperator (Python)"
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/separator.py.page:31
+#, fuzzy, no-wrap
+#| msgid ""
+#| "from gi.repository import Gtk\n"
+#| "import sys\n"
+#| "\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " # a window\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"Switch Example\", application=app)\n"
+#| " self.set_default_size(300, 100)\n"
+#| " self.set_border_width(10)\n"
+#| "\n"
+#| " # a switch\n"
+#| " switch = Gtk.Switch()\n"
+#| " # turned on by default\n"
+#| " switch.set_active(True)\n"
+#| " # connect the signal notify::active emitted by the switch\n"
+#| " # to the callback function activate_cb\n"
+#| " switch.connect(\"notify::active\", self.activate_cb)\n"
+#| "\n"
+#| " # a label\n"
+#| " label = Gtk.Label()\n"
+#| " label.set_text(\"Title\")\n"
+#| "\n"
+#| " # a grid to allocate the widgets\n"
+#| " grid = Gtk.Grid()\n"
+#| " grid.set_column_spacing (10);\n"
+#| " grid.attach (label, 0, 0, 1, 1);\n"
+#| " grid.attach (switch, 1, 0, 1, 1);\n"
+#| "\n"
+#| " # add the grid to the window\n"
+#| " self.add(grid)\n"
+#| "\n"
+#| " # Callback function. Since the signal is notify::active\n"
+#| " # we need the argument 'active'\n"
+#| " def activate_cb(self, button, active):\n"
+#| " # if the button (i.e. the switch) is active, set the title\n"
+#| " # of the window to \"Switch Example\"\n"
+#| " if button.get_active():\n"
+#| " self.set_title(\"Switch Example\")\n"
+#| " # else, set it to \"\" (empty string)\n"
+#| " else:\n"
+#| " self.set_title(\"\")\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " win = MyWindow(self)\n"
+#| " win.show_all()\n"
+#| "\n"
+#| " def do_startup(self):\n"
+#| " Gtk.Application.do_startup(self)\n"
+#| "\n"
+#| "app = MyApplication()\n"
+#| "exit_status = app.run(sys.argv)\n"
+#| "sys.exit(exit_status)\n"
+msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"Separator Example\", application=app)\n"
"\n"
@@ -23832,106 +29058,257 @@ msgid ""
" # add the grid to the window\n"
" self.add(grid)\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
" def do_activate(self):\n"
-"\twin = MyWindow(self)\n"
-"\twin.show_all()\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
"\n"
"app = MyApplication()\n"
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
msgstr ""
+"from gi.repository import Gtk\n"
+"import sys\n"
+"\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+" # a window\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"Switch Example\", application=app)\n"
+" self.set_default_size(300, 100)\n"
+" self.set_border_width(10)\n"
+"\n"
+" # a switch\n"
+" switch = Gtk.Switch()\n"
+" # turned on by default\n"
+" switch.set_active(True)\n"
+" # connect the signal notify::active emitted by the switch\n"
+" # to the callback function activate_cb\n"
+" switch.connect(\"notify::active\", self.activate_cb)\n"
+"\n"
+" # a label\n"
+" label = Gtk.Label()\n"
+" label.set_text(\"Title\")\n"
+"\n"
+" # a grid to allocate the widgets\n"
+" grid = Gtk.Grid()\n"
+" grid.set_column_spacing (10);\n"
+" grid.attach (label, 0, 0, 1, 1);\n"
+" grid.attach (switch, 1, 0, 1, 1);\n"
+"\n"
+" # add the grid to the window\n"
+" self.add(grid)\n"
+"\n"
+" # Callback function. Since the signal is notify::active\n"
+" # we need the argument 'active'\n"
+" def activate_cb(self, button, active):\n"
+" # if the button (i.e. the switch) is active, set the title\n"
+" # of the window to \"Switch Example\"\n"
+" if button.get_active():\n"
+" self.set_title(\"Switch Example\")\n"
+" # else, set it to \"\" (empty string)\n"
+" else:\n"
+" self.set_title(\"\")\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
+"\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)\n"
-#: C/separator.py.page:35(section/title)
-msgid "API Reference"
-msgstr "API-Referenz"
+#. (itstool) path: info/title
+#: C/separator.vala.page:7
+#, fuzzy
+#| msgctxt "text"
+#| msgid "Statusbar (Vala)"
+msgctxt "text"
+msgid "Separator (Vala)"
+msgstr "Statusleiste (Vala)"
-#: C/separator.py.page:39(item/p)
+#. (itstool) path: section/code
+#: C/separator.vala.page:32
+#, no-wrap
msgid ""
-"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkSeparator.html"
+"/* This is the application. */\n"
+"public class Application : Gtk.Application {\n"
+"\n"
+"\tpublic Application () {\n"
+"\t\tObject (application_id: \"org.example.window\");\n"
+"\t}\n"
+"\n"
+"\t/* Override the 'activate' signal of GLib.Application,\n"
+"\t * which is inherited by Gtk.Application. */\n"
+"\tpublic override void activate () {\n"
+"\n"
+"\t\tvar window = new Gtk.Window ();\n"
+"\t\twindow.title = \"Separator Example\";\n"
+"\n"
+"\t\tvar label1 = new Gtk.Label (\"Below, a horizontal separator.\");\n"
+"\t\tvar label2 = new Gtk.Label (\"On the right, a vertical separator.\");\n"
+"\t\tvar label3 = new Gtk.Label (\"On the left, a vertical separator.\");\n"
+"\n"
+"\t\tvar hseparator = new Gtk.Separator (Gtk.Orientation.HORIZONTAL);\n"
+"\t\tvar vseparator = new Gtk.Separator (Gtk.Orientation.VERTICAL);\n"
+"\n"
+"\t\tvar grid = new Gtk.Grid();\n"
+"\n"
+"\t\tgrid.attach (label1, 0, 0, 3, 1);\n"
+"\t\tgrid.attach (hseparator, 0, 1, 3, 1);\n"
+"\t\tgrid.attach (label2, 0, 2, 1, 1);\n"
+"\t\tgrid.attach (vseparator, 1, 2, 1, 1);\n"
+"\t\tgrid.attach (label3, 2, 2, 1, 1);\n"
+"\n"
+"\t\tgrid.set_column_homogeneous(true);\n"
+"\n"
+"\t\twindow.add (grid);\n"
+"\t\tthis.add_window (window);\n"
+"\n"
+"\t\twindow.show_all ();\n"
+"\t}\n"
+"}\n"
+"\n"
+"/* The main function creates the application and runs it.*/\n"
+"int main (string[] args) {\n"
+"\tvar app = new Application ();\n"
+"\treturn app.run (args);\n"
+"}\n"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/separator.vala.page:40
+msgid ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Window.html\">GtkWindow</"
+"link>"
+msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Window.html\">GtkWindow</"
+"link>"
+
+#. (itstool) path: item/p
+#: C/separator.vala.page:41
+msgid ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Separator.html"
"\">GtkSeparator</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Separator.html"
+"\">GtkSeparator</link>"
+#. (itstool) path: item/p
+#: C/separator.vala.page:42
+msgid ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Grid.html\">GtkGrid</link>"
+msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Grid.html\">GtkGrid</link>"
+
+#. (itstool) path: item/p
+#: C/separator.vala.page:43
+msgid ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Label.html\">GtkLabel</link>"
+msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Label.html\">GtkLabel</link>"
+
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/set-up-gedit.js.page:24(media)
+#: C/set-up-gedit.js.page:24
msgctxt "_"
msgid ""
"external ref='media/geditview.png' md5='f1438295662d95f56fcd1d8200efaaf2'"
msgstr ""
"external ref='media/geditview.png' md5='f1438295662d95f56fcd1d8200efaaf2'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/set-up-gedit.js.page:36(media)
+#: C/set-up-gedit.js.page:36
msgctxt "_"
msgid ""
"external ref='media/gediteditor.png' md5='50db1ee8f2c545744879ee9fba5b4b24'"
msgstr ""
"external ref='media/gediteditor.png' md5='50db1ee8f2c545744879ee9fba5b4b24'"
-#: C/set-up-gedit.js.page:18(page/title)
+#. (itstool) path: page/title
+#: C/set-up-gedit.js.page:18
msgid "Set up gedit for JavaScript development"
msgstr ""
-#: C/set-up-gedit.js.page:19(page/p)
+#. (itstool) path: page/p
+#: C/set-up-gedit.js.page:19
msgid ""
"This tutorial will show you how to set up <link href=\"http://projects.gnome."
"org/gedit/\">gedit</link>, GNOME's basic text editor, so that it has a "
"handful of extra features which are useful for writing JavaScript code."
msgstr ""
-#: C/set-up-gedit.js.page:22(section/title)
+#. (itstool) path: section/title
+#: C/set-up-gedit.js.page:22
msgid "Making code clearer"
msgstr ""
-#: C/set-up-gedit.js.page:23(section/p)
+#. (itstool) path: section/p
+#: C/set-up-gedit.js.page:23
msgid ""
-"Click on <gui>Edit</gui> in gedit's menu bar, then click on <gui>Preferences</"
-"gui>. You should see something like this:"
+"Click on <gui>Edit</gui> in gedit's menu bar, then click on "
+"<gui>Preferences</gui>. You should see something like this:"
msgstr ""
-#: C/set-up-gedit.js.page:25(section/p)
+#. (itstool) path: section/p
+#: C/set-up-gedit.js.page:25
msgid "Here are the options you want to make sure are turned on."
msgstr ""
-#: C/set-up-gedit.js.page:27(item/p)
+#. (itstool) path: item/p
+#: C/set-up-gedit.js.page:27
msgid ""
"<gui>Display line numbers</gui> will help you compare the code you type in "
"with the original, and make it easier to see which line is causing an error "
"if there is a bug."
msgstr ""
-#: C/set-up-gedit.js.page:28(item/p)
+#. (itstool) path: item/p
+#: C/set-up-gedit.js.page:28
msgid ""
"<gui>Highlight current line</gui> makes it easier to see which line you're "
"on, when you have to go back and forth a lot."
msgstr ""
-#: C/set-up-gedit.js.page:29(item/p)
+#. (itstool) path: item/p
+#: C/set-up-gedit.js.page:29
msgid ""
"<gui>Highlight matching brackets</gui> helps you make sure you didn't leave "
"out a bracket by accident."
msgstr ""
-#: C/set-up-gedit.js.page:34(section/title)
+#. (itstool) path: section/title
+#: C/set-up-gedit.js.page:34
msgid "Making editing easier"
msgstr ""
-#: C/set-up-gedit.js.page:35(section/p)
+#. (itstool) path: section/p
+#: C/set-up-gedit.js.page:35
msgid ""
-"In gedit's <gui>Preferences</gui> dialog, click on the <gui>Editor</gui> tab. "
-"You should see something like this:"
+"In gedit's <gui>Preferences</gui> dialog, click on the <gui>Editor</gui> "
+"tab. You should see something like this:"
msgstr ""
-#: C/set-up-gedit.js.page:37(section/p)
+#. (itstool) path: section/p
+#: C/set-up-gedit.js.page:37
msgid ""
"Here, you want to have <gui>Enable automatic indentation</gui> turned on. "
"This means that when you hit <key>Enter</key> the cursor stays indented as "
@@ -23939,35 +29316,41 @@ msgid ""
"code, since it uses indentation to make it clearer which parts do what."
msgstr ""
-#: C/set-up-gedit.js.page:38(note/p)
+#. (itstool) path: note/p
+#: C/set-up-gedit.js.page:38
msgid ""
"If you want to share code with other people who write GNOME JavaScript "
"applications, you'll also want to set <gui>Tab width</gui> to 4 and turn on "
"<gui>Insert spaces instead of tabs</gui>."
msgstr ""
-#: C/signals-callbacks.py.page:8(info/title)
+#. (itstool) path: info/title
+#: C/signals-callbacks.py.page:8
msgctxt "text"
msgid "Signals and callbacks (Python)"
msgstr ""
-#: C/signals-callbacks.py.page:13(info/desc)
+#. (itstool) path: info/desc
+#: C/signals-callbacks.py.page:13
msgid "An explanation of signals and callbacks in GTK+."
msgstr ""
-#: C/signals-callbacks.py.page:26(page/title)
+#. (itstool) path: page/title
+#: C/signals-callbacks.py.page:26
msgid "Signals and callbacks"
msgstr "Signale und Callbacks"
-#: C/signals-callbacks.py.page:33(section/p)
+#. (itstool) path: section/p
+#: C/signals-callbacks.py.page:33
msgid ""
-"Like most GUI toolkits, GTK+ uses an event-driven programming model. When the "
-"user is doing nothing, GTK+ sits in the main loop and waits for input. If the "
-"user performs some action - say, a mouse click - then the main loop \"wakes up"
-"\" and delivers an event to GTK+."
+"Like most GUI toolkits, GTK+ uses an event-driven programming model. When "
+"the user is doing nothing, GTK+ sits in the main loop and waits for input. "
+"If the user performs some action - say, a mouse click - then the main loop "
+"\"wakes up\" and delivers an event to GTK+."
msgstr ""
-#: C/signals-callbacks.py.page:35(section/p)
+#. (itstool) path: section/p
+#: C/signals-callbacks.py.page:35
msgid ""
"When widgets receive an event, they frequently emit one or more signals. "
"Signals notify your program that \"something interesting happened\" by "
@@ -23977,7 +29360,8 @@ msgid ""
"the main loop and await more user input."
msgstr ""
-#: C/signals-callbacks.py.page:37(section/p)
+#. (itstool) path: section/p
+#: C/signals-callbacks.py.page:37
msgid ""
"A generic example is: <code>handler_id = widget.connect(\"event\", callback, "
"data)</code>. <code>widget</code> is an instance of a widget we created "
@@ -23996,69 +29380,66 @@ msgid ""
"should be passed when the signal is issued."
msgstr ""
-#: C/signals-callbacks.py.page:39(section/p)
+#. (itstool) path: section/p
+#: C/signals-callbacks.py.page:39
msgid ""
"The function returns a number (the <code>handler_id</code>) that identifies "
"this particular signal-callback pair. This number is required to disconnect "
"from a signal such that the callback function will not be called during any "
-"future or currently ongoing emissions of the signal it has been connected to, "
-"as in <code>widget.disconnect(handler_id)</code>."
+"future or currently ongoing emissions of the signal it has been connected "
+"to, as in <code>widget.disconnect(handler_id)</code>."
msgstr ""
-#: C/signals-callbacks.py.page:46(section/p)
+#. (itstool) path: section/p
+#: C/signals-callbacks.py.page:46
msgid ""
-"<link href=\"http://developer.gnome.org/gobject/stable/signal.html\">Signals</"
-"link> in GObject documentation"
+"<link href=\"http://developer.gnome.org/gobject/stable/signal.html"
+"\">Signals</link> in GObject documentation"
msgstr ""
-#: C/signals-callbacks.py.page:47(section/p)
+#. (itstool) path: section/p
+#: C/signals-callbacks.py.page:47
msgid ""
"<link href=\"http://python-gtk-3-tutorial.readthedocs.org/en/latest/basics."
"html\">Basics - Main loop and Signals</link> in Python GTK+ 3 Tutorial"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/spinbutton.c.page:25(media) C/spinbutton.py.page:23(media)
-#: C/spinbutton.vala.page:23(media)
+#: C/spinbutton.c.page:25 C/spinbutton.py.page:23 C/spinbutton.vala.page:23
msgctxt "_"
msgid ""
"external ref='media/spinbutton.png' md5='993cbb7d9bd271a329727a926195712a'"
msgstr ""
"external ref='media/spinbutton.png' md5='993cbb7d9bd271a329727a926195712a'"
-#: C/spinbutton.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/spinbutton.c.page:7
msgctxt "text"
msgid "SpinButton (C)"
msgstr ""
-#: C/spinbutton.c.page:20(info/desc)
+#. (itstool) path: info/desc
+#: C/spinbutton.c.page:20
msgid "Retrieve an integer or floating point number"
msgstr ""
-#: C/spinbutton.c.page:23(page/title) C/spinbutton.js.page:23(page/title)
-#: C/spinbutton.py.page:22(page/title) C/spinbutton.vala.page:22(page/title)
+#. (itstool) path: page/title
+#: C/spinbutton.c.page:23 C/spinbutton.js.page:23 C/spinbutton.py.page:22
+#: C/spinbutton.vala.page:22
msgid "SpinButton"
msgstr ""
-#: C/spinbutton.c.page:26(page/p) C/spinbutton.py.page:24(page/p)
-#: C/spinbutton.vala.page:24(page/p)
+#. (itstool) path: page/p
+#: C/spinbutton.c.page:26 C/spinbutton.py.page:24 C/spinbutton.vala.page:24
msgid "Choose a number, by entering it or by clicking on the -/+ buttons!"
msgstr ""
-#: C/spinbutton.c.page:28(page/code)
+#. (itstool) path: page/code
+#: C/spinbutton.c.page:28
#, no-wrap
msgid ""
"\n"
@@ -24158,17 +29539,21 @@ msgid ""
"}\n"
msgstr ""
-#: C/spinbutton.c.page:36(item/p)
+#. (itstool) path: item/p
+#: C/spinbutton.c.page:36
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkSpinButton.html"
"\">GtkSpinButton</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkSpinButton.html"
+"\">GtkSpinButton</link>"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/spinbutton.js.page:24(media)
+#: C/spinbutton.js.page:24
msgctxt "_"
msgid ""
"external ref='media/spinbuttonkittens.png' "
@@ -24177,32 +29562,37 @@ msgstr ""
"external ref='media/spinbuttonkittens.png' "
"md5='577cce8a902140aacbab73fe8a76a010'"
-#: C/spinbutton.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/spinbutton.js.page:7
#, fuzzy
#| msgid "JavaScript"
msgctxt "text"
msgid "SpinButton (JavaScript)"
msgstr "JavaScript"
-#: C/spinbutton.js.page:20(info/desc)
+#. (itstool) path: info/desc
+#: C/spinbutton.js.page:20
msgid "A number entry field that has + and - buttons"
msgstr ""
-#: C/spinbutton.js.page:25(page/p)
+#. (itstool) path: page/p
+#: C/spinbutton.js.page:25
msgid ""
"A SpinButton is not related to a <link xref=\"spinner.js\">Spinner</link>. "
"It's a text entry field which only accepts numbers, and which has plus and "
"minus buttons to let you change the value without having to type anything in."
msgstr ""
-#: C/spinbutton.js.page:26(page/p)
+#. (itstool) path: page/p
+#: C/spinbutton.js.page:26
msgid ""
"It's best used when it's obvious that only a number can be entered into it. "
"In this example, two SpinButtons are used for the number of kittens and "
"number of cans of tuna to give them."
msgstr ""
-#: C/spinbutton.js.page:43(section/code)
+#. (itstool) path: section/code
+#: C/spinbutton.js.page:43
#, no-wrap
msgid ""
"\n"
@@ -24231,14 +29621,17 @@ msgid ""
" },\n"
msgstr ""
-#: C/spinbutton.js.page:68(section/p)
+#. (itstool) path: section/p
+#: C/spinbutton.js.page:68
msgid ""
"All the code for this sample goes in the SpinButtonExample class. The above "
-"code creates a <link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk."
-"Application.html\">Gtk.Application</link> for our widgets and window to go in."
+"code creates a <link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/"
+"Gtk.Application.html\">Gtk.Application</link> for our widgets and window to "
+"go in."
msgstr ""
-#: C/spinbutton.js.page:69(section/code)
+#. (itstool) path: section/code
+#: C/spinbutton.js.page:69
#, no-wrap
msgid ""
"\n"
@@ -24253,13 +29646,15 @@ msgid ""
" title: \"Kitten Feeder\"});\n"
msgstr ""
-#: C/spinbutton.js.page:84(section/title)
+#. (itstool) path: section/title
+#: C/spinbutton.js.page:84
#, fuzzy
#| msgid "Creating the user interface"
msgid "Creating the SpinButtons"
msgstr "Erstellen der Benutzeroberfläche"
-#: C/spinbutton.js.page:85(section/code)
+#. (itstool) path: section/code
+#: C/spinbutton.js.page:85
#, no-wrap
msgid ""
"\n"
@@ -24268,7 +29663,8 @@ msgid ""
" this._kittens.connect (\"value-changed\", Lang.bind (this, this._newValue));\n"
msgstr ""
-#: C/spinbutton.js.page:91(section/p)
+#. (itstool) path: section/p
+#: C/spinbutton.js.page:91
msgid ""
"We can use the new_with_range function to create a new SpinButton quickly. "
"Its first parameter is the SpinButton's starting value, its second is the "
@@ -24276,14 +29672,16 @@ msgid ""
"minus buttons are pressed."
msgstr ""
-#: C/spinbutton.js.page:92(section/p)
+#. (itstool) path: section/p
+#: C/spinbutton.js.page:92
msgid ""
"After we create the first SpinButton, we connect its value-changed signal to "
"a function which handles what happens when the number inside either "
"SpinButton changes."
msgstr ""
-#: C/spinbutton.js.page:94(section/code)
+#. (itstool) path: section/code
+#: C/spinbutton.js.page:94
#, no-wrap
msgid ""
"\n"
@@ -24303,7 +29701,8 @@ msgid ""
" // this._tuna.set_wrap (true);\n"
msgstr ""
-#: C/spinbutton.js.page:111(section/p)
+#. (itstool) path: section/p
+#: C/spinbutton.js.page:111
msgid ""
"If you want more fine-grained control over a SpinButton, or want to create a "
"bunch of SpinButtons which all use the same parameters, you can create an "
@@ -24314,7 +29713,8 @@ msgid ""
"changing the Adjustment object's properties."
msgstr ""
-#: C/spinbutton.js.page:112(section/p)
+#. (itstool) path: section/p
+#: C/spinbutton.js.page:112
msgid ""
"The commented-out lines here show things you can do to customize your "
"SpinButton. You can set the number of digits which go after the decimal "
@@ -24322,19 +29722,22 @@ msgid ""
"upper or lower bounds that you set."
msgstr ""
-#: C/spinbutton.js.page:113(note/p)
+#. (itstool) path: note/p
+#: C/spinbutton.js.page:113
msgid ""
"For the kitties' sake, please don't use set_digits to allow a decimal number "
"of kittens."
msgstr ""
-#: C/spinbutton.js.page:117(section/title)
+#. (itstool) path: section/title
+#: C/spinbutton.js.page:117
#, fuzzy
#| msgid "Creating the user interface"
msgid "Creating the rest of the UI"
msgstr "Erstellen der Benutzeroberfläche"
-#: C/spinbutton.js.page:119(section/code)
+#. (itstool) path: section/code
+#: C/spinbutton.js.page:119
#, no-wrap
msgid ""
"\n"
@@ -24347,18 +29750,20 @@ msgid ""
" label: \"That's \" + this.perKitten + \" can(s) of tuna per kitten.\" });\n"
msgstr ""
-#: C/spinbutton.js.page:128(section/p)
+#. (itstool) path: section/p
+#: C/spinbutton.js.page:128
msgid ""
"We create each <link xref=\"label.js\">Label</link> individually, and then "
-"string them together along with the SpinButtons. The last label needs to show "
-"the number of cans of tuna per kitten, so it has a variable in the middle, "
-"which corresponds to an equation that uses the SpinButtons' get_value "
-"functions to find out what they're set at. JavaScript's Math function's floor "
-"method is used to round the number of cans of tuna per kitten down to the "
-"nearest whole number."
+"string them together along with the SpinButtons. The last label needs to "
+"show the number of cans of tuna per kitten, so it has a variable in the "
+"middle, which corresponds to an equation that uses the SpinButtons' "
+"get_value functions to find out what they're set at. JavaScript's Math "
+"function's floor method is used to round the number of cans of tuna per "
+"kitten down to the nearest whole number."
msgstr ""
-#: C/spinbutton.js.page:130(section/code)
+#. (itstool) path: section/code
+#: C/spinbutton.js.page:130
#, no-wrap
msgid ""
"\n"
@@ -24385,14 +29790,16 @@ msgid ""
" this._mainGrid.attach (this._lastLabel, 0, 1, 1, 1);\n"
msgstr ""
-#: C/spinbutton.js.page:154(section/p)
+#. (itstool) path: section/p
+#: C/spinbutton.js.page:154
msgid ""
"Here we use <link xref=\"grid.js\">Grid</link> widgets to keep everything "
-"organized. One Grid holds the labels and SpinButtons in order, while the next "
-"puts that Grid on top and the final Label on the bottom."
+"organized. One Grid holds the labels and SpinButtons in order, while the "
+"next puts that Grid on top and the final Label on the bottom."
msgstr ""
-#: C/spinbutton.js.page:155(section/p)
+#. (itstool) path: section/p
+#: C/spinbutton.js.page:155
msgid ""
"There isn't a wrong way to organize things in Grids, so long as you like how "
"it turns out. In this case, the top Grid has a margin on the bottom to keep "
@@ -24401,7 +29808,8 @@ msgid ""
"on the top."
msgstr ""
-#: C/spinbutton.js.page:157(section/code)
+#. (itstool) path: section/code
+#: C/spinbutton.js.page:157
#, no-wrap
msgid ""
"\n"
@@ -24413,17 +29821,20 @@ msgid ""
" },\n"
msgstr ""
-#: C/spinbutton.js.page:165(section/p) C/switch.js.page:153(section/p)
+#. (itstool) path: section/p
+#: C/spinbutton.js.page:165 C/switch.js.page:153
msgid ""
"Finally, we add the larger Grid to the window, then tell the window to show "
"itself and all the widgets inside of it."
msgstr ""
-#: C/spinbutton.js.page:169(section/title)
+#. (itstool) path: section/title
+#: C/spinbutton.js.page:169
msgid "Function which handles the SpinButtons' numerical values being adjusted"
msgstr ""
-#: C/spinbutton.js.page:171(section/code)
+#. (itstool) path: section/code
+#: C/spinbutton.js.page:171
#, no-wrap
msgid ""
"\n"
@@ -24438,15 +29849,17 @@ msgid ""
"});\n"
msgstr ""
-#: C/spinbutton.js.page:182(section/p)
+#. (itstool) path: section/p
+#: C/spinbutton.js.page:182
msgid ""
"Here we update the perKitten variable based on the SpinButtons' new values, "
"and use the set_label property to refresh what _lastLabel shows. Since both "
-"SpinButtons have their value-changed signal connected to this function, every "
-"time either of the numbers changes this function will update the Label."
+"SpinButtons have their value-changed signal connected to this function, "
+"every time either of the numbers changes this function will update the Label."
msgstr ""
-#: C/spinbutton.js.page:184(section/code)
+#. (itstool) path: section/code
+#: C/spinbutton.js.page:184
#, no-wrap
msgid ""
"\n"
@@ -24454,14 +29867,20 @@ msgid ""
"let app = new SpinButtonExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"\n"
+"// Run the application\n"
+"let app = new SpinButtonExample ();\n"
+"app.application.run (ARGV);\n"
-#: C/spinbutton.js.page:189(section/p)
+#. (itstool) path: section/p
+#: C/spinbutton.js.page:189
msgid ""
"Finally, we create a new instance of the finished SpinButtonExample class, "
"and set the application running."
msgstr ""
-#: C/spinbutton.js.page:194(section/code)
+#. (itstool) path: section/code
+#: C/spinbutton.js.page:194
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -24578,29 +29997,207 @@ msgid ""
"let app = new SpinButtonExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const Gio = imports.gi.Gio;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"\n"
+"const SpinButtonExample = new Lang.Class({\n"
+" Name: 'SpinButton Example',\n"
+"\n"
+" // Create the application itself\n"
+" _init: function() {\n"
+" this.application = new Gtk.Application({\n"
+" application_id: 'org.example.jsspinbutton'\n"
+" });\n"
+"\n"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Callback function for 'activate' signal presents window when active\n"
+" _onActivate: function() {\n"
+" this._window.present();\n"
+" },\n"
+"\n"
+" // Callback function for 'startup' signal builds the UI\n"
+" _onStartup: function() {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+"\n"
+"\n"
+" // Build the application's UI\n"
+" _buildUI: function() {\n"
+"\n"
+" // Create the application window\n"
+" this._window = new Gtk.ApplicationWindow({\n"
+" application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" border_width: 20,\n"
+" title: \"Kitten Feeder\"});\n"
+"\n"
+" // Create the first spinbutton using a function\n"
+" this._kittens = Gtk.SpinButton.new_with_range (1, 9001, 1);\n"
+" this._kittens.connect (\"value-changed\", Lang.bind (this, this._newValue));\n"
+"\n"
+" // Create an adjustment to use for the second spinbutton\n"
+" this._adjustment = new Gtk.Adjustment ({\n"
+" value: 1,\n"
+" lower: 0,\n"
+" upper: 9001,\n"
+" step_increment: 1,\n"
+" page_increment: 10 });\n"
+"\n"
+" // Create the second spinbutton\n"
+" this._tuna = new Gtk.SpinButton ({ adjustment: this._adjustment });\n"
+" this._tuna.connect (\"value-changed\", Lang.bind (this, this._newValue));\n"
+"\n"
+" // this._tuna.set_digits (1);\n"
+" // this._tuna.set_wrap (true);\n"
+"\n"
+" // Create the text labels to go with the spinbuttons\n"
+" this._startLabel = new Gtk.Label ({ label: \"There are \" });\n"
+" this._kittenLabel = new Gtk.Label ({ label: \" kitten(s), and \"});\n"
+" this._tunaLabel = new Gtk.Label ({ label: \" can(s) of tuna.\"});\n"
+" this.perKitten = Math.floor((this._tuna.get_value() / this._kittens.get_value()));\n"
+" this._lastLabel = new Gtk.Label ({\n"
+" label: \"That's \" + this.perKitten + \" can(s) of tuna per kitten.\" });\n"
+"\n"
+" // Create a grid to put the spinbuttons and their labels in\n"
+" this._spinGrid = new Gtk.Grid ({\n"
+" halign: Gtk.Align.CENTER,\n"
+" valign: Gtk.Align.CENTER,\n"
+" margin_bottom: 20 });\n"
+"\n"
+" // Attach everything to the grid\n"
+" this._spinGrid.attach (this._startLabel, 0, 0, 1, 1);\n"
+" this._spinGrid.attach (this._kittens, 1, 0, 1, 1);\n"
+" this._spinGrid.attach (this._kittenLabel, 2, 0, 1, 1);\n"
+" this._spinGrid.attach (this._tuna, 3, 0, 1, 1);\n"
+" this._spinGrid.attach (this._tunaLabel, 4, 0, 1, 1);\n"
+"\n"
+" // Create a main grid to hold it and the last label\n"
+" this._mainGrid = new Gtk.Grid ({\n"
+" halign: Gtk.Align.CENTER,\n"
+" valign: Gtk.Align.CENTER });\n"
+"\n"
+" // Attach the smaller grid and the last label to the main grid\n"
+" this._mainGrid.attach (this._spinGrid, 0, 0, 1, 1);\n"
+" this._mainGrid.attach (this._lastLabel, 0, 1, 1, 1);\n"
+"\n"
+" // Add the main grid to the window\n"
+" this._window.add (this._mainGrid);\n"
+"\n"
+" // Show the window and all child widgets\n"
+" this._window.show_all();\n"
+" },\n"
+"\n"
+"\n"
+"\n"
+" _newValue: function () {\n"
+"\n"
+" // Update the label which shows how many cans there are per kitten\n"
+" this.perKitten = Math.floor((this._tuna.get_value() / this._kittens.get_value()))\n"
+" this._lastLabel.set_label (\"That's \" + this.perKitten + \" can(s) of tuna per kitten.\");\n"
+"\n"
+" }\n"
+"\n"
+"});\n"
+"\n"
+"// Run the application\n"
+"let app = new SpinButtonExample ();\n"
+"app.application.run (ARGV);\n"
-#: C/spinbutton.js.page:205(item/p)
+#. (itstool) path: item/p
+#: C/spinbutton.js.page:205
msgid ""
-"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.SpinButton.html"
-"\">Gtk.SpinButton</link>"
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.SpinButton."
+"html\">Gtk.SpinButton</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.SpinButton."
+"html\">Gtk.SpinButton</link>"
-#: C/spinbutton.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/spinbutton.py.page:7
msgctxt "text"
msgid "SpinButton (Python)"
msgstr ""
-#: C/spinbutton.py.page:19(info/desc)
+#. (itstool) path: info/desc
+#: C/spinbutton.py.page:19
msgid "Retrieve an integer or floating-point number from the user."
msgstr ""
-#: C/spinbutton.py.page:30(section/code)
-#, no-wrap
+#. (itstool) path: section/code
+#: C/spinbutton.py.page:30
+#, fuzzy, no-wrap
+#| msgid ""
+#| "from gi.repository import Gtk\n"
+#| "import sys\n"
+#| "\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " # a window\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"Switch Example\", application=app)\n"
+#| " self.set_default_size(300, 100)\n"
+#| " self.set_border_width(10)\n"
+#| "\n"
+#| " # a switch\n"
+#| " switch = Gtk.Switch()\n"
+#| " # turned on by default\n"
+#| " switch.set_active(True)\n"
+#| " # connect the signal notify::active emitted by the switch\n"
+#| " # to the callback function activate_cb\n"
+#| " switch.connect(\"notify::active\", self.activate_cb)\n"
+#| "\n"
+#| " # a label\n"
+#| " label = Gtk.Label()\n"
+#| " label.set_text(\"Title\")\n"
+#| "\n"
+#| " # a grid to allocate the widgets\n"
+#| " grid = Gtk.Grid()\n"
+#| " grid.set_column_spacing (10);\n"
+#| " grid.attach (label, 0, 0, 1, 1);\n"
+#| " grid.attach (switch, 1, 0, 1, 1);\n"
+#| "\n"
+#| " # add the grid to the window\n"
+#| " self.add(grid)\n"
+#| "\n"
+#| " # Callback function. Since the signal is notify::active\n"
+#| " # we need the argument 'active'\n"
+#| " def activate_cb(self, button, active):\n"
+#| " # if the button (i.e. the switch) is active, set the title\n"
+#| " # of the window to \"Switch Example\"\n"
+#| " if button.get_active():\n"
+#| " self.set_title(\"Switch Example\")\n"
+#| " # else, set it to \"\" (empty string)\n"
+#| " else:\n"
+#| " self.set_title(\"\")\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " win = MyWindow(self)\n"
+#| " win.show_all()\n"
+#| "\n"
+#| " def do_startup(self):\n"
+#| " Gtk.Application.do_startup(self)\n"
+#| "\n"
+#| "app = MyApplication()\n"
+#| "exit_status = app.run(sys.argv)\n"
+#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"SpinButton Example\", application=app)\n"
" self.set_default_size(210, 70)\n"
@@ -24632,11 +30229,15 @@ msgid ""
"\n"
" self.add(grid)\n"
"\n"
-" # callback function: the signal of the spinbutton is used to change the text of the label\n"
+" # callback function: the signal of the spinbutton is used to change the\n"
+" # text of the label\n"
" def spin_selected(self, event):\n"
-" self.label.set_text(\"The number you selected is \" + str(self.spin.get_value_as_int()) + \".\")\n"
+" self.label.set_text(\n"
+" \"The number you selected is \" + str(self.spin.get_value_as_int()) + \".\")\n"
+"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -24651,25 +30252,84 @@ msgid ""
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
msgstr ""
+"from gi.repository import Gtk\n"
+"import sys\n"
+"\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+" # a window\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"Switch Example\", application=app)\n"
+" self.set_default_size(300, 100)\n"
+" self.set_border_width(10)\n"
+"\n"
+" # a switch\n"
+" switch = Gtk.Switch()\n"
+" # turned on by default\n"
+" switch.set_active(True)\n"
+" # connect the signal notify::active emitted by the switch\n"
+" # to the callback function activate_cb\n"
+" switch.connect(\"notify::active\", self.activate_cb)\n"
+"\n"
+" # a label\n"
+" label = Gtk.Label()\n"
+" label.set_text(\"Title\")\n"
+"\n"
+" # a grid to allocate the widgets\n"
+" grid = Gtk.Grid()\n"
+" grid.set_column_spacing (10);\n"
+" grid.attach (label, 0, 0, 1, 1);\n"
+" grid.attach (switch, 1, 0, 1, 1);\n"
+"\n"
+" # add the grid to the window\n"
+" self.add(grid)\n"
+"\n"
+" # Callback function. Since the signal is notify::active\n"
+" # we need the argument 'active'\n"
+" def activate_cb(self, button, active):\n"
+" # if the button (i.e. the switch) is active, set the title\n"
+" # of the window to \"Switch Example\"\n"
+" if button.get_active():\n"
+" self.set_title(\"Switch Example\")\n"
+" # else, set it to \"\" (empty string)\n"
+" else:\n"
+" self.set_title(\"\")\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
+"\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)\n"
-#: C/spinbutton.py.page:34(section/title)
+#. (itstool) path: section/title
+#: C/spinbutton.py.page:34
msgid "Useful methods for a SpinButton widget"
msgstr ""
-#: C/spinbutton.py.page:35(section/p)
+#. (itstool) path: section/p
+#: C/spinbutton.py.page:35
msgid ""
"A Gtk.Adjustment is needed to construct the Gtk.SpinButton. This is the "
"representation of a value with a lower and upper bound, together with step "
"and page increments, and a page size, and it is constructed as <code>Gtk."
"Adjustment(value, lower, upper, step_increment, page_increment, page_size)</"
"code> where the fields are of type <code>float</code>; <code>step_increment</"
-"code> is the increment/decrement that is obtained by using the cursor keys or "
-"the buttons of the spinbutton. Note that <code>page_increment</code> and "
+"code> is the increment/decrement that is obtained by using the cursor keys "
+"or the buttons of the spinbutton. Note that <code>page_increment</code> and "
"<code>page_size</code> are not used in this case, and they should be set to "
"<code>0</code>."
msgstr ""
-#: C/spinbutton.py.page:36(section/p)
+#. (itstool) path: section/p
+#: C/spinbutton.py.page:36
msgid ""
"In line 23 the signal <code>\"value-changed\"</code> is connected to the "
"callback function <code>spin_selected()</code> using <code><var>widget</var>."
@@ -24677,41 +30337,48 @@ msgid ""
"xref=\"signals-callbacks.py\"/> for a more detailed explanation."
msgstr ""
-#: C/spinbutton.py.page:38(item/p)
+#. (itstool) path: item/p
+#: C/spinbutton.py.page:38
msgid ""
"If you want the value of the spinbutton to wrap around when they exceed the "
"maximum or the minimum, set <code>set_wrap(True)</code>. The <code>\"wrapped"
"\"</code> signal is emitted when this happens."
msgstr ""
-#: C/spinbutton.py.page:39(item/p)
+#. (itstool) path: item/p
+#: C/spinbutton.py.page:39
msgid ""
"<code>set_digits(digits)</code> sets the precision to be displayed by the "
"spinbutton, up to 20 digits."
msgstr ""
-#: C/spinbutton.py.page:40(item/p)
+#. (itstool) path: item/p
+#: C/spinbutton.py.page:40
msgid ""
-"To get the value of the spinbutton as an integer, use <code>get_value_as_int()"
-"</code>."
+"To get the value of the spinbutton as an integer, use "
+"<code>get_value_as_int()</code>."
msgstr ""
-#: C/spinbutton.py.page:48(item/p)
+#. (itstool) path: item/p
+#: C/spinbutton.py.page:48
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkSpinButton.html"
"\">GtkSpinButton</link>"
msgstr ""
-#: C/spinbutton.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/spinbutton.vala.page:7
msgctxt "text"
msgid "SpinButton (Vala)"
msgstr ""
-#: C/spinbutton.vala.page:19(info/desc)
+#. (itstool) path: info/desc
+#: C/spinbutton.vala.page:19
msgid "Retrieve an integer or floating point number."
msgstr ""
-#: C/spinbutton.vala.page:26(page/code)
+#. (itstool) path: page/code
+#: C/spinbutton.vala.page:26
#, no-wrap
msgid ""
"/* This is the application. */\n"
@@ -24751,58 +30418,55 @@ msgid ""
"}\n"
msgstr ""
-#: C/spinbutton.vala.page:31(item/p)
+#. (itstool) path: item/p
+#: C/spinbutton.vala.page:31
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.SpinButton.html\">Gtk."
"SpinButton</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.SpinButton.html\">Gtk."
+"SpinButton</link>"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/spinner.c.page:23(media) C/spinner.js.page:21(media)
-#: C/spinner.py.page:22(media) C/spinner.vala.page:21(media)
+#: C/spinner.c.page:23 C/spinner.js.page:21 C/spinner.py.page:22
+#: C/spinner.vala.page:21
msgctxt "_"
msgid "external ref='media/spinner.png' md5='d04f2d81f1d72c6c2f97e8729947dfed'"
-msgstr "external ref='media/spinner.png' md5='d04f2d81f1d72c6c2f97e8729947dfed'"
+msgstr ""
+"external ref='media/spinner.png' md5='d04f2d81f1d72c6c2f97e8729947dfed'"
-#: C/spinner.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/spinner.c.page:7
+#, fuzzy
msgctxt "text"
msgid "Spinner (C)"
-msgstr ""
+msgstr "Spinner"
-#: C/spinner.c.page:18(info/desc) C/spinner.js.page:17(info/desc)
-#: C/spinner.py.page:18(info/desc) C/spinner.vala.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/spinner.c.page:18 C/spinner.js.page:17 C/spinner.py.page:18
+#: C/spinner.vala.page:17
msgid "A spinner animation"
msgstr ""
-#: C/spinner.c.page:21(page/title) C/spinner.js.page:20(page/title)
-#: C/spinner.py.page:21(page/title) C/spinner.vala.page:20(page/title)
+#. (itstool) path: page/title
+#: C/spinner.c.page:21 C/spinner.js.page:20 C/spinner.py.page:21
+#: C/spinner.vala.page:20
+#, fuzzy
msgid "Spinner"
-msgstr ""
+msgstr "Spinner"
-#: C/spinner.c.page:24(page/p) C/spinner.js.page:22(page/p)
-#: C/spinner.py.page:23(page/p) C/spinner.vala.page:22(page/p)
+#. (itstool) path: page/p
+#: C/spinner.c.page:24 C/spinner.js.page:22 C/spinner.py.page:23
+#: C/spinner.vala.page:22
msgid "This Spinner is stopped and started by pressing the spacebar."
msgstr ""
-#: C/spinner.c.page:26(page/code)
+#. (itstool) path: page/code
+#: C/spinner.c.page:26
#, no-wrap
msgid ""
"\n"
@@ -24896,26 +30560,32 @@ msgid ""
"}\n"
msgstr ""
-#: C/spinner.c.page:34(item/p)
+#. (itstool) path: item/p
+#: C/spinner.c.page:34
msgid ""
"<link href=\"http://developer.gnome.org/gobject/stable/gobject-The-Base-"
"Object-Type.html#g-object-get\">GObject</link>"
msgstr ""
-#: C/spinner.c.page:35(item/p) C/togglebutton.c.page:37(item/p)
+#. (itstool) path: item/p
+#: C/spinner.c.page:35 C/togglebutton.c.page:37
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkSpinner.html"
"\">GtkSpinner</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkSpinner.html"
+"\">GtkSpinner</link>"
-#: C/spinner.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/spinner.js.page:7
#, fuzzy
#| msgid "JavaScript"
msgctxt "text"
msgid "Spinner (JavaScript)"
msgstr "JavaScript"
-#: C/spinner.js.page:24(page/code)
+#. (itstool) path: page/code
+#: C/spinner.js.page:24
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -25000,32 +30670,97 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/spinner.js.page:29(item/p)
+#. (itstool) path: item/p
+#: C/spinner.js.page:29
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gdk.html\">Gdk - "
"Key Values</link>"
msgstr ""
-#: C/spinner.js.page:32(item/p) C/togglebutton.js.page:157(item/p)
+#. (itstool) path: item/p
+#: C/spinner.js.page:32 C/togglebutton.js.page:157
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Spinner.html"
"\">Gtk.Spinner</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Spinner.html"
+"\">Gtk.Spinner</link>"
-#: C/spinner.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/spinner.py.page:7
msgctxt "text"
msgid "Spinner (Python)"
msgstr ""
-#: C/spinner.py.page:30(section/code)
-#, no-wrap
+#. (itstool) path: section/code
+#: C/spinner.py.page:30
+#, fuzzy, no-wrap
+#| msgid ""
+#| "from gi.repository import Gtk\n"
+#| "import sys\n"
+#| "\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " # a window\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"Switch Example\", application=app)\n"
+#| " self.set_default_size(300, 100)\n"
+#| " self.set_border_width(10)\n"
+#| "\n"
+#| " # a switch\n"
+#| " switch = Gtk.Switch()\n"
+#| " # turned on by default\n"
+#| " switch.set_active(True)\n"
+#| " # connect the signal notify::active emitted by the switch\n"
+#| " # to the callback function activate_cb\n"
+#| " switch.connect(\"notify::active\", self.activate_cb)\n"
+#| "\n"
+#| " # a label\n"
+#| " label = Gtk.Label()\n"
+#| " label.set_text(\"Title\")\n"
+#| "\n"
+#| " # a grid to allocate the widgets\n"
+#| " grid = Gtk.Grid()\n"
+#| " grid.set_column_spacing (10);\n"
+#| " grid.attach (label, 0, 0, 1, 1);\n"
+#| " grid.attach (switch, 1, 0, 1, 1);\n"
+#| "\n"
+#| " # add the grid to the window\n"
+#| " self.add(grid)\n"
+#| "\n"
+#| " # Callback function. Since the signal is notify::active\n"
+#| " # we need the argument 'active'\n"
+#| " def activate_cb(self, button, active):\n"
+#| " # if the button (i.e. the switch) is active, set the title\n"
+#| " # of the window to \"Switch Example\"\n"
+#| " if button.get_active():\n"
+#| " self.set_title(\"Switch Example\")\n"
+#| " # else, set it to \"\" (empty string)\n"
+#| " else:\n"
+#| " self.set_title(\"\")\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " win = MyWindow(self)\n"
+#| " win.show_all()\n"
+#| "\n"
+#| " def do_startup(self):\n"
+#| " Gtk.Application.do_startup(self)\n"
+#| "\n"
+#| "app = MyApplication()\n"
+#| "exit_status = app.run(sys.argv)\n"
+#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import Gdk\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
" # a window\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"Spinner Example\", application=app)\n"
" self.set_default_size(200, 200)\n"
@@ -25056,7 +30791,9 @@ msgid ""
" # stop the signal emission\n"
" return True\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -25071,34 +30808,95 @@ msgid ""
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
msgstr ""
+"from gi.repository import Gtk\n"
+"import sys\n"
+"\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+" # a window\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"Switch Example\", application=app)\n"
+" self.set_default_size(300, 100)\n"
+" self.set_border_width(10)\n"
+"\n"
+" # a switch\n"
+" switch = Gtk.Switch()\n"
+" # turned on by default\n"
+" switch.set_active(True)\n"
+" # connect the signal notify::active emitted by the switch\n"
+" # to the callback function activate_cb\n"
+" switch.connect(\"notify::active\", self.activate_cb)\n"
+"\n"
+" # a label\n"
+" label = Gtk.Label()\n"
+" label.set_text(\"Title\")\n"
+"\n"
+" # a grid to allocate the widgets\n"
+" grid = Gtk.Grid()\n"
+" grid.set_column_spacing (10);\n"
+" grid.attach (label, 0, 0, 1, 1);\n"
+" grid.attach (switch, 1, 0, 1, 1);\n"
+"\n"
+" # add the grid to the window\n"
+" self.add(grid)\n"
+"\n"
+" # Callback function. Since the signal is notify::active\n"
+" # we need the argument 'active'\n"
+" def activate_cb(self, button, active):\n"
+" # if the button (i.e. the switch) is active, set the title\n"
+" # of the window to \"Switch Example\"\n"
+" if button.get_active():\n"
+" self.set_title(\"Switch Example\")\n"
+" # else, set it to \"\" (empty string)\n"
+" else:\n"
+" self.set_title(\"\")\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
+"\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)\n"
-#: C/spinner.py.page:32(note/p)
+#. (itstool) path: note/p
+#: C/spinner.py.page:32
msgid ""
-"<code>Gdk.keyval_name(event.keyval)</code> converts the key value <code>event."
-"keyval</code> into a symbolic name. The names and corresponding key values "
-"can be found <link href=\"http://git.gnome.org/browse/gtk+/tree/gdk/"
-"gdkkeysyms.h\">here</link>,but for instance <code>GDK_KEY_BackSpace</code> "
-"becomes the string <code>\"BackSpace\"</code>."
+"<code>Gdk.keyval_name(event.keyval)</code> converts the key value "
+"<code>event.keyval</code> into a symbolic name. The names and corresponding "
+"key values can be found <link href=\"http://git.gnome.org/browse/gtk+/tree/"
+"gdk/gdkkeysyms.h\">here</link>,but for instance <code>GDK_KEY_BackSpace</"
+"code> becomes the string <code>\"BackSpace\"</code>."
msgstr ""
-#: C/spinner.py.page:41(item/p) C/togglebutton.py.page:45(item/p)
+#. (itstool) path: item/p
+#: C/spinner.py.page:41 C/togglebutton.py.page:45
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkSpinner.html"
"\">GtkSpinner</link>"
msgstr ""
-#: C/spinner.py.page:42(item/p)
+#. (itstool) path: item/p
+#: C/spinner.py.page:42
msgid ""
"<link href=\"http://developer.gnome.org/gdk/stable/gdk-Keyboard-Handling.html"
"\">Key Values</link>"
msgstr ""
-#: C/spinner.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/spinner.vala.page:7
msgctxt "text"
msgid "Spinner (Vala)"
msgstr ""
-#: C/spinner.vala.page:24(page/code)
+#. (itstool) path: page/code
+#: C/spinner.vala.page:24
#, no-wrap
msgid ""
"public class MyWindow : Gtk.ApplicationWindow {\n"
@@ -25154,58 +30952,72 @@ msgid ""
"}\n"
msgstr ""
-#: C/spinner.vala.page:29(item/p)
+#. (itstool) path: item/p
+#: C/spinner.vala.page:29
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Widget.html\">Gtk.Widget</"
"link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Widget.html\">Gtk.Widget</"
+"link>"
-#: C/spinner.vala.page:30(item/p)
+#. (itstool) path: item/p
+#: C/spinner.vala.page:30
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Spinner.html\">Gtk.Spinner</"
"link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Spinner.html\">Gtk.Spinner</"
+"link>"
-#: C/spinner.vala.page:31(item/p)
+#. (itstool) path: item/p
+#: C/spinner.vala.page:31
msgid ""
"<link href=\"http://www.valadoc.org/gdk-3.0/Gdk.keyval_name.html\">Gdk."
"keyval_name</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gdk-3.0/Gdk.keyval_name.html\">Gdk."
+"keyval_name</link>"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/statusbar.c.page:26(media)
+#: C/statusbar.c.page:26
msgctxt "_"
msgid ""
"external ref='media/statusbar3.png' md5='60c71604fb44656237ee66dfb39a8689'"
msgstr ""
"external ref='media/statusbar3.png' md5='60c71604fb44656237ee66dfb39a8689'"
-#: C/statusbar.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/statusbar.c.page:7
msgctxt "text"
msgid "Statusbar (C)"
msgstr "Statusleiste (C)"
-#: C/statusbar.c.page:21(info/desc) C/statusbar.py.page:19(info/desc)
-#: C/statusbar.vala.page:20(info/desc)
+#. (itstool) path: info/desc
+#: C/statusbar.c.page:21 C/statusbar.py.page:19 C/statusbar.vala.page:20
msgid "Report messages of minor importance to the user"
msgstr ""
-#: C/statusbar.c.page:24(page/title) C/statusbar.js.page:20(page/title)
-#: C/statusbar.py.page:22(page/title) C/statusbar.vala.page:23(page/title)
+#. (itstool) path: page/title
+#: C/statusbar.c.page:24 C/statusbar.js.page:20 C/statusbar.py.page:22
+#: C/statusbar.vala.page:23
msgid "Statusbar"
msgstr "Statusleiste"
-#: C/statusbar.c.page:27(page/p)
+#. (itstool) path: page/p
+#: C/statusbar.c.page:27
msgid ""
"This statusbar is used to demonstrate how messages are stacked in a last-in-"
"first-out order. The message at the top of the stack is always the one "
"displayed."
msgstr ""
-#: C/statusbar.c.page:29(page/code)
+#. (itstool) path: page/code
+#: C/statusbar.c.page:29
#, no-wrap
msgid ""
"\n"
@@ -25312,41 +31124,49 @@ msgid ""
"}\n"
msgstr ""
-#: C/statusbar.c.page:37(item/p)
+#. (itstool) path: item/p
+#: C/statusbar.c.page:37
msgid ""
-"<link href=\"http://developer.gnome.org/gtk3/stable/GtkStatusbar.htmll"
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkStatusbar.html"
"\">GtkStatusBar</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkStatusbar.html"
+"\">GtkStatusBar</link>"
-#: C/statusbar.c.page:38(item/p)
+#. (itstool) path: item/p
+#: C/statusbar.c.page:38
msgid ""
"<link href=\"http://developer.gnome.org/glib/stable/glib-String-Utility-"
"Functions.html#g-snprintf\">String Utility Functions</link>"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/statusbar.js.page:21(media)
+#: C/statusbar.js.page:21
msgctxt "_"
msgid ""
"external ref='media/statusbar2.png' md5='ff6f7e5b270827ca98b2d5f7087aa766'"
msgstr ""
"external ref='media/statusbar2.png' md5='ff6f7e5b270827ca98b2d5f7087aa766'"
-#: C/statusbar.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/statusbar.js.page:7
#, fuzzy
#| msgid "JavaScript"
msgctxt "text"
msgid "Statusbar (JavaScript)"
msgstr "JavaScript"
-#: C/statusbar.js.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/statusbar.js.page:17
msgid "Show notifications in a dedicated statusbar"
msgstr ""
-#: C/statusbar.js.page:22(page/p)
+#. (itstool) path: page/p
+#: C/statusbar.js.page:22
msgid ""
"This statusbar keeps track of how many times you've clicked a button. "
"Applications like <link href=\"http://projects.gnome.org/gedit/\">gedit</"
@@ -25354,7 +31174,8 @@ msgid ""
"notifications without interrupting the user."
msgstr ""
-#: C/statusbar.js.page:23(page/p)
+#. (itstool) path: page/p
+#: C/statusbar.js.page:23
msgid ""
"Messages pushed to a statusbar go on top of its stack, and can be popped off "
"to show the next-most recent one. You can also clear away every message of a "
@@ -25362,7 +31183,8 @@ msgid ""
"functions."
msgstr ""
-#: C/statusbar.js.page:40(section/code)
+#. (itstool) path: section/code
+#: C/statusbar.js.page:40
#, no-wrap
msgid ""
"\n"
@@ -25392,14 +31214,17 @@ msgid ""
" },\n"
msgstr ""
-#: C/statusbar.js.page:66(section/p)
+#. (itstool) path: section/p
+#: C/statusbar.js.page:66
msgid ""
"All the code for this sample goes in the StatusbarExample class. The above "
-"code creates a <link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk."
-"Application.html\">Gtk.Application</link> for our widgets and window to go in."
+"code creates a <link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/"
+"Gtk.Application.html\">Gtk.Application</link> for our widgets and window to "
+"go in."
msgstr ""
-#: C/statusbar.js.page:67(section/code)
+#. (itstool) path: section/code
+#: C/statusbar.js.page:67
#, no-wrap
msgid ""
"\n"
@@ -25419,23 +31244,25 @@ msgid ""
" orientation: Gtk.Orientation.VERTICAL });\n"
msgstr ""
-#: C/statusbar.js.page:83(section/p)
+#. (itstool) path: section/p
+#: C/statusbar.js.page:83
msgid ""
"The _buildUI function is where we put all the code to create the "
"application's user interface. The first step is creating a new <link href="
"\"GtkApplicationWindow.js.page\">Gtk.ApplicationWindow</link> to put all our "
-"widgets into. The next step is to create a vertically-oriented <link href="
-"\"paned.js.page\">Gtk.Paned</link> interface, to divide the window up into "
-"two sections. This way the statusbar looks like those used in other "
-"applications, and it stays at the bottom of the window, even if the user "
-"resizes it."
+"widgets into. The next step is to create a vertically-oriented Gtk.Paned "
+"interface, to divide the window up into two sections. This way the statusbar "
+"looks like those used in other applications, and it stays at the bottom of "
+"the window, even if the user resizes it."
msgstr ""
-#: C/statusbar.js.page:87(section/title)
+#. (itstool) path: section/title
+#: C/statusbar.js.page:87
msgid "Creating the buttons"
msgstr "Erstellen der Knöpfe"
-#: C/statusbar.js.page:88(section/code)
+#. (itstool) path: section/code
+#: C/statusbar.js.page:88
#, no-wrap
msgid ""
"\n"
@@ -25457,17 +31284,19 @@ msgid ""
" this._clearButton.connect (\"clicked\", Lang.bind (this, this._clear));\n"
msgstr ""
-#: C/statusbar.js.page:106(section/p)
+#. (itstool) path: section/p
+#: C/statusbar.js.page:106
msgid ""
"This code creates the three <link href=\"button.js.page\">Gtk.Buttons</link> "
"we'll use to push a new message to the statusbar, pop the last one off, and "
"clear all existing messages. The \"back\" and \"clear\" buttons are <link "
-"href=\"http://developer.gnome.org/gtk/2.24/gtk-Stock-Items.html\">stock "
+"href=\"https://developer.gnome.org/gtk3/3.4/gtk3-Stock-Items.html\">stock "
"buttons</link>, which are automatically translated into any language GNOME "
"supports."
msgstr ""
-#: C/statusbar.js.page:108(section/code)
+#. (itstool) path: section/code
+#: C/statusbar.js.page:108
#, no-wrap
msgid ""
"\n"
@@ -25487,21 +31316,24 @@ msgid ""
" this._topFrame.add (this._grid);\n"
msgstr ""
-#: C/statusbar.js.page:124(section/p)
+#. (itstool) path: section/p
+#: C/statusbar.js.page:124
msgid ""
"This code creates the <link href=\"grid.js.page\">Gtk.Grid</link> that we'll "
-"use to organize the buttons, and attaches the buttons to it in order. It then "
-"creates a <link href=\"paned.js.page\">Gtk.Frame</link> which will take up "
-"most of the window and has a large amount of padding around the buttons, and "
-"adds the Grid to the Frame. Note that we still need to put the Frame into the "
-"Paned interface, and then add it to the ApplicationWindow."
+"use to organize the buttons, and attaches the buttons to it in order. It "
+"then creates a <link href=\"paned.js.page\">Gtk.Frame</link> which will take "
+"up most of the window and has a large amount of padding around the buttons, "
+"and adds the Grid to the Frame. Note that we still need to put the Frame "
+"into the Paned interface, and then add it to the ApplicationWindow."
msgstr ""
-#: C/statusbar.js.page:128(section/title)
+#. (itstool) path: section/title
+#: C/statusbar.js.page:128
msgid "Creating the statusbar"
msgstr "Erstellen der Statusleiste"
-#: C/statusbar.js.page:129(section/code)
+#. (itstool) path: section/code
+#: C/statusbar.js.page:129
#, no-wrap
msgid ""
"\n"
@@ -25521,30 +31353,34 @@ msgid ""
" this._barFrame.add (this._statusbar);\n"
msgstr ""
-#: C/statusbar.js.page:145(section/p)
+#. (itstool) path: section/p
+#: C/statusbar.js.page:145
msgid ""
-"Here we create the Gtk.Statusbar, and push a message to it to start off with. "
-"Then we give it its own narrow frame at the bottom of the window."
+"Here we create the Gtk.Statusbar, and push a message to it to start off "
+"with. Then we give it its own narrow frame at the bottom of the window."
msgstr ""
-#: C/statusbar.js.page:146(section/p)
+#. (itstool) path: section/p
+#: C/statusbar.js.page:146
msgid ""
"Every message needs to have a context id, which is an integer value you can "
-"get from the statusbar with the get_context_id() function. Its only parameter "
-"is the string value you use to describe that particular context id. Normally, "
-"you'll get a new context id for different kinds of messages, so that you can "
-"use the remove() function to remove a specific message and not just the most "
-"recent one on the stack. This is a simple example with only one kind of "
-"message, though, so we're just using one for everything."
+"get from the statusbar with the get_context_id() function. Its only "
+"parameter is the string value you use to describe that particular context "
+"id. Normally, you'll get a new context id for different kinds of messages, "
+"so that you can use the remove() function to remove a specific message and "
+"not just the most recent one on the stack. This is a simple example with "
+"only one kind of message, though, so we're just using one for everything."
msgstr ""
-#: C/statusbar.js.page:147(section/p)
+#. (itstool) path: section/p
+#: C/statusbar.js.page:147
msgid ""
"We use the push() function to push a new message onto the stack. Its first "
"parameter is the context id, and its second is the message."
msgstr ""
-#: C/statusbar.js.page:148(section/code)
+#. (itstool) path: section/code
+#: C/statusbar.js.page:148
#, no-wrap
msgid ""
"\n"
@@ -25559,19 +31395,33 @@ msgid ""
" this._window.show_all();\n"
" },\n"
msgstr ""
+"\n"
+" // Assemble the frames into the paned interface\n"
+" this._panes.pack1 (this._topFrame, true, false);\n"
+" this._panes.pack2 (this._barFrame, false, false);\n"
+"\n"
+" // Put the panes into the window\n"
+" this._window.add (this._panes);\n"
+"\n"
+" // Show the window and all child widgets\n"
+" this._window.show_all();\n"
+" },\n"
-#: C/statusbar.js.page:160(section/p)
+#. (itstool) path: section/p
+#: C/statusbar.js.page:160
msgid ""
"This code finishes up creating the window, by packing the frames into the "
"pane, adding it to the window, and telling the window to show all child "
"widgets."
msgstr ""
-#: C/statusbar.js.page:164(section/title)
+#. (itstool) path: section/title
+#: C/statusbar.js.page:164
msgid "Functions for interacting with the statusbar"
msgstr ""
-#: C/statusbar.js.page:165(section/code)
+#. (itstool) path: section/code
+#: C/statusbar.js.page:165
#, no-wrap
msgid ""
"\n"
@@ -25615,17 +31465,19 @@ msgid ""
"});\n"
msgstr ""
-#: C/statusbar.js.page:205(section/p)
+#. (itstool) path: section/p
+#: C/statusbar.js.page:205
msgid ""
"Here we have functions which demonstrate pushing a message onto the stack, "
"popping the top one off of it, and clearing all messages of a particular "
-"context id. The pop() function just takes one parameter, which is the context "
-"id for the type of message you want to pop off the most recent one of. The "
-"remove_all() function works the same way, except it removes all messages of "
-"that type from the stack."
+"context id. The pop() function just takes one parameter, which is the "
+"context id for the type of message you want to pop off the most recent one "
+"of. The remove_all() function works the same way, except it removes all "
+"messages of that type from the stack."
msgstr ""
-#: C/statusbar.js.page:206(section/code)
+#. (itstool) path: section/code
+#: C/statusbar.js.page:206
#, no-wrap
msgid ""
"\n"
@@ -25634,13 +31486,15 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/statusbar.js.page:211(section/p)
+#. (itstool) path: section/p
+#: C/statusbar.js.page:211
msgid ""
-"Finally, we create a new instance of the finished StatusbarExample class, and "
-"set the application running."
+"Finally, we create a new instance of the finished StatusbarExample class, "
+"and set the application running."
msgstr ""
-#: C/statusbar.js.page:216(section/code)
+#. (itstool) path: section/code
+#: C/statusbar.js.page:216
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -25795,54 +31649,205 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/statusbar.js.page:225(item/p)
+#. (itstool) path: item/p
+#: C/statusbar.js.page:225
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Frame.html"
"\">Gtk.Frame</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Frame.html"
+"\">Gtk.Frame</link>"
-#: C/statusbar.js.page:226(item/p)
+#. (itstool) path: item/p
+#: C/statusbar.js.page:226
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Paned.html"
"\">Gtk.Paned</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Paned.html"
+"\">Gtk.Paned</link>"
-#: C/statusbar.js.page:227(item/p)
+#. (itstool) path: item/p
+#: C/statusbar.js.page:227
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Statusbar.html"
"\">Gtk.Statusbar</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Statusbar.html"
+"\">Gtk.Statusbar</link>"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/statusbar.py.page:23(media) C/statusbar.vala.page:24(media)
+#: C/statusbar.py.page:23 C/statusbar.vala.page:24
msgctxt "_"
msgid ""
"external ref='media/statusbar.png' md5='eb1aca55315d6cda57b12a5f36058ba8'"
msgstr ""
"external ref='media/statusbar.png' md5='eb1aca55315d6cda57b12a5f36058ba8'"
-#: C/statusbar.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/statusbar.py.page:7
msgctxt "text"
msgid "Statusbar (Python)"
msgstr "Statusleiste (Python)"
-#: C/statusbar.py.page:24(page/p)
+#. (itstool) path: page/p
+#: C/statusbar.py.page:24
+msgid ""
+"This statusbar tells you if you click the button or if you press any key "
+"(and which key)."
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/statusbar.py.page:31
+#, fuzzy, no-wrap
+#| msgid ""
+#| "from gi.repository import Gtk\n"
+#| "from gi.repository import Gdk\n"
+#| "import sys\n"
+#| "\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " # a window\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"StatusBar Example\", application=app)\n"
+#| " self.set_default_size(200, 100)\n"
+#| "\n"
+#| " # a label\n"
+#| " label = Gtk.Label(label=\"Press any key or \")\n"
+#| "\n"
+#| " # a button\n"
+#| " button = Gtk.Button(label=\"click me.\")\n"
+#| " # connected to a callback\n"
+#| " button.connect(\"clicked\", self.button_clicked_cb)\n"
+#| "\n"
+#| " # the statusbar\n"
+#| " self.statusbar = Gtk.Statusbar()\n"
+#| " # its context_id - not shown in the UI but needed to uniquely identify\n"
+#| " # the source of a message\n"
+#| " self.context_id = self.statusbar.get_context_id(\"example\")\n"
+#| " # we push a message onto the statusbar's stack\n"
+#| " self.statusbar.push(self.context_id, \"Waiting for you to do something...\")\n"
+#| "\n"
+#| " # a grid to attach the widgets\n"
+#| " grid = Gtk.Grid()\n"
+#| " grid.set_column_spacing(5)\n"
+#| " grid.set_column_homogeneous(True)\n"
+#| " grid.set_row_homogeneous(True)\n"
+#| " grid.attach(label, 0, 0, 1, 1)\n"
+#| " grid.attach_next_to(button, label, Gtk.PositionType.RIGHT, 1, 1)\n"
+#| " grid.attach(self.statusbar, 0, 1, 2, 1)\n"
+#| "\n"
+#| " # add the grid to the window\n"
+#| " self.add(grid)\n"
+#| "\n"
+#| " # callback function for the button clicked\n"
+#| " # if the button is clicked the event is signaled to the statusbar\n"
+#| " # onto which we push a new status\n"
+#| " def button_clicked_cb(self, button):\n"
+#| " self.statusbar.push(self.context_id, \"You clicked the button.\")\n"
+#| "\n"
+#| " # event handler\n"
+#| " def do_key_press_event(self, event):\n"
+#| " # any signal from the keyboard is signaled to the statusbar\n"
+#| " # onto which we push a new status with the symbolic name\n"
+#| " # of the key pressed\n"
+#| " self.statusbar.push(self.context_id, Gdk.keyval_name(event.keyval) +\n"
+#| " \" key was pressed.\")\n"
+#| " # stop the signal emission\n"
+#| " return True\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " win = MyWindow(self)\n"
+#| " win.show_all()\n"
+#| "\n"
+#| " def do_startup(self):\n"
+#| " Gtk.Application.do_startup(self)\n"
+#| "\n"
+#| "app = MyApplication()\n"
+#| "exit_status = app.run(sys.argv)\n"
+#| "sys.exit(exit_status)\n"
msgid ""
-"This statusbar tells you if you click the button or if you press any key (and "
-"which key)."
+"from gi.repository import Gtk\n"
+"from gi.repository import Gdk\n"
+"import sys\n"
+"\n"
+"\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+" # a window\n"
+"\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"StatusBar Example\", application=app)\n"
+" self.set_default_size(200, 100)\n"
+"\n"
+" # a label\n"
+" label = Gtk.Label(label=\"Press any key or \")\n"
+"\n"
+" # a button\n"
+" button = Gtk.Button(label=\"click me.\")\n"
+" # connected to a callback\n"
+" button.connect(\"clicked\", self.button_clicked_cb)\n"
+"\n"
+" # the statusbar\n"
+" self.statusbar = Gtk.Statusbar()\n"
+" # its context_id - not shown in the UI but needed to uniquely identify\n"
+" # the source of a message\n"
+" self.context_id = self.statusbar.get_context_id(\"example\")\n"
+" # we push a message onto the statusbar's stack\n"
+" self.statusbar.push(\n"
+" self.context_id, \"Waiting for you to do something...\")\n"
+"\n"
+" # a grid to attach the widgets\n"
+" grid = Gtk.Grid()\n"
+" grid.set_column_spacing(5)\n"
+" grid.set_column_homogeneous(True)\n"
+" grid.set_row_homogeneous(True)\n"
+" grid.attach(label, 0, 0, 1, 1)\n"
+" grid.attach_next_to(button, label, Gtk.PositionType.RIGHT, 1, 1)\n"
+" grid.attach(self.statusbar, 0, 1, 2, 1)\n"
+"\n"
+" # add the grid to the window\n"
+" self.add(grid)\n"
+"\n"
+" # callback function for the button clicked\n"
+" # if the button is clicked the event is signaled to the statusbar\n"
+" # onto which we push a new status\n"
+" def button_clicked_cb(self, button):\n"
+" self.statusbar.push(self.context_id, \"You clicked the button.\")\n"
+"\n"
+" # event handler\n"
+" def do_key_press_event(self, event):\n"
+" # any signal from the keyboard is signaled to the statusbar\n"
+" # onto which we push a new status with the symbolic name\n"
+" # of the key pressed\n"
+" self.statusbar.push(self.context_id, Gdk.keyval_name(event.keyval) +\n"
+" \" key was pressed.\")\n"
+" # stop the signal emission\n"
+" return True\n"
+"\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+"\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
+"\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)\n"
msgstr ""
-
-#: C/statusbar.py.page:31(section/code)
-#, no-wrap
-msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import Gdk\n"
"import sys\n"
@@ -25911,22 +31916,24 @@ msgid ""
"app = MyApplication()\n"
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
-msgstr ""
-#: C/statusbar.py.page:33(note/p)
+#. (itstool) path: note/p
+#: C/statusbar.py.page:33
msgid ""
-"<code>Gdk.keyval_name(event.keyval)</code> converts the key value <code>event."
-"keyval</code> into a symbolic name. The names and corresponding key values "
-"can be found <link href=\"http://git.gnome.org/browse/gtk+/tree/gdk/"
-"gdkkeysyms.h\">here</link>, but for instance <code>GDK_KEY_BackSpace</code> "
-"becomes the string <code>\"BackSpace\"</code>."
+"<code>Gdk.keyval_name(event.keyval)</code> converts the key value "
+"<code>event.keyval</code> into a symbolic name. The names and corresponding "
+"key values can be found <link href=\"http://git.gnome.org/browse/gtk+/tree/"
+"gdk/gdkkeysyms.h\">here</link>, but for instance <code>GDK_KEY_BackSpace</"
+"code> becomes the string <code>\"BackSpace\"</code>."
msgstr ""
-#: C/statusbar.py.page:39(section/title)
+#. (itstool) path: section/title
+#: C/statusbar.py.page:39
msgid "Useful methods for a Statusbar widget"
msgstr ""
-#: C/statusbar.py.page:40(section/p)
+#. (itstool) path: section/p
+#: C/statusbar.py.page:40
msgid ""
"In line 17 the signal <code>\"clicked\"</code> is connected to the callback "
"function <code>button_clicked_cb()</code> using <code><var>widget</var>."
@@ -25934,49 +31941,57 @@ msgid ""
"xref=\"signals-callbacks.py\"/> for a more detailed explanation."
msgstr ""
-#: C/statusbar.py.page:42(item/p)
+#. (itstool) path: item/p
+#: C/statusbar.py.page:42
msgid ""
-"<code>pop(context_id)</code> removes the first message in the statusbar stack "
-"with the given <code>context_id</code>."
+"<code>pop(context_id)</code> removes the first message in the statusbar "
+"stack with the given <code>context_id</code>."
msgstr ""
-#: C/statusbar.py.page:43(item/p)
+#. (itstool) path: item/p
+#: C/statusbar.py.page:43
msgid ""
-"<code>remove_all(context_id)</code> removes all the messages in the statusbar "
-"stack with the given <code>context_id</code>."
+"<code>remove_all(context_id)</code> removes all the messages in the "
+"statusbar stack with the given <code>context_id</code>."
msgstr ""
-#: C/statusbar.py.page:44(item/p)
+#. (itstool) path: item/p
+#: C/statusbar.py.page:44
msgid ""
"<code>remove(context_id, message_id)</code> removes the message with the "
"given <code>message_id</code> in the statusbar stack with the given "
-"<code>context_id</code>. The <code>message_id</code> is returned by <code>push"
-"(context_id, \"the message\")</code> when pushing the message on the "
-"statusbar."
+"<code>context_id</code>. The <code>message_id</code> is returned by "
+"<code>push(context_id, \"the message\")</code> when pushing the message on "
+"the statusbar."
msgstr ""
-#: C/statusbar.py.page:52(item/p)
+#. (itstool) path: item/p
+#: C/statusbar.py.page:52
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkStatusbar.html"
"\">GtkStatusbar</link>"
msgstr ""
-#: C/statusbar.py.page:53(item/p)
+#. (itstool) path: item/p
+#: C/statusbar.py.page:53
msgid ""
"<link href=\"http://developer.gnome.org/gdk/stable/gdk-Keyboard-Handling.html"
"\">Gdk - Key Values</link>"
msgstr ""
-#: C/statusbar.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/statusbar.vala.page:7
msgctxt "text"
msgid "Statusbar (Vala)"
msgstr "Statusleiste (Vala)"
-#: C/statusbar.vala.page:25(page/p)
+#. (itstool) path: page/p
+#: C/statusbar.vala.page:25
msgid "This statusbar tells you what's going on."
msgstr ""
-#: C/statusbar.vala.page:27(page/code)
+#. (itstool) path: page/code
+#: C/statusbar.vala.page:27
#, no-wrap
msgid ""
"public class MyWindow : Gtk.ApplicationWindow {\n"
@@ -26043,34 +32058,41 @@ msgid ""
"}\n"
msgstr ""
-#: C/statusbar.vala.page:32(item/p)
+#. (itstool) path: item/p
+#: C/statusbar.vala.page:32
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Statusbar.html\">Gtk."
"Statusbar</link>"
msgstr ""
-#: C/strings.py.page:8(info/title)
+#. (itstool) path: info/title
+#: C/strings.py.page:8
msgctxt "text"
msgid "Strings (Python)"
msgstr ""
-#: C/strings.py.page:13(info/desc)
+#. (itstool) path: info/desc
+#: C/strings.py.page:13
msgid "An explanation of how to deal with strings in Python and GTK+."
msgstr ""
-#: C/strings.py.page:26(page/title)
+#. (itstool) path: page/title
+#: C/strings.py.page:26
msgid "Strings"
msgstr "Strings"
-#: C/strings.py.page:30(note/p)
+#. (itstool) path: note/p
+#: C/strings.py.page:30
msgid "GNOME strongly encourages the use of Python 3 for writing applications!"
msgstr ""
-#: C/strings.py.page:33(section/title)
+#. (itstool) path: section/title
+#: C/strings.py.page:33
msgid "Strings in Python 2"
msgstr "Strings in Python 2"
-#: C/strings.py.page:35(section/p)
+#. (itstool) path: section/p
+#: C/strings.py.page:35
msgid ""
"Python 2 comes with two different kinds of objects that can be used to "
"represent strings, <code>str</code> and <code>unicode</code>. Instances of "
@@ -26080,7 +32102,8 @@ msgid ""
"integers, depending on how the Python interpreter was compiled."
msgstr ""
-#: C/strings.py.page:37(section/code)
+#. (itstool) path: section/code
+#: C/strings.py.page:37
#, no-wrap
msgid ""
"\n"
@@ -26089,15 +32112,17 @@ msgid ""
"Fußbälle\n"
msgstr ""
-#: C/strings.py.page:43(section/p)
+#. (itstool) path: section/p
+#: C/strings.py.page:43
msgid ""
-"Unicode strings can be converted to 8-bit strings with <code>unicode.encode()"
-"</code>. Python’s 8-bit strings have a <code>str.decode()</code> method that "
-"interprets the string using the given encoding (that is, it is the inverse of "
-"the <code>unicode.encode()</code>):"
+"Unicode strings can be converted to 8-bit strings with <code>unicode."
+"encode()</code>. Python’s 8-bit strings have a <code>str.decode()</code> "
+"method that interprets the string using the given encoding (that is, it is "
+"the inverse of the <code>unicode.encode()</code>):"
msgstr ""
-#: C/strings.py.page:45(section/code)
+#. (itstool) path: section/code
+#: C/strings.py.page:45
#, no-wrap
msgid ""
"\n"
@@ -26112,7 +32137,8 @@ msgid ""
"True"
msgstr ""
-#: C/strings.py.page:56(section/p)
+#. (itstool) path: section/p
+#: C/strings.py.page:56
msgid ""
"Unfortunately, Python 2.x allows you to mix <code>unicode</code> and "
"<code>str</code> if the 8-bit string happened to contain only 7-bit (ASCII) "
@@ -26120,11 +32146,13 @@ msgid ""
"values."
msgstr ""
-#: C/strings.py.page:61(section/title)
+#. (itstool) path: section/title
+#: C/strings.py.page:61
msgid "Strings in Python 3"
msgstr "Strings in Python 3"
-#: C/strings.py.page:63(section/p)
+#. (itstool) path: section/p
+#: C/strings.py.page:63
msgid ""
"Since Python 3.0, all strings are stored as Unicode in an instance of the "
"<code>str</code> type. Encoded strings on the other hand are represented as "
@@ -26134,13 +32162,15 @@ msgid ""
"<code>decode()</code> to go from <code>bytes</code> to <code>str</code>."
msgstr ""
-#: C/strings.py.page:65(section/p)
+#. (itstool) path: section/p
+#: C/strings.py.page:65
msgid ""
"In addition, it is no longer possible to mix Unicode strings with encoded "
"strings, because it will result in a <code>TypeError</code>:"
msgstr ""
-#: C/strings.py.page:67(section/code)
+#. (itstool) path: section/code
+#: C/strings.py.page:67
#, no-wrap
msgid ""
"\n"
@@ -26156,11 +32186,13 @@ msgid ""
"b'Fu\\xc3\\x9fb\\xc3\\xa4lle sind rund'"
msgstr ""
-#: C/strings.py.page:82(section/title)
+#. (itstool) path: section/title
+#: C/strings.py.page:82
msgid "Unicode in GTK+"
msgstr "Unicode in GTK+"
-#: C/strings.py.page:84(section/p)
+#. (itstool) path: section/p
+#: C/strings.py.page:84
msgid ""
"GTK+ uses UTF-8 encoded strings for all text. This means that if you call a "
"method that returns a string you will always obtain an instance of the "
@@ -26170,7 +32202,8 @@ msgid ""
"as argument:"
msgstr ""
-#: C/strings.py.page:86(section/code)
+#. (itstool) path: section/code
+#: C/strings.py.page:86
#, no-wrap
msgid ""
"\n"
@@ -26183,29 +32216,33 @@ msgid ""
"<type 'str'>"
msgstr ""
-#: C/strings.py.page:95(section/p)
+#. (itstool) path: section/p
+#: C/strings.py.page:95
#, fuzzy
#| msgid "Further reading"
msgid "Furthermore:"
msgstr "Weitere Informationen"
-#: C/strings.py.page:97(section/code)
+#. (itstool) path: section/code
+#: C/strings.py.page:97
#, no-wrap
msgid ""
"\n"
">>> txt == unicode_string"
msgstr ""
-#: C/strings.py.page:100(section/p)
+#. (itstool) path: section/p
+#: C/strings.py.page:100
msgid ""
"would return <code>False</code>, with the warning <code>__main__:1: "
"UnicodeWarning: Unicode equal comparison failed to convert both arguments to "
-"Unicode - interpreting them as being unequal</code> (<code>Gtk.Label.get_text"
-"()</code> will always return a <code>str</code> instance; therefore, "
+"Unicode - interpreting them as being unequal</code> (<code>Gtk.Label."
+"get_text()</code> will always return a <code>str</code> instance; therefore, "
"<code>txt</code> and <code>unicode_string</code> are not equal)."
msgstr ""
-#: C/strings.py.page:102(section/p)
+#. (itstool) path: section/p
+#: C/strings.py.page:102
msgid ""
"This is especially important if you want to internationalize your program "
"using <link href=\"http://docs.python.org/library/gettext.html"
@@ -26213,91 +32250,80 @@ msgid ""
"code> will return UTF-8 encoded 8-bit strings for all languages."
msgstr ""
-#: C/strings.py.page:104(section/p)
+#. (itstool) path: section/p
+#: C/strings.py.page:104
msgid ""
"In general it is recommended to not use <code>unicode</code> objects in GTK+ "
"applications at all, and only use UTF-8 encoded <code>str</code> objects "
"since GTK+ does not fully integrate with <code>unicode</code> objects."
msgstr ""
-#: C/strings.py.page:106(section/p)
+#. (itstool) path: section/p
+#: C/strings.py.page:106
msgid ""
"With Python 3.x things are much more consistent, because PyGObject will "
-"automatically encode/decode to/from UTF-8 if you pass a string to a method or "
-"a method returns a string. Strings, or text, will always be represented as "
-"instances of <code>str</code> only."
+"automatically encode/decode to/from UTF-8 if you pass a string to a method "
+"or a method returns a string. Strings, or text, will always be represented "
+"as instances of <code>str</code> only."
msgstr ""
-#: C/strings.py.page:113(section/p)
+#. (itstool) path: section/p
+#: C/strings.py.page:113
msgid ""
"<link href=\"http://python-gtk-3-tutorial.readthedocs.org/en/latest/unicode."
"html\">How To Deal With Strings - The Python GTK+ 3 Tutorial</link>"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/switch.c.page:22(media) C/switch.py.page:22(media)
-#: C/switch.vala.page:25(media)
+#: C/switch.c.page:22 C/switch.py.page:22 C/switch.vala.page:25
msgctxt "_"
msgid ""
"external ref='media/switch_off.png' md5='211a2962708800697ad5373dcc86ad6d'"
msgstr ""
"external ref='media/switch_off.png' md5='211a2962708800697ad5373dcc86ad6d'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/switch.c.page:23(media) C/switch.py.page:23(media)
-#: C/switch.vala.page:26(media)
+#: C/switch.c.page:23 C/switch.py.page:23 C/switch.vala.page:26
msgctxt "_"
msgid ""
"external ref='media/switch_on.png' md5='95e8769f758c2d95ace0fa8ecf30b29d'"
msgstr ""
"external ref='media/switch_on.png' md5='95e8769f758c2d95ace0fa8ecf30b29d'"
-#: C/switch.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/switch.c.page:7
+#, fuzzy
msgctxt "text"
msgid "Switch (C)"
-msgstr ""
+msgstr "Schalter"
-#: C/switch.c.page:17(info/desc) C/switch.py.page:18(info/desc)
-#: C/switch.vala.page:21(info/desc)
+#. (itstool) path: info/desc
+#: C/switch.c.page:17 C/switch.py.page:18 C/switch.vala.page:21
msgid "A \"light switch\" style toggle"
msgstr ""
-#: C/switch.c.page:20(page/title) C/switch.js.page:20(page/title)
-#: C/switch.py.page:21(page/title) C/switch.vala.page:24(page/title)
+#. (itstool) path: page/title
+#: C/switch.c.page:20 C/switch.js.page:20 C/switch.py.page:21
+#: C/switch.vala.page:24
+#, fuzzy
msgid "Switch"
-msgstr ""
+msgstr "Schalter"
-#: C/switch.c.page:24(page/p)
+#. (itstool) path: page/p
+#: C/switch.c.page:24
msgid "This switch toggles the title of the window."
msgstr ""
-#: C/switch.c.page:26(page/code)
+#. (itstool) path: page/code
+#: C/switch.c.page:26
#, no-wrap
msgid ""
"\n"
@@ -26380,29 +32406,33 @@ msgid ""
"}\n"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/switch.js.page:21(media)
+#: C/switch.js.page:21
msgctxt "_"
msgid ""
"external ref='media/switchanimals.png' md5='513ae15dcf68e15eef30b76420b8c714'"
msgstr ""
"external ref='media/switchanimals.png' md5='513ae15dcf68e15eef30b76420b8c714'"
-#: C/switch.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/switch.js.page:7
#, fuzzy
#| msgid "JavaScript"
msgctxt "text"
msgid "Switch (JavaScript)"
msgstr "JavaScript"
-#: C/switch.js.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/switch.js.page:17
msgid "A sliding switch that can be flipped on and off"
msgstr ""
-#: C/switch.js.page:22(page/p)
+#. (itstool) path: page/p
+#: C/switch.js.page:22
msgid ""
"A Switch has two positions, on and off. This example shows how you can use "
"multiple switches together to control which <link xref=\"image.js\">Image</"
@@ -26411,55 +32441,62 @@ msgid ""
"target=Animal+Photos.zip\">can be downloaded here</link>."
msgstr ""
-#: C/switch.js.page:23(note/p)
+#. (itstool) path: note/p
+#: C/switch.js.page:23
msgid ""
"The window will contain a \"broken image\" icon instead of a picture if "
"picture files named <file>redfox.png</file>, <file>muteswan.png</file>, "
"<file>fruitbat.png</file>, and <file>gentoopenguin.png</file> aren't in the "
"same directory. You can change the code and the pictures around as you like, "
-"but the Creative Commons-licensed photos used in this example were taken from "
-"the following sources and cropped to 640x425:"
+"but the Creative Commons-licensed photos used in this example were taken "
+"from the following sources and cropped to 640x425:"
msgstr ""
-#: C/switch.js.page:25(item/p)
+#. (itstool) path: item/p
+#: C/switch.js.page:25
msgid ""
"<link href=\"http://en.wikipedia.org/wiki/File:Fuzzy_Freddy.jpg\">Red fox "
"photo</link> by Rob Lee, licensed <link href=\"http://creativecommons.org/"
"licenses/by/2.0/deed.en\">CC-By</link>"
msgstr ""
-#: C/switch.js.page:26(item/p)
+#. (itstool) path: item/p
+#: C/switch.js.page:26
msgid ""
"<link href=\"http://en.wikipedia.org/wiki/File:Pygoscelis_papua_-"
-"Nagasaki_Penguin_Aquarium_-swimming_underwater-8a.jpg\">Gentoo penguin photo</"
-"link> by Ken Funakoshi, licensed <link href=\"http://creativecommons.org/"
-"licenses/by-sa/2.0/deed.en\">CC-By-SA</link>"
+"Nagasaki_Penguin_Aquarium_-swimming_underwater-8a.jpg\">Gentoo penguin "
+"photo</link> by Ken Funakoshi, licensed <link href=\"http://creativecommons."
+"org/licenses/by-sa/2.0/deed.en\">CC-By-SA</link>"
msgstr ""
-#: C/switch.js.page:27(item/p)
+#. (itstool) path: item/p
+#: C/switch.js.page:27
msgid ""
-"<link href=\"http://www.flickr.com/photos/shekgraham/127431519/in/photostream/"
-"\">Fruit bat photo</link> by Shek Graham, licensed <link href=\"http://"
-"creativecommons.org/licenses/by/2.0/deed.en\">CC-By</link>"
+"<link href=\"http://www.flickr.com/photos/shekgraham/127431519/in/"
+"photostream/\">Fruit bat photo</link> by Shek Graham, licensed <link href="
+"\"http://creativecommons.org/licenses/by/2.0/deed.en\">CC-By</link>"
msgstr ""
-#: C/switch.js.page:28(item/p)
+#. (itstool) path: item/p
+#: C/switch.js.page:28
msgid ""
"<link href=\"http://commons.wikimedia.org/wiki/File:Mute_Swan-"
-"Mindaugas_Urbonas.jpg\">Mute swan photo</link> by Mindaugas Urbonas, licensed "
-"<link href=\"http://creativecommons.org/licenses/by-sa/2.5/deed.en\">CC-By-"
-"SA</link>"
+"Mindaugas_Urbonas.jpg\">Mute swan photo</link> by Mindaugas Urbonas, "
+"licensed <link href=\"http://creativecommons.org/licenses/by-sa/2.5/deed.en"
+"\">CC-By-SA</link>"
msgstr ""
-#: C/switch.js.page:30(note/p)
+#. (itstool) path: note/p
+#: C/switch.js.page:30
msgid ""
"Photo credits and licensing information are shown in the application's <link "
"xref=\"aboutdialog.js\">AboutDialog</link>. Always remember to credit the "
-"original artist when using <link href=\"http://creativecommons.org\">Creative "
-"Commons-licensed works!</link>"
+"original artist when using <link href=\"http://creativecommons.org"
+"\">Creative Commons-licensed works!</link>"
msgstr ""
-#: C/switch.js.page:47(section/code)
+#. (itstool) path: section/code
+#: C/switch.js.page:47
#, no-wrap
msgid ""
"\n"
@@ -26490,14 +32527,17 @@ msgid ""
" },\n"
msgstr ""
-#: C/switch.js.page:74(section/p)
+#. (itstool) path: section/p
+#: C/switch.js.page:74
msgid ""
"All the code for this sample goes in the SwitchExample class. The above code "
"creates a <link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk."
-"Application.html\">Gtk.Application</link> for our widgets and window to go in."
+"Application.html\">Gtk.Application</link> for our widgets and window to go "
+"in."
msgstr ""
-#: C/switch.js.page:76(section/code)
+#. (itstool) path: section/code
+#: C/switch.js.page:76
#, no-wrap
msgid ""
"\n"
@@ -26512,13 +32552,15 @@ msgid ""
" title: \"Animal Creator\"});\n"
msgstr ""
-#: C/switch.js.page:91(section/title)
+#. (itstool) path: section/title
+#: C/switch.js.page:91
#, fuzzy
#| msgid "Creating the user interface"
msgid "Creating the switches"
msgstr "Erstellen der Benutzeroberfläche"
-#: C/switch.js.page:92(section/code)
+#. (itstool) path: section/code
+#: C/switch.js.page:92
#, no-wrap
msgid ""
"\n"
@@ -26526,14 +32568,16 @@ msgid ""
" this._image = new Gtk.Image ({file: \"redfox.png\"});\n"
msgstr ""
-#: C/switch.js.page:97(section/p)
+#. (itstool) path: section/p
+#: C/switch.js.page:97
msgid ""
"We first create the <link xref=\"image.js\">Image</link> that the switches "
"will control. Remember that a file named <file>redfox.png</file> needs to be "
"in the same directory as this application."
msgstr ""
-#: C/switch.js.page:99(section/code)
+#. (itstool) path: section/code
+#: C/switch.js.page:99
#, no-wrap
msgid ""
"\n"
@@ -26556,15 +32600,17 @@ msgid ""
" this._birdSwitch.connect ('notify::active', Lang.bind (this, this._switchFlip));\n"
msgstr ""
-#: C/switch.js.page:119(section/p)
+#. (itstool) path: section/p
+#: C/switch.js.page:119
msgid ""
"We use a <link xref=\"label.js\">Label</link> to mark each Switch, and give "
-"them a bit of a margin on the right so that they aren't crammed right next to "
-"the Switches. After that we create the Switches, and set them to be switched "
-"off by default."
+"them a bit of a margin on the right so that they aren't crammed right next "
+"to the Switches. After that we create the Switches, and set them to be "
+"switched off by default."
msgstr ""
-#: C/switch.js.page:120(section/p)
+#. (itstool) path: section/p
+#: C/switch.js.page:120
msgid ""
"The signal a switch sends out when it's flipped on or off is called notify::"
"active. After we create each switch, we connect its notify::active signal to "
@@ -26574,7 +32620,8 @@ msgid ""
"displayed by _image."
msgstr ""
-#: C/switch.js.page:122(section/code)
+#. (itstool) path: section/code
+#: C/switch.js.page:122
#, no-wrap
msgid ""
"\n"
@@ -26600,7 +32647,8 @@ msgid ""
" this._mainGrid.attach (this._UIGrid, 0, 1, 1, 1);\n"
msgstr ""
-#: C/switch.js.page:144(section/p)
+#. (itstool) path: section/p
+#: C/switch.js.page:144
msgid ""
"We create a <link xref=\"grid.js\">Grid</link> for the Labels and Switches "
"first, so that we can organize them in a 2x2 layout with a margin between it "
@@ -26608,7 +32656,8 @@ msgid ""
"Image on top, and the Grid with the Labels and Switches on the bottom."
msgstr ""
-#: C/switch.js.page:145(section/code)
+#. (itstool) path: section/code
+#: C/switch.js.page:145
#, no-wrap
msgid ""
"\n"
@@ -26620,11 +32669,13 @@ msgid ""
" },\n"
msgstr ""
-#: C/switch.js.page:157(section/title)
+#. (itstool) path: section/title
+#: C/switch.js.page:157
msgid "Function which handles the switches being flipped"
msgstr ""
-#: C/switch.js.page:159(section/code)
+#. (itstool) path: section/code
+#: C/switch.js.page:159
#, no-wrap
msgid ""
"\n"
@@ -26649,21 +32700,24 @@ msgid ""
" },\n"
msgstr ""
-#: C/switch.js.page:180(section/p)
+#. (itstool) path: section/p
+#: C/switch.js.page:180
msgid ""
"Each time a Switch is flipped, this function checks to see which of the two "
"Switches are active afterwards, using the Switches' built-in get_active() "
-"function. It then changes the Image accordingly. You can change the filenames "
-"around as you like, so long as you have pictures to go with them."
+"function. It then changes the Image accordingly. You can change the "
+"filenames around as you like, so long as you have pictures to go with them."
msgstr ""
-#: C/switch.js.page:184(section/title)
+#. (itstool) path: section/title
+#: C/switch.js.page:184
#, fuzzy
#| msgid "Creating the user interface"
msgid "Creating the AboutDialog"
msgstr "Erstellen der Benutzeroberfläche"
-#: C/switch.js.page:185(section/code)
+#. (itstool) path: section/code
+#: C/switch.js.page:185
#, no-wrap
msgid ""
"\n"
@@ -26692,8 +32746,34 @@ msgid ""
" this.application.add_action(quitAction);\n"
" },\n"
msgstr ""
+"\n"
+" _initMenus: function() {\n"
+"\n"
+" // Build the application's menu so we can have an \"About\" button\n"
+" let menu = new Gio.Menu();\n"
+" menu.append(\"About\", 'app.about');\n"
+" menu.append(\"Quit\",'app.quit');\n"
+" this.application.set_app_menu(menu);\n"
+"\n"
+" // Bind the \"About\" button to the _showAbout() function\n"
+" let aboutAction = new Gio.SimpleAction ({ name: 'about' });\n"
+" aboutAction.connect('activate', Lang.bind(this,\n"
+" function() {\n"
+" this._showAbout();\n"
+" }));\n"
+" this.application.add_action(aboutAction);\n"
+"\n"
+" // Bind the \"Quit\" button to the function that closes the window\n"
+" let quitAction = new Gio.SimpleAction ({ name: 'quit' });\n"
+" quitAction.connect('activate', Lang.bind(this,\n"
+" function() {\n"
+" this._window.destroy();\n"
+" }));\n"
+" this.application.add_action(quitAction);\n"
+" },\n"
-#: C/switch.js.page:211(section/p)
+#. (itstool) path: section/p
+#: C/switch.js.page:211
msgid ""
"The first step is building the <link xref=\"gmenu.js\">GMenu</link> that the "
"\"About\" button goes into. This is the menu that appears when you click the "
@@ -26701,7 +32781,8 @@ msgid ""
"Activities menu. Our menu only has two options in it: About, and Quit."
msgstr ""
-#: C/switch.js.page:213(section/code)
+#. (itstool) path: section/code
+#: C/switch.js.page:213
#, no-wrap
msgid ""
"\n"
@@ -26738,8 +32819,42 @@ msgid ""
"\n"
"});\n"
msgstr ""
+"\n"
+" _showAbout: function () {\n"
+"\n"
+" // String arrays of the names of the people involved in the project\n"
+" var artists = ['Rob Lee http://en.wikipedia.org/wiki/File:Fuzzy_Freddy.jpg', 'Ken Funakoshi
http://en.wikipedia.org/wiki/File:Pygoscelis_papua_-Nagasaki_Penguin_Aquarium_-swimming_underwater-8a.jpg',
'Shek Graham http://www.flickr.com/photos/shekgraham/127431519/in/photostream/', 'Mindaugas Urbonas
http://commons.wikimedia.org/wiki/File:Mute_Swan-Mindaugas_Urbonas.jpg'];\n"
+" var authors = [\"GNOME Documentation Team\"];\n"
+" var documenters = [\"GNOME Documentation Team\"];\n"
+"\n"
+" // Create the About dialog\n"
+" let aboutDialog = new Gtk.AboutDialog({\n"
+" title: \"AboutDialog Example\",\n"
+" program_name: \"Animal Creator\",\n"
+" copyright: \"Copyright \\xa9 2012 GNOME Documentation Team\\n\\nRed fox photo licensed CC-By by
Rob Lee\\nGentoo penguin photo licensed CC-By-SA by Ken Funakoshi\\nFruit bat photo licensed CC-By by Shek
Graham\\nMute swan photo licensed CC-By-SA by Mindaugas Urbonas\\nLinks to the originals are available under
Credits.\\n\\nHave you hugged a penguin today?\",\n"
+" artists: artists,\n"
+" authors: authors,\n"
+" documenters: documenters,\n"
+" website: \"http://developer.gnome.org\",\n"
+" website_label: \"GNOME Developer Website\" });\n"
+"\n"
+" // Attach the About dialog to the window\n"
+" aboutDialog.modal = true;\n"
+" aboutDialog.transient_for = this._window;\n"
+"\n"
+" // Show the About dialog\n"
+" aboutDialog.show();\n"
+"\n"
+" // Connect the Close button to the destroy signal for the dialog\n"
+" aboutDialog.connect('response', function() {\n"
+" aboutDialog.destroy();\n"
+" });\n"
+" }\n"
+"\n"
+"});\n"
-#: C/switch.js.page:247(section/p)
+#. (itstool) path: section/p
+#: C/switch.js.page:247
msgid ""
"An <link xref=\"aboutdialog.js\">AboutDialog</link> has a lot of different "
"things you can set, to credit everyone who worked on the application and "
@@ -26750,7 +32865,8 @@ msgid ""
"in the array turn their names into clickable links in the Credits section."
msgstr ""
-#: C/switch.js.page:249(section/code)
+#. (itstool) path: section/code
+#: C/switch.js.page:249
#, no-wrap
msgid ""
"\n"
@@ -26758,14 +32874,20 @@ msgid ""
"let app = new SwitchExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"\n"
+"// Run the application\n"
+"let app = new SwitchExample ();\n"
+"app.application.run (ARGV);\n"
-#: C/switch.js.page:254(section/p)
+#. (itstool) path: section/p
+#: C/switch.js.page:254
msgid ""
"Finally, we create a new instance of the finished SwitchExample class, and "
"set the application running."
msgstr ""
-#: C/switch.js.page:259(section/code)
+#. (itstool) path: section/code
+#: C/switch.js.page:259
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -26948,34 +33070,340 @@ msgid ""
"let app = new SwitchExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const Gio = imports.gi.Gio;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"\n"
+"const SwitchExample = new Lang.Class({\n"
+" Name: 'Switch Example',\n"
+"\n"
+" // Create the application itself\n"
+" _init: function() {\n"
+" this.application = new Gtk.Application({\n"
+" application_id: 'org.example.jsswitch'\n"
+" });\n"
+"\n"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Callback function for 'activate' signal presents window when active\n"
+" _onActivate: function() {\n"
+" this._window.present();\n"
+" },\n"
+"\n"
+" // Callback function for 'startup' signal creates the menu and builds the UI\n"
+" _onStartup: function() {\n"
+" this._initMenus();\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+"\n"
+"\n"
+" // Build the application's UI\n"
+" _buildUI: function() {\n"
+"\n"
+" // Create the application window\n"
+" this._window = new Gtk.ApplicationWindow({\n"
+" application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" border_width: 20,\n"
+" title: \"Animal Creator\"});\n"
+"\n"
+" // Create the image widget and set its default picture\n"
+" this._image = new Gtk.Image ({file: \"redfox.png\"});\n"
+"\n"
+" // Create a label for the first switch\n"
+" this._flyLabel = new Gtk.Label ({\n"
+" label: \"Make it fly\",\n"
+" margin_right: 30});\n"
+"\n"
+" // Create the first switch and set its default position\n"
+" this._flySwitch = new Gtk.Switch ({active: false});\n"
+" this._flySwitch.connect ('notify::active', Lang.bind (this, this._switchFlip));\n"
+"\n"
+" // Create a label for the second switch\n"
+" this._birdLabel = new Gtk.Label ({\n"
+" label: \"Make it a bird\",\n"
+" margin_right: 30});\n"
+"\n"
+" // Create the second switch\n"
+" this._birdSwitch = new Gtk.Switch ({active: false});\n"
+" this._birdSwitch.connect ('notify::active', Lang.bind (this, this._switchFlip));\n"
+"\n"
+" // Create a grid for the labels and switches beneath the picture\n"
+" this._UIGrid = new Gtk.Grid ({\n"
+" halign: Gtk.Align.CENTER,\n"
+" valign: Gtk.Align.CENTER,\n"
+" margin_top: 20});\n"
+"\n"
+" // Attach the labels and switches to that grid\n"
+" this._UIGrid.attach (this._flyLabel, 0, 0, 1, 1);\n"
+" this._UIGrid.attach (this._flySwitch, 1, 0, 1, 1);\n"
+" this._UIGrid.attach (this._birdLabel, 0, 1, 1, 1);\n"
+" this._UIGrid.attach (this._birdSwitch, 1, 1, 1, 1);\n"
+"\n"
+" // Create a master grid to put both the UI and the picture into\n"
+" this._mainGrid = new Gtk.Grid ({\n"
+" halign: Gtk.Align.CENTER,\n"
+" valign: Gtk.Align.CENTER });\n"
+"\n"
+" // Attach the picture and the UI grid to the master grid\n"
+" this._mainGrid.attach (this._image, 0, 0, 1, 1);\n"
+" this._mainGrid.attach (this._UIGrid, 0, 1, 1, 1);\n"
+"\n"
+" // Add the master grid to the window\n"
+" this._window.add (this._mainGrid);\n"
+"\n"
+" // Show the window and all child widgets\n"
+" this._window.show_all();\n"
+" },\n"
+"\n"
+"\n"
+"\n"
+" _switchFlip: function() {\n"
+"\n"
+" // Change the picture depending on which switches are flipped\n"
+" if (this._flySwitch.get_active()) {\n"
+"\n"
+" if (this._birdSwitch.get_active()) this._image.set_from_file (\"muteswan.png\");\n"
+"\n"
+" else this._image.set_from_file (\"fruitbat.png\");\n"
+" }\n"
+"\n"
+" else {\n"
+"\n"
+" if (this._birdSwitch.get_active()) this._image.set_from_file (\"gentoopenguin.png\");\n"
+"\n"
+" else this._image.set_from_file (\"redfox.png\");\n"
+"\n"
+" }\n"
+"\n"
+" },\n"
+"\n"
+"\n"
+"\n"
+" _initMenus: function() {\n"
+"\n"
+" // Build the application's menu so we can have an \"About\" button\n"
+" let menu = new Gio.Menu();\n"
+" menu.append(\"About\", 'app.about');\n"
+" menu.append(\"Quit\",'app.quit');\n"
+" this.application.set_app_menu(menu);\n"
+"\n"
+" // Bind the \"About\" button to the _showAbout() function\n"
+" let aboutAction = new Gio.SimpleAction ({ name: 'about' });\n"
+" aboutAction.connect('activate', Lang.bind(this,\n"
+" function() {\n"
+" this._showAbout();\n"
+" }));\n"
+" this.application.add_action(aboutAction);\n"
+"\n"
+" // Bind the \"Quit\" button to the function that closes the window\n"
+" let quitAction = new Gio.SimpleAction ({ name: 'quit' });\n"
+" quitAction.connect('activate', Lang.bind(this,\n"
+" function() {\n"
+" this._window.destroy();\n"
+" }));\n"
+" this.application.add_action(quitAction);\n"
+" },\n"
+"\n"
+"\n"
+"\n"
+" _showAbout: function () {\n"
+"\n"
+" // String arrays of the names of the people involved in the project\n"
+" var artists = ['Rob Lee http://en.wikipedia.org/wiki/File:Fuzzy_Freddy.png', 'Ken Funakoshi
http://en.wikipedia.org/wiki/File:Pygoscelis_papua_-Nagasaki_Penguin_Aquarium_-swimming_underwater-8a.png',
'Shek Graham http://www.flickr.com/photos/shekgraham/127431519/in/photostream/', 'Mindaugas Urbonas
http://commons.wikimedia.org/wiki/File:Mute_Swan-Mindaugas_Urbonas.png'];\n"
+" var authors = [\"GNOME Documentation Team\"];\n"
+" var documenters = [\"GNOME Documentation Team\"];\n"
+"\n"
+" // Create the About dialog\n"
+" let aboutDialog = new Gtk.AboutDialog({\n"
+" title: \"AboutDialog Example\",\n"
+" program_name: \"Animal Creator\",\n"
+" copyright: \"Copyright \\xa9 2012 GNOME Documentation Team\\n\\nRed fox photo licensed CC-By by
Rob Lee\\nGentoo penguin photo licensed CC-By-SA by Ken Funakoshi\\nFruit bat photo licensed CC-By by Shek
Graham\\nMute swan photo licensed CC-By-SA by Mindaugas Urbonas\\nLinks to the originals are available under
Credits.\\n\\nHave you hugged a penguin today?\",\n"
+" artists: artists,\n"
+" authors: authors,\n"
+" documenters: documenters,\n"
+" website: \"http://developer.gnome.org\",\n"
+" website_label: \"GNOME Developer Website\" });\n"
+"\n"
+" // Attach the About dialog to the window\n"
+" aboutDialog.modal = true;\n"
+" aboutDialog.transient_for = this._window;\n"
+"\n"
+" // Show the About dialog\n"
+" aboutDialog.show();\n"
+"\n"
+" // Connect the Close button to the destroy signal for the dialog\n"
+" aboutDialog.connect('response', function() {\n"
+" aboutDialog.destroy();\n"
+" });\n"
+" }\n"
+"\n"
+"});\n"
+"\n"
+"// Run the application\n"
+"let app = new SwitchExample ();\n"
+"app.application.run (ARGV);\n"
-#: C/switch.js.page:270(item/p)
+#. (itstool) path: item/p
+#: C/switch.js.page:270
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Image.html"
"\">Gtk.Image</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Image.html"
+"\">Gtk.Image</link>"
-#: C/switch.js.page:272(item/p)
+#. (itstool) path: item/p
+#: C/switch.js.page:272
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Switch.html"
"\">Gtk.Switch</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Switch.html"
+"\">Gtk.Switch</link>"
-#: C/switch.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/switch.py.page:7
msgctxt "text"
msgid "Switch (Python)"
msgstr ""
-#: C/switch.py.page:25(page/p)
+#. (itstool) path: page/p
+#: C/switch.py.page:25
msgid "This Switch makes the title appears and disappear."
msgstr ""
-#: C/switch.py.page:32(section/code)
-#, no-wrap
+#. (itstool) path: section/code
+#: C/switch.py.page:32
+#, fuzzy, no-wrap
+#| msgid ""
+#| "from gi.repository import Gtk\n"
+#| "import sys\n"
+#| "\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " # a window\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"Switch Example\", application=app)\n"
+#| " self.set_default_size(300, 100)\n"
+#| " self.set_border_width(10)\n"
+#| "\n"
+#| " # a switch\n"
+#| " switch = Gtk.Switch()\n"
+#| " # turned on by default\n"
+#| " switch.set_active(True)\n"
+#| " # connect the signal notify::active emitted by the switch\n"
+#| " # to the callback function activate_cb\n"
+#| " switch.connect(\"notify::active\", self.activate_cb)\n"
+#| "\n"
+#| " # a label\n"
+#| " label = Gtk.Label()\n"
+#| " label.set_text(\"Title\")\n"
+#| "\n"
+#| " # a grid to allocate the widgets\n"
+#| " grid = Gtk.Grid()\n"
+#| " grid.set_column_spacing (10);\n"
+#| " grid.attach (label, 0, 0, 1, 1);\n"
+#| " grid.attach (switch, 1, 0, 1, 1);\n"
+#| "\n"
+#| " # add the grid to the window\n"
+#| " self.add(grid)\n"
+#| "\n"
+#| " # Callback function. Since the signal is notify::active\n"
+#| " # we need the argument 'active'\n"
+#| " def activate_cb(self, button, active):\n"
+#| " # if the button (i.e. the switch) is active, set the title\n"
+#| " # of the window to \"Switch Example\"\n"
+#| " if button.get_active():\n"
+#| " self.set_title(\"Switch Example\")\n"
+#| " # else, set it to \"\" (empty string)\n"
+#| " else:\n"
+#| " self.set_title(\"\")\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " win = MyWindow(self)\n"
+#| " win.show_all()\n"
+#| "\n"
+#| " def do_startup(self):\n"
+#| " Gtk.Application.do_startup(self)\n"
+#| "\n"
+#| "app = MyApplication()\n"
+#| "exit_status = app.run(sys.argv)\n"
+#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+" # a window\n"
+"\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"Switch Example\", application=app)\n"
+" self.set_default_size(300, 100)\n"
+" self.set_border_width(10)\n"
+"\n"
+" # a switch\n"
+" switch = Gtk.Switch()\n"
+" # turned on by default\n"
+" switch.set_active(True)\n"
+" # connect the signal notify::active emitted by the switch\n"
+" # to the callback function activate_cb\n"
+" switch.connect(\"notify::active\", self.activate_cb)\n"
+"\n"
+" # a label\n"
+" label = Gtk.Label()\n"
+" label.set_text(\"Title\")\n"
+"\n"
+" # a grid to allocate the widgets\n"
+" grid = Gtk.Grid()\n"
+" grid.set_column_spacing(10)\n"
+" grid.attach(label, 0, 0, 1, 1)\n"
+" grid.attach(switch, 1, 0, 1, 1)\n"
+"\n"
+" # add the grid to the window\n"
+" self.add(grid)\n"
+"\n"
+" # Callback function. Since the signal is notify::active\n"
+" # we need the argument 'active'\n"
+" def activate_cb(self, button, active):\n"
+" # if the button (i.e. the switch) is active, set the title\n"
+" # of the window to \"Switch Example\"\n"
+" if button.get_active():\n"
+" self.set_title(\"Switch Example\")\n"
+" # else, set it to \"\" (empty string)\n"
+" else:\n"
+" self.set_title(\"\")\n"
+"\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+"\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
+"\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)\n"
+msgstr ""
+"from gi.repository import Gtk\n"
+"import sys\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
" # a window\n"
" def __init__(self, app):\n"
@@ -27029,13 +33457,14 @@ msgid ""
"app = MyApplication()\n"
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
-msgstr ""
-#: C/switch.py.page:36(section/title)
+#. (itstool) path: section/title
+#: C/switch.py.page:36
msgid "Useful methods for a Switch widget"
msgstr ""
-#: C/switch.py.page:37(section/p)
+#. (itstool) path: section/p
+#: C/switch.py.page:37
msgid ""
"In line 17 the signal <code>\"notify::active\"</code> is connected to the "
"callback function <code>activate_cb()</code> using <code><var>widget</var>."
@@ -27043,22 +33472,26 @@ msgid ""
"xref=\"signals-callbacks.py\"/> for a more detailed explanation."
msgstr ""
-#: C/switch.py.page:44(item/p)
+#. (itstool) path: item/p
+#: C/switch.py.page:44
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkSwitch.html"
"\">GtkSwitch</link>"
msgstr ""
-#: C/switch.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/switch.vala.page:7
msgctxt "text"
msgid "Switch (Vala)"
msgstr ""
-#: C/switch.vala.page:28(page/p)
+#. (itstool) path: page/p
+#: C/switch.vala.page:28
msgid "This Switch toggles the title."
msgstr ""
-#: C/switch.vala.page:30(page/code)
+#. (itstool) path: page/code
+#: C/switch.vala.page:30
#, no-wrap
msgid ""
"class MyWindow : Gtk.ApplicationWindow {\n"
@@ -27108,74 +33541,122 @@ msgid ""
"\treturn new MyApplication ().run (args);\n"
"}\n"
msgstr ""
+"class MyWindow : Gtk.ApplicationWindow {\n"
+"\n"
+"\tinternal MyWindow (MyApplication app) {\n"
+"\t\tObject (application: app, title: \"Switch Example\");\n"
+"\n"
+"\t\tthis.set_default_size (300, 100);\n"
+"\t\tthis.border_width = 10;\n"
+"\n"
+"\t\tvar label = new Gtk.Label (\"Title\");\n"
+"\t\tvar switcher = new Gtk.Switch ();\n"
+"\n"
+"\t\tswitcher.set_active (true);\n"
+"\n"
+"\t\tswitcher.notify[\"active\"].connect (switcher_cb);\n"
+"\n"
+"\t\tvar grid = new Gtk.Grid ();\n"
+"\t\tgrid.set_column_spacing (10);\n"
+"\t\tgrid.attach (label, 0, 0, 1, 1);\n"
+"\t\tgrid.attach (switcher, 1, 0, 1, 1);\n"
+"\n"
+"\t\tthis.add (grid);\n"
+"\t}\n"
+"\n"
+"\tvoid switcher_cb (Object switcher, ParamSpec pspec) {\n"
+"\t\tif ((switcher as Gtk.Switch).get_active())\n"
+"\t\t\tthis.set_title (\"Switch Example\");\n"
+"\t\telse\n"
+"\t\t\tthis.set_title (\"\");\n"
+"\t}\n"
+"}\n"
+"\n"
+"class MyApplication : Gtk.Application {\n"
+"\tprotected override void activate () {\n"
+"\n"
+"\t\tvar window = new MyWindow (this);\n"
+"\t\twindow.show_all (); //show all the things\n"
+"\t}\n"
+"\n"
+"\tinternal MyApplication () {\n"
+"\t\tObject (application_id: \"org.example.checkbutton\");\n"
+"\t}\n"
+"}\n"
+"\n"
+"int main (string[] args) {\n"
+"\treturn new MyApplication ().run (args);\n"
+"}\n"
-#: C/switch.vala.page:35(item/p)
+#. (itstool) path: item/p
+#: C/switch.vala.page:35
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Switch.html\">Gtk.Switch</"
"link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Switch.html\">Gtk.Switch</"
+"link>"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/textview.c.page:26(media) C/textview.py.page:38(media)
-#: C/textview.vala.page:26(media)
+#: C/textview.c.page:26 C/textview.py.page:38 C/textview.vala.page:26
msgctxt "_"
-msgid "external ref='media/textview.png' md5='049e859ed1af2d7c93d8cb5cfd9f7792'"
+msgid ""
+"external ref='media/textview.png' md5='049e859ed1af2d7c93d8cb5cfd9f7792'"
msgstr ""
"external ref='media/textview.png' md5='049e859ed1af2d7c93d8cb5cfd9f7792'"
-#: C/textview.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/textview.c.page:7
msgctxt "text"
msgid "TextView (C)"
msgstr ""
-#: C/textview.c.page:17(info/desc) C/textview.vala.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/textview.c.page:17 C/textview.vala.page:17
msgid "Widget which displays a GtkTextBuffer"
msgstr ""
-#: C/textview.c.page:20(page/title) C/textview.vala.page:20(page/title)
+#. (itstool) path: page/title
+#: C/textview.c.page:20 C/textview.vala.page:20
msgid "TextView widget"
msgstr ""
-#: C/textview.c.page:21(note/p) C/textview.py.page:32(note/p)
-#: C/textview.vala.page:21(note/p)
+#. (itstool) path: note/p
+#: C/textview.c.page:21 C/textview.py.page:32 C/textview.vala.page:21
msgid "If we press \"enter\", we have a new line."
msgstr ""
-#: C/textview.c.page:22(note/p) C/textview.vala.page:22(note/p)
+#. (itstool) path: note/p
+#: C/textview.c.page:22 C/textview.vala.page:22
msgid ""
"If we press \"enter\" more times then there are lines in the default sized "
"window, then a vertical scrollbar appears."
msgstr ""
-#: C/textview.c.page:23(note/p) C/textview.vala.page:23(note/p)
+#. (itstool) path: note/p
+#: C/textview.c.page:23 C/textview.vala.page:23
msgid ""
"If we write a long sentence, the text will wrap breaking lines between words."
msgstr ""
-#: C/textview.c.page:24(note/p)
+#. (itstool) path: note/p
+#: C/textview.c.page:24
msgid ""
-"If we have a loooooooooooooooooooooooooooooooooooong (that was long) word, a* "
-"horizontal scrollbar will appear."
+"If we have a loooooooooooooooooooooooooooooooooooong (that was long) word, "
+"a* horizontal scrollbar will appear."
msgstr ""
-#: C/textview.c.page:27(page/p) C/textview.vala.page:27(page/p)
+#. (itstool) path: page/p
+#: C/textview.c.page:27 C/textview.vala.page:27
msgid "This is an example of Gtk.TextView"
msgstr ""
-#: C/textview.c.page:29(page/code)
+#. (itstool) path: page/code
+#: C/textview.c.page:29
#, no-wrap
msgid ""
"\n"
@@ -27252,17 +33733,19 @@ msgid ""
"}\n"
msgstr ""
-#: C/textview.c.page:40(item/p)
+#. (itstool) path: item/p
+#: C/textview.c.page:40
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkContainer.html"
"\">GtkContainer</link>"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/textview.js.page:25(media)
+#: C/textview.js.page:25
msgctxt "_"
msgid ""
"external ref='media/textviewpenguinchat.png' "
@@ -27271,34 +33754,40 @@ msgstr ""
"external ref='media/textviewpenguinchat.png' "
"md5='0dd6f6aa44aaeab7901bd90162ed4c9a'"
-#: C/textview.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/textview.js.page:7
#, fuzzy
#| msgid "JavaScript"
msgctxt "text"
msgid "TextView (JavaScript)"
msgstr "JavaScript"
-#: C/textview.js.page:21(info/desc)
+#. (itstool) path: info/desc
+#: C/textview.js.page:21
msgid "A multiline text editor"
msgstr "Ein mehrzeiliger Texteditor"
-#: C/textview.js.page:24(page/title) C/textview.py.page:29(page/title)
+#. (itstool) path: page/title
+#: C/textview.js.page:24 C/textview.py.page:29
msgid "TextView"
msgstr ""
-#: C/textview.js.page:26(page/p)
+#. (itstool) path: page/p
+#: C/textview.js.page:26
msgid ""
"A TextView is really (or at least usually) a nested set of three objects."
msgstr ""
-#: C/textview.js.page:28(item/p)
+#. (itstool) path: item/p
+#: C/textview.js.page:28
msgid ""
"At the bottom there is a <link href=\"http://www.roojs.org/seed/gir-1.2-"
"gtk-3.0/gjs/Gtk.TextBuffer.html\">TextBuffer</link>. This holds the text "
"itself."
msgstr ""
-#: C/textview.js.page:29(item/p)
+#. (itstool) path: item/p
+#: C/textview.js.page:29
msgid ""
"In the middle there is the <link href=\"http://www.roojs.org/seed/gir-1.2-"
"gtk-3.0/gjs/Gtk.TextView.html\">TextView</link>, which is a widget that lets "
@@ -27306,26 +33795,29 @@ msgid ""
"depending on how much text there is."
msgstr ""
-#: C/textview.js.page:30(item/p)
+#. (itstool) path: item/p
+#: C/textview.js.page:30
msgid ""
-"Since the automatic resizing can make a TextView unwieldy, you normally place "
-"it inside of a <link xref=\"scrolledwindow.js\">ScrolledWindow</link>. "
-"Despite the name, it's not an actual window in terms of having a title bar "
-"and an X button; it's a widget you put on the application you're making, "
-"which acts like a window onto a more manageable chunk of a TextView. If the "
-"text in the buffer is too big to fit, scrollbars will appear."
+"Since the automatic resizing can make a TextView unwieldy, you normally "
+"place it inside of a ScrolledWindow. Despite the name, it's not an actual "
+"window in terms of having a title bar and an X button; it's a widget you put "
+"on the application you're making, which acts like a window onto a more "
+"manageable chunk of a TextView. If the text in the buffer is too big to fit, "
+"scrollbars will appear."
msgstr ""
-#: C/textview.js.page:32(page/p)
+#. (itstool) path: page/p
+#: C/textview.js.page:32
msgid ""
"If you want to change what text is displayed in the TextView, you act on the "
-"TextBuffer, since it's what actually holds the text. The same goes for if you "
-"want to see what text someone typed in. This sample application lets you talk "
-"to a (make-believe) penguin, and checks the TextBuffer to see if you typed "
-"the word \"fish\" anywhere in it."
+"TextBuffer, since it's what actually holds the text. The same goes for if "
+"you want to see what text someone typed in. This sample application lets you "
+"talk to a (make-believe) penguin, and checks the TextBuffer to see if you "
+"typed the word \"fish\" anywhere in it."
msgstr ""
-#: C/textview.js.page:33(note/p)
+#. (itstool) path: note/p
+#: C/textview.js.page:33
msgid ""
"Real-life penguin populations are declining fast, because climate change is "
"melting the ice that they live on and killing the fish that they eat. If "
@@ -27333,7 +33825,8 @@ msgid ""
"a look at <link href=\"http://pingus.seul.org/\">Pingus</link>."
msgstr ""
-#: C/textview.js.page:49(section/code)
+#. (itstool) path: section/code
+#: C/textview.js.page:49
#, no-wrap
msgid ""
"\n"
@@ -27361,14 +33854,17 @@ msgid ""
" },\n"
msgstr ""
-#: C/textview.js.page:73(section/p)
+#. (itstool) path: section/p
+#: C/textview.js.page:73
msgid ""
"All the code for this sample goes in the TextViewExample class. The above "
-"code creates a <link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk."
-"Application.html\">Gtk.Application</link> for our widgets and window to go in."
+"code creates a <link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/"
+"Gtk.Application.html\">Gtk.Application</link> for our widgets and window to "
+"go in."
msgstr ""
-#: C/textview.js.page:74(section/code)
+#. (itstool) path: section/code
+#: C/textview.js.page:74
#, no-wrap
msgid ""
"\n"
@@ -27385,13 +33881,15 @@ msgid ""
" border_width: 20 });\n"
msgstr ""
-#: C/textview.js.page:91(section/title)
+#. (itstool) path: section/title
+#: C/textview.js.page:91
#, fuzzy
#| msgid "Creating the user interface"
msgid "Creating the TextView"
msgstr "Erstellen der Benutzeroberfläche"
-#: C/textview.js.page:92(section/code)
+#. (itstool) path: section/code
+#: C/textview.js.page:92
#, no-wrap
msgid ""
"\n"
@@ -27403,7 +33901,8 @@ msgid ""
" wrap: true });\n"
msgstr ""
-#: C/textview.js.page:101(section/p)
+#. (itstool) path: section/p
+#: C/textview.js.page:101
msgid ""
"Our first step in this example is to create the <link xref=\"label.js"
"\">Label</link> that the penguin will use to talk to you. We set the text in "
@@ -27411,7 +33910,8 @@ msgid ""
"method on the TextView itself that allows for more fine-grained control."
msgstr ""
-#: C/textview.js.page:103(section/code)
+#. (itstool) path: section/code
+#: C/textview.js.page:103
#, no-wrap
msgid ""
"\n"
@@ -27423,15 +33923,17 @@ msgid ""
" wrap_mode: Gtk.WrapMode.WORD });\n"
msgstr ""
-#: C/textview.js.page:112(section/p)
+#. (itstool) path: section/p
+#: C/textview.js.page:112
msgid ""
-"Our first step is to create a TextBuffer to put the words into. After that we "
-"create the TextView, and tell it to use the TextBuffer we created as its "
+"Our first step is to create a TextBuffer to put the words into. After that "
+"we create the TextView, and tell it to use the TextBuffer we created as its "
"buffer. We also set it to be editable, since we want to be able to type new "
"things in."
msgstr ""
-#: C/textview.js.page:113(section/p)
+#. (itstool) path: section/p
+#: C/textview.js.page:113
msgid ""
"The wrap_mode property lets you select from four different <link href="
"\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.WrapMode.html"
@@ -27441,7 +33943,8 @@ msgid ""
"the word you're typing on the next line if it gets to be too long."
msgstr ""
-#: C/textview.js.page:115(section/code)
+#. (itstool) path: section/code
+#: C/textview.js.page:115
#, no-wrap
msgid ""
"\n"
@@ -27457,16 +33960,17 @@ msgid ""
" this._scrolled.add_with_viewport (this._textView);\n"
msgstr ""
-#: C/textview.js.page:127(section/p)
+#. (itstool) path: section/p
+#: C/textview.js.page:127
msgid ""
-"Here we create a <link xref=\"scrolledwindow.js\">ScrolledWindow</link>, and "
-"set it to automatically scroll if it gets to be too big horizontally or "
-"vertically. We also give it a nice-looking ETCHED_IN border. After that, we "
-"put our TextView inside, and tell the ScrolledWindow to give us a viewport "
-"onto it."
+"Here we create a ScrolledWindow, and set it to automatically scroll if it "
+"gets to be too big horizontally or vertically. We also give it a nice-"
+"looking ETCHED_IN border. After that, we put our TextView inside, and tell "
+"the ScrolledWindow to give us a viewport onto it."
msgstr ""
-#: C/textview.js.page:133(section/code)
+#. (itstool) path: section/code
+#: C/textview.js.page:133
#, no-wrap
msgid ""
"\n"
@@ -27480,13 +33984,15 @@ msgid ""
" this._grid.attach (this._scrolled, 0, 1, 1, 1);\n"
msgstr ""
-#: C/textview.js.page:143(section/p)
+#. (itstool) path: section/p
+#: C/textview.js.page:143
msgid ""
-"The first <link xref=\"grid.js\">Grid</link> we create only has the Label and "
-"the ScrolledWindow inside it."
+"The first <link xref=\"grid.js\">Grid</link> we create only has the Label "
+"and the ScrolledWindow inside it."
msgstr ""
-#: C/textview.js.page:145(section/code)
+#. (itstool) path: section/code
+#: C/textview.js.page:145
#, no-wrap
msgid ""
"\n"
@@ -27507,7 +34013,8 @@ msgid ""
" this._mainGrid.attach (this._send, 0, 1, 1, 1);\n"
msgstr ""
-#: C/textview.js.page:162(section/p)
+#. (itstool) path: section/p
+#: C/textview.js.page:162
msgid ""
"We create a <link xref=\"button.js\">Button</link> to send your message to "
"the penguin, and a new Grid that has the other one on top and the Button on "
@@ -27515,7 +34022,8 @@ msgid ""
"against the ScrolledWindow."
msgstr ""
-#: C/textview.js.page:164(section/code)
+#. (itstool) path: section/code
+#: C/textview.js.page:164
#, no-wrap
msgid ""
"\n"
@@ -27527,17 +34035,20 @@ msgid ""
" },\n"
msgstr ""
-#: C/textview.js.page:173(section/p)
+#. (itstool) path: section/p
+#: C/textview.js.page:173
msgid ""
"Finally, we attach the main Grid to the window, then we tell the window and "
"everything inside it to become visible when the application is run."
msgstr ""
-#: C/textview.js.page:178(section/title)
+#. (itstool) path: section/title
+#: C/textview.js.page:178
msgid "Function which handles the penguin's response"
msgstr ""
-#: C/textview.js.page:179(section/code)
+#. (itstool) path: section/code
+#: C/textview.js.page:179
#, no-wrap
msgid ""
"\n"
@@ -27592,7 +34103,8 @@ msgid ""
"});\n"
msgstr ""
-#: C/textview.js.page:230(section/p)
+#. (itstool) path: section/p
+#: C/textview.js.page:230
msgid ""
"Here we use some basic JavaScript functions to have the penguins say "
"something random. Penguins like fish, though, so if you mention fish we want "
@@ -27601,15 +34113,17 @@ msgid ""
"contents of our TextBuffer."
msgstr ""
-#: C/textview.js.page:231(section/p)
+#. (itstool) path: section/p
+#: C/textview.js.page:231
msgid ""
"Since we want to clear out the TextBuffer after each time you click Send, we "
-"set <file>this.buffer.text</file> to contain an empty string afterwards. Then "
-"we return focus to our TextView, so that you can keep typing without having "
-"to click on it beforehand."
+"set <file>this.buffer.text</file> to contain an empty string afterwards. "
+"Then we return focus to our TextView, so that you can keep typing without "
+"having to click on it beforehand."
msgstr ""
-#: C/textview.js.page:233(section/code)
+#. (itstool) path: section/code
+#: C/textview.js.page:233
#, no-wrap
msgid ""
"\n"
@@ -27618,13 +34132,15 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/textview.js.page:238(section/p)
+#. (itstool) path: section/p
+#: C/textview.js.page:238
msgid ""
"Finally, we create a new instance of the finished TextViewExample class, and "
"set the application running."
msgstr ""
-#: C/textview.js.page:243(section/code)
+#. (itstool) path: section/code
+#: C/textview.js.page:243
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -27783,62 +34299,114 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/textview.js.page:255(item/p)
+#. (itstool) path: item/p
+#: C/textview.js.page:255
msgid ""
-"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.ScrolledWindow."
-"html\">Gtk.ScrolledWindow</link>"
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk."
+"ScrolledWindow.html\">Gtk.ScrolledWindow</link>"
msgstr ""
-#: C/textview.js.page:256(item/p)
+#. (itstool) path: item/p
+#: C/textview.js.page:256
msgid ""
-"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.TextBuffer.html"
-"\">Gtk.TextBuffer</link>"
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.TextBuffer."
+"html\">Gtk.TextBuffer</link>"
msgstr ""
-#: C/textview.js.page:257(item/p)
+#. (itstool) path: item/p
+#: C/textview.js.page:257
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.TextView.html"
"\">Gtk.TextView</link>"
msgstr ""
-#: C/textview.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/textview.py.page:7
msgctxt "text"
msgid "TextView (Python)"
msgstr ""
-#: C/textview.py.page:26(info/desc)
+#. (itstool) path: info/desc
+#: C/textview.py.page:26
msgid "Widget that displays a GtkTextBuffer"
msgstr ""
-#: C/textview.py.page:31(note/p)
+#. (itstool) path: note/p
+#: C/textview.py.page:31
msgid "This is an example of Gtk.TextView."
msgstr ""
-#: C/textview.py.page:33(note/p)
+#. (itstool) path: note/p
+#: C/textview.py.page:33
msgid ""
"But we can also have a new line if we write a long sentence (the text will "
"wrap breaking lines between words)."
msgstr ""
-#: C/textview.py.page:34(note/p)
+#. (itstool) path: note/p
+#: C/textview.py.page:34
msgid "If we have a loooooooooooooooooooooooooooooooooooong"
msgstr ""
-#: C/textview.py.page:35(note/p)
+#. (itstool) path: note/p
+#: C/textview.py.page:35
msgid "(that was long)"
msgstr ""
-#: C/textview.py.page:36(note/p)
+#. (itstool) path: note/p
+#: C/textview.py.page:36
msgid "word, an horizontal scrollbar will appear."
msgstr ""
-#: C/textview.py.page:45(section/code)
-#, no-wrap
+#. (itstool) path: section/code
+#: C/textview.py.page:45
+#, fuzzy, no-wrap
+#| msgid ""
+#| "from gi.repository import Gtk\n"
+#| "import sys\n"
+#| "\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"ScrolledWindow Example\", application=app)\n"
+#| " self.set_default_size(200, 200)\n"
+#| "\n"
+#| " # the scrolledwindow\n"
+#| " scrolled_window = Gtk.ScrolledWindow()\n"
+#| " scrolled_window.set_border_width(10)\n"
+#| " # there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
+#| " scrolled_window.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\n"
+#| "\n"
+#| " # an image - slightly larger than the window...\n"
+#| " image = Gtk.Image()\n"
+#| " image.set_from_file(\"gnome-image.png\")\n"
+#| "\n"
+#| " # add the image to the scrolledwindow\n"
+#| " scrolled_window.add_with_viewport(image)\n"
+#| "\n"
+#| " # add the scrolledwindow to the window\n"
+#| " self.add(scrolled_window)\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " win = MyWindow(self)\n"
+#| " win.show_all()\n"
+#| "\n"
+#| " def do_startup(self):\n"
+#| " Gtk.Application.do_startup(self)\n"
+#| "\n"
+#| "app = MyApplication()\n"
+#| "exit_status = app.run(sys.argv)\n"
+#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"TextView Example\", application=app)\n"
" self.set_default_size(300, 450)\n"
@@ -27847,7 +34415,8 @@ msgid ""
" scrolled_window = Gtk.ScrolledWindow()\n"
" scrolled_window.set_border_width(5)\n"
" # we scroll only if needed\n"
-" scrolled_window.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)\n"
+" scrolled_window.set_policy(\n"
+" Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)\n"
"\n"
" # a text buffer (stores text)\n"
" buffer1 = Gtk.TextBuffer()\n"
@@ -27862,7 +34431,9 @@ msgid ""
"\n"
" self.add(scrolled_window)\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -27877,12 +34448,52 @@ msgid ""
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
msgstr ""
+"from gi.repository import Gtk\n"
+"import sys\n"
+"\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"ScrolledWindow Example\", application=app)\n"
+" self.set_default_size(200, 200)\n"
+"\n"
+" # the scrolledwindow\n"
+" scrolled_window = Gtk.ScrolledWindow()\n"
+" scrolled_window.set_border_width(10)\n"
+" # there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
+" scrolled_window.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\n"
+"\n"
+" # an image - slightly larger than the window...\n"
+" image = Gtk.Image()\n"
+" image.set_from_file(\"gnome-image.png\")\n"
+"\n"
+" # add the image to the scrolledwindow\n"
+" scrolled_window.add_with_viewport(image)\n"
+"\n"
+" # add the scrolledwindow to the window\n"
+" self.add(scrolled_window)\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
+"\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)\n"
-#: C/textview.py.page:49(section/title)
+#. (itstool) path: section/title
+#: C/textview.py.page:49
msgid "Useful methods for a TextView widget"
msgstr ""
-#: C/textview.py.page:50(section/p)
+#. (itstool) path: section/p
+#: C/textview.py.page:50
msgid ""
"A <code>Gtk.TextView</code> displays the text stored in a <code>Gtk."
"TextBuffer</code>. However, most text manipulation is accomplished with "
@@ -27893,28 +34504,33 @@ msgid ""
"can’t be used to preserve positions across buffer modifications. To preserve "
"a position, we use a <code>Gtk.TextMark</code>, that can be set visible with "
"<code>visible(True)</code>. A text buffer contains two built-in marks; an "
-"\"insert\" mark (the position of the cursor) and the \"selection_bound\" mark."
+"\"insert\" mark (the position of the cursor) and the \"selection_bound\" "
+"mark."
msgstr ""
-#: C/textview.py.page:51(section/p)
+#. (itstool) path: section/p
+#: C/textview.py.page:51
msgid "Methods for a TextView widget:"
msgstr ""
-#: C/textview.py.page:53(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:53
msgid ""
"The TextView widget is by default editable. If you prefer otherwise, use "
"<code>set_editable(False)</code>. If the buffer has no editable text, it "
"might be a good idea to use <code>set_cursor_visible(False)</code> as well."
msgstr ""
-#: C/textview.py.page:54(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:54
msgid ""
"The justification of the text is set with <code>set_justification(Gtk."
"Justification.JUSTIFICATION)</code> where <code>JUSTIFICATION</code> is one "
"of <code>LEFT, RIGHT, CENTER, FILL</code>."
msgstr ""
-#: C/textview.py.page:55(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:55
msgid ""
"The line wrapping of the text is set with <code>set_wrap_mode(Gtk.WrapMode."
"WRAP)</code> where <code>WRAP</code> is one of <code>NONE</code> (the text "
@@ -27924,23 +34540,27 @@ msgid ""
"characters)."
msgstr ""
-#: C/textview.py.page:57(section/p)
+#. (itstool) path: section/p
+#: C/textview.py.page:57
msgid "Methods for a TextBuffer widget:"
msgstr ""
-#: C/textview.py.page:59(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:59
msgid ""
"<code>get_insert()</code> returns the <code>Gtk.TextMark</code> that "
"represents the cursor, that is the insertion point."
msgstr ""
-#: C/textview.py.page:60(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:60
msgid ""
-"<code>get_selection_bound()</code> returns the <code>Gtk.TextMark</code> that "
-"represents the selection bound."
+"<code>get_selection_bound()</code> returns the <code>Gtk.TextMark</code> "
+"that represents the selection bound."
msgstr ""
-#: C/textview.py.page:61(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:61
msgid ""
"<code>set_text(\"some text\", length)</code> where <code>length</code> is a "
"positive integer or <code>-1</code>, sets the content of the buffer as the "
@@ -27949,36 +34569,40 @@ msgid ""
"completely. The content of the buffer, if there is any, is destroyed."
msgstr ""
-#: C/textview.py.page:62(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:62
msgid ""
-"<code>insert(iter, \"some text\", length)</code> where <code>iter</code> is a "
-"text iterator and <code>length</code> is a positive integer or <code>-1</"
+"<code>insert(iter, \"some text\", length)</code> where <code>iter</code> is "
+"a text iterator and <code>length</code> is a positive integer or <code>-1</"
"code>, inserts in the buffer at <code>iter</code> the first <code>length</"
"code> characters of the <code>\"some text\"</code> text. If <code>length</"
"code> is omitted or <code>-1</code>, the text is inserted completely."
msgstr ""
-#: C/textview.py.page:63(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:63
msgid ""
"<code>insert_at_cursor(\"some text\", length)</code> does the same as "
"<code>insert(iter, \"some text\", length)</code>, with the current cursor "
"taken as <code>iter</code>."
msgstr ""
-#: C/textview.py.page:64(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:64
msgid ""
-"<code>create_mark(\"mark_name\", iter, left_gravity)</code> where <code>iter</"
-"code> is a <code>Gtk.TextIter</code> and <code>left_gravity</code> is a "
-"boolean, creates a <code>Gtk.TextMark</code> at the position of <code>iter</"
-"code>. If <code>\"mark_name\"</code> is <code>None</code>, the mark is "
-"anonymous; otherwise, the mark can be retrieved by name using <code>get_mark()"
-"</code>. If a mark has left gravity, and text is inserted at the mark’s "
-"current location, the mark will be moved to the left of the newly-inserted "
-"text. If <code>left_gravity</code> is omitted, it defaults to <code>False</"
-"code>."
+"<code>create_mark(\"mark_name\", iter, left_gravity)</code> where "
+"<code>iter</code> is a <code>Gtk.TextIter</code> and <code>left_gravity</"
+"code> is a boolean, creates a <code>Gtk.TextMark</code> at the position of "
+"<code>iter</code>. If <code>\"mark_name\"</code> is <code>None</code>, the "
+"mark is anonymous; otherwise, the mark can be retrieved by name using "
+"<code>get_mark()</code>. If a mark has left gravity, and text is inserted at "
+"the mark’s current location, the mark will be moved to the left of the newly-"
+"inserted text. If <code>left_gravity</code> is omitted, it defaults to "
+"<code>False</code>."
msgstr ""
-#: C/textview.py.page:66(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:66
msgid ""
"To specify that some text in the buffer should have specific formatting, you "
"must define a tag to hold that formatting information, and then apply that "
@@ -27987,7 +34611,8 @@ msgid ""
"instance:"
msgstr ""
-#: C/textview.py.page:67(item/code)
+#. (itstool) path: item/code
+#: C/textview.py.page:67
#, no-wrap
msgid ""
"\n"
@@ -27995,108 +34620,129 @@ msgid ""
"textbuffer.apply_tag(tag, start_iter, end_iter)"
msgstr ""
-#: C/textview.py.page:70(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:70
msgid "The following are some of the common styles applied to text:"
msgstr ""
-#: C/textview.py.page:72(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:72
msgid "Background colour (\"background\" property)"
msgstr ""
-#: C/textview.py.page:73(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:73
msgid "Foreground colour (\"foreground\" property)"
msgstr ""
-#: C/textview.py.page:74(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:74
msgid "Underline (\"underline\" property)"
msgstr ""
-#: C/textview.py.page:75(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:75
msgid "Bold (\"weight\" property)"
msgstr ""
-#: C/textview.py.page:76(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:76
msgid "Italics (\"style\" property)"
msgstr ""
-#: C/textview.py.page:77(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:77
msgid "Strikethrough (\"strikethrough\" property)"
msgstr ""
-#: C/textview.py.page:78(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:78
msgid "Justification (\"justification\" property)"
msgstr ""
-#: C/textview.py.page:79(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:79
msgid "Size (\"size\" and \"size-points\" properties)"
msgstr ""
-#: C/textview.py.page:80(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:80
msgid "Text wrapping (\"wrap-mode\" property)"
msgstr ""
-#: C/textview.py.page:82(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:82
msgid ""
"You can also delete particular tags later using <code>remove_tag()</code> or "
"delete all tags in a given region by calling <code>remove_all_tags()</code>."
msgstr ""
-#: C/textview.py.page:84(section/p)
+#. (itstool) path: section/p
+#: C/textview.py.page:84
msgid "Methods for a TextIter widget"
msgstr ""
-#: C/textview.py.page:86(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:86
msgid ""
"<code>forward_search(needle, flags, limit)</code> searches forward for "
"<code>needle</code>. The search will not continue past the <code>Gtk."
"TextIter</code> limit. The <code>flags</code> can be set to one of the "
-"following, or any combination of it by concatenating them with the bitwise-OR "
-"operator <code>|</code>: <code>0</code> (the match must be exact); <code>Gtk."
-"TextSearchFlags.VISIBLE_ONLY</code> (the match may have invisible text "
-"interspersed in needle); <code>Gtk.TextSearchFlags.TEXT_ONLY</code> (the "
-"match may have pixbufs or child widgets mixed inside the matched range); "
-"<code>Gtk.TextSearchFlags.CASE_INSENSITIVE</code> (the text will be matched "
-"regardless of what case it is in). The method returns a tuple containing a "
-"<code>Gtk.TextIter</code> pointing to the start and to the first character "
-"after the match; if no match is found, <code>None</code> is returned."
+"following, or any combination of it by concatenating them with the bitwise-"
+"OR operator <code>|</code>: <code>0</code> (the match must be exact); "
+"<code>Gtk.TextSearchFlags.VISIBLE_ONLY</code> (the match may have invisible "
+"text interspersed in needle); <code>Gtk.TextSearchFlags.TEXT_ONLY</code> "
+"(the match may have pixbufs or child widgets mixed inside the matched "
+"range); <code>Gtk.TextSearchFlags.CASE_INSENSITIVE</code> (the text will be "
+"matched regardless of what case it is in). The method returns a tuple "
+"containing a <code>Gtk.TextIter</code> pointing to the start and to the "
+"first character after the match; if no match is found, <code>None</code> is "
+"returned."
msgstr ""
-#: C/textview.py.page:87(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:87
msgid ""
"<code>backward_search(needle, flags, limit)</code> does the same as "
"<code>forward_search()</code>, but moving backwards."
msgstr ""
-#: C/textview.py.page:95(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:95
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkTextView.html"
"\">GtkTextView</link>"
msgstr ""
-#: C/textview.py.page:96(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:96
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkTextBuffer.html"
"\">GtkTextBuffer</link>"
msgstr ""
-#: C/textview.py.page:97(item/p)
+#. (itstool) path: item/p
+#: C/textview.py.page:97
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkTextTag.html"
"\">GtkTextTag</link>"
msgstr ""
-#: C/textview.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/textview.vala.page:7
msgctxt "text"
msgid "TextView (Vala)"
msgstr ""
-#: C/textview.vala.page:24(note/p)
+#. (itstool) path: note/p
+#: C/textview.vala.page:24
msgid ""
"If we have a loooooooooooooooooooooooooooooooooooong word, a horizontal "
"scrollbar will appear."
msgstr ""
-#: C/textview.vala.page:29(page/code)
+#. (itstool) path: page/code
+#: C/textview.vala.page:29
#, no-wrap
msgid ""
"/* This is the application. */\n"
@@ -28134,73 +34780,66 @@ msgid ""
"}\n"
msgstr ""
-#: C/textview.vala.page:34(item/p)
+#. (itstool) path: item/p
+#: C/textview.vala.page:34
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.TextBuffer.html\">Gtk."
"TextBuffer</link>"
msgstr ""
-#: C/textview.vala.page:35(item/p)
+#. (itstool) path: item/p
+#: C/textview.vala.page:35
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.TextView.html\">Gtk."
"TextView</link>"
msgstr ""
-#: C/textview.vala.page:37(item/p)
+#. (itstool) path: item/p
+#: C/textview.vala.page:37
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.WrapMode.html\">Gtk."
"WrapMode</link>"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/togglebutton.c.page:26(media) C/togglebutton.js.page:21(media)
-#: C/togglebutton.py.page:22(media) C/togglebutton.vala.page:24(media)
+#: C/togglebutton.c.page:26 C/togglebutton.js.page:21
+#: C/togglebutton.py.page:22 C/togglebutton.vala.page:24
msgctxt "_"
msgid ""
"external ref='media/togglebutton.png' md5='791e062613d4f9bd5936390b0aa18448'"
msgstr ""
"external ref='media/togglebutton.png' md5='791e062613d4f9bd5936390b0aa18448'"
-#: C/togglebutton.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/togglebutton.c.page:7
msgctxt "text"
msgid "ToggleButton (C)"
msgstr ""
-#: C/togglebutton.c.page:21(info/desc) C/togglebutton.py.page:18(info/desc)
-#: C/togglebutton.vala.page:20(info/desc)
+#. (itstool) path: info/desc
+#: C/togglebutton.c.page:21 C/togglebutton.py.page:18
+#: C/togglebutton.vala.page:20
msgid "A button which retains state"
msgstr ""
-#: C/togglebutton.c.page:24(page/title) C/togglebutton.js.page:20(page/title)
-#: C/togglebutton.py.page:21(page/title)
-#: C/togglebutton.vala.page:23(page/title)
+#. (itstool) path: page/title
+#: C/togglebutton.c.page:24 C/togglebutton.js.page:20
+#: C/togglebutton.py.page:21 C/togglebutton.vala.page:23
msgid "ToggleButton"
msgstr ""
-#: C/togglebutton.c.page:27(page/p) C/togglebutton.py.page:23(page/p)
-#: C/togglebutton.vala.page:25(page/p)
+#. (itstool) path: page/p
+#: C/togglebutton.c.page:27 C/togglebutton.py.page:23
+#: C/togglebutton.vala.page:25
msgid "When this ToggleButton is in an active state, the spinner spins."
msgstr ""
-#: C/togglebutton.c.page:29(page/code)
+#. (itstool) path: page/code
+#: C/togglebutton.c.page:29
#, no-wrap
msgid ""
"\n"
@@ -28284,24 +34923,28 @@ msgid ""
"}\n"
msgstr ""
-#: C/togglebutton.c.page:38(item/p)
+#. (itstool) path: item/p
+#: C/togglebutton.c.page:38
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkToggleButton.html"
"\">GtkTogglebutton</link>"
msgstr ""
-#: C/togglebutton.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/togglebutton.js.page:7
#, fuzzy
#| msgid "Classes in JavaScript"
msgctxt "text"
msgid "ToggleButton (JavaScript)"
msgstr "Klassen in JavaScript"
-#: C/togglebutton.js.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/togglebutton.js.page:17
msgid "Stays pressed until you click it again"
msgstr ""
-#: C/togglebutton.js.page:22(page/p)
+#. (itstool) path: page/p
+#: C/togglebutton.js.page:22
msgid ""
"A ToggleButton is like a normal <link xref=\"button.js\">Button</link>, "
"except that it stays pressed in when you click it. You can use it like an on/"
@@ -28309,16 +34952,18 @@ msgid ""
"link> in this example."
msgstr ""
-#: C/togglebutton.js.page:23(page/p)
+#. (itstool) path: page/p
+#: C/togglebutton.js.page:23
msgid ""
-"A ToggleButton's get_active method returns true if it's pressed in, and false "
-"if it's not. Its set_active method is used if you want to change its state "
-"without needing to click on it. When it changes state from pressed in to "
-"popped out and vice-versa, it sends out the \"toggled\" signal, which you can "
-"connect to a function to do something."
+"A ToggleButton's get_active method returns true if it's pressed in, and "
+"false if it's not. Its set_active method is used if you want to change its "
+"state without needing to click on it. When it changes state from pressed in "
+"to popped out and vice-versa, it sends out the \"toggled\" signal, which you "
+"can connect to a function to do something."
msgstr ""
-#: C/togglebutton.js.page:40(section/code)
+#. (itstool) path: section/code
+#: C/togglebutton.js.page:40
#, no-wrap
msgid ""
"\n"
@@ -28348,7 +34993,8 @@ msgid ""
" },\n"
msgstr ""
-#: C/togglebutton.js.page:67(section/code)
+#. (itstool) path: section/code
+#: C/togglebutton.js.page:67
#, no-wrap
msgid ""
"\n"
@@ -28365,11 +35011,13 @@ msgid ""
" title: \"ToggleButton Example\"});\n"
msgstr ""
-#: C/togglebutton.js.page:84(section/title)
+#. (itstool) path: section/title
+#: C/togglebutton.js.page:84
msgid "Creating the ToggleButton and other widgets"
msgstr ""
-#: C/togglebutton.js.page:85(section/code)
+#. (itstool) path: section/code
+#: C/togglebutton.js.page:85
#, no-wrap
msgid ""
"\n"
@@ -28377,13 +35025,15 @@ msgid ""
" this._spinner = new Gtk.Spinner ({hexpand: true, vexpand: true});\n"
msgstr ""
-#: C/togglebutton.js.page:90(section/p)
+#. (itstool) path: section/p
+#: C/togglebutton.js.page:90
msgid ""
"We want this <link xref=\"spinner.js\">Spinner</link> to expand vertically "
"and horizontally, to take up as much space as possible inside the window."
msgstr ""
-#: C/togglebutton.js.page:92(section/code)
+#. (itstool) path: section/code
+#: C/togglebutton.js.page:92
#, no-wrap
msgid ""
"\n"
@@ -28392,16 +35042,18 @@ msgid ""
" this._toggleButton.connect ('toggled', Lang.bind (this, this._onToggle));\n"
msgstr ""
-#: C/togglebutton.js.page:98(section/p)
+#. (itstool) path: section/p
+#: C/togglebutton.js.page:98
msgid ""
-"Creating a ToggleButton is a lot like creating a normal <link xref=\"button.js"
-"\">Button</link>. The biggest difference is that you're handling a \"toggled"
-"\" signal instead of a \"clicked\" signal. This code binds the _onToggle "
-"function to that signal, so that it's called whenever our ToggleButton is "
-"toggled."
+"Creating a ToggleButton is a lot like creating a normal <link xref=\"button."
+"js\">Button</link>. The biggest difference is that you're handling a "
+"\"toggled\" signal instead of a \"clicked\" signal. This code binds the "
+"_onToggle function to that signal, so that it's called whenever our "
+"ToggleButton is toggled."
msgstr ""
-#: C/togglebutton.js.page:100(section/code)
+#. (itstool) path: section/code
+#: C/togglebutton.js.page:100
#, no-wrap
msgid ""
"\n"
@@ -28413,13 +35065,15 @@ msgid ""
" this._grid.attach (this._toggleButton, 0, 1, 1, 1);\n"
msgstr ""
-#: C/togglebutton.js.page:108(section/p)
+#. (itstool) path: section/p
+#: C/togglebutton.js.page:108
msgid ""
"Here we create a simple <link xref=\"grid.js\">Grid</link> to organize "
"everything in, then attach the Spinner and ToggleButton to it."
msgstr ""
-#: C/togglebutton.js.page:110(section/code)
+#. (itstool) path: section/code
+#: C/togglebutton.js.page:110
#, no-wrap
msgid ""
"\n"
@@ -28431,17 +35085,20 @@ msgid ""
" },\n"
msgstr ""
-#: C/togglebutton.js.page:118(section/p)
+#. (itstool) path: section/p
+#: C/togglebutton.js.page:118
msgid ""
-"Now we add the Grid to the Window, and tell the Window to show itself and its "
-"child widgets when the application is started."
+"Now we add the Grid to the Window, and tell the Window to show itself and "
+"its child widgets when the application is started."
msgstr ""
-#: C/togglebutton.js.page:122(section/title)
+#. (itstool) path: section/title
+#: C/togglebutton.js.page:122
msgid "Making something happen when the ToggleButton is toggled"
msgstr ""
-#: C/togglebutton.js.page:124(section/code)
+#. (itstool) path: section/code
+#: C/togglebutton.js.page:124
#, no-wrap
msgid ""
"\n"
@@ -28457,15 +35114,17 @@ msgid ""
"});\n"
msgstr ""
-#: C/togglebutton.js.page:136(section/p)
+#. (itstool) path: section/p
+#: C/togglebutton.js.page:136
msgid ""
"Whenever someone toggles the button, this function checks what its state is "
"afterwards using get_active and starts or stops the spinner accordingly. We "
-"want it to spin only while the button is pressed in, so if get_active returns "
-"true we start the spinner. Otherwise, we tell it to stop."
+"want it to spin only while the button is pressed in, so if get_active "
+"returns true we start the spinner. Otherwise, we tell it to stop."
msgstr ""
-#: C/togglebutton.js.page:138(section/code)
+#. (itstool) path: section/code
+#: C/togglebutton.js.page:138
#, no-wrap
msgid ""
"\n"
@@ -28474,7 +35133,8 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/togglebutton.js.page:148(section/code)
+#. (itstool) path: section/code
+#: C/togglebutton.js.page:148
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -28560,28 +35220,173 @@ msgid ""
"let app = new ToggleButtonExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const Gio = imports.gi.Gio;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"\n"
+"const ToggleButtonExample = new Lang.Class({\n"
+" Name: 'ToggleButton Example',\n"
+"\n"
+" // Create the application itself\n"
+" _init: function() {\n"
+" this.application = new Gtk.Application({\n"
+" application_id: 'org.example.jstogglebutton',\n"
+" flags: Gio.ApplicationFlags.FLAGS_NONE\n"
+" });\n"
+"\n"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Callback function for 'activate' signal presents window when active\n"
+" _onActivate: function() {\n"
+" this._window.present();\n"
+" },\n"
+"\n"
+" // Callback function for 'startup' signal builds the UI\n"
+" _onStartup: function() {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+"\n"
+"\n"
+" // Build the application's UI\n"
+" _buildUI: function() {\n"
+"\n"
+" // Create the application window\n"
+" this._window = new Gtk.ApplicationWindow({\n"
+" application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" default_height: 300,\n"
+" default_width: 300,\n"
+" border_width: 30,\n"
+" title: \"ToggleButton Example\"});\n"
+"\n"
+" // Create the spinner that the button stops and starts\n"
+" this._spinner = new Gtk.Spinner ({hexpand: true, vexpand: true});\n"
+"\n"
+" // Create the togglebutton that starts and stops the spinner\n"
+" this._toggleButton = new Gtk.ToggleButton ({label: \"Start/Stop\"});\n"
+" this._toggleButton.connect ('toggled', Lang.bind (this, this._onToggle));\n"
+"\n"
+" // Create a grid and put everything in it\n"
+" this._grid = new Gtk.Grid ({\n"
+" row_homogeneous: false,\n"
+" row_spacing: 15});\n"
+" this._grid.attach (this._spinner, 0, 0, 1, 1);\n"
+" this._grid.attach (this._toggleButton, 0, 1, 1, 1);\n"
+"\n"
+" // Add the grid to the window\n"
+" this._window.add (this._grid);\n"
+"\n"
+" // Show the window and all child widgets\n"
+" this._window.show_all();\n"
+" },\n"
+"\n"
+"\n"
+"\n"
+" _onToggle: function() {\n"
+"\n"
+" // Start or stop the spinner\n"
+" if (this._toggleButton.get_active ())\n"
+" this._spinner.start ();\n"
+" else this._spinner.stop ();\n"
+"\n"
+" }\n"
+"\n"
+"});\n"
+"\n"
+"// Run the application\n"
+"let app = new ToggleButtonExample ();\n"
+"app.application.run (ARGV);\n"
-#: C/togglebutton.js.page:158(item/p)
+#. (itstool) path: item/p
+#: C/togglebutton.js.page:158
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.ToggleButton."
"html\">Gtk.ToggleButton</link>"
msgstr ""
-#: C/togglebutton.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/togglebutton.py.page:7
msgctxt "text"
msgid "ToggleButton (Python)"
msgstr ""
-#: C/togglebutton.py.page:30(section/code)
-#, no-wrap
+#. (itstool) path: section/code
+#: C/togglebutton.py.page:30
+#, fuzzy, no-wrap
+#| msgid ""
+#| "from gi.repository import Gtk\n"
+#| "import sys\n"
+#| "\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " # a window\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"Switch Example\", application=app)\n"
+#| " self.set_default_size(300, 100)\n"
+#| " self.set_border_width(10)\n"
+#| "\n"
+#| " # a switch\n"
+#| " switch = Gtk.Switch()\n"
+#| " # turned on by default\n"
+#| " switch.set_active(True)\n"
+#| " # connect the signal notify::active emitted by the switch\n"
+#| " # to the callback function activate_cb\n"
+#| " switch.connect(\"notify::active\", self.activate_cb)\n"
+#| "\n"
+#| " # a label\n"
+#| " label = Gtk.Label()\n"
+#| " label.set_text(\"Title\")\n"
+#| "\n"
+#| " # a grid to allocate the widgets\n"
+#| " grid = Gtk.Grid()\n"
+#| " grid.set_column_spacing (10);\n"
+#| " grid.attach (label, 0, 0, 1, 1);\n"
+#| " grid.attach (switch, 1, 0, 1, 1);\n"
+#| "\n"
+#| " # add the grid to the window\n"
+#| " self.add(grid)\n"
+#| "\n"
+#| " # Callback function. Since the signal is notify::active\n"
+#| " # we need the argument 'active'\n"
+#| " def activate_cb(self, button, active):\n"
+#| " # if the button (i.e. the switch) is active, set the title\n"
+#| " # of the window to \"Switch Example\"\n"
+#| " if button.get_active():\n"
+#| " self.set_title(\"Switch Example\")\n"
+#| " # else, set it to \"\" (empty string)\n"
+#| " else:\n"
+#| " self.set_title(\"\")\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " win = MyWindow(self)\n"
+#| " win.show_all()\n"
+#| "\n"
+#| " def do_startup(self):\n"
+#| " Gtk.Application.do_startup(self)\n"
+#| "\n"
+#| "app = MyApplication()\n"
+#| "exit_status = app.run(sys.argv)\n"
+#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
" # a window\n"
+"\n"
" def __init__(self, app):\n"
-" Gtk.Window.__init__(self, title=\"ToggleButton Example\", application=app)\n"
+" Gtk.Window.__init__(\n"
+" self, title=\"ToggleButton Example\", application=app)\n"
" self.set_default_size(300, 300)\n"
" self.set_border_width(30)\n"
"\n"
@@ -28600,10 +35405,10 @@ msgid ""
"\n"
" # a grid to allocate the widgets\n"
" grid = Gtk.Grid()\n"
-" grid.set_row_homogeneous(False);\n"
-" grid.set_row_spacing(15);\n"
-" grid.attach(self.spinner, 0, 0, 1, 1);\n"
-" grid.attach(button, 0, 1, 1, 1);\n"
+" grid.set_row_homogeneous(False)\n"
+" grid.set_row_spacing(15)\n"
+" grid.attach(self.spinner, 0, 0, 1, 1)\n"
+" grid.attach(button, 0, 1, 1, 1)\n"
"\n"
" # add the grid to the window\n"
" self.add(grid)\n"
@@ -28617,7 +35422,9 @@ msgid ""
" else:\n"
" self.spinner.stop()\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -28632,32 +35439,93 @@ msgid ""
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
msgstr ""
+"from gi.repository import Gtk\n"
+"import sys\n"
+"\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+" # a window\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"Switch Example\", application=app)\n"
+" self.set_default_size(300, 100)\n"
+" self.set_border_width(10)\n"
+"\n"
+" # a switch\n"
+" switch = Gtk.Switch()\n"
+" # turned on by default\n"
+" switch.set_active(True)\n"
+" # connect the signal notify::active emitted by the switch\n"
+" # to the callback function activate_cb\n"
+" switch.connect(\"notify::active\", self.activate_cb)\n"
+"\n"
+" # a label\n"
+" label = Gtk.Label()\n"
+" label.set_text(\"Title\")\n"
+"\n"
+" # a grid to allocate the widgets\n"
+" grid = Gtk.Grid()\n"
+" grid.set_column_spacing (10);\n"
+" grid.attach (label, 0, 0, 1, 1);\n"
+" grid.attach (switch, 1, 0, 1, 1);\n"
+"\n"
+" # add the grid to the window\n"
+" self.add(grid)\n"
+"\n"
+" # Callback function. Since the signal is notify::active\n"
+" # we need the argument 'active'\n"
+" def activate_cb(self, button, active):\n"
+" # if the button (i.e. the switch) is active, set the title\n"
+" # of the window to \"Switch Example\"\n"
+" if button.get_active():\n"
+" self.set_title(\"Switch Example\")\n"
+" # else, set it to \"\" (empty string)\n"
+" else:\n"
+" self.set_title(\"\")\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
+"\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)\n"
-#: C/togglebutton.py.page:35(section/title)
+#. (itstool) path: section/title
+#: C/togglebutton.py.page:35
msgid "Useful methods for a ToggleButton widget"
msgstr ""
-#: C/togglebutton.py.page:36(section/p)
+#. (itstool) path: section/p
+#: C/togglebutton.py.page:36
msgid ""
"In line 22 the signal <code>\"toggled\"</code> is connected to the callback "
-"function <code>toggled_cb()</code> using <code><var>widget</var>.connect"
-"(<var>signal</var>, <var>callback function</var>)</code>. See <link xref="
-"\"signals-callbacks.py\"/> for a more detailed explanation."
+"function <code>toggled_cb()</code> using <code><var>widget</var>."
+"connect(<var>signal</var>, <var>callback function</var>)</code>. See <link "
+"xref=\"signals-callbacks.py\"/> for a more detailed explanation."
msgstr ""
-#: C/togglebutton.py.page:44(item/p) C/toolbar.py.page:59(item/p)
-#: C/toolbar_builder.py.page:197(item/p)
+#. (itstool) path: item/p
+#: C/togglebutton.py.page:44 C/toolbar.py.page:59
+#: C/toolbar_builder.py.page:197
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkWidget.html"
"\">GtkWidget</link>"
msgstr ""
-#: C/togglebutton.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/togglebutton.vala.page:7
msgctxt "text"
msgid "ToggleButton (Vala)"
msgstr ""
-#: C/togglebutton.vala.page:27(page/code)
+#. (itstool) path: page/code
+#: C/togglebutton.vala.page:27
#, no-wrap
msgid ""
"public class MyWindow : Gtk.ApplicationWindow {\n"
@@ -28717,77 +35585,59 @@ msgid ""
"}\n"
msgstr ""
-#: C/togglebutton.vala.page:32(item/p)
+#. (itstool) path: item/p
+#: C/togglebutton.vala.page:32
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ToggleButton.html\">Gtk."
"ToggleButton</link>"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/toolbar.c.page:24(media) C/toolbar.js.page:21(media)
-#: C/toolbar.py.page:24(media) C/toolbar.vala.page:23(media)
-#: C/toolbar_builder.py.page:37(media) C/toolbar_builder.vala.page:24(media)
+#: C/toolbar.c.page:24 C/toolbar.js.page:21 C/toolbar.py.page:24
+#: C/toolbar.vala.page:23 C/toolbar_builder.py.page:37
+#: C/toolbar_builder.vala.page:24
msgctxt "_"
msgid "external ref='media/toolbar.png' md5='f0350855eedf6343952b72d6d906f738'"
-msgstr "external ref='media/toolbar.png' md5='f0350855eedf6343952b72d6d906f738'"
+msgstr ""
+"external ref='media/toolbar.png' md5='f0350855eedf6343952b72d6d906f738'"
-#: C/toolbar.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/toolbar.c.page:7
msgctxt "text"
msgid "Toolbar (C)"
msgstr "Werkzeugleiste (C)"
-#: C/toolbar.c.page:19(info/desc) C/toolbar.vala.page:18(info/desc)
-#: C/toolbar_builder.vala.page:19(info/desc)
+#. (itstool) path: info/desc
+#: C/toolbar.c.page:19 C/toolbar.vala.page:18 C/toolbar_builder.vala.page:19
msgid "A bar of buttons"
msgstr "Eine Leiste mit Knöpfen"
-#: C/toolbar.c.page:22(page/title) C/toolbar.js.page:20(page/title)
-#: C/toolbar.py.page:22(page/title) C/toolbar.vala.page:21(page/title)
+#. (itstool) path: page/title
+#: C/toolbar.c.page:22 C/toolbar.js.page:20 C/toolbar.py.page:22
+#: C/toolbar.vala.page:21
msgid "Toolbar"
msgstr "Werkzeugleiste"
-#: C/toolbar.c.page:25(page/p) C/toolbar.js.page:22(page/p)
-#: C/toolbar.vala.page:24(page/p)
+#. (itstool) path: page/p
+#: C/toolbar.c.page:25 C/toolbar.js.page:22 C/toolbar.vala.page:24
msgid ""
"Toolbar can contain either text or stock icons. In this sample we use stock "
"icons. This example has fullscreen functionality."
msgstr ""
-#: C/toolbar.c.page:26(page/p)
+#. (itstool) path: page/p
+#: C/toolbar.c.page:26
msgid ""
"This example uses SimpleActions (window and app). App actions can easily be "
"added to the app menu."
msgstr ""
-#: C/toolbar.c.page:28(page/code)
+#. (itstool) path: page/code
+#: C/toolbar.c.page:28
#, no-wrap
msgid ""
"\n"
@@ -28840,8 +35690,6 @@ msgid ""
"}\n"
"\n"
"\n"
-"\n"
-"/* Our \"main\" function */\n"
"static void\n"
"activate (GtkApplication *app,\n"
" gpointer user_data)\n"
@@ -29015,34 +35863,40 @@ msgid ""
"}\n"
msgstr ""
-#: C/toolbar.c.page:34(item/p) C/tooltip.py.page:58(item/p)
+#. (itstool) path: item/p
+#: C/toolbar.c.page:34 C/tooltip.c.page:38 C/tooltip.py.page:59
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkToolbar.html"
"\">GtkToolbar</link>"
msgstr ""
-#: C/toolbar.c.page:35(item/p)
+#. (itstool) path: item/p
+#: C/toolbar.c.page:35
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkToolButton.html"
"\">GtkToolbutton</link>"
msgstr ""
-#: C/toolbar.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/toolbar.js.page:7
msgctxt "text"
msgid "Toolbar (JavaScript)"
msgstr "Werkzeugleiste (JavaScript)"
-#: C/toolbar.js.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/toolbar.js.page:17
msgid "A bar of tools"
msgstr ""
-#: C/toolbar.js.page:23(page/p) C/toolbar.vala.page:25(page/p)
+#. (itstool) path: page/p
+#: C/toolbar.js.page:23 C/toolbar.vala.page:25
msgid ""
"This example uses SimpleActions (window and app). App actions can easily be "
"added the the app menu."
msgstr ""
-#: C/toolbar.js.page:25(page/code)
+#. (itstool) path: page/code
+#: C/toolbar.js.page:25
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -29218,50 +36072,67 @@ msgid ""
"app.application.run(ARGV);\n"
msgstr ""
-#: C/toolbar.js.page:30(item/p)
+#. (itstool) path: item/p
+#: C/toolbar.js.page:30
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Window.html"
"\">Gtk.Window</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Window.html"
+"\">Gtk.Window</link>"
-#: C/toolbar.js.page:31(item/p)
+#. (itstool) path: item/p
+#: C/toolbar.js.page:31
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Toolbar.html"
"\">Gtk.Toolbar</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Toolbar.html"
+"\">Gtk.Toolbar</link>"
-#: C/toolbar.js.page:32(item/p)
+#. (itstool) path: item/p
+#: C/toolbar.js.page:32
msgid ""
-"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.ToolButton.html"
-"\">Gtk.ToolButton</link>"
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.ToolButton."
+"html\">Gtk.ToolButton</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.ToolButton."
+"html\">Gtk.ToolButton</link>"
-#: C/toolbar.js.page:33(item/p)
+#. (itstool) path: item/p
+#: C/toolbar.js.page:33
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.html\">Gtk "
"Stock items</link>"
msgstr ""
-#: C/toolbar.js.page:34(item/p)
+#. (itstool) path: item/p
+#: C/toolbar.js.page:34
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gdk.WindowState."
"html\">Gdk.WindowState</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gdk.WindowState."
+"html\">Gdk.WindowState</link>"
-#: C/toolbar.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/toolbar.py.page:7
msgctxt "text"
msgid "Toolbar (Python)"
msgstr "Werkzeugleiste (Python)"
-#: C/toolbar.py.page:19(info/desc) C/toolbar_builder.py.page:32(info/desc)
+#. (itstool) path: info/desc
+#: C/toolbar.py.page:19 C/toolbar_builder.py.page:32
msgid "A bar of buttons and other widgets"
msgstr ""
-#: C/toolbar.py.page:25(page/p)
+#. (itstool) path: page/p
+#: C/toolbar.py.page:25
msgid "An example of toolbar with buttons (from stock icons)."
msgstr ""
-#: C/toolbar.py.page:32(section/code)
+#. (itstool) path: section/code
+#: C/toolbar.py.page:32
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -29269,7 +36140,9 @@ msgid ""
"from gi.repository import Gio\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"Toolbar Example\", application=app)\n"
" self.set_default_size(400, 200)\n"
@@ -29309,7 +36182,7 @@ msgid ""
" toolbar = Gtk.Toolbar()\n"
"\n"
" # which is the primary toolbar of the application\n"
-" toolbar.get_style_context().add_class(Gtk.STYLE_CLASS_PRIMARY_TOOLBAR);\n"
+" toolbar.get_style_context().add_class(Gtk.STYLE_CLASS_PRIMARY_TOOLBAR)\n"
"\n"
" # create a button for the \"new\" action, with a stock image\n"
" new_button = Gtk.ToolButton.new_from_stock(Gtk.STOCK_NEW)\n"
@@ -29338,7 +36211,8 @@ msgid ""
" undo_button.set_action_name(\"win.undo\")\n"
"\n"
" # button for the \"fullscreen/leave fullscreen\" action\n"
-" self.fullscreen_button = Gtk.ToolButton.new_from_stock(Gtk.STOCK_FULLSCREEN)\n"
+" self.fullscreen_button = Gtk.ToolButton.new_from_stock(\n"
+" Gtk.STOCK_FULLSCREEN)\n"
" self.fullscreen_button.set_is_important(True)\n"
" toolbar.insert(self.fullscreen_button, 3)\n"
" self.fullscreen_button.set_action_name(\"win.fullscreen\")\n"
@@ -29352,8 +36226,10 @@ msgid ""
"\n"
" # callback method for fullscreen / leave fullscreen\n"
" def fullscreen_callback(self, action, parameter):\n"
-" # check if the state is the same as Gdk.WindowState.FULLSCREEN, which is a bit flag\n"
-" is_fullscreen = self.get_window().get_state() & Gdk.WindowState.FULLSCREEN != 0\n"
+" # check if the state is the same as Gdk.WindowState.FULLSCREEN, which\n"
+" # is a bit flag\n"
+" is_fullscreen = self.get_window().get_state(\n"
+" ) & Gdk.WindowState.FULLSCREEN != 0\n"
" if not is_fullscreen:\n"
" self.fullscreen_button.set_stock_id(Gtk.STOCK_LEAVE_FULLSCREEN)\n"
" self.fullscreen()\n"
@@ -29361,7 +36237,9 @@ msgid ""
" self.fullscreen_button.set_stock_id(Gtk.STOCK_FULLSCREEN)\n"
" self.unfullscreen()\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -29398,59 +36276,68 @@ msgid ""
"sys.exit(exit_status)\n"
msgstr ""
-#: C/toolbar.py.page:36(section/title)
+#. (itstool) path: section/title
+#: C/toolbar.py.page:36
msgid "Useful methods for a Toolbar widget"
msgstr ""
-#: C/toolbar.py.page:37(section/p)
+#. (itstool) path: section/p
+#: C/toolbar.py.page:37
msgid ""
"In line 32 the signal <code>\"activate\"</code> from the action "
"<code>undo_action</code> is connected to the callback function "
-"<code>undo_callback()</code> using <code><var>action</var>.connect"
-"(<var>signal</var>, <var>callback function</var>)</code>. See <link xref="
-"\"signals-callbacks.py\"/> for a more detailed explanation."
+"<code>undo_callback()</code> using <code><var>action</var>."
+"connect(<var>signal</var>, <var>callback function</var>)</code>. See <link "
+"xref=\"signals-callbacks.py\"/> for a more detailed explanation."
msgstr ""
-#: C/toolbar.py.page:40(item/p)
+#. (itstool) path: item/p
+#: C/toolbar.py.page:40
msgid ""
"Use <code>insert(tool_item, position)</code> to insert the <code>tool_item</"
"code> at <code>position</code>. If <code>position</code> is negative, the "
"item is appended at the end of the toolbar."
msgstr ""
-#: C/toolbar.py.page:41(item/p)
+#. (itstool) path: item/p
+#: C/toolbar.py.page:41
msgid ""
"<code>get_item_index(tool_item)</code> retrieves the position of "
"<code>tool_item</code> on the toolbar."
msgstr ""
-#: C/toolbar.py.page:42(item/p)
+#. (itstool) path: item/p
+#: C/toolbar.py.page:42
msgid ""
"<code>get_n_items()</code> returns the number of items on the toolbar; "
"<code>get_nth_item(position)</code> returns the item in position "
"<code>position</code>."
msgstr ""
-#: C/toolbar.py.page:43(item/p)
+#. (itstool) path: item/p
+#: C/toolbar.py.page:43
msgid ""
"If the toolbar does not have room for all the menu items, and "
"<code>set_show_arrow(True)</code>, the items that do not have room are shown "
"through an overflow menu."
msgstr ""
-#: C/toolbar.py.page:44(item/p)
+#. (itstool) path: item/p
+#: C/toolbar.py.page:44
msgid ""
"<code>set_icon_size(icon_size)</code> sets the size of icons in the toolbar; "
-"<code>icon_size</code> can be one of <code>Gtk.IconSize.INVALID, Gtk.IconSize."
-"MENU, Gtk.IconSize.SMALL_TOOLBAR, Gtk.IconSize.LARGE_TOOLBAR, Gtk.IconSize."
-"BUTTON, Gtk.IconSize.DND, Gtk.IconSize.DIALOG</code>. This should be used "
-"only for special-purpose toolbars, normal application toolbars should respect "
-"user preferences for the size of icons. <code>unset_icon_size()</code> unsets "
-"the preferences set with <code>set_icon_size(icon_size)</code>, so that user "
-"preferences are used to determine the icon size."
+"<code>icon_size</code> can be one of <code>Gtk.IconSize.INVALID, Gtk."
+"IconSize.MENU, Gtk.IconSize.SMALL_TOOLBAR, Gtk.IconSize.LARGE_TOOLBAR, Gtk."
+"IconSize.BUTTON, Gtk.IconSize.DND, Gtk.IconSize.DIALOG</code>. This should "
+"be used only for special-purpose toolbars, normal application toolbars "
+"should respect user preferences for the size of icons. "
+"<code>unset_icon_size()</code> unsets the preferences set with "
+"<code>set_icon_size(icon_size)</code>, so that user preferences are used to "
+"determine the icon size."
msgstr ""
-#: C/toolbar.py.page:45(item/p)
+#. (itstool) path: item/p
+#: C/toolbar.py.page:45
msgid ""
"<code>set_style(style)</code>, where <code>style</code> is one of <code>Gtk."
"ToolbarStyle.ICONS, Gtk.ToolbarStyle.TEXT, Gtk.ToolbarStyle.BOTH, Gtk."
@@ -29460,42 +36347,49 @@ msgid ""
"use <code>unset_style()</code>."
msgstr ""
-#: C/toolbar.py.page:54(item/p)
+#. (itstool) path: item/p
+#: C/toolbar.py.page:54
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkToolbar.html"
"\">GtkToolbar</link>"
msgstr ""
-#: C/toolbar.py.page:55(item/p)
+#. (itstool) path: item/p
+#: C/toolbar.py.page:55
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkToolButton.html"
"\">GtkToolButton</link>"
msgstr ""
-#: C/toolbar.py.page:56(item/p)
+#. (itstool) path: item/p
+#: C/toolbar.py.page:56
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkToolItem.html"
"\">GtkToolItem</link>"
msgstr ""
-#: C/toolbar.py.page:58(item/p)
+#. (itstool) path: item/p
+#: C/toolbar.py.page:58
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkActionable.html"
"\">GtkActionable</link>"
msgstr ""
-#: C/toolbar.py.page:60(item/p) C/toolbar_builder.py.page:198(item/p)
+#. (itstool) path: item/p
+#: C/toolbar.py.page:60 C/toolbar_builder.py.page:198
msgid ""
"<link href=\"http://developer.gnome.org/gdk3/unstable/gdk3-Event-Structures."
"html#GdkEventWindowState\">Event Structures</link>"
msgstr ""
-#: C/toolbar.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/toolbar.vala.page:7
msgctxt "text"
msgid "Toolbar (Vala)"
msgstr "Werkzeugleiste (Vala)"
-#: C/toolbar.vala.page:27(page/code)
+#. (itstool) path: page/code
+#: C/toolbar.vala.page:27
#, no-wrap
msgid ""
"/* This is the Window */\n"
@@ -29632,48 +36526,46 @@ msgid ""
"}\n"
msgstr ""
-#: C/toolbar.vala.page:33(item/p) C/toolbar_builder.vala.page:150(item/p)
+#. (itstool) path: item/p
+#: C/toolbar.vala.page:33 C/toolbar_builder.vala.page:150
+#: C/tooltip.vala.page:39
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Toolbar.html\">Gtk.Toolbar</"
"link>"
msgstr ""
-#: C/toolbar.vala.page:34(item/p) C/toolbar_builder.vala.page:151(item/p)
+#. (itstool) path: item/p
+#: C/toolbar.vala.page:34 C/toolbar_builder.vala.page:151
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ToolButton.html\">Gtk."
"Toolbutton</link>"
msgstr ""
-#: C/toolbar.vala.page:35(item/p) C/toolbar_builder.vala.page:152(item/p)
+#. (itstool) path: item/p
+#: C/toolbar.vala.page:35 C/toolbar_builder.vala.page:152
msgid ""
-"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Stock.html\">Gtk.Stock</link>"
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Stock.html\">Gtk.Stock</"
+"link>"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/toolbar_builder.py.page:49(media) C/toolbar_builder.vala.page:32(media)
+#: C/toolbar_builder.py.page:49 C/toolbar_builder.vala.page:32
msgctxt "_"
-msgid "external ref='media/glade_ui.png' md5='baea74fe213bc12ea934f64f6977215a'"
+msgid ""
+"external ref='media/glade_ui.png' md5='baea74fe213bc12ea934f64f6977215a'"
msgstr ""
"external ref='media/glade_ui.png' md5='baea74fe213bc12ea934f64f6977215a'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/toolbar_builder.py.page:55(media) C/toolbar_builder.vala.page:38(media)
+#: C/toolbar_builder.py.page:55 C/toolbar_builder.vala.page:38
msgctxt "_"
msgid ""
"external ref='media/glade_select_toolbar.png' "
@@ -29682,16 +36574,12 @@ msgstr ""
"external ref='media/glade_select_toolbar.png' "
"md5='f7b5b224050b2e387eb04362fc99df00'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/toolbar_builder.py.page:61(media) C/toolbar_builder.vala.page:44(media)
+#: C/toolbar_builder.py.page:61 C/toolbar_builder.vala.page:44
msgctxt "_"
msgid ""
"external ref='media/glade_toolbar_general.png' "
@@ -29700,16 +36588,12 @@ msgstr ""
"external ref='media/glade_toolbar_general.png' "
"md5='e31daba6e8a3e526aca89d5f1622edaa'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/toolbar_builder.py.page:67(media) C/toolbar_builder.vala.page:50(media)
+#: C/toolbar_builder.py.page:67 C/toolbar_builder.vala.page:50
msgctxt "_"
msgid ""
"external ref='media/glade_toolbar_common.png' "
@@ -29718,16 +36602,12 @@ msgstr ""
"external ref='media/glade_toolbar_common.png' "
"md5='d5ec6cc0218ca98e195dbd033feb9ac5'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/toolbar_builder.py.page:73(media) C/toolbar_builder.vala.page:56(media)
+#: C/toolbar_builder.py.page:73 C/toolbar_builder.vala.page:56
msgctxt "_"
msgid ""
"external ref='media/glade_toolbar_edit.png' "
@@ -29736,16 +36616,12 @@ msgstr ""
"external ref='media/glade_toolbar_edit.png' "
"md5='feb1e2b7040d24a4d030f94cf07c81fd'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/toolbar_builder.py.page:132(media) C/toolbar_builder.vala.page:115(media)
+#: C/toolbar_builder.py.page:132 C/toolbar_builder.vala.page:115
msgctxt "_"
msgid ""
"external ref='media/glade_toolbar_editor.png' "
@@ -29754,16 +36630,12 @@ msgstr ""
"external ref='media/glade_toolbar_editor.png' "
"md5='8af65241e5ca47d5494a7b36640e6f1c'"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/toolbar_builder.py.page:141(media) C/toolbar_builder.vala.page:124(media)
+#: C/toolbar_builder.py.page:141 C/toolbar_builder.vala.page:124
msgctxt "_"
msgid ""
"external ref='media/glade_visible_no.png' "
@@ -29772,217 +36644,259 @@ msgstr ""
"external ref='media/glade_visible_no.png' "
"md5='dc6c025aa825f4d772fbd283d6330026'"
-#: C/toolbar_builder.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/toolbar_builder.py.page:7
msgctxt "text"
msgid "Toolbar created using Glade (Python)"
msgstr "Mit Glade erstellte Werkzeugleiste (Python)"
-#: C/toolbar_builder.py.page:35(page/title)
-#: C/toolbar_builder.vala.page:22(page/title)
+#. (itstool) path: page/title
+#: C/toolbar_builder.py.page:35 C/toolbar_builder.vala.page:22
msgid "Toolbar created using Glade"
msgstr "Mit Glade erstellte Werkzeugleiste"
-#: C/toolbar_builder.py.page:38(page/p)
+#. (itstool) path: page/p
+#: C/toolbar_builder.py.page:38
msgid ""
"This example is similar to <link xref=\"toolbar.py\"/>, except we use Glade "
"to create the toolbar in an XML .ui file."
msgstr ""
-#: C/toolbar_builder.py.page:43(section/title)
+#. (itstool) path: section/title
+#: C/toolbar_builder.py.page:43
msgid "Creating the toolbar with Glade"
msgstr "Erstellen der Werkzeugleiste mit Glade"
-#: C/toolbar_builder.py.page:44(section/p)
-#: C/toolbar_builder.vala.page:27(page/p)
+#. (itstool) path: section/p
+#. (itstool) path: page/p
+#: C/toolbar_builder.py.page:44 C/toolbar_builder.vala.page:27
msgid ""
"To create the toolbar using the <link href=\"http://glade.gnome.org/\">Glade "
"Interface Designer</link>:"
msgstr ""
-#: C/toolbar_builder.py.page:48(item/p) C/toolbar_builder.vala.page:31(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:48 C/toolbar_builder.vala.page:31
msgid "Open Glade, and save the file as <file>toolbar_builder.ui</file>"
msgstr ""
-#: C/toolbar_builder.py.page:49(item/p) C/toolbar_builder.vala.page:32(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:49 C/toolbar_builder.vala.page:32
msgid ""
-"<media type=\"image\" src=\"media/glade_ui.png\" width=\"900\"> Screenshot of "
-"Glade ui </media>"
+"<media type=\"image\" src=\"media/glade_ui.png\" width=\"900\"> Screenshot "
+"of Glade ui </media>"
msgstr ""
-#: C/toolbar_builder.py.page:54(item/p) C/toolbar_builder.vala.page:37(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:54 C/toolbar_builder.vala.page:37
msgid ""
-"Under <gui>Containers</gui> on the left hand side, right click on the toolbar "
-"icon and select <gui>Add widget as toplevel</gui>."
+"Under <gui>Containers</gui> on the left hand side, right click on the "
+"toolbar icon and select <gui>Add widget as toplevel</gui>."
msgstr ""
-#: C/toolbar_builder.py.page:55(item/p) C/toolbar_builder.vala.page:38(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:55 C/toolbar_builder.vala.page:38
msgid ""
"<media type=\"image\" src=\"media/glade_select_toolbar.png\"> Screenshot of "
"toolbar icon in Glade ui </media>"
msgstr ""
-#: C/toolbar_builder.py.page:60(item/p) C/toolbar_builder.vala.page:43(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:60 C/toolbar_builder.vala.page:43
msgid ""
"Under the <gui>General</gui> tab on the bottom right, change the <gui>Name</"
"gui> to <input>toolbar</input> and <gui>Show Arrow</gui> to <gui>No</gui>."
msgstr ""
-#: C/toolbar_builder.py.page:61(item/p) C/toolbar_builder.vala.page:44(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:61 C/toolbar_builder.vala.page:44
msgid ""
"<media type=\"image\" src=\"media/glade_toolbar_general.png\"> Screenshot of "
"General tab </media>"
msgstr ""
-#: C/toolbar_builder.py.page:66(item/p) C/toolbar_builder.vala.page:49(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:66 C/toolbar_builder.vala.page:49
msgid ""
"Under the <gui>Common</gui> tab, set <gui>Horizontal Expand</gui> to "
"<gui>Yes</gui>."
msgstr ""
-#: C/toolbar_builder.py.page:67(item/p) C/toolbar_builder.vala.page:50(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:67 C/toolbar_builder.vala.page:50
msgid ""
"<media type=\"image\" src=\"media/glade_toolbar_common.png\"> Screenshot of "
"Common tab </media>"
msgstr ""
-#: C/toolbar_builder.py.page:72(item/p) C/toolbar_builder.vala.page:55(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:72 C/toolbar_builder.vala.page:55
msgid ""
"Right click on the toolbar in the top right and select <gui>Edit</gui>. The "
"<gui>Tool Bar Editor</gui> window will appear."
msgstr ""
-#: C/toolbar_builder.py.page:73(item/p) C/toolbar_builder.vala.page:56(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:73 C/toolbar_builder.vala.page:56
msgid ""
"<media type=\"image\" src=\"media/glade_toolbar_edit.png\"> Screenshot of "
"where to right click to edit toolbar. </media>"
msgstr ""
-#: C/toolbar_builder.py.page:78(item/p) C/toolbar_builder.vala.page:61(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:78 C/toolbar_builder.vala.page:61
msgid ""
"We want to add 5 ToolButtons: New, Open, Undo, Fullscreen and Leave "
"Fullscreen. First, we will add the New ToolButton."
msgstr ""
-#: C/toolbar_builder.py.page:81(item/p) C/toolbar_builder.vala.page:64(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:81 C/toolbar_builder.vala.page:64
msgid "Under <gui>Hierarchy</gui> tab, click <gui>Add</gui>."
msgstr ""
-#: C/toolbar_builder.py.page:82(item/p) C/toolbar_builder.vala.page:65(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:82 C/toolbar_builder.vala.page:65
msgid "Change the name of the ToolItem to <input>new_button</input>."
msgstr ""
-#: C/toolbar_builder.py.page:83(item/p) C/toolbar_builder.vala.page:66(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:83 C/toolbar_builder.vala.page:66
msgid ""
"Scroll down and set <gui>Is important</gui> to <gui>Yes</gui>. This will "
"cause the label of the ToolButton to be shown, when you view the toolbar."
msgstr ""
-#: C/toolbar_builder.py.page:84(item/p) C/toolbar_builder.vala.page:67(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:84 C/toolbar_builder.vala.page:67
msgid "Enter the <gui>action name</gui>: <input>app.new</input>."
msgstr ""
-#: C/toolbar_builder.py.page:85(item/p) C/toolbar_builder.vala.page:68(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:85 C/toolbar_builder.vala.page:68
msgid "Change the <gui>Label</gui> to <input>New</input>."
msgstr ""
-#: C/toolbar_builder.py.page:86(item/p) C/toolbar_builder.vala.page:69(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:86 C/toolbar_builder.vala.page:69
msgid ""
"Select the <gui>New</gui> Stock Id from the drop down menu, or type "
"<input>gtk-new</input>."
msgstr ""
-#: C/toolbar_builder.py.page:88(item/p) C/toolbar_builder.vala.page:71(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:88 C/toolbar_builder.vala.page:71
msgid ""
"Repeat the above steps for the remaining ToolButtons, with the following "
"properties:"
msgstr ""
-#: C/toolbar_builder.py.page:95(td/p) C/toolbar_builder.vala.page:78(td/p)
+#. (itstool) path: td/p
+#: C/toolbar_builder.py.page:95 C/toolbar_builder.vala.page:78
msgid "Is important"
-msgstr ""
+msgstr "Is important"
-#: C/toolbar_builder.py.page:96(td/p) C/toolbar_builder.vala.page:79(td/p)
+#. (itstool) path: td/p
+#: C/toolbar_builder.py.page:96 C/toolbar_builder.vala.page:79
msgid "Action name"
-msgstr ""
+msgstr "Action name"
-#: C/toolbar_builder.py.page:98(td/p) C/toolbar_builder.vala.page:81(td/p)
+#. (itstool) path: td/p
+#: C/toolbar_builder.py.page:98 C/toolbar_builder.vala.page:81
msgid "Stock Id"
-msgstr ""
+msgstr "Stock Id"
-#: C/toolbar_builder.py.page:103(td/p) C/toolbar_builder.vala.page:86(td/p)
+#. (itstool) path: td/p
+#: C/toolbar_builder.py.page:103 C/toolbar_builder.vala.page:86
msgid "open_button"
msgstr "open_button"
-#: C/toolbar_builder.py.page:104(td/p) C/toolbar_builder.py.page:111(td/p)
-#: C/toolbar_builder.py.page:118(td/p) C/toolbar_builder.py.page:125(td/p)
-#: C/toolbar_builder.vala.page:87(td/p) C/toolbar_builder.vala.page:94(td/p)
-#: C/toolbar_builder.vala.page:101(td/p) C/toolbar_builder.vala.page:108(td/p)
+#. (itstool) path: td/p
+#: C/toolbar_builder.py.page:104 C/toolbar_builder.py.page:111
+#: C/toolbar_builder.py.page:118 C/toolbar_builder.py.page:125
+#: C/toolbar_builder.vala.page:87 C/toolbar_builder.vala.page:94
+#: C/toolbar_builder.vala.page:101 C/toolbar_builder.vala.page:108
msgid "Yes"
msgstr "Ja"
-#: C/toolbar_builder.py.page:105(td/p) C/toolbar_builder.vala.page:88(td/p)
+#. (itstool) path: td/p
+#: C/toolbar_builder.py.page:105 C/toolbar_builder.vala.page:88
msgid "app.open"
msgstr "app.open"
-#: C/toolbar_builder.py.page:106(td/p) C/toolbar_builder.vala.page:89(td/p)
+#. (itstool) path: td/p
+#: C/toolbar_builder.py.page:106 C/toolbar_builder.vala.page:89
msgid "Open"
msgstr "Öffnen"
-#: C/toolbar_builder.py.page:107(td/p) C/toolbar_builder.vala.page:90(td/p)
+#. (itstool) path: td/p
+#: C/toolbar_builder.py.page:107 C/toolbar_builder.vala.page:90
msgid "gtk-open"
msgstr "gtk-open"
-#: C/toolbar_builder.py.page:110(td/p) C/toolbar_builder.vala.page:93(td/p)
+#. (itstool) path: td/p
+#: C/toolbar_builder.py.page:110 C/toolbar_builder.vala.page:93
msgid "undo_button"
msgstr "undo_button"
-#: C/toolbar_builder.py.page:112(td/p) C/toolbar_builder.vala.page:95(td/p)
+#. (itstool) path: td/p
+#: C/toolbar_builder.py.page:112 C/toolbar_builder.vala.page:95
msgid "win.undo"
msgstr "win.undo"
-#: C/toolbar_builder.py.page:113(td/p) C/toolbar_builder.vala.page:96(td/p)
+#. (itstool) path: td/p
+#: C/toolbar_builder.py.page:113 C/toolbar_builder.vala.page:96
msgid "Undo"
-msgstr ""
+msgstr "Undo"
-#: C/toolbar_builder.py.page:114(td/p) C/toolbar_builder.vala.page:97(td/p)
+#. (itstool) path: td/p
+#: C/toolbar_builder.py.page:114 C/toolbar_builder.vala.page:97
msgid "gtk-undo"
msgstr "gtk-undo"
-#: C/toolbar_builder.py.page:117(td/p) C/toolbar_builder.vala.page:100(td/p)
+#. (itstool) path: td/p
+#: C/toolbar_builder.py.page:117 C/toolbar_builder.vala.page:100
msgid "fullscreen_button"
msgstr "fullscreen_button"
-#: C/toolbar_builder.py.page:119(td/p) C/toolbar_builder.py.page:126(td/p)
-#: C/toolbar_builder.vala.page:102(td/p) C/toolbar_builder.vala.page:109(td/p)
+#. (itstool) path: td/p
+#: C/toolbar_builder.py.page:119 C/toolbar_builder.py.page:126
+#: C/toolbar_builder.vala.page:102 C/toolbar_builder.vala.page:109
msgid "win.fullscreen"
msgstr "win.fullscreen"
-#: C/toolbar_builder.py.page:120(td/p) C/toolbar_builder.vala.page:103(td/p)
+#. (itstool) path: td/p
+#: C/toolbar_builder.py.page:120 C/toolbar_builder.vala.page:103
msgid "Fullscreen"
msgstr "Vollbild"
-#: C/toolbar_builder.py.page:121(td/p) C/toolbar_builder.vala.page:104(td/p)
+#. (itstool) path: td/p
+#: C/toolbar_builder.py.page:121 C/toolbar_builder.vala.page:104
msgid "gtk-fullscreen"
msgstr "gtk-fullscreen"
-#: C/toolbar_builder.py.page:124(td/p) C/toolbar_builder.vala.page:107(td/p)
+#. (itstool) path: td/p
+#: C/toolbar_builder.py.page:124 C/toolbar_builder.vala.page:107
msgid "leave_fullscreen_button"
msgstr "leave_fullscreen_button"
-#: C/toolbar_builder.py.page:127(td/p) C/toolbar_builder.vala.page:110(td/p)
+#. (itstool) path: td/p
+#: C/toolbar_builder.py.page:127 C/toolbar_builder.vala.page:110
msgid "Leave Fullscreen"
msgstr "Vollbild verlassen"
-#: C/toolbar_builder.py.page:128(td/p) C/toolbar_builder.vala.page:111(td/p)
+#. (itstool) path: td/p
+#: C/toolbar_builder.py.page:128 C/toolbar_builder.vala.page:111
msgid "gtk-leave-fullscreen"
msgstr "gtk-leave-fullscreen"
-#: C/toolbar_builder.py.page:137(item/p)
-#: C/toolbar_builder.vala.page:120(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:137 C/toolbar_builder.vala.page:120
msgid "Close the <gui>Tool Bar Editor</gui>."
msgstr "Schließen Sie den <gui>Werkzeugleisteneditor</gui>."
-#: C/toolbar_builder.py.page:140(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:140
msgid ""
"When our program will first start, we do not want the <gui>Leave Fullscreen</"
"gui> ToolButton to be visible, since the application will not be in "
@@ -29994,20 +36908,20 @@ msgid ""
"code> separately on all the elements."
msgstr ""
-#: C/toolbar_builder.py.page:141(item/p)
-#: C/toolbar_builder.vala.page:124(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:141 C/toolbar_builder.vala.page:124
msgid ""
-"<media type=\"image\" src=\"media/glade_visible_no.png\"> Setting the visible "
-"property to No </media>"
+"<media type=\"image\" src=\"media/glade_visible_no.png\"> Setting the "
+"visible property to No </media>"
msgstr ""
-#: C/toolbar_builder.py.page:146(item/p)
-#: C/toolbar_builder.vala.page:129(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:146 C/toolbar_builder.vala.page:129
msgid "Save your work, and close Glade."
msgstr "Speichern Sie Ihre Arbeit und schließen Sie Glade."
-#: C/toolbar_builder.py.page:149(item/p)
-#: C/toolbar_builder.vala.page:132(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:149 C/toolbar_builder.vala.page:132
msgid ""
"The XML file created by Glade is shown below. This is the description of the "
"toolbar. At the time of this writing, the option to add the class Gtk."
@@ -30016,8 +36930,8 @@ msgid ""
"line 9 of <file>toolbar_builder.ui</file>:"
msgstr ""
-#: C/toolbar_builder.py.page:150(item/code)
-#: C/toolbar_builder.vala.page:133(item/code)
+#. (itstool) path: item/code
+#: C/toolbar_builder.py.page:150 C/toolbar_builder.vala.page:133
#, no-wrap
msgid ""
"\n"
@@ -30027,16 +36941,17 @@ msgid ""
" "
msgstr ""
-#: C/toolbar_builder.py.page:155(item/p)
-#: C/toolbar_builder.vala.page:138(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:155 C/toolbar_builder.vala.page:138
msgid ""
"If you do not add this, the program will still work fine. The resulting "
"toolbar will however look slightly different then the screenshot at the top "
"of this page."
msgstr ""
-#: C/toolbar_builder.py.page:158(section/code)
-#: C/toolbar_builder.vala.page:141(page/code)
+#. (itstool) path: section/code
+#. (itstool) path: page/code
+#: C/toolbar_builder.py.page:158 C/toolbar_builder.vala.page:141
#, no-wrap
msgid ""
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
@@ -30135,14 +37050,16 @@ msgid ""
"</interface>\n"
msgstr ""
-#: C/toolbar_builder.py.page:165(section/p)
-#: C/toolbar_builder.vala.page:143(page/p)
+#. (itstool) path: section/p
+#. (itstool) path: page/p
+#: C/toolbar_builder.py.page:165 C/toolbar_builder.vala.page:143
msgid ""
"We now create the code below, which adds the toolbar from the file we just "
"created."
msgstr ""
-#: C/toolbar_builder.py.page:166(section/code)
+#. (itstool) path: section/code
+#: C/toolbar_builder.py.page:166
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -30150,7 +37067,9 @@ msgid ""
"from gi.repository import Gio\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"Toolbar Example\", application=app)\n"
" self.set_default_size(400, 200)\n"
@@ -30176,7 +37095,8 @@ msgid ""
"\n"
" # two buttons that will be used later in a method\n"
" self.fullscreen_button = builder.get_object(\"fullscreen_button\")\n"
-" self.leave_fullscreen_button = builder.get_object(\"leave_fullscreen_button\")\n"
+" self.leave_fullscreen_button = builder.get_object(\n"
+" \"leave_fullscreen_button\")\n"
"\n"
" # create the actions that control the window, connect their signal to a\n"
" # callback method (see below), add the action to the window:\n"
@@ -30197,8 +37117,10 @@ msgid ""
"\n"
" # callback for fullscreen\n"
" def fullscreen_callback(self, action, parameter):\n"
-" # check if the state is the same as Gdk.WindowState.FULLSCREEN, which is a bit flag\n"
-" is_fullscreen = self.get_window().get_state() & Gdk.WindowState.FULLSCREEN != 0\n"
+" # check if the state is the same as Gdk.WindowState.FULLSCREEN, which\n"
+" # is a bit flag\n"
+" is_fullscreen = self.get_window().get_state(\n"
+" ) & Gdk.WindowState.FULLSCREEN != 0\n"
" if is_fullscreen:\n"
" self.unfullscreen()\n"
" self.leave_fullscreen_button.hide()\n"
@@ -30208,7 +37130,9 @@ msgid ""
" self.fullscreen_button.hide()\n"
" self.leave_fullscreen_button.show()\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -30247,80 +37171,93 @@ msgid ""
"sys.exit(exit_status)\n"
msgstr ""
-#: C/toolbar_builder.py.page:171(section/title)
+#. (itstool) path: section/title
+#: C/toolbar_builder.py.page:171
msgid "Useful methods for Gtk.Builder"
msgstr ""
-#: C/toolbar_builder.py.page:172(section/p)
+#. (itstool) path: section/p
+#: C/toolbar_builder.py.page:172
msgid ""
"For the useful methods for a Toolbar widget, see <link xref=\"toolbar.py\"/>"
msgstr ""
-#: C/toolbar_builder.py.page:174(section/p)
+#. (itstool) path: section/p
+#: C/toolbar_builder.py.page:174
msgid "Gtk.Builder builds an interface from an XML UI definition."
msgstr ""
-#: C/toolbar_builder.py.page:177(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:177
msgid ""
"<code>add_from_file(filename)</code> loads and parses the given file and "
"merges it with the current contents of the Gtk.Builder."
msgstr ""
-#: C/toolbar_builder.py.page:178(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:178
msgid ""
"<code>add_from_string(string)</code> parses the given string and merges it "
"with the current contents of the Gtk.Builder."
msgstr ""
-#: C/toolbar_builder.py.page:179(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:179
msgid ""
"<code>add_objects_from_file(filename, object_ids)</code> is the same as "
"<code>add_from_file()</code>, but it loads only the objects with the ids "
"given in the <code>object_id</code>s list."
msgstr ""
-#: C/toolbar_builder.py.page:180(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:180
msgid ""
"<code>add_objects_from_string(filename, object_ids)</code> is the same as "
"<code>add_from_string()</code>, but it loads only the objects with the ids "
"given in the <code>object_id</code>s list."
msgstr ""
-#: C/toolbar_builder.py.page:181(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:181
msgid ""
"<code>get_object(object_id)</code> retrieves the widget with the id "
"<code>object_id</code> from the loaded objects in the builder."
msgstr ""
-#: C/toolbar_builder.py.page:182(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:182
msgid "<code>get_objects()</code> returns all loaded objects."
msgstr ""
-#: C/toolbar_builder.py.page:183(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.py.page:183
msgid ""
"<code>connect_signals(handler_object)</code> connects the signals to the "
"methods given in the <code>handler_object</code>. This can be any object "
"which contains keys or attributes that are called like the signal handler "
"names given in the interface description, e.g. a class or a dict. In line 39 "
-"the signal <code>\"activate\"</code> from the action <code>undo_action</code> "
-"is connected to the callback function <code>undo_callback()</code> using "
-"<code><var>action</var>.connect(<var>signal</var>, <var>callback function</"
-"var>)</code>. See <link xref=\"signals-callbacks.py\"/> for a more detailed "
-"explanation."
+"the signal <code>\"activate\"</code> from the action <code>undo_action</"
+"code> is connected to the callback function <code>undo_callback()</code> "
+"using <code><var>action</var>.connect(<var>signal</var>, <var>callback "
+"function</var>)</code>. See <link xref=\"signals-callbacks.py\"/> for a more "
+"detailed explanation."
msgstr ""
-#: C/toolbar_builder.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/toolbar_builder.vala.page:7
msgctxt "text"
msgid "Toolbar created using Glade (Vala)"
msgstr ""
-#: C/toolbar_builder.vala.page:25(page/p)
+#. (itstool) path: page/p
+#: C/toolbar_builder.vala.page:25
msgid ""
-"This example is similar to <link xref=\"toolbar.vala\"/>, except we use Glade "
-"to create the toolbar in an XML ui file."
+"This example is similar to <link xref=\"toolbar.vala\"/>, except we use "
+"Glade to create the toolbar in an XML ui file."
msgstr ""
-#: C/toolbar_builder.vala.page:123(item/p)
+#. (itstool) path: item/p
+#: C/toolbar_builder.vala.page:123
msgid ""
"When our program will first start, we don't want the <gui>Leave Fullscreen</"
"gui> ToolButton to be visible, since the application will not be in "
@@ -30330,7 +37267,8 @@ msgid ""
"loaded into your program code."
msgstr ""
-#: C/toolbar_builder.vala.page:144(page/code)
+#. (itstool) path: page/code
+#: C/toolbar_builder.vala.page:144
#, no-wrap
msgid ""
"/* This is the Window */\n"
@@ -30438,33 +37376,477 @@ msgid ""
"}\n"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/tooltip.py.page:23(media)
+#: C/tooltip.c.page:22 C/tooltip.js.page:22 C/tooltip.py.page:23
+#: C/tooltip.vala.page:22
+#, fuzzy
+#| msgctxt "_"
+#| msgid ""
+#| "external ref='media/toolbar.png' md5='f0350855eedf6343952b72d6d906f738'"
msgctxt "_"
-msgid "external ref='media/tooltip.png' md5='6950da5f4444aa941ecc2f0fc5951d52'"
+msgid "external ref='media/tooltip.png' md5='41e35860a51e39cb48c71e57bb8fb1d0'"
msgstr ""
+"external ref='media/toolbar.png' md5='f0350855eedf6343952b72d6d906f738'"
-#: C/tooltip.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/tooltip.c.page:7
msgctxt "text"
-msgid "Tooltip (Python)"
-msgstr "Minihilfe (Python)"
+msgid "Tooltip (C)"
+msgstr "Minihilfe (C)"
-#: C/tooltip.py.page:19(info/desc)
+#. (itstool) path: info/desc
+#: C/tooltip.c.page:18 C/tooltip.js.page:18 C/tooltip.py.page:19
+#: C/tooltip.vala.page:18
msgid "Add tips to your widgets"
msgstr ""
-#: C/tooltip.py.page:22(page/title)
+#. (itstool) path: page/title
+#: C/tooltip.c.page:21 C/tooltip.js.page:21 C/tooltip.py.page:22
+#: C/tooltip.vala.page:21
msgid "Tooltip"
msgstr "Minihilfe"
-#: C/tooltip.py.page:24(page/p)
+#. (itstool) path: page/p
+#: C/tooltip.c.page:23 C/tooltip.js.page:23 C/tooltip.py.page:24
+#: C/tooltip.vala.page:23
msgid "A toolbar with a tooltip (with an image) for a button."
msgstr ""
-#: C/tooltip.py.page:30(section/code)
+#. (itstool) path: note/p
+#: C/tooltip.c.page:25
+msgid ""
+"This example builds on the <link xref=\"toolbar.c\">Toolbar</link> example."
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/tooltip.c.page:30
+#, no-wrap
+msgid ""
+"#include <gtk/gtk.h>\n"
+"\n"
+"static gboolean \n"
+"undo_tooltip_callback (GtkStatusIcon *status_icon,\n"
+" gint x,\n"
+" gint y,\n"
+" gboolean keyboard_mode,\n"
+" GtkTooltip *tooltip,\n"
+" gpointer user_data)\n"
+"{\n"
+" /* set the text for the tooltip */\n"
+" gtk_tooltip_set_text (tooltip, \"Undo your last action\");\n"
+" \n"
+" /* set an icon fot the tooltip */\n"
+" gtk_tooltip_set_icon_from_stock(tooltip, \"gtk-undo\", GTK_ICON_SIZE_MENU);\n"
+"\n"
+" /* show the tooltip */\n"
+" return TRUE;\n"
+"}\n"
+"\n"
+"\n"
+"static void\n"
+"undo_callback (GSimpleAction *simple,\n"
+" GVariant *parameter,\n"
+" gpointer user_data)\n"
+"{\n"
+" g_print (\"You clicked \\\"Undo\\\".\\n\");\n"
+"}\n"
+"\n"
+"\n"
+"static void\n"
+"activate (GtkApplication *app,\n"
+" gpointer user_data)\n"
+"{\n"
+" GtkWidget *grid;\n"
+" GtkWidget *window;\n"
+" GtkWidget *toolbar;\n"
+"\n"
+" GtkToolItem *new_button;\n"
+" GtkToolItem *open_button;\n"
+" GtkToolItem *undo_button;\n"
+"\n"
+" GtkStyleContext *style_context;\n"
+"\n"
+" GSimpleAction *undo_action;\n"
+"\n"
+" window = gtk_application_window_new (app);\n"
+" gtk_window_set_title (GTK_WINDOW (window), \"Toolbar with Tooltips Example\");\n"
+" gtk_window_set_default_size (GTK_WINDOW (window), 400, 200);\n"
+"\n"
+" /* Here we begin to create the toolbar */\n"
+" toolbar = gtk_toolbar_new ();\n"
+"\n"
+" /* Set the toolbar to be the primary toolbar of the application */\n"
+" style_context = gtk_widget_get_style_context (toolbar);\n"
+" gtk_style_context_add_class (style_context, GTK_STYLE_CLASS_PRIMARY_TOOLBAR);\n"
+"\n"
+" /* Create a button for the \"new\" action, with a stock image */\n"
+" new_button = gtk_tool_button_new_from_stock (GTK_STOCK_NEW);\n"
+" gtk_tool_item_set_is_important (new_button, TRUE);\n"
+" gtk_toolbar_insert (GTK_TOOLBAR (toolbar), new_button, 0);\n"
+" gtk_widget_show (GTK_WIDGET (new_button));\n"
+"\n"
+" /* Set the action name for the \"new\" action. We use \"app.new\" to\n"
+" * indicate that the action controls the application.\n"
+" */\n"
+" gtk_actionable_set_action_name (GTK_ACTIONABLE (new_button), \"app.new\");\n"
+"\n"
+" /*******************************\n"
+" * Tooltip for the New ToolItem:\n"
+" * a tooltip with text\n"
+" *******************************/\n"
+" gtk_tool_item_set_tooltip_text (new_button, \"Create a new file\"); \n"
+"\n"
+" /* \"Open\" */\n"
+" open_button = gtk_tool_button_new_from_stock (GTK_STOCK_OPEN);\n"
+" gtk_tool_item_set_is_important (open_button, TRUE);\n"
+" gtk_toolbar_insert (GTK_TOOLBAR (toolbar), open_button, 1);\n"
+" gtk_widget_show (GTK_WIDGET (open_button));\n"
+" gtk_actionable_set_action_name (GTK_ACTIONABLE (open_button), \"app.open\");\n"
+"\n"
+" /*******************************\n"
+" * Tooltip for the Open ToolItem:\n"
+" * a tooltip using Pango markup \n"
+" * language\n"
+" *******************************/\n"
+" gtk_tool_item_set_tooltip_text (open_button, \"Open an <i>existing</i> file\");\n"
+"\n"
+" /* \"Undo\" */\n"
+" undo_button = gtk_tool_button_new_from_stock (GTK_STOCK_UNDO);\n"
+" gtk_tool_item_set_is_important (undo_button, TRUE);\n"
+" gtk_toolbar_insert (GTK_TOOLBAR (toolbar), undo_button, 2);\n"
+" gtk_widget_show (GTK_WIDGET (undo_button));\n"
+"\n"
+" /* In this case, we use \"win.undo\" to indicate that\n"
+" * the action controls only the window\n"
+" */\n"
+" gtk_actionable_set_action_name (GTK_ACTIONABLE (undo_button), \"win.undo\");\n"
+"\n"
+" /*******************************\n"
+" * Tooltip for the Undo ToolItem:\n"
+" * a tooltip with an image\n"
+" *******************************/\n"
+" gtk_widget_set_has_tooltip (GTK_WIDGET (undo_button), TRUE);\n"
+"\n"
+" // Next, we connect the query_tooltip signal\n"
+" g_signal_connect (undo_button, \"query-tooltip\", G_CALLBACK (undo_tooltip_callback), NULL);\n"
+"\n"
+" gtk_widget_set_hexpand (toolbar, TRUE);\n"
+" gtk_widget_show (toolbar);\n"
+"\n"
+" grid = gtk_grid_new ();\n"
+" gtk_grid_attach (GTK_GRID (grid), toolbar, 0, 0, 1, 1);\n"
+" gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (grid));\n"
+" gtk_widget_show (GTK_WIDGET (grid));\n"
+"\n"
+" /* Use the action names to create the actions that control the window, and\n"
+" * connect them to the appropriate callbackfunctions.\n"
+" */\n"
+" undo_action = g_simple_action_new (\"undo\", NULL);\n"
+" g_signal_connect (undo_action, \"activate\", G_CALLBACK (undo_callback),\n"
+" GTK_WINDOW (window));\n"
+" g_action_map_add_action (G_ACTION_MAP (window), G_ACTION (undo_action));\n"
+"\n"
+" gtk_widget_show (window);\n"
+"}\n"
+"\n"
+"\n"
+"/* Callback function for the new action */\n"
+"static void\n"
+"new_callback (GSimpleAction *simple,\n"
+" GVariant *parameter,\n"
+" gpointer user_data)\n"
+"{\n"
+" g_print (\"You clicked \\\"New\\\".\\n\");\n"
+"}\n"
+"\n"
+"\n"
+"/* Callback function for the open action */\n"
+"static void\n"
+"open_callback (GSimpleAction *simple,\n"
+" GVariant *parameter,\n"
+" gpointer user_data)\n"
+"{\n"
+" g_print (\"You clicked \\\"Open\\\".\\n\");\n"
+"}\n"
+"\n"
+"\n"
+"/* In this function, we create the actions in which control the window, and\n"
+" * connect their signals to the appropriate callback function.\n"
+" */\n"
+"static void\n"
+"startup (GApplication *app,\n"
+" gpointer user_data)\n"
+"{\n"
+" GSimpleAction *new_action;\n"
+" GSimpleAction *open_action;\n"
+"\n"
+" new_action = g_simple_action_new (\"new\", NULL);\n"
+" g_signal_connect (new_action, \"activate\", G_CALLBACK (new_callback), app);\n"
+" g_action_map_add_action (G_ACTION_MAP (app), G_ACTION (new_action));\n"
+"\n"
+" open_action = g_simple_action_new (\"open\", NULL);\n"
+" g_signal_connect (open_action, \"activate\", G_CALLBACK (open_callback), app);\n"
+" g_action_map_add_action (G_ACTION_MAP (app), G_ACTION (open_action));\n"
+"}\n"
+"\n"
+"\n"
+"\n"
+"/* Startup function for the application */\n"
+"int\n"
+"main (int argc, char **argv)\n"
+"{\n"
+" GtkApplication *app;\n"
+" int status;\n"
+"\n"
+" app = gtk_application_new (\"org.gtk.example\", G_APPLICATION_FLAGS_NONE);\n"
+" g_signal_connect (app, \"activate\", G_CALLBACK (activate), NULL);\n"
+" g_signal_connect (app, \"startup\", G_CALLBACK (startup), NULL);\n"
+" status = g_application_run (G_APPLICATION (app), argc, argv);\n"
+" g_object_unref (app);\n"
+"\n"
+" return status;\n"
+"}\n"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/tooltip.c.page:37 C/tooltip.py.page:58
+msgid ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkTooltip.html"
+"\">GtkTooltip</link>"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/tooltip.c.page:39 C/tooltip.py.page:60
+msgid ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkWidget.html"
+"\">GtkWidget</link>"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/tooltip.c.page:40 C/tooltip.js.page:39 C/tooltip.py.page:61
+msgid ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/gtk3-Stock-Items.html"
+"\">Stock Items</link>"
+msgstr ""
+
+#. (itstool) path: info/title
+#: C/tooltip.js.page:7
+#, fuzzy
+#| msgctxt "text"
+#| msgid "Toolbar (JavaScript)"
+msgctxt "text"
+msgid "Tooltip (JavaScript)"
+msgstr "Werkzeugleiste (JavaScript)"
+
+#. (itstool) path: note/p
+#: C/tooltip.js.page:24
+msgid ""
+"This example builds on the <link xref=\"toolbar.js\">Toolbar</link> example."
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/tooltip.js.page:29
+#, no-wrap
+msgid ""
+"//!/usr/bin/gjs\n"
+"\n"
+"const Gdk = imports.gi.Gdk;\n"
+"const GLib = imports.gi.GLib;\n"
+"const Gio = imports.gi.Gio;\n"
+"const Gtk = imports.gi.Gtk; \n"
+"const Lang = imports.lang;\n"
+"\n"
+"const TooltipExample = new Lang.Class ({\n"
+" Name: 'Tooltip Example',\n"
+"\n"
+" // Create the application \n"
+" _init: function () {\n"
+" this.application = new Gtk.Application ({ application_id: 'org.example.jstooltip' });\n"
+"\n"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Callback function for 'activate' signal presents windows when active\n"
+" _onActivate: function() {\n"
+" this.window.present();\n"
+" },\n"
+"\n"
+" // Callback function for 'startup' signal builds the UI\n"
+" _onStartup: function () {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+" // Build the application's UI\n"
+" _buildUI: function () {\n"
+"\n"
+" // Create the application window\n"
+" this.window = new Gtk.ApplicationWindow ({ application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" title: \"Toolbar with Tooltips Example\",\n"
+" default_width: 400,\n"
+" default_height: 200,\n"
+" border_width: 10 });\n"
+"\n"
+" this.grid = new Gtk.Grid();\n"
+"\n"
+" this.toolbar = this._createToolbar();\n"
+" this.toolbar.set_hexpand(true);\n"
+" this.toolbar.show();\n"
+"\n"
+" this.grid.attach(this.toolbar, 0, 0, 1, 1);\n"
+"\n"
+" this.window.add(this.grid);\n"
+"\n"
+" this._newAction = new Gio.SimpleAction({ name: \"new\" });\n"
+" this._newAction.connect(\"activate\", Lang.bind(this, this._newCallback));\n"
+" this.window.add_action(this._newAction);\n"
+"\n"
+" this._openAction = new Gio.SimpleAction({ name: \"open\" });\n"
+" this._openAction.connect(\"activate\", Lang.bind(this, this._openCallback));\n"
+" this.window.add_action(this._openAction);\n"
+"\n"
+" this._undoAction = new Gio.SimpleAction({ name: \"undo\" });\n"
+" this._undoAction.connect(\"activate\", Lang.bind(this, this._undoCallback));\n"
+" this.window.add_action(this._undoAction);\n"
+"\n"
+" this._fullScreenAction = new Gio.SimpleAction({ name: \"fullscreenToggle\" });\n"
+" this._fullScreenAction.connect(\"activate\", Lang.bind(this, this._fullScreenCallback));\n"
+" this.window.add_action(this._fullScreenAction);\n"
+"\n"
+" this.window.show_all();\n"
+" },\n"
+"\n"
+" _createToolbar: function(){\n"
+" this.toolbar = new Gtk.Toolbar();\n"
+" this.toolbar.get_style_context().add_class(Gtk.STYLE_CLASS_PRIMARY_TOOLBAR);\n"
+"\n"
+" // button for the \"new\" action\n"
+" this.newButton = Gtk.ToolButton.new_from_stock(Gtk.STOCK_NEW);\n"
+" // with a tooltip with a given text \n"
+" this.newButton.set_tooltip_text(\"Create a new file\");\n"
+" this.newButton.set_is_important(true);\n"
+" this.toolbar.insert(this.newButton, 0);\n"
+" this.newButton.show();\n"
+" this.newButton.set_action_name(\"win.new\");\n"
+"\n"
+" // button for the \"open\" action\n"
+" this.openButton = Gtk.ToolButton.new_from_stock(Gtk.STOCK_OPEN);\n"
+" // with a tooltip with a given text in the Pango markup language \n"
+" this.openButton.set_tooltip_markup(\"Open an <i>existing</i> file\");\n"
+" this.openButton.set_is_important(true);\n"
+" this.toolbar.insert(this.openButton, 1);\n"
+" this.openButton.show();\n"
+" this.openButton.set_action_name(\"win.open\");\n"
+"\n"
+" // button for the \"undo\" action\n"
+" this.undoButton = Gtk.ToolButton.new_from_stock(Gtk.STOCK_UNDO);\n"
+" // with a tooltip with an image\n"
+" // set true the property \"has-tooltip\" \n"
+" this.undoButton.set_property(\"has-tooltip\", true);\n"
+" // connect to the callback function that for the tooltip\n"
+" // with the signal \"query-tooltip\"\n"
+" this.undoButton.connect(\"query-tooltip\", Lang.bind(this, this._undoTooltipCallback));\n"
+" this.undoButton.set_is_important(true);\n"
+" this.toolbar.insert(this.undoButton, 2);\n"
+" this.undoButton.show();\n"
+" this.undoButton.set_action_name(\"win.undo\");\n"
+"\n"
+" // button for the \"fullscreen/leave fullscreen\" action\n"
+" this.fullscreenButton = Gtk.ToolButton.new_from_stock(Gtk.STOCK_FULLSCREEN);\n"
+" this.fullscreenButton.set_is_important(true);\n"
+" this.toolbar.insert(this.fullscreenButton, 3);\n"
+" this.fullscreenButton.set_action_name(\"win.fullscreenToggle\");\n"
+"\n"
+" return this.toolbar;\n"
+" },\n"
+"\n"
+" _newCallback: function(action, parameter) {\n"
+" print(\"You clicked \\\"New\\\".\");\n"
+" },\n"
+"\n"
+" _openCallback: function(action, parameter) {\n"
+" print(\"You clicked \\\"Open\\\".\");\n"
+" },\n"
+"\n"
+" // the callback function for the tooltip of the \"undo\" button\n"
+" _undoTooltipCallback: function(widget, x, y, keyboard_mode, tooltip) {\n"
+" // set the text for the tooltip\n"
+" tooltip.set_text(\"Undo your last action\");\n"
+" // set an icon fot the tooltip\n"
+" tooltip.set_icon_from_stock(Gtk.STOCK_UNDO, Gtk.IconSize.MENU);\n"
+" // show the tooltip\n"
+" return true;\n"
+" },\n"
+"\n"
+" _undoCallback: function(action, parameter) {\n"
+" print(\"You clicked \\\"Undo\\\".\");\n"
+" },\n"
+"\n"
+" _fullScreenCallback: function() {\n"
+" if ((this.window.get_window().get_state() & Gdk.WindowState.FULLSCREEN) != 0 ){\n"
+" this.fullscreenButton.set_stock_id(Gtk.STOCK_FULLSCREEN);\n"
+" this.fullscreenButton.set_tooltip_text(\"Make your window fullscreen\");\n"
+" this.window.unfullscreen();\n"
+" } else {\n"
+" this.fullscreenButton.set_stock_id(Gtk.STOCK_LEAVE_FULLSCREEN);\n"
+" this.fullscreenButton.set_tooltip_text(\"Leave fullscreen\");\n"
+" this.window.fullscreen();\n"
+" }\n"
+" }\n"
+"});\n"
+"\n"
+"// Run the application\n"
+"let app = new TooltipExample ();\n"
+"app.application.run (ARGV);\n"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/tooltip.js.page:36
+msgid ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Tooltip.html"
+"\">GtkTooltip</link>"
+msgstr ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Tooltip.html"
+"\">GtkTooltip</link>"
+
+#. (itstool) path: item/p
+#: C/tooltip.js.page:37
+msgid ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Toolbar.html"
+"\">GtkToolbar</link>"
+msgstr ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Toolbar.html"
+"\">GtkToolbar</link>"
+
+#. (itstool) path: item/p
+#: C/tooltip.js.page:38
+msgid ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Widget.html"
+"\">GtkWidget</link>"
+msgstr ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Widget.html"
+"\">GtkWidget</link>"
+
+#. (itstool) path: info/title
+#: C/tooltip.py.page:7
+msgctxt "text"
+msgid "Tooltip (Python)"
+msgstr "Minihilfe (Python)"
+
+#. (itstool) path: note/p
+#: C/tooltip.py.page:25
+msgid ""
+"This example builds on the <link xref=\"toolbar.py\">Toolbar</link> example."
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/tooltip.py.page:31
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -30472,9 +37854,12 @@ msgid ""
"from gi.repository import Gio\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
-" Gtk.Window.__init__(self, title=\"Toolbar with Tooltips Example\", application=app)\n"
+" Gtk.Window.__init__(\n"
+" self, title=\"Toolbar with Tooltips Example\", application=app)\n"
" self.set_default_size(400, 200)\n"
"\n"
" grid = Gtk.Grid()\n"
@@ -30497,11 +37882,11 @@ msgid ""
"\n"
" def create_toolbar(self):\n"
" toolbar = Gtk.Toolbar()\n"
-" toolbar.get_style_context().add_class(Gtk.STYLE_CLASS_PRIMARY_TOOLBAR);\n"
+" toolbar.get_style_context().add_class(Gtk.STYLE_CLASS_PRIMARY_TOOLBAR)\n"
"\n"
" # button for the \"new\" action\n"
" new_button = Gtk.ToolButton.new_from_stock(Gtk.STOCK_NEW)\n"
-" # with a tooltip with a given text \n"
+" # with a tooltip with a given text\n"
" new_button.set_tooltip_text(\"Create a new file\")\n"
" new_button.set_is_important(True)\n"
" toolbar.insert(new_button, 0)\n"
@@ -30510,7 +37895,7 @@ msgid ""
"\n"
" # button for the \"open\" action\n"
" open_button = Gtk.ToolButton.new_from_stock(Gtk.STOCK_OPEN)\n"
-" # with a tooltip with a given text in the Pango markup language \n"
+" # with a tooltip with a given text in the Pango markup language\n"
" open_button.set_tooltip_markup(\"Open an <i>existing</i> file\")\n"
" open_button.set_is_important(True)\n"
" toolbar.insert(open_button, 1)\n"
@@ -30520,7 +37905,7 @@ msgid ""
" # button for the \"undo\" action\n"
" undo_button = Gtk.ToolButton.new_from_stock(Gtk.STOCK_UNDO)\n"
" # with a tooltip with an image\n"
-" # set True the property \"has-tooltip\" \n"
+" # set True the property \"has-tooltip\"\n"
" undo_button.set_property(\"has-tooltip\", True)\n"
" # connect to the callback function that for the tooltip\n"
" # with the signal \"query-tooltip\"\n"
@@ -30531,7 +37916,8 @@ msgid ""
" undo_button.set_action_name(\"win.undo\")\n"
"\n"
" # button for the \"fullscreen/leave fullscreen\" action\n"
-" self.fullscreen_button = Gtk.ToolButton.new_from_stock(Gtk.STOCK_FULLSCREEN)\n"
+" self.fullscreen_button = Gtk.ToolButton.new_from_stock(\n"
+" Gtk.STOCK_FULLSCREEN)\n"
" self.fullscreen_button.set_is_important(True)\n"
" toolbar.insert(self.fullscreen_button, 3)\n"
" self.fullscreen_button.set_action_name(\"win.fullscreen\")\n"
@@ -30551,7 +37937,8 @@ msgid ""
" print \"You clicked \\\"Undo\\\".\"\n"
"\n"
" def fullscreen_callback(self, action, parameter):\n"
-" is_fullscreen = self.get_window().get_state() & Gdk.WindowState.FULLSCREEN != 0\n"
+" is_fullscreen = self.get_window().get_state(\n"
+" ) & Gdk.WindowState.FULLSCREEN != 0\n"
" if not is_fullscreen:\n"
" self.fullscreen_button.set_stock_id(Gtk.STOCK_LEAVE_FULLSCREEN)\n"
" self.fullscreen()\n"
@@ -30559,7 +37946,9 @@ msgid ""
" self.fullscreen_button.set_stock_id(Gtk.STOCK_FULLSCREEN)\n"
" self.unfullscreen()\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -30589,29 +37978,34 @@ msgid ""
"sys.exit(exit_status)\n"
msgstr ""
-#: C/tooltip.py.page:34(section/title)
+#. (itstool) path: section/title
+#: C/tooltip.py.page:35
msgid "Useful methods for a Tooltip widget"
msgstr ""
-#: C/tooltip.py.page:36(section/p)
+#. (itstool) path: section/p
+#: C/tooltip.py.page:37
msgid ""
-"<code>set_tooltip_text(text)</code> and <code>set_tooltip_markup(text)</code> "
-"can be used to add a tooltip of plain text (or text in the Pango Markup "
-"Language) to a widget."
+"<code>set_tooltip_text(text)</code> and <code>set_tooltip_markup(text)</"
+"code> can be used to add a tooltip of plain text (or text in the Pango "
+"Markup Language) to a widget."
msgstr ""
-#: C/tooltip.py.page:37(section/p)
+#. (itstool) path: section/p
+#: C/tooltip.py.page:38
msgid "For more complex tooltips, for instance for a tooltip with an image:"
msgstr ""
-#: C/tooltip.py.page:39(item/p)
+#. (itstool) path: item/p
+#: C/tooltip.py.page:40
msgid ""
"Set the <code>\"has-tooltip\"</code> property of the widget to <code>True</"
"code>; this will make GTK+ monitor the widget for motion and related events "
"which are needed to determine when and where to show a tooltip."
msgstr ""
-#: C/tooltip.py.page:40(item/p)
+#. (itstool) path: item/p
+#: C/tooltip.py.page:41
msgid ""
"Connect to the <code>\"query-tooltip\"</code> signal. This signal will be "
"emitted when a tooltip is supposed to be shown. One of the arguments passed "
@@ -30623,89 +38017,288 @@ msgid ""
"putting in a custom widget (<code>set_custom(widget)</code>)."
msgstr ""
-#: C/tooltip.py.page:41(item/p)
+#. (itstool) path: item/p
+#: C/tooltip.py.page:42
msgid ""
"Return <code>True</code> from your query-tooltip handler. This causes the "
"tooltip to be show. If you return <code>False</code>, it will not be shown."
msgstr ""
-#: C/tooltip.py.page:44(section/p)
+#. (itstool) path: section/p
+#: C/tooltip.py.page:45
msgid ""
"In the probably rare case where you want to have even more control over the "
"tooltip that is about to be shown, you can set your own GtkWindow which will "
"be used as tooltip window. This works as follows:"
msgstr ""
-#: C/tooltip.py.page:46(item/p)
+#. (itstool) path: item/p
+#: C/tooltip.py.page:47
msgid ""
"Set <code>\"has-tooltip\"</code> and connect to <code>\"query-tooltip\"</"
"code> as before."
msgstr ""
-#: C/tooltip.py.page:47(item/p)
+#. (itstool) path: item/p
+#: C/tooltip.py.page:48
msgid ""
"Use <code>set_tooltip_window()</code> on the widget to set a GtkWindow "
"created by you as tooltip window."
msgstr ""
-#: C/tooltip.py.page:48(item/p)
+#. (itstool) path: item/p
+#: C/tooltip.py.page:49
msgid ""
"In the <code>\"query-tooltip\"</code> callback you can access your window "
"using <code>get_tooltip_window()</code> and manipulate as you wish. The "
-"semantics of the return value are exactly as before, return <code>True</code> "
-"to show the window, <code>False</code> to not show it."
+"semantics of the return value are exactly as before, return <code>True</"
+"code> to show the window, <code>False</code> to not show it."
msgstr ""
-#: C/tooltip.py.page:57(item/p)
+#. (itstool) path: info/title
+#: C/tooltip.vala.page:7
+msgctxt "text"
+msgid "Tooltip (Vala)"
+msgstr "Minihilfe (Vala)"
+
+#. (itstool) path: note/p
+#: C/tooltip.vala.page:24
msgid ""
-"<link href=\"http://developer.gnome.org/gtk3/stable/GtkTooltip.html"
-"\">GtkTooltip</link>"
+"This example builds on the <link xref=\"toolbar.vala\">Toolbar</link> "
+"example."
msgstr ""
-#: C/tooltip.py.page:59(item/p)
+#. (itstool) path: section/code
+#: C/tooltip.vala.page:30
+#, no-wrap
msgid ""
-"<link href=\"http://developer.gnome.org/gtk3/stable/GtkWidget.html"
-"\">GtkWidget</link>"
+"/* This is the Window */\n"
+"class MyWindow : Gtk.ApplicationWindow {\n"
+"\n"
+"\t/* Instance variables belonging to the window */\n"
+"\tGtk.Toolbar toolbar;\n"
+"\tGtk.ToolButton new_button;\n"
+"\tGtk.ToolButton open_button;\n"
+"\tGtk.ToolButton undo_button;\n"
+"\tGtk.ToolButton fullscreen_button;\n"
+"\tGtk.ToolButton leave_fullscreen_button;\n"
+"\n"
+"\t/* Contstructor */\n"
+"\tinternal MyWindow (MyApplication app) {\n"
+"\t\tObject (application: app, title: \"Toolbar with Tooltips Example\");\n"
+"\n"
+"\t\tthis.set_default_size (400, 200);\n"
+"\t\tvar grid = new Gtk.Grid ();\n"
+"\t\tthis.add (grid);\n"
+"\t\tgrid.show ();\n"
+"\n"
+"\t\tcreate_toolbar ();\n"
+"\t\ttoolbar.set_hexpand (true);\n"
+"\t\tgrid.attach (toolbar, 0, 0, 1, 1);\n"
+"\t\ttoolbar.show ();\n"
+"\n"
+"\t\t/* create the \"undo\" window action action */\n"
+"\t\tvar undo_action = new SimpleAction (\"undo\", null);\n"
+"\t\tundo_action.activate.connect (undo_callback);\n"
+"\t\tthis.add_action (undo_action);\n"
+"\n"
+"\t\t/* create the \"fullscreen\" window action */\n"
+"\t\tvar fullscreen_action = new SimpleAction (\"fullscreen\", null);\n"
+"\t\tfullscreen_action.activate.connect (fullscreen_callback);\n"
+"\t\tthis.add_action (fullscreen_action);\n"
+"\t}\n"
+"\n"
+"\t/* Callback for query_tooltip signal */\n"
+"\tbool undo_tooltip_callback (int x, int y, bool keyboard_tooltip, Gtk.Tooltip tooltip) {\n"
+"\n"
+"\t\t/* set the text for the tooltip */\n"
+" \ttooltip.set_text (\"Undo your last action\");\n"
+"\t\t\n"
+"\t\t/* set an icon fot the tooltip */\n"
+"\t\ttooltip.set_icon_from_stock(\"gtk-undo\", Gtk.IconSize.MENU);\n"
+"\n"
+" \t/* show the tooltip */\n"
+" \treturn true;\n"
+"\t}\n"
+"\n"
+"\t/* This function creates the toolbar, its ToolButtons,\n"
+"\t * and assigns the actions names to the ToolButtons.*/\n"
+"\tvoid create_toolbar () {\n"
+"\t\ttoolbar = new Gtk.Toolbar ();\n"
+"\t\ttoolbar.get_style_context ().add_class (Gtk.STYLE_CLASS_PRIMARY_TOOLBAR);\n"
+"\n"
+"\t\tnew_button = new Gtk.ToolButton.from_stock (Gtk.Stock.NEW);\n"
+"\n"
+"\t\t/* tooltip with text */\n"
+"\t\tnew_button.set_tooltip_text (\"Create a new file\");\n"
+"\n"
+"\t\tnew_button.is_important = true; //decides whether to show the label\n"
+"\t\ttoolbar.add (new_button);\n"
+"\t\tnew_button.show ();\n"
+"\t\tnew_button.action_name = \"app.new\";\n"
+"\n"
+"\t\topen_button = new Gtk.ToolButton.from_stock (Gtk.Stock.OPEN);\n"
+"\n"
+"\t\t/* a tooltip using Pango markup language */\n"
+"\t\topen_button.set_tooltip_markup (\"Open an <i>existing</i> file\");\n"
+"\n"
+"\t\topen_button.is_important = true;\n"
+"\t\ttoolbar.add (open_button);\n"
+"\t\topen_button.show ();\n"
+"\t\topen_button.action_name = \"app.open\";\n"
+"\n"
+"\t\tundo_button = new Gtk.ToolButton.from_stock (Gtk.Stock.UNDO);\n"
+"\t\n"
+"\t\t/* For a tooltip to have an image, first we must set_has_tooltip to be 'true' */\t\n"
+"\t\t(undo_button as Gtk.Widget).set_has_tooltip (true);\n"
+"\n"
+"\t\t/* Connect the query_tooltip signal to the callback */\n"
+"\t\tundo_button.query_tooltip.connect (undo_tooltip_callback);\n"
+"\t\n"
+"\t\tundo_button.is_important = true;\n"
+"\t\ttoolbar.add (undo_button);\n"
+"\t\tundo_button.show ();\n"
+"\t\tundo_button.action_name = \"win.undo\";\n"
+"\n"
+"\t\tfullscreen_button = new Gtk.ToolButton.from_stock (Gtk.Stock.FULLSCREEN);\n"
+"\t\tfullscreen_button.is_important = true;\n"
+"\t\ttoolbar.add (fullscreen_button);\n"
+"\t\tfullscreen_button.show ();\n"
+"\t\tfullscreen_button.action_name = \"win.fullscreen\";\n"
+"\n"
+"\t\tleave_fullscreen_button = new Gtk.ToolButton.from_stock (Gtk.Stock.LEAVE_FULLSCREEN)\n"
+";\n"
+"\t\tleave_fullscreen_button.is_important = true;\n"
+"\t\ttoolbar.add (leave_fullscreen_button);\n"
+"\n"
+"\t\tleave_fullscreen_button.action_name = \"win.fullscreen\";\n"
+"\t}\n"
+"\n"
+"\tvoid undo_callback (SimpleAction simple, Variant? parameter) {\n"
+"\t\t\tprint (\"You clicked \\\"Undo\\\".\\n\");\n"
+"\t}\n"
+"\n"
+"\tvoid fullscreen_callback (SimpleAction simple, Variant? parameter) {\n"
+"\t\tif ((this.get_window ().get_state () & Gdk.WindowState.FULLSCREEN) != 0) {\n"
+"\t\t\tthis.unfullscreen ();\n"
+"\t\t\tleave_fullscreen_button.hide ();\n"
+"\t\t\tfullscreen_button.show ();\n"
+"\t\t}\n"
+"\t\telse {\n"
+"\t\t\tthis.fullscreen ();\n"
+"\t\t\tfullscreen_button.hide ();\n"
+"\t\t\tleave_fullscreen_button.show ();\n"
+"\t\t}\n"
+"\t}\n"
+"}\n"
+"\n"
+"/* This is the application */\n"
+"class MyApplication : Gtk.Application {\n"
+"\tprotected override void activate () {\n"
+"\t\tnew MyWindow (this).show ();\n"
+"\t}\n"
+"\n"
+"\tprotected override void startup () {\n"
+"\t\tbase.startup ();\n"
+"\n"
+"\t\t/* Create the \"new\" action and add it to the app*/\n"
+"\t\tvar new_action = new SimpleAction (\"new\", null);\n"
+"\t\tnew_action.activate.connect (new_callback);\n"
+"\t\tthis.add_action (new_action);\n"
+"\n"
+"\t\t/* Create the \"open\" action, and add it to the app */\n"
+"\t\tvar open_action = new SimpleAction (\"open\", null);\n"
+"\t\topen_action.activate.connect (open_callback);\n"
+"\t\tthis.add_action (open_action);\n"
+"\n"
+"\t\t/* You could also add the action to the app menu\n"
+"\t\t * if you wanted to.\n"
+"\t\t */\n"
+"\t\t//var menu = new Menu ();\n"
+"\t\t//menu.append (\"New\", \"app.new\");\n"
+"\t\t//this.app_menu = menu;\n"
+"\t}\n"
+"\n"
+"\tvoid new_callback (SimpleAction action, Variant? parameter) {\n"
+"\t\tprint (\"You clicked \\\"New\\\".\\n\");\n"
+"\t}\n"
+"\n"
+"\tvoid open_callback (SimpleAction action, Variant? parameter) {\n"
+"\t\t\tprint (\"You clicked \\\"Open\\\".\\n\");\n"
+"\t}\n"
+"}\n"
+"\n"
+"/* The main function creates the application and runs it. */\n"
+"int main (string[] args) {\n"
+"\treturn new MyApplication ().run (args);\n"
+"}\n"
msgstr ""
-#: C/tooltip.py.page:60(item/p)
+#. (itstool) path: item/p
+#: C/tooltip.vala.page:38
msgid ""
-"<link href=\"http://developer.gnome.org/gtk3/stable/gtk3-Stock-Items.html"
-"\">Stock Items</link>"
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Tooltip.html\">Gtk.Tooltip</"
+"link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Tooltip.html\">Gtk.Tooltip</"
+"link>"
+
+#. (itstool) path: item/p
+#: C/tooltip.vala.page:40
+msgid ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Widget.query_tooltip.html"
+"\">Gtk.Widget.query_tooltip</link>"
+msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Widget.query_tooltip.html"
+"\">Gtk.Widget.query_tooltip</link>"
+#. (itstool) path: item/p
+#: C/tooltip.vala.page:41
+msgid ""
+"<link href=\"https://developer.gnome.org/gtk3/3.4/gtk3-Stock-Items.html#GTK-"
+"STOCK-UNDO:CAPS\">Stock Items</link>"
+msgstr ""
+"<link href=\"https://developer.gnome.org/gtk3/3.4/gtk3-Stock-Items.html#GTK-"
+"STOCK-UNDO:CAPS\">Repertoire-Objekte</link>"
+
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/treeview_advanced_liststore.py.page:22(media)
+#: C/treeview_advanced_liststore.py.page:22
msgctxt "_"
msgid ""
"external ref='media/treeview_advanced_liststore.png' "
"md5='102b512197fb9aa4ed9a16462f6af911'"
msgstr ""
-#: C/treeview_advanced_liststore.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/treeview_advanced_liststore.py.page:7
msgctxt "text"
msgid "Simple Treeview with ListStore (Python)"
msgstr ""
-#: C/treeview_advanced_liststore.py.page:18(info/desc)
+#. (itstool) path: info/desc
+#: C/treeview_advanced_liststore.py.page:18
msgid "A TreeView displaying a ListStore (more complex example)"
msgstr ""
-#: C/treeview_advanced_liststore.py.page:21(page/title)
+#. (itstool) path: page/title
+#: C/treeview_advanced_liststore.py.page:21
msgid "More Complex Treeview with ListStore"
msgstr ""
-#: C/treeview_advanced_liststore.py.page:23(page/p)
-#: C/treeview_simple_liststore.py.page:24(page/p)
+#. (itstool) path: page/p
+#: C/treeview_advanced_liststore.py.page:23
+#: C/treeview_simple_liststore.py.page:24
msgid ""
"This TreeView displays a simple ListStore with the selection \"changed\" "
"signal connected."
msgstr ""
-#: C/treeview_advanced_liststore.py.page:30(section/code)
+#. (itstool) path: section/code
+#: C/treeview_advanced_liststore.py.page:30
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -30719,7 +38312,9 @@ msgid ""
" [\"Once Upon a Time in the West\"],\n"
" [\"Rear Window\"]]\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"My DVDs\", application=app)\n"
" self.set_default_size(250, 100)\n"
@@ -30769,9 +38364,12 @@ msgid ""
" grid.attach(view, 0, 0, 4, 1)\n"
" grid.attach(self.label, 0, 1, 4, 1)\n"
" grid.attach(self.button_add, 0, 2, 1, 1)\n"
-" grid.attach_next_to(self.entry, self.button_add, Gtk.PositionType.RIGHT, 1, 1)\n"
-" grid.attach_next_to(self.button_remove, self.entry, Gtk.PositionType.RIGHT, 1, 1)\n"
-" grid.attach_next_to(self.button_remove_all, self.button_remove, Gtk.PositionType.RIGHT, 1, 1)\n"
+" grid.attach_next_to(\n"
+" self.entry, self.button_add, Gtk.PositionType.RIGHT, 1, 1)\n"
+" grid.attach_next_to(\n"
+" self.button_remove, self.entry, Gtk.PositionType.RIGHT, 1, 1)\n"
+" grid.attach_next_to(\n"
+" self.button_remove_all, self.button_remove, Gtk.PositionType.RIGHT, 1, 1)\n"
"\n"
" # add the grid to the window\n"
" self.add(grid)\n"
@@ -30779,9 +38377,10 @@ msgid ""
" def on_changed(self, selection):\n"
" # get the model and the iterator that points at the data in the model\n"
" (model, iter) = selection.get_selected()\n"
-" # set the label to a new value depending on the selection, if there is one\n"
+" # set the label to a new value depending on the selection, if there is\n"
+" # one\n"
" if iter is not None:\n"
-" self.label.set_text(\"\\n %s\" %(model[iter][0]))\n"
+" self.label.set_text(\"\\n %s\" % (model[iter][0]))\n"
" else:\n"
" self.label.set_text(\"\")\n"
" return True\n"
@@ -30792,7 +38391,7 @@ msgid ""
" title = self.entry.get_text()\n"
" self.listmodel.append([title])\n"
" # and print a message in the terminal\n"
-" print \"%s has been added\" %(title)\n"
+" print \"%s has been added\" % (title)\n"
"\n"
" def remove_cb(self, button):\n"
" # if there is still an entry in the model\n"
@@ -30802,7 +38401,7 @@ msgid ""
" # if there is a selection, print a message in the terminal\n"
" # and remove it from the model\n"
" if iter is not None:\n"
-" print \"%s has been removed\" %(model[iter][0])\n"
+" print \"%s has been removed\" % (model[iter][0])\n"
" self.listmodel.remove(iter)\n"
" # otherwise, ask the user to select something to remove\n"
" else:\n"
@@ -30824,6 +38423,7 @@ msgid ""
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -30839,69 +38439,287 @@ msgid ""
"sys.exit(exit_status)\n"
msgstr ""
-#: C/treeview_advanced_liststore.py.page:34(section/title)
-#: C/treeview_cellrenderertoggle.py.page:34(section/title)
-#: C/treeview_simple_liststore.py.page:35(section/title)
-#: C/treeview_treestore.py.page:35(section/title)
+#. (itstool) path: section/title
+#: C/treeview_advanced_liststore.py.page:34
+#: C/treeview_cellrenderertoggle.py.page:34
+#: C/treeview_simple_liststore.py.page:35 C/treeview_treestore.py.page:35
msgid "Useful methods for a TreeView widget"
msgstr ""
-#: C/treeview_advanced_liststore.py.page:35(section/p)
-#: C/treeview_cellrenderertoggle.py.page:35(section/p)
-#: C/treeview_treestore.py.page:36(section/p)
+#. (itstool) path: section/p
+#: C/treeview_advanced_liststore.py.page:35
+#: C/treeview_cellrenderertoggle.py.page:35 C/treeview_treestore.py.page:36
msgid ""
"The TreeView widget is designed around a <em>Model/View/Controller</em> "
"design: the <em>Model</em> stores the data; the <em>View</em> gets change "
-"notifications and displays the content of the model; the <em>Controller</em>, "
-"finally, changes the state of the model and notifies the view of these "
+"notifications and displays the content of the model; the <em>Controller</"
+"em>, finally, changes the state of the model and notifies the view of these "
"changes. For more information and for a list of useful methods for TreeModel "
"see <link xref=\"model-view-controller.py\"/>."
msgstr ""
-#: C/treeview_advanced_liststore.py.page:36(section/p)
+#. (itstool) path: section/p
+#: C/treeview_advanced_liststore.py.page:36
msgid ""
"In line 36 the <code>\"changed\"</code> signal is connected to the callback "
-"function <code>on_changed()</code> using <code><var>widget</var>.connect"
-"(<var>signal</var>, <var>callback function</var>)</code>. See <link xref="
-"\"signals-callbacks.py\"/> for a more detailed explanation."
+"function <code>on_changed()</code> using <code><var>widget</var>."
+"connect(<var>signal</var>, <var>callback function</var>)</code>. See <link "
+"xref=\"signals-callbacks.py\"/> for a more detailed explanation."
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/treeview_cellrenderertoggle.py.page:22(media)
+#: C/treeview_cellrenderertoggle.py.page:22
msgctxt "_"
msgid ""
"external ref='media/treeview_cellrenderertoggle.png' "
"md5='ade9b9437f8f83150acf37610dab834d'"
msgstr ""
-#: C/treeview_cellrenderertoggle.py.page:7(info/title)
-#: C/treeview_treestore.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/treeview_cellrenderertoggle.py.page:7 C/treeview_treestore.py.page:7
msgctxt "text"
msgid "TreeView with TreeStore (Python)"
msgstr ""
-#: C/treeview_cellrenderertoggle.py.page:18(info/desc)
+#. (itstool) path: info/desc
+#: C/treeview_cellrenderertoggle.py.page:18
msgid ""
"A TreeView displaying a TreeStore (more complex example, with "
"CellRendererToggle)"
msgstr ""
-#: C/treeview_cellrenderertoggle.py.page:21(page/title)
+#. (itstool) path: page/title
+#: C/treeview_cellrenderertoggle.py.page:21
msgid "More Complex TreeView with TreeStore"
msgstr ""
-#: C/treeview_cellrenderertoggle.py.page:23(page/p)
+#. (itstool) path: page/p
+#: C/treeview_cellrenderertoggle.py.page:23
+msgid ""
+"This TreeView displays a TreeStore with two columns, one of which is "
+"rendered as a toggle."
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/treeview_cellrenderertoggle.py.page:30
+#, fuzzy, no-wrap
+#| msgid ""
+#| "from gi.repository import Gtk\n"
+#| "from gi.repository import Pango\n"
+#| "import sys\n"
+#| "\n"
+#| "books = [[\"Tolstoy, Leo\", [\"War and Peace\", True], [\"Anna Karenina\", False]],\n"
+#| " [\"Shakespeare, William\", [\"Hamlet\", False], [\"Macbeth\", True], [\"Othello\", False]],\n"
+#| " [\"Tolkien, J.R.R.\", [\"The Lord of the Rings\", False]]]\n"
+#| "\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"Library\", application=app)\n"
+#| " self.set_default_size(250, 100)\n"
+#| " self.set_border_width(10)\n"
+#| "\n"
+#| " # the data are stored in the model\n"
+#| " # create a treestore with two columns\n"
+#| " self.store = Gtk.TreeStore(str, bool)\n"
+#| " # fill in the model\n"
+#| " for i in range(len(books)):\n"
+#| " # the iter piter is returned when appending the author in the first column\n"
+#| " # and False in the second\n"
+#| " piter = self.store.append(None, [books[i][0], False])\n"
+#| " # append the books and the associated boolean value as children of the author\n"
+#| " j = 1\n"
+#| " while j < len(books[i]):\n"
+#| " self.store.append(piter, books[i][j])\n"
+#| " j += 1\n"
+#| "\n"
+#| " # the treeview shows the model\n"
+#| " # create a treeview on the model self.store\n"
+#| " view = Gtk.TreeView()\n"
+#| " view.set_model(self.store)\n"
+#| "\n"
+#| " # the cellrenderer for the first column - text\n"
+#| " renderer_books = Gtk.CellRendererText()\n"
+#| " # the first column is created\n"
+#| " column_books = Gtk.TreeViewColumn(\"Books\", renderer_books, text=0)\n"
+#| " # and it is appended to the treeview\n"
+#| " view.append_column(column_books)\n"
+#| "\n"
+#| " # the cellrenderer for the second column - boolean rendered as a toggle\n"
+#| " renderer_in_out = Gtk.CellRendererToggle()\n"
+#| " # the second column is created\n"
+#| " column_in_out = Gtk.TreeViewColumn(\"Out?\", renderer_in_out, active=1)\n"
+#| " # and it is appended to the treeview\n"
+#| " view.append_column(column_in_out)\n"
+#| " # connect the cellrenderertoggle with a callback function\n"
+#| " renderer_in_out.connect(\"toggled\", self.on_toggled)\n"
+#| "\n"
+#| " # add the treeview to the window\n"
+#| " self.add(view)\n"
+#| "\n"
+#| " # callback function for the signal emitted by the cellrenderertoggle\n"
+#| " def on_toggled(self, widget, path):\n"
+#| " # the boolean value of the selected row\n"
+#| " current_value = self.store[path][1]\n"
+#| " # change the boolean value of the selected row in the model\n"
+#| " self.store[path][1] = not current_value\n"
+#| " # new current value!\n"
+#| " current_value = not current_value\n"
+#| " # if length of the path is 1 (that is, if we are selecting an author)\n"
+#| " if len(path) == 1:\n"
+#| " # get the iter associated with the path\n"
+#| " piter = self.store.get_iter(path)\n"
+#| " # get the iter associated with its first child\n"
+#| " citer = self.store.iter_children(piter)\n"
+#| " # while there are children, change the state of their boolean value\n"
+#| " # to the value of the author\n"
+#| " while citer is not None:\n"
+#| " self.store[citer][1] = current_value\n"
+#| " citer = self.store.iter_next(citer)\n"
+#| " # if the length of the path is not 1 (that is, if we are selecting a book)\n"
+#| " elif len(path) != 1:\n"
+#| " # get the first child of the parent of the book (the first book of the author)\n"
+#| " citer = self.store.get_iter(path)\n"
+#| " piter = self.store.iter_parent(citer)\n"
+#| " citer = self.store.iter_children(piter)\n"
+#| " # check if all the children are selected\n"
+#| " all_selected = True\n"
+#| " while citer is not None:\n"
+#| " if self.store[citer][1] == False:\n"
+#| " all_selected = False\n"
+#| " break\n"
+#| " citer = self.store.iter_next(citer)\n"
+#| " # if they do, the author as well is selected; otherwise it is not\n"
+#| " self.store[piter][1] = all_selected\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " win = MyWindow(self)\n"
+#| " win.show_all()\n"
+#| "\n"
+#| " def do_startup(self):\n"
+#| " Gtk.Application.do_startup(self)\n"
+#| "\n"
+#| "app = MyApplication()\n"
+#| "exit_status = app.run(sys.argv)\n"
+#| "sys.exit(exit_status)\n"
msgid ""
-"This TreeView displays a TreeStore with two columns, one of which is rendered "
-"as a toggle."
+"from gi.repository import Gtk\n"
+"from gi.repository import Pango\n"
+"import sys\n"
+"\n"
+"books = [[\"Tolstoy, Leo\", [\"War and Peace\", True], [\"Anna Karenina\", False]],\n"
+" [\"Shakespeare, William\", [\"Hamlet\", False],\n"
+" [\"Macbeth\", True], [\"Othello\", False]],\n"
+" [\"Tolkien, J.R.R.\", [\"The Lord of the Rings\", False]]]\n"
+"\n"
+"\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"Library\", application=app)\n"
+" self.set_default_size(250, 100)\n"
+" self.set_border_width(10)\n"
+"\n"
+" # the data are stored in the model\n"
+" # create a treestore with two columns\n"
+" self.store = Gtk.TreeStore(str, bool)\n"
+" # fill in the model\n"
+" for i in range(len(books)):\n"
+" # the iter piter is returned when appending the author in the first column\n"
+" # and False in the second\n"
+" piter = self.store.append(None, [books[i][0], False])\n"
+" # append the books and the associated boolean value as children of\n"
+" # the author\n"
+" j = 1\n"
+" while j < len(books[i]):\n"
+" self.store.append(piter, books[i][j])\n"
+" j += 1\n"
+"\n"
+" # the treeview shows the model\n"
+" # create a treeview on the model self.store\n"
+" view = Gtk.TreeView()\n"
+" view.set_model(self.store)\n"
+"\n"
+" # the cellrenderer for the first column - text\n"
+" renderer_books = Gtk.CellRendererText()\n"
+" # the first column is created\n"
+" column_books = Gtk.TreeViewColumn(\"Books\", renderer_books, text=0)\n"
+" # and it is appended to the treeview\n"
+" view.append_column(column_books)\n"
+"\n"
+" # the cellrenderer for the second column - boolean rendered as a toggle\n"
+" renderer_in_out = Gtk.CellRendererToggle()\n"
+" # the second column is created\n"
+" column_in_out = Gtk.TreeViewColumn(\"Out?\", renderer_in_out, active=1)\n"
+" # and it is appended to the treeview\n"
+" view.append_column(column_in_out)\n"
+" # connect the cellrenderertoggle with a callback function\n"
+" renderer_in_out.connect(\"toggled\", self.on_toggled)\n"
+"\n"
+" # add the treeview to the window\n"
+" self.add(view)\n"
+"\n"
+" # callback function for the signal emitted by the cellrenderertoggle\n"
+" def on_toggled(self, widget, path):\n"
+" # the boolean value of the selected row\n"
+" current_value = self.store[path][1]\n"
+" # change the boolean value of the selected row in the model\n"
+" self.store[path][1] = not current_value\n"
+" # new current value!\n"
+" current_value = not current_value\n"
+" # if length of the path is 1 (that is, if we are selecting an author)\n"
+" if len(path) == 1:\n"
+" # get the iter associated with the path\n"
+" piter = self.store.get_iter(path)\n"
+" # get the iter associated with its first child\n"
+" citer = self.store.iter_children(piter)\n"
+" # while there are children, change the state of their boolean value\n"
+" # to the value of the author\n"
+" while citer is not None:\n"
+" self.store[citer][1] = current_value\n"
+" citer = self.store.iter_next(citer)\n"
+" # if the length of the path is not 1 (that is, if we are selecting a\n"
+" # book)\n"
+" elif len(path) != 1:\n"
+" # get the first child of the parent of the book (the first book of\n"
+" # the author)\n"
+" citer = self.store.get_iter(path)\n"
+" piter = self.store.iter_parent(citer)\n"
+" citer = self.store.iter_children(piter)\n"
+" # check if all the children are selected\n"
+" all_selected = True\n"
+" while citer is not None:\n"
+" if self.store[citer][1] == False:\n"
+" all_selected = False\n"
+" break\n"
+" citer = self.store.iter_next(citer)\n"
+" # if they do, the author as well is selected; otherwise it is not\n"
+" self.store[piter][1] = all_selected\n"
+"\n"
+"\n"
+"class MyApplication(Gtk.Application):\n"
+"\n"
+" def __init__(self):\n"
+" Gtk.Application.__init__(self)\n"
+"\n"
+" def do_activate(self):\n"
+" win = MyWindow(self)\n"
+" win.show_all()\n"
+"\n"
+" def do_startup(self):\n"
+" Gtk.Application.do_startup(self)\n"
+"\n"
+"app = MyApplication()\n"
+"exit_status = app.run(sys.argv)\n"
+"sys.exit(exit_status)\n"
msgstr ""
-
-#: C/treeview_cellrenderertoggle.py.page:30(section/code)
-#, no-wrap
-msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import Pango\n"
"import sys\n"
@@ -31003,54 +38821,60 @@ msgid ""
"app = MyApplication()\n"
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
-msgstr ""
-#: C/treeview_cellrenderertoggle.py.page:36(section/p)
+#. (itstool) path: section/p
+#: C/treeview_cellrenderertoggle.py.page:36
msgid ""
"In line 48 the <code>\"toggled\"</code> signal is connected to the callback "
-"function <code>on_toggled()</code> using <code><var>widget</var>.connect"
-"(<var>signal</var>, <var>callback function</var>)</code>. See <link xref="
-"\"signals-callbacks.py\"/> for a more detailed explanation."
+"function <code>on_toggled()</code> using <code><var>widget</var>."
+"connect(<var>signal</var>, <var>callback function</var>)</code>. See <link "
+"xref=\"signals-callbacks.py\"/> for a more detailed explanation."
msgstr ""
-#: C/treeview_cellrenderertoggle.py.page:45(item/p)
-#: C/treeview_treestore.py.page:45(item/p)
+#. (itstool) path: item/p
+#: C/treeview_cellrenderertoggle.py.page:45 C/treeview_treestore.py.page:45
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkTreeStore.html"
"\">GtkTreeStore</link>"
msgstr ""
-#: C/treeview_cellrenderertoggle.py.page:47(item/p)
+#. (itstool) path: item/p
+#: C/treeview_cellrenderertoggle.py.page:47
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkCellRendererToggle."
"html\">GtkCellRendererToggle</link>"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/treeview_simple_liststore.js.page:24(media)
+#: C/treeview_simple_liststore.js.page:24
msgctxt "_"
msgid ""
"external ref='media/treeview_simple_liststore_penguins.png' "
"md5='d750a0b9fddf8e508753cc639839871d'"
msgstr ""
-#: C/treeview_simple_liststore.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/treeview_simple_liststore.js.page:7
msgctxt "text"
msgid "TreeView with ListStore (JavaScript)"
msgstr ""
-#: C/treeview_simple_liststore.js.page:20(info/desc)
+#. (itstool) path: info/desc
+#: C/treeview_simple_liststore.js.page:20
msgid "A widget that shows a separate list of items"
msgstr ""
-#: C/treeview_simple_liststore.js.page:23(page/title)
+#. (itstool) path: page/title
+#: C/treeview_simple_liststore.js.page:23
msgid "TreeView with ListStore"
msgstr ""
-#: C/treeview_simple_liststore.js.page:25(page/p)
+#. (itstool) path: page/p
+#: C/treeview_simple_liststore.js.page:25
msgid ""
"A TreeView is like a window onto the contents of either a ListStore or a "
"TreeStore. A ListStore is like a spreadsheet: a \"flat\", two-dimensional "
@@ -31062,47 +38886,53 @@ msgid ""
"whichever name you click on."
msgstr ""
-#: C/treeview_simple_liststore.js.page:26(page/p)
+#. (itstool) path: page/p
+#: C/treeview_simple_liststore.js.page:26
msgid ""
"The TreeView is not just a single widget, but contains a number of smaller "
"ones:"
msgstr ""
-#: C/treeview_simple_liststore.js.page:28(item/p)
+#. (itstool) path: item/p
+#: C/treeview_simple_liststore.js.page:28
msgid ""
"TreeViewColumn widgets show each (vertical) column of information from the "
"ListStore. Each one has a title which can be shown at the top of the column, "
"like in the screenshot."
msgstr ""
-#: C/treeview_simple_liststore.js.page:29(item/p)
+#. (itstool) path: item/p
+#: C/treeview_simple_liststore.js.page:29
msgid ""
-"CellRenderer widgets are \"packed\" into each TreeViewColumn, and contain the "
-"instructions for how to display each individual \"cell\", or item from the "
-"ListStore. There are multiple different types, including the CellRendererText "
-"used here and the CellRendererPixbuf, which displays a picture (\"pixel buffer"
-"\")."
+"CellRenderer widgets are \"packed\" into each TreeViewColumn, and contain "
+"the instructions for how to display each individual \"cell\", or item from "
+"the ListStore. There are multiple different types, including the "
+"CellRendererText used here and the CellRendererPixbuf, which displays a "
+"picture (\"pixel buffer\")."
msgstr ""
-#: C/treeview_simple_liststore.js.page:31(page/p)
+#. (itstool) path: page/p
+#: C/treeview_simple_liststore.js.page:31
msgid ""
-"Finally, we're going to use an object called a TreeIter, which isn't a widget "
-"so much as an invisible cursor which points to a (horizontal) row in the "
-"ListStore. Whenever you click on a name in the phonebook, for instance, we "
-"create a TreeIter pointing to the row that's selected, and then use that to "
-"tell the ListStore which entry we want the Label to show more information "
+"Finally, we're going to use an object called a TreeIter, which isn't a "
+"widget so much as an invisible cursor which points to a (horizontal) row in "
+"the ListStore. Whenever you click on a name in the phonebook, for instance, "
+"we create a TreeIter pointing to the row that's selected, and then use that "
+"to tell the ListStore which entry we want the Label to show more information "
"about."
msgstr ""
-#: C/treeview_simple_liststore.js.page:32(note/p)
+#. (itstool) path: note/p
+#: C/treeview_simple_liststore.js.page:32
msgid ""
-"The TreeView is probably the most complicated Gtk widget, because of how many "
-"parts it has and how they all have to work together. Give yourself time to "
-"learn how it works and experiment with it, or try something easier first if "
-"you're having trouble."
+"The TreeView is probably the most complicated Gtk widget, because of how "
+"many parts it has and how they all have to work together. Give yourself time "
+"to learn how it works and experiment with it, or try something easier first "
+"if you're having trouble."
msgstr ""
-#: C/treeview_simple_liststore.js.page:37(section/code)
+#. (itstool) path: section/code
+#: C/treeview_simple_liststore.js.page:37
#, no-wrap
msgid ""
"\n"
@@ -31113,8 +38943,16 @@ msgid ""
"const Lang = imports.lang;\n"
"const Pango = imports.gi.Pango;\n"
msgstr ""
+"\n"
+"#!/usr/bin/gjs\n"
+"\n"
+"const GObject = imports.gi.GObject;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"const Pango = imports.gi.Pango;\n"
-#: C/treeview_simple_liststore.js.page:50(section/code)
+#. (itstool) path: section/code
+#: C/treeview_simple_liststore.js.page:50
#, no-wrap
msgid ""
"\n"
@@ -31143,14 +38981,17 @@ msgid ""
" },\n"
msgstr ""
-#: C/treeview_simple_liststore.js.page:75(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.js.page:75
msgid ""
"All the code for this sample goes in the TreeViewExample class. The above "
-"code creates a <link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk."
-"Application.html\">Gtk.Application</link> for our widgets and window to go in."
+"code creates a <link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/"
+"Gtk.Application.html\">Gtk.Application</link> for our widgets and window to "
+"go in."
msgstr ""
-#: C/treeview_simple_liststore.js.page:76(section/code)
+#. (itstool) path: section/code
+#: C/treeview_simple_liststore.js.page:76
#, no-wrap
msgid ""
"\n"
@@ -31167,7 +39008,8 @@ msgid ""
" title: \"My Phone Book\"});\n"
msgstr ""
-#: C/treeview_simple_liststore.js.page:94(section/code)
+#. (itstool) path: section/code
+#: C/treeview_simple_liststore.js.page:94
#, no-wrap
msgid ""
"\n"
@@ -31180,29 +39022,34 @@ msgid ""
" GObject.TYPE_STRING]);\n"
msgstr ""
-#: C/treeview_simple_liststore.js.page:103(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.js.page:103
msgid ""
"We first create the ListStore like we would any widget. Then we call its "
"set_column_types method, and pass it an array of GObject data types. (We "
-"could have put the types all on one line, but here we are breaking them up to "
-"make it easier to read.)"
+"could have put the types all on one line, but here we are breaking them up "
+"to make it easier to read.)"
msgstr ""
-#: C/treeview_simple_liststore.js.page:104(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.js.page:104
msgid "The GObject data types you can use include:"
msgstr ""
-#: C/treeview_simple_liststore.js.page:109(item/p)
+#. (itstool) path: item/p
+#: C/treeview_simple_liststore.js.page:109
msgid "<file>gtk.gdk.Pixbuf</file> -- A picture"
-msgstr ""
+msgstr "<file>gtk.gdk.Pixbuf</file> -- Ein Bild"
-#: C/treeview_simple_liststore.js.page:111(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.js.page:111
msgid ""
"In this case, we're making a ListStore of four columns, each one containing "
"string values."
msgstr ""
-#: C/treeview_simple_liststore.js.page:114(section/code)
+#. (itstool) path: section/code
+#: C/treeview_simple_liststore.js.page:114
#, no-wrap
msgid ""
"\n"
@@ -31222,14 +39069,32 @@ msgid ""
" { name: \"Random J.\", surname: \"Hacker\", phone: \"555-5678\",\n"
" description: \"Very random!\"}];\n"
msgstr ""
+"\n"
+" // Data to go in the phonebook\n"
+" this.phonebook =\n"
+" let phonebook =\n"
+" [{ name: \"Jurg\", surname: \"Billeter\", phone: \"555-0123\",\n"
+" description: \"A friendly person.\"},\n"
+" { name: \"Johannes\", surname: \"Schmid\", phone: \"555-1234\",\n"
+" description: \"Easy phone number to remember.\"},\n"
+" { name: \"Julita\", surname: \"Inca\", phone: \"555-2345\",\n"
+" description: \"Another friendly person.\"},\n"
+" { name: \"Javier\", surname: \"Jardon\", phone: \"555-3456\",\n"
+" description: \"Bring fish for his penguins.\"},\n"
+" { name: \"Jason\", surname: \"Clinton\", phone: \"555-4567\",\n"
+" description: \"His cake's not a lie.\"},\n"
+" { name: \"Random J.\", surname: \"Hacker\", phone: \"555-5678\",\n"
+" description: \"Very random!\"}];\n"
-#: C/treeview_simple_liststore.js.page:131(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.js.page:131
msgid ""
"Here we have the information to go in the ListStore. It's an array of "
"objects, each one corresponding to a single entry in our phone book."
msgstr ""
-#: C/treeview_simple_liststore.js.page:132(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.js.page:132
msgid ""
"Note that the TreeView in the screenshot doesn't actually show the data from "
"the \"description\" properties. Instead, that information's shown in the "
@@ -31240,7 +39105,8 @@ msgid ""
"Label in our example or even a second TreeView."
msgstr ""
-#: C/treeview_simple_liststore.js.page:134(section/code)
+#. (itstool) path: section/code
+#: C/treeview_simple_liststore.js.page:134
#, no-wrap
msgid ""
"\n"
@@ -31250,8 +39116,15 @@ msgid ""
" [contact.name, contact.surname, contact.phone, contact.description]);\n"
" }\n"
msgstr ""
+"\n"
+" for (i = 0; i < phonebook.length; i++ ) {\n"
+" let contact = phonebook [i];\n"
+" this._listStore.set (this._listStore.append(), [0, 1, 2, 3],\n"
+" [contact.name, contact.surname, contact.phone, contact.description]);\n"
+" }\n"
-#: C/treeview_simple_liststore.js.page:141(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.js.page:141
msgid ""
"This <file>for</file> loop puts the strings from our phonebook into our "
"ListStore in order. In order, we pass the ListStore's set method the iter "
@@ -31259,7 +39132,8 @@ msgid ""
"set, and an array which contains the data we want to put into those columns."
msgstr ""
-#: C/treeview_simple_liststore.js.page:142(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.js.page:142
msgid ""
"A ListStore's <file>append</file> method adds a horizontal row onto it (it "
"starts out with none), and returns a TreeIter pointing to that row like a "
@@ -31268,13 +39142,15 @@ msgid ""
"method which row to set data for at the same time."
msgstr ""
-#: C/treeview_simple_liststore.js.page:147(section/title)
+#. (itstool) path: section/title
+#: C/treeview_simple_liststore.js.page:147
#, fuzzy
#| msgid "Creating the user interface"
msgid "Creating the TreeView"
msgstr "Erstellen der Benutzeroberfläche"
-#: C/treeview_simple_liststore.js.page:148(section/code)
+#. (itstool) path: section/code
+#: C/treeview_simple_liststore.js.page:148
#, no-wrap
msgid ""
"\n"
@@ -31283,15 +39159,22 @@ msgid ""
" expand: true,\n"
" model: this._listStore });\n"
msgstr ""
+"\n"
+" // Create the treeview\n"
+" this._treeView = new Gtk.TreeView ({\n"
+" expand: true,\n"
+" model: this._listStore });\n"
-#: C/treeview_simple_liststore.js.page:154(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.js.page:154
msgid ""
"Here we create a basic TreeView widget, that expands both horizontally and "
"vertically to use as much space as needed. We set it to use the ListStore we "
"created as its \"model\", or the thing it'll show us stuff from."
msgstr ""
-#: C/treeview_simple_liststore.js.page:156(section/code)
+#. (itstool) path: section/code
+#: C/treeview_simple_liststore.js.page:156
#, no-wrap
msgid ""
"\n"
@@ -31300,14 +39183,22 @@ msgid ""
" let lastName = new Gtk.TreeViewColumn ({ title: \"Last Name\" });\n"
" let phone = new Gtk.TreeViewColumn ({ title: \"Phone Number\" });\n"
msgstr ""
+"\n"
+" // Spalten für das Adressbuch erstellen\n"
+" let firstName = new Gtk.TreeViewColumn ({ title: \"First Name\" });\n"
+" let lastName = new Gtk.TreeViewColumn ({ title: \"Last Name\" });\n"
+" let phone = new Gtk.TreeViewColumn ({ title: \"Phone Number\" });\n"
-#: C/treeview_simple_liststore.js.page:162(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.js.page:162
msgid ""
-"Now we create each of the vertical TreeViewColumns we'll see in the TreeView. "
-"The title for each one goes at the top, as you can see in the screenshot."
+"Now we create each of the vertical TreeViewColumns we'll see in the "
+"TreeView. The title for each one goes at the top, as you can see in the "
+"screenshot."
msgstr ""
-#: C/treeview_simple_liststore.js.page:164(section/code)
+#. (itstool) path: section/code
+#: C/treeview_simple_liststore.js.page:164
#, no-wrap
msgid ""
"\n"
@@ -31323,8 +39214,21 @@ msgid ""
" lastName.pack_start (normal, true);\n"
" phone.pack_start (normal, true);\n"
msgstr ""
+"\n"
+" // Create a cell renderer for when bold text is needed\n"
+" let bold = new Gtk.CellRendererText ({\n"
+" weight: Pango.Weight.BOLD });\n"
+"\n"
+" // Create a cell renderer for normal text\n"
+" let normal = new Gtk.CellRendererText ();\n"
+"\n"
+" // Pack the cell renderers into the columns\n"
+" firstName.pack_start (bold, true);\n"
+" lastName.pack_start (normal, true);\n"
+" phone.pack_start (normal, true);\n"
-#: C/treeview_simple_liststore.js.page:177(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.js.page:177
msgid ""
"Here we create the CellRenderers that we'll use to display the text from our "
"ListStore, and pack them into the TreeViewColumns. Each CellRendererText is "
@@ -31336,15 +39240,17 @@ msgid ""
"instead of keeping them compact."
msgstr ""
-#: C/treeview_simple_liststore.js.page:178(note/p)
+#. (itstool) path: note/p
+#: C/treeview_simple_liststore.js.page:178
msgid ""
-"<link href=\"http://www.pygtk.org/docs/pygtk/pango-constants.html\">Here is a "
-"list</link> of other text properties you can use. In order to use these Pango "
-"constants, make sure to put the line <file>const Pango = imports.gi.Pango;</"
-"file> at the beginning of your code like we did."
+"<link href=\"http://www.pygtk.org/docs/pygtk/pango-constants.html\">Here is "
+"a list</link> of other text properties you can use. In order to use these "
+"Pango constants, make sure to put the line <file>const Pango = imports.gi."
+"Pango;</file> at the beginning of your code like we did."
msgstr ""
-#: C/treeview_simple_liststore.js.page:180(section/code)
+#. (itstool) path: section/code
+#: C/treeview_simple_liststore.js.page:180
#, no-wrap
msgid ""
"\n"
@@ -31357,8 +39263,18 @@ msgid ""
" this._treeView.insert_column (lastName, 1);\n"
" this._treeView.insert_column (phone, 2);\n"
msgstr ""
+"\n"
+" firstName.add_attribute (bold, \"text\", 0);\n"
+" lastName.add_attribute (normal, \"text\", 1);\n"
+" phone.add_attribute (normal, \"text\", 2);\n"
+"\n"
+" // Insert the columns into the treeview\n"
+" this._treeView.insert_column (firstName, 0);\n"
+" this._treeView.insert_column (lastName, 1);\n"
+" this._treeView.insert_column (phone, 2);\n"
-#: C/treeview_simple_liststore.js.page:190(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.js.page:190
msgid ""
"Now that we've put the CellRenderers into the TreeViewColumns, we use the "
"<file>add_attribute</file> method to tell each column to pull in text from "
@@ -31366,43 +39282,50 @@ msgid ""
"phonebook."
msgstr ""
-#: C/treeview_simple_liststore.js.page:192(item/p)
+#. (itstool) path: item/p
+#: C/treeview_simple_liststore.js.page:192
msgid ""
"The first parameter is which CellRenderer we're going to use to render what "
"we're pulling in."
msgstr ""
-#: C/treeview_simple_liststore.js.page:193(item/p)
+#. (itstool) path: item/p
+#: C/treeview_simple_liststore.js.page:193
msgid ""
"The second parameter is what kind of information we're going to pull in. In "
"this case, we're letting it know that we're rendering text."
msgstr ""
-#: C/treeview_simple_liststore.js.page:194(item/p)
+#. (itstool) path: item/p
+#: C/treeview_simple_liststore.js.page:194
msgid ""
"The third parameter is which of the ListStore's columns we're pulling that "
"information in from."
msgstr ""
-#: C/treeview_simple_liststore.js.page:196(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.js.page:196
msgid ""
"After we've set that up, we use the TreeView's <file>insert_column</file> "
"method to put our TreeViewColumns inside it in order. Our TreeView is now "
"complete."
msgstr ""
-#: C/treeview_simple_liststore.js.page:197(note/p)
+#. (itstool) path: note/p
+#: C/treeview_simple_liststore.js.page:197
msgid ""
"Normally, you might want to use a loop to initialize your TreeView, but in "
-"this example we're spelling things out step by step for the sake of making it "
-"easier to understand."
+"this example we're spelling things out step by step for the sake of making "
+"it easier to understand."
msgstr ""
-#: C/treeview_simple_liststore.js.page:201(section/title)
+#. (itstool) path: section/title
+#: C/treeview_simple_liststore.js.page:201
msgid "Building the rest of the UI"
msgstr ""
-#: C/treeview_simple_liststore.js.page:202(section/code)
+#. (itstool) path: section/code
+#: C/treeview_simple_liststore.js.page:202
#, no-wrap
msgid ""
"\n"
@@ -31415,8 +39338,18 @@ msgid ""
" // When something new is selected, call _on_changed\n"
" this.selection.connect ('changed', Lang.bind (this, this._onSelectionChanged));\n"
msgstr ""
+"\n"
+" // Create the label that shows details for the name you select\n"
+" this._label = new Gtk.Label ({ label: \"\" });\n"
+"\n"
+" // Get which item is selected\n"
+" this.selection = this._treeView.get_selection();\n"
+"\n"
+" // When something new is selected, call _on_changed\n"
+" this.selection.connect ('changed', Lang.bind (this, this._onSelectionChanged));\n"
-#: C/treeview_simple_liststore.js.page:212(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.js.page:212
msgid ""
"The TreeView's <file>get_selection</file> method returns an object called a "
"TreeSelection. A TreeSelection is like a TreeIter in that it's basically a "
@@ -31424,15 +39357,17 @@ msgid ""
"the one that's visibly highlighted as selected."
msgstr ""
-#: C/treeview_simple_liststore.js.page:213(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.js.page:213
msgid ""
-"After we get the TreeSelection that goes with our TreeView, we ask it to tell "
-"us when it changes which row it's pointing to. We do this by connecting its "
-"<file>changed</file> signal to the _onSelectionChanged function we wrote. "
-"This function changes the text displayed by the Label we just made."
+"After we get the TreeSelection that goes with our TreeView, we ask it to "
+"tell us when it changes which row it's pointing to. We do this by connecting "
+"its <file>changed</file> signal to the _onSelectionChanged function we "
+"wrote. This function changes the text displayed by the Label we just made."
msgstr ""
-#: C/treeview_simple_liststore.js.page:215(section/code)
+#. (itstool) path: section/code
+#: C/treeview_simple_liststore.js.page:215
#, no-wrap
msgid ""
"\n"
@@ -31450,19 +39385,36 @@ msgid ""
" this._window.show_all();\n"
" },\n"
msgstr ""
+"\n"
+" // Create a grid to organize everything in\n"
+" this._grid = new Gtk.Grid;\n"
+"\n"
+" // Attach the treeview and label to the grid\n"
+" this._grid.attach (this._treeView, 0, 0, 1, 1);\n"
+" this._grid.attach (this._label, 0, 1, 1, 1);\n"
+"\n"
+" // Add the grid to the window\n"
+" this._window.add (this._grid);\n"
+"\n"
+" // Show the window and all child widgets\n"
+" this._window.show_all();\n"
+" },\n"
-#: C/treeview_simple_liststore.js.page:230(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.js.page:230
msgid ""
"After we've gotten that out of the way, we create a <link xref=\"grid.js"
"\">Grid</link> to put everything in, then add it to our window and tell the "
"window to show itself and its contents."
msgstr ""
-#: C/treeview_simple_liststore.js.page:234(section/title)
+#. (itstool) path: section/title
+#: C/treeview_simple_liststore.js.page:234
msgid "Function which handles a changed selection"
msgstr ""
-#: C/treeview_simple_liststore.js.page:236(section/code)
+#. (itstool) path: section/code
+#: C/treeview_simple_liststore.js.page:236
#, no-wrap
msgid ""
"\n"
@@ -31482,8 +39434,25 @@ msgid ""
"\n"
"});\n"
msgstr ""
+"\n"
+" _onSelectionChanged: function () {\n"
+"\n"
+" // Grab a treeiter pointing to the current selection\n"
+" let [ isSelected, model, iter ] = this.selection.get_selected();\n"
+"\n"
+" // Set the label to read off the values stored in the current selection\n"
+" this._label.set_label (\"\\n\" +\n"
+" this._listStore.get_value (iter, 0) + \" \" +\n"
+" this._listStore.get_value (iter, 1) + \" \" +\n"
+" this._listStore.get_value (iter, 2) + \"\\n\" +\n"
+" this._listStore.get_value (iter, 3));\n"
+"\n"
+" }\n"
+"\n"
+"});\n"
-#: C/treeview_simple_liststore.js.page:253(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.js.page:253
msgid ""
"The line of code with the let statement is a little convoluted, but it's "
"nonetheless the best way to get a TreeIter pointing to the same row as our "
@@ -31491,23 +39460,26 @@ msgid ""
"<file>iter</file> is the only one we need."
msgstr ""
-#: C/treeview_simple_liststore.js.page:254(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.js.page:254
msgid ""
"After we've done that, we call the Label's <file>set_label</file> function, "
-"and use the ListStore's <file>get_value</file> function a handful of times to "
-"fill in the data we want to put in it. Its parameters are a TreeIter pointing "
-"to the row we want to get data from, and the column."
+"and use the ListStore's <file>get_value</file> function a handful of times "
+"to fill in the data we want to put in it. Its parameters are a TreeIter "
+"pointing to the row we want to get data from, and the column."
msgstr ""
-#: C/treeview_simple_liststore.js.page:255(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.js.page:255
msgid ""
-"Here, we want to get data from all four columns, including the \"hidden\" one "
-"that's not part of the TreeView. This way, we can use our Label to show "
+"Here, we want to get data from all four columns, including the \"hidden\" "
+"one that's not part of the TreeView. This way, we can use our Label to show "
"strings that are too large to fit in the TreeView, and that we don't need to "
"see at a glance."
msgstr ""
-#: C/treeview_simple_liststore.js.page:257(section/code)
+#. (itstool) path: section/code
+#: C/treeview_simple_liststore.js.page:257
#, no-wrap
msgid ""
"\n"
@@ -31516,13 +39488,15 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/treeview_simple_liststore.js.page:262(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.js.page:262
msgid ""
"Finally, we create a new instance of the finished TreeViewExample class, and "
"set the application running."
msgstr ""
-#: C/treeview_simple_liststore.js.page:267(section/code)
+#. (itstool) path: section/code
+#: C/treeview_simple_liststore.js.page:267
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
@@ -31677,56 +39651,216 @@ msgid ""
"let app = new TreeViewExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const GObject = imports.gi.GObject;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"const Pango = imports.gi.Pango;\n"
+"\n"
+"const TreeViewExample = new Lang.Class({\n"
+" Name: 'TreeView Example with Simple ListStore',\n"
+"\n"
+" // Create the application itself\n"
+" _init: function() {\n"
+" this.application = new Gtk.Application({\n"
+" application_id: 'org.example.jstreeviewsimpleliststore'\n"
+" });\n"
+"\n"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Callback function for 'activate' signal presents window when active\n"
+" _onActivate: function() {\n"
+" this._window.present();\n"
+" },\n"
+"\n"
+" // Callback function for 'startup' signal builds the UI\n"
+" _onStartup: function() {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+"\n"
+"\n"
+" // Build the application's UI\n"
+" _buildUI: function() {\n"
+"\n"
+" // Create the application window\n"
+" this._window = new Gtk.ApplicationWindow({\n"
+" application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" default_height: 250,\n"
+" default_width: 100,\n"
+" border_width: 20,\n"
+" title: \"My Phone Book\"});\n"
+"\n"
+" // Create the underlying liststore for the phonebook\n"
+" this._listStore = new Gtk.ListStore ();\n"
+" this._listStore.set_column_types ([\n"
+" GObject.TYPE_STRING,\n"
+" GObject.TYPE_STRING,\n"
+" GObject.TYPE_STRING,\n"
+" GObject.TYPE_STRING]);\n"
+"\n"
+" // Data to go in the phonebook\n"
+" let phonebook =\n"
+" [{ name: \"Jurg\", surname: \"Billeter\", phone: \"555-0123\",\n"
+" description: \"A friendly person.\"},\n"
+" { name: \"Johannes\", surname: \"Schmid\", phone: \"555-1234\",\n"
+" description: \"Easy phone number to remember.\"},\n"
+" { name: \"Julita\", surname: \"Inca\", phone: \"555-2345\",\n"
+" description: \"Another friendly person.\"},\n"
+" { name: \"Javier\", surname: \"Jardon\", phone: \"555-3456\",\n"
+" description: \"Bring fish for his penguins.\"},\n"
+" { name: \"Jason\", surname: \"Clinton\", phone: \"555-4567\",\n"
+" description: \"His cake's not a lie.\"},\n"
+" { name: \"Random J.\", surname: \"Hacker\", phone: \"555-5678\",\n"
+" description: \"Very random!\"}];\n"
+"\n"
+" // Put the data in the phonebook\n"
+" for (let i = 0; i < phonebook.length; i++ ) {\n"
+" let contact = phonebook [i];\n"
+" this._listStore.set (this._listStore.append(), [0, 1, 2, 3],\n"
+" [contact.name, contact.surname, contact.phone, contact.description]);\n"
+" }\n"
+"\n"
+" // Create the treeview\n"
+" this._treeView = new Gtk.TreeView ({\n"
+" expand: true,\n"
+" model: this._listStore });\n"
+"\n"
+" // Create the columns for the address book\n"
+" let firstName = new Gtk.TreeViewColumn ({ title: \"First Name\" });\n"
+" let lastName = new Gtk.TreeViewColumn ({ title: \"Last Name\" });\n"
+" let phone = new Gtk.TreeViewColumn ({ title: \"Phone Number\" });\n"
+"\n"
+" // Create a cell renderer for when bold text is needed\n"
+" let bold = new Gtk.CellRendererText ({\n"
+" weight: Pango.Weight.BOLD });\n"
+"\n"
+" // Create a cell renderer for normal text\n"
+" let normal = new Gtk.CellRendererText ();\n"
+"\n"
+" // Pack the cell renderers into the columns\n"
+" firstName.pack_start (bold, true);\n"
+" lastName.pack_start (normal, true);\n"
+" phone.pack_start (normal, true);\n"
+"\n"
+" // Set each column to pull text from the TreeView's model\n"
+" firstName.add_attribute (bold, \"text\", 0);\n"
+" lastName.add_attribute (normal, \"text\", 1);\n"
+" phone.add_attribute (normal, \"text\", 2);\n"
+"\n"
+" // Insert the columns into the treeview\n"
+" this._treeView.insert_column (firstName, 0);\n"
+" this._treeView.insert_column (lastName, 1);\n"
+" this._treeView.insert_column (phone, 2);\n"
+"\n"
+" // Create the label that shows details for the name you select\n"
+" this._label = new Gtk.Label ({ label: \"\" });\n"
+"\n"
+" // Get which item is selected\n"
+" this.selection = this._treeView.get_selection();\n"
+"\n"
+" // When something new is selected, call _on_changed\n"
+" this.selection.connect ('changed', Lang.bind (this, this._onSelectionChanged));\n"
+"\n"
+" // Create a grid to organize everything in\n"
+" this._grid = new Gtk.Grid;\n"
+"\n"
+" // Attach the treeview and label to the grid\n"
+" this._grid.attach (this._treeView, 0, 0, 1, 1);\n"
+" this._grid.attach (this._label, 0, 1, 1, 1);\n"
+"\n"
+" // Add the grid to the window\n"
+" this._window.add (this._grid);\n"
+"\n"
+" // Show the window and all child widgets\n"
+" this._window.show_all();\n"
+" },\n"
+"\n"
+"\n"
+"\n"
+" _onSelectionChanged: function () {\n"
+"\n"
+" // Grab a treeiter pointing to the current selection\n"
+" let [ isSelected, model, iter ] = this.selection.get_selected();\n"
+"\n"
+" // Set the label to read off the values stored in the current selection\n"
+" this._label.set_label (\"\\n\" +\n"
+" this._listStore.get_value (iter, 0) + \" \" +\n"
+" this._listStore.get_value (iter, 1) + \" \" +\n"
+" this._listStore.get_value (iter, 2) + \"\\n\" +\n"
+" this._listStore.get_value (iter, 3));\n"
+"\n"
+" }\n"
+"\n"
+"});\n"
+"\n"
+"// Run the application\n"
+"let app = new TreeViewExample ();\n"
+"app.application.run (ARGV);\n"
-#: C/treeview_simple_liststore.js.page:281(item/p)
+#. (itstool) path: item/p
+#: C/treeview_simple_liststore.js.page:281
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.TreeSelection."
"html\">Gtk.TreeSelection</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.TreeSelection."
+"html\">Gtk.TreeSelection</link>"
-#: C/treeview_simple_liststore.js.page:282(item/p)
+#. (itstool) path: item/p
+#: C/treeview_simple_liststore.js.page:282
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.TreeView.html"
"\">Gtk.TreeView</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.TreeView.html"
+"\">Gtk.TreeView</link>"
-#: C/treeview_simple_liststore.js.page:283(item/p)
+#. (itstool) path: item/p
+#: C/treeview_simple_liststore.js.page:283
msgid ""
-"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.TreeViewColumn."
-"html\">Gtk.TreeViewColumn</link>"
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk."
+"TreeViewColumn.html\">Gtk.TreeViewColumn</link>"
msgstr ""
+"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk."
+"TreeViewColumn.html\">Gtk.TreeViewColumn</link>"
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: C/treeview_simple_liststore.py.page:23(media)
-#: C/treeview_simple_liststore.vala.page:23(media)
+#: C/treeview_simple_liststore.py.page:23
+#: C/treeview_simple_liststore.vala.page:23
msgctxt "_"
msgid ""
"external ref='media/treeview_simple_liststore.png' "
"md5='2dc501a2b95b094da985d37b66aee90c'"
msgstr ""
-#: C/treeview_simple_liststore.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/treeview_simple_liststore.py.page:7
msgctxt "text"
msgid "Simple TreeView with ListStore (Python)"
msgstr ""
-#: C/treeview_simple_liststore.py.page:19(info/desc)
+#. (itstool) path: info/desc
+#: C/treeview_simple_liststore.py.page:19
msgid "A TreeView displaying a ListStore (simpler example)"
msgstr ""
-#: C/treeview_simple_liststore.py.page:22(page/title)
+#. (itstool) path: page/title
+#: C/treeview_simple_liststore.py.page:22
msgid "Simple TreeView with ListStore"
msgstr ""
-#: C/treeview_simple_liststore.py.page:31(section/code)
+#. (itstool) path: section/code
+#: C/treeview_simple_liststore.py.page:31
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -31744,13 +39878,16 @@ msgid ""
" [\"Jason\", \"Clinton\", \"555-4567\"],\n"
" [\"Random J.\", \"Hacker\", \"555-5678\"]]\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"My Phone Book\", application=app)\n"
" self.set_default_size(250, 100)\n"
" self.set_border_width(10)\n"
"\n"
-" # the data in the model (three strings for each row, one for each column)\n"
+" # the data in the model (three strings for each row, one for each\n"
+" # column)\n"
" listmodel = Gtk.ListStore(str, str, str)\n"
" # append the values in the model\n"
" for i in range(len(phonebook)):\n"
@@ -31764,8 +39901,8 @@ msgid ""
" cell = Gtk.CellRendererText()\n"
" # the text in the first column should be in boldface\n"
" if i == 0:\n"
-" cell.props.weight_set=True\n"
-" cell.props.weight=Pango.Weight.BOLD\n"
+" cell.props.weight_set = True\n"
+" cell.props.weight = Pango.Weight.BOLD\n"
" # the column is created\n"
" col = Gtk.TreeViewColumn(columns[i], cell, text=i)\n"
" # and it is appended to the treeview\n"
@@ -31790,11 +39927,13 @@ msgid ""
" # get the model and the iterator that points at the data in the model\n"
" (model, iter) = selection.get_selected()\n"
" # set the label to a new value depending on the selection\n"
-" self.label.set_text(\"\\n %s %s %s\" %(model[iter][0], model[iter][1], model[iter][2]))\n"
+" self.label.set_text(\"\\n %s %s %s\" %\n"
+" (model[iter][0], model[iter][1], model[iter][2]))\n"
" return True\n"
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -31810,50 +39949,58 @@ msgid ""
"sys.exit(exit_status)\n"
msgstr ""
-#: C/treeview_simple_liststore.py.page:36(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.py.page:36
msgid ""
"The TreeView widget is designed around a <em>Model/View/Controller</em> "
"design: the <em>Model</em> stores the data; the <em>View</em> gets change "
-"notifications and displays the content of the model; the <em>Controller</em>, "
-"finally, changes the state of the model and notifies the view of these "
+"notifications and displays the content of the model; the <em>Controller</"
+"em>, finally, changes the state of the model and notifies the view of these "
"changes. For more information, and for a list of useful methods for "
"TreeModel, see <link xref=\"model-view-controller.py\"/>."
msgstr ""
-#: C/treeview_simple_liststore.py.page:37(section/p)
+#. (itstool) path: section/p
+#: C/treeview_simple_liststore.py.page:37
msgid ""
"In line 44 the <code>\"changed\"</code> signal is connected to the callback "
-"function <code>on_changed()</code> using <code><var>widget</var>.connect"
-"(<var>signal</var>, <var>callback function</var>)</code>. See <link xref="
-"\"signals-callbacks.py\"/> for a more detailed explanation."
+"function <code>on_changed()</code> using <code><var>widget</var>."
+"connect(<var>signal</var>, <var>callback function</var>)</code>. See <link "
+"xref=\"signals-callbacks.py\"/> for a more detailed explanation."
msgstr ""
-#: C/treeview_simple_liststore.py.page:50(item/p)
+#. (itstool) path: item/p
+#: C/treeview_simple_liststore.py.page:50
msgid ""
"<link href=\"http://developer.gnome.org/pango/stable/pango-Fonts.html"
"\">Fonts</link>"
msgstr ""
-#: C/treeview_simple_liststore.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/treeview_simple_liststore.vala.page:7
msgctxt "text"
msgid "Simple Treeview with ListStore (Vala)"
msgstr ""
-#: C/treeview_simple_liststore.vala.page:19(info/desc)
+#. (itstool) path: info/desc
+#: C/treeview_simple_liststore.vala.page:19
msgid "A widget can display any TreeModel implementation (lists and trees)"
msgstr ""
-#: C/treeview_simple_liststore.vala.page:22(page/title)
+#. (itstool) path: page/title
+#: C/treeview_simple_liststore.vala.page:22
msgid "Simple Treeview with ListStore"
msgstr ""
-#: C/treeview_simple_liststore.vala.page:24(page/p)
+#. (itstool) path: page/p
+#: C/treeview_simple_liststore.vala.page:24
msgid ""
"This TreeView displays a simple ListStore with the Selection \"changed\" "
"signal connected."
msgstr ""
-#: C/treeview_simple_liststore.vala.page:26(page/code)
+#. (itstool) path: page/code
+#: C/treeview_simple_liststore.vala.page:26
#, no-wrap
msgid ""
"public class PhoneBookEntry {\n"
@@ -31983,42 +40130,49 @@ msgid ""
"}\n"
msgstr ""
-#: C/treeview_simple_liststore.vala.page:31(item/p)
+#. (itstool) path: item/p
+#: C/treeview_simple_liststore.vala.page:31
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.TreeView.html\">Gtk."
"TreeView</link>"
msgstr ""
-#: C/treeview_simple_liststore.vala.page:33(item/p)
+#. (itstool) path: item/p
+#: C/treeview_simple_liststore.vala.page:33
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.TreeSelection.html\">Gtk."
"TreeSelection</link>"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/treeview_treestore.py.page:23(media)
+#: C/treeview_treestore.py.page:23
msgctxt "_"
msgid ""
"external ref='media/treeview_treestore.png' "
"md5='5ca87bc4acd55c527b3fb5fd46779d85'"
msgstr ""
-#: C/treeview_treestore.py.page:19(info/desc)
+#. (itstool) path: info/desc
+#: C/treeview_treestore.py.page:19
msgid "A TreeView displaying a TreeStore (simpler example)"
msgstr ""
-#: C/treeview_treestore.py.page:22(page/title)
+#. (itstool) path: page/title
+#: C/treeview_treestore.py.page:22
msgid "Simpler TreeView with TreeStore"
msgstr ""
-#: C/treeview_treestore.py.page:24(page/p)
+#. (itstool) path: page/p
+#: C/treeview_treestore.py.page:24
msgid "This TreeView displays a TreeStore."
msgstr ""
-#: C/treeview_treestore.py.page:31(section/code)
+#. (itstool) path: section/code
+#: C/treeview_treestore.py.page:31
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -32029,7 +40183,9 @@ msgid ""
" [\"Shakespeare, William\", \"Hamlet\", \"Macbeth\", \"Othello\"],\n"
" [\"Tolkien, J.R.R.\", \"The Lord of the Rings\"]]\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"Library\", application=app)\n"
" self.set_default_size(250, 100)\n"
@@ -32055,7 +40211,8 @@ msgid ""
" # the cellrenderer for the column - text\n"
" renderer_books = Gtk.CellRendererText()\n"
" # the column is created\n"
-" column_books = Gtk.TreeViewColumn(\"Books by Author\", renderer_books, text=0)\n"
+" column_books = Gtk.TreeViewColumn(\n"
+" \"Books by Author\", renderer_books, text=0)\n"
" # and it is appended to the treeview\n"
" view.append_column(column_books)\n"
"\n"
@@ -32067,6 +40224,7 @@ msgid ""
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -32082,220 +40240,274 @@ msgid ""
"sys.exit(exit_status)\n"
msgstr ""
-#: C/translate.page:15(credit/name)
+#. (itstool) path: credit/name
+#: C/translate.page:15
msgid "Michael Hill"
msgstr "Michael Hill"
-#: C/translate.page:23(page/title)
+#. (itstool) path: page/title
+#: C/translate.page:23
msgid "Help translate"
msgstr "Beim Übersetzen helfen"
-#: C/translate.page:24(page/p)
+#. (itstool) path: page/p
+#: C/translate.page:24
msgid ""
"The <app>Tutorial Demos</app> are being translated by a world-wide volunteer "
"community. You are welcome to participate."
msgstr ""
-#: C/translate.page:27(page/p)
+#. (itstool) path: page/p
+#: C/translate.page:27
msgid ""
"There are <link href=\"http://l10n.gnome.org/module/gnome-devel-docs/\">many "
"languages</link> for which translations are still needed."
msgstr ""
-#: C/translate.page:30(page/p)
+#. (itstool) path: page/p
+#: C/translate.page:30
msgid ""
"To start translating you will need to <link href=\"http://l10n.gnome.org"
"\">create an account</link> and join the <link href=\"http://l10n.gnome.org/"
"teams/\">translation team</link> for your language. This will give you the "
"ability to upload new translations."
msgstr ""
+"Um mit der Übersetzung zu beginnen, müssen Sie zunächst <link href=\"http:"
+"l10n.gnome.org\">ein Konto erstellen</link> und einem <link href=\"http://"
+"l10n.gnome.org/teams/\">Übersetzungsteam</link> für Ihre Sprache beitreten. "
+"So erhalten Sie die Möglichkeit, neue Übersetzungen hochzuladen."
-#: C/translate.page:34(page/p)
+#. (itstool) path: page/p
+#: C/translate.page:34
msgid ""
"You can chat with GNOME translators using <link href=\"https://cbe003.chat."
"mibbit.com/?url=irc%3A%2F%2Firc.gnome.org%2Fi18n\">irc</link>. People on the "
"channel are located worldwide, so you may not get an immediate response as a "
"result of timezone differences."
msgstr ""
+"Sie können sich mit GNOME-Übersetzern im <link href=\"https://cbe003.chat."
+"mibbit.com/?url=irc%3A%2F%2Firc.gnome.org%2Fi18n\">IRC</link> unterhalten. "
+"Die Teilnehmer in diesem Kanal sind über die ganze Welt verstreut, so dass "
+"Sie aufgrund der unterschiedlichen Zeitzonen nicht unbedingt sofort eine "
+"Antwort erhalten werden."
-#: C/translate.page:37(page/p)
+#. (itstool) path: page/p
+#: C/translate.page:37
msgid ""
"Alternatively, you can contact the Internationalization Team using their "
"<link href=\"http://mail.gnome.org/mailman/listinfo/gnome-i18n\">mailing "
"list</link>."
msgstr ""
+"Alternativ können Sie das Internationalisierungsteam über dessen <link href="
+"\"http://mail.gnome.org/mailman/listinfo/gnome-i18n\">Mailingliste</link> "
+"kontaktieren."
-#: C/tutorial.py.page:8(info/title)
+#. (itstool) path: info/title
+#: C/tutorial.py.page:8
msgctxt "text"
msgid "Tutorial for beginners (Python)"
msgstr "Tutorial für Einsteiger (Python)"
-#: C/tutorial.py.page:12(info/desc)
+#. (itstool) path: info/desc
+#: C/tutorial.py.page:12
msgid ""
"A tutorial for beginners who want to learn how to program GUIs using GTK+ in "
"Python."
msgstr ""
-#: C/tutorial.py.page:21(credit/years)
+#. (itstool) path: credit/years
+#: C/tutorial.py.page:21
msgid "2012 2013"
msgstr "2012 2013"
-#: C/tutorial.py.page:24(credit/name)
+#. (itstool) path: credit/name
+#: C/tutorial.py.page:24
msgid "Jim Campbell"
msgstr "Jim Campbell"
-#: C/tutorial.py.page:33(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/tutorial.py.page:33
msgid ""
"By following these tutorials you will learn the basics of GUI programming "
"using GTK+ in Python."
msgstr ""
-#: C/tutorial.py.page:35(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/tutorial.py.page:35
msgid ""
-"If you have never programmed before, or are not familiar with the concepts of "
-"object oriented programming, you may need to learn a few basics first. The "
-"book <link href=\"http://learnpythonthehardway.org/book/\">Learn Python the "
-"Hard Way</link> or <link href=\"http://docs.python.org/tutorial/index.html"
-"\">The Python Tutorial</link> may be a better place for you to start. You may "
-"also be interested in <link href=\"http://python-gtk-3-tutorial.readthedocs."
-"org/en/latest/index.html\">The Python GTK+ 3 Tutorial</link>. Once you master "
-"the basics, be sure to come back and check out these tutorials."
+"If you have never programmed before, or are not familiar with the concepts "
+"of object oriented programming, you may need to learn a few basics first. "
+"The book <link href=\"http://learnpythonthehardway.org/book/\">Learn Python "
+"the Hard Way</link> or <link href=\"http://docs.python.org/tutorial/index."
+"html\">The Python Tutorial</link> may be a better place for you to start. "
+"You may also be interested in <link href=\"http://python-gtk-3-tutorial."
+"readthedocs.org/en/latest/index.html\">The Python GTK+ 3 Tutorial</link>. "
+"Once you master the basics, be sure to come back and check out these "
+"tutorials."
msgstr ""
-#: C/tutorial.py.page:41(section/title)
+#. (itstool) path: section/title
+#: C/tutorial.py.page:41
msgid "To run the code samples"
msgstr ""
-#: C/tutorial.py.page:43(section/p)
+#. (itstool) path: section/p
+#: C/tutorial.py.page:43
msgid "To run the code samples in the tutorial:"
msgstr ""
-#: C/tutorial.py.page:45(item/p)
+#. (itstool) path: item/p
+#: C/tutorial.py.page:45
msgid ""
"Type or copy and paste the code into a file, and save the file with a name "
"like <var>filename</var>.py"
msgstr ""
-#: C/tutorial.py.page:46(item/p)
+#. (itstool) path: item/p
+#: C/tutorial.py.page:46
msgid "To execute the code, type in the terminal:"
msgstr ""
-#: C/tutorial.py.page:47(item/screen)
+#. (itstool) path: item/screen
+#: C/tutorial.py.page:47
#, no-wrap
msgid "python <var>filename</var>.py"
msgstr "python <var>dateiname</var>.py"
-#: C/tutorial.py.page:50(section/p)
+#. (itstool) path: section/p
+#: C/tutorial.py.page:50
msgid ""
"After executing the code, you will either see the widget on your screen, or "
"(if you have mistyped some of the code) you will see an error message that "
"will help you identify the problem."
msgstr ""
-#: C/tutorial.py.page:54(section/title)
+#. (itstool) path: section/title
+#: C/tutorial.py.page:54
msgid "A path through the widgets (with some theory)"
msgstr ""
-#: C/tutorial.py.page:55(section/p)
+#. (itstool) path: section/p
+#: C/tutorial.py.page:55
msgid ""
"The tutorial will walk you through increasingly complex examples and "
"programming theory, but you can also feel free to just go directly to the "
"tutorial that is most helpful to you."
msgstr ""
-#: C/tutorial.py.page:57(steps/title)
+#. (itstool) path: steps/title
+#: C/tutorial.py.page:57
msgid "Tutorial"
msgstr "Tutorial"
-#: C/tutorial.py.page:59(steps/title)
+#. (itstool) path: steps/title
+#: C/tutorial.py.page:59
msgid "Basic windows"
msgstr "Einfache Fenster"
-#: C/tutorial.py.page:64(steps/title)
+#. (itstool) path: steps/title
+#: C/tutorial.py.page:64
msgid "Images and labels"
msgstr ""
-#: C/tutorial.py.page:70(steps/title)
+#. (itstool) path: steps/title
+#: C/tutorial.py.page:70
#, fuzzy
#| msgid "Introduction"
msgid "Introduction to properties"
msgstr "Einführung"
-#: C/tutorial.py.page:74(steps/title)
+#. (itstool) path: steps/title
+#: C/tutorial.py.page:74
msgid "Grid, separator and scrolling"
msgstr ""
-#: C/tutorial.py.page:81(steps/title)
+#. (itstool) path: steps/title
+#: C/tutorial.py.page:81
msgid "Signals, callbacks and buttons"
msgstr ""
-#: C/tutorial.py.page:95(steps/title)
+#. (itstool) path: steps/title
+#: C/tutorial.py.page:95
msgid "Other display widgets"
msgstr ""
-#: C/tutorial.py.page:101(steps/title)
+#. (itstool) path: steps/title
+#: C/tutorial.py.page:101
msgid "Entry widgets"
msgstr ""
-#: C/tutorial.py.page:107(steps/title)
+#. (itstool) path: steps/title
+#: C/tutorial.py.page:107
msgid "A widget to write and display text"
msgstr ""
-#: C/tutorial.py.page:111(steps/title)
+#. (itstool) path: steps/title
+#: C/tutorial.py.page:111
msgid "Dialogs"
msgstr "Dialoge"
-#: C/tutorial.py.page:117(steps/title)
+#. (itstool) path: steps/title
+#: C/tutorial.py.page:117
msgid "Menus, Toolbars and Tooltips (also: using Glade and GtkBuilder)"
msgstr ""
-#: C/tutorial.py.page:132(steps/title)
+#. (itstool) path: steps/title
+#: C/tutorial.py.page:132
msgid "TreeViews and ComboBoxes (using the M/V/C design)"
msgstr ""
-#: C/tutorial.py.page:142(steps/title)
+#. (itstool) path: steps/title
+#: C/tutorial.py.page:142
msgid "Custom widget"
msgstr ""
-#: C/vala.page:6(info/title)
+#. (itstool) path: info/title
+#: C/vala.page:6
msgctxt "link"
msgid "Vala"
msgstr "Vala"
-#: C/vala.page:20(page/title)
+#. (itstool) path: page/title
+#: C/vala.page:20
msgid "Tutorials, code samples and platform demos in Vala"
msgstr ""
+#. (itstool) path: media
#. This is a reference to an external file such as an image or video. When
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/weatherApp.js.page:40(media)
+#: C/weatherApp.js.page:40
msgctxt "_"
msgid ""
"external ref='media/weatherAppJs.png' md5='1fe859ac4854273d72ea8fc9203639b2'"
msgstr ""
-#: C/weatherApp.js.page:6(info/title)
+#. (itstool) path: info/title
+#: C/weatherApp.js.page:6
#, fuzzy
#| msgid "Classes in JavaScript"
msgctxt "text"
msgid "Weather application (JavaScript)"
msgstr "Klassen in JavaScript"
-#: C/weatherApp.js.page:21(info/desc)
+#. (itstool) path: info/desc
+#: C/weatherApp.js.page:21
msgid ""
"How to plan an application that uses asynchronous calls. Asynchronous calls "
"will be presented through a weather application."
msgstr ""
-#: C/weatherApp.js.page:26(page/title)
+#. (itstool) path: page/title
+#: C/weatherApp.js.page:26
#, fuzzy
#| msgid "Run the application"
msgid "Weather application"
msgstr "Anwendung ausführen"
-#: C/weatherApp.js.page:28(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/weatherApp.js.page:28
msgid ""
"In this guide well construct a weather application using asynchronous calls. "
"Weather information in this example is fetched from geonames.org and the "
@@ -32306,49 +40518,58 @@ msgid ""
"computer. In this guide we we'll go through the following parts:"
msgstr ""
-#: C/weatherApp.js.page:31(item/p)
+#. (itstool) path: item/p
+#: C/weatherApp.js.page:31
msgid "<link xref=\"#planningUi\">Planning the graphical user interface</link>"
msgstr ""
-#: C/weatherApp.js.page:32(item/p)
+#. (itstool) path: item/p
+#: C/weatherApp.js.page:32
msgid "<link xref=\"#asynchronous\">Asynchronous calls</link>"
msgstr ""
-#: C/weatherApp.js.page:33(item/p)
+#. (itstool) path: item/p
+#: C/weatherApp.js.page:33
msgid "<link xref=\"#main\">The main program file</link>"
msgstr ""
-#: C/weatherApp.js.page:34(item/p)
+#. (itstool) path: item/p
+#: C/weatherApp.js.page:34
msgid "<link xref=\"#main\">Local library GeoNames</link>"
msgstr ""
-#: C/weatherApp.js.page:35(item/p)
+#. (itstool) path: item/p
+#: C/weatherApp.js.page:35
msgid "<link xref=\"#main\">Autotools and Icons</link>"
msgstr "<link xref=\"#main\">Autotools und Symbole</link>"
-#: C/weatherApp.js.page:43(section/title)
+#. (itstool) path: section/title
+#: C/weatherApp.js.page:43
msgid "Planning the graphical user interface"
msgstr "Planung der grafischen Benutzeroberfläche"
-#: C/weatherApp.js.page:44(section/p)
+#. (itstool) path: section/p
+#: C/weatherApp.js.page:44
msgid ""
"Structuring an application for GNOME 3 means you will be using <link href="
"\"http://developer.gnome.org/platform-overview/stable/gtk\">GTK+</link>. The "
-"most important thing is to remember that the main window will only accept one "
-"widget. You must plan your structure accordingly (this example is using Gtk."
-"Grid). A useful method is to draw out the main window and place every widget "
-"needed inside that box. By looking at an image of your future application it "
-"is easier to tell what are the relations between widgets. For example Gtk."
-"Grid places your widgets in relation to other widgets, so after the first "
-"widget is in place, placing widgets can be done in relation to any widget on "
-"the grid."
-msgstr ""
-
-#: C/weatherApp.js.page:47(section/title)
+"most important thing is to remember that the main window will only accept "
+"one widget. You must plan your structure accordingly (this example is using "
+"Gtk.Grid). A useful method is to draw out the main window and place every "
+"widget needed inside that box. By looking at an image of your future "
+"application it is easier to tell what are the relations between widgets. For "
+"example Gtk.Grid places your widgets in relation to other widgets, so after "
+"the first widget is in place, placing widgets can be done in relation to any "
+"widget on the grid."
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/weatherApp.js.page:47
msgid "Asynchronous calls"
msgstr "Asynchrone Aufrufe"
-#: C/weatherApp.js.page:48(section/p)
+#. (itstool) path: section/p
+#: C/weatherApp.js.page:48
msgid ""
"With many programming languages, all operations are run synchronously - you "
"tell the program to do something, and it will wait until that action "
@@ -32356,60 +40577,70 @@ msgid ""
"interfaces, as then the whole application will be frozen while the program "
"waits for the operation. Going asynchronous (async) helps here. With async "
"calls, your UI won't be blocked with any requests. Async calls make your "
-"application more flexible and better equipped to handle situations when calls "
-"take more time than expected or for some reason get jammed. Async calls can "
-"be used for example file system I/O and for slower calculations in the "
-"background."
+"application more flexible and better equipped to handle situations when "
+"calls take more time than expected or for some reason get jammed. Async "
+"calls can be used for example file system I/O and for slower calculations in "
+"the background."
msgstr ""
-#: C/weatherApp.js.page:51(section/p)
+#. (itstool) path: section/p
+#: C/weatherApp.js.page:51
msgid ""
"In this example we have to get data from geonames.org. While we do that we "
"want the rest of our program to continue. If we wouldn't get any information "
"from geonames.org for the lack of internet connection and this would be a "
-"synchronous application we would never get to the point where our main_quit() "
-"is processed correctly and the application would have to killed from Terminal."
+"synchronous application we would never get to the point where our "
+"main_quit() is processed correctly and the application would have to killed "
+"from Terminal."
msgstr ""
-#: C/weatherApp.js.page:54(section/title)
+#. (itstool) path: section/title
+#: C/weatherApp.js.page:54
msgid "The different parts of the program"
msgstr "Die verschiedenen Teile des Programms"
-#: C/weatherAppMain.js.page:18(page/title)
+#. (itstool) path: page/title
+#: C/weatherAppMain.js.page:18
msgid "The main program file"
msgstr ""
-#: C/weatherAppMain.js.page:20(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/weatherAppMain.js.page:20
msgid ""
-"In this part of the guide well construct the main program file of the weather "
-"application. To write and run all the code examples yourself, you need an "
-"editor to write code in, Terminal and GNOME 3 or higher installed into your "
-"computer. In this part we we'll go through the following parts:"
+"In this part of the guide well construct the main program file of the "
+"weather application. To write and run all the code examples yourself, you "
+"need an editor to write code in, Terminal and GNOME 3 or higher installed "
+"into your computer. In this part we we'll go through the following parts:"
msgstr ""
-#: C/weatherAppMain.js.page:25(item/p)
+#. (itstool) path: item/p
+#: C/weatherAppMain.js.page:25
msgid ""
"<link xref=\"#widgets\">Adding a grid and all the necessary widgets to it</"
"link>"
msgstr ""
-#: C/weatherAppMain.js.page:26(item/p)
+#. (itstool) path: item/p
+#: C/weatherAppMain.js.page:26
msgid ""
"<link xref=\"#asynccall\">Requesting the weather information asynchronously</"
"link>"
msgstr ""
-#: C/weatherAppMain.js.page:27(item/p)
+#. (itstool) path: item/p
+#: C/weatherAppMain.js.page:27
msgid ""
"<link xref=\"#connectingbuttons\">Connecting signals to button and entry</"
"link>."
msgstr ""
-#: C/weatherAppMain.js.page:28(item/p)
+#. (itstool) path: item/p
+#: C/weatherAppMain.js.page:28
msgid "<link xref=\"#weatherapp.js\">weatherapp.js</link>"
-msgstr ""
+msgstr "<link xref=\"#weatherapp.js\">weatherapp.js</link>"
-#: C/weatherAppMain.js.page:35(section/p)
+#. (itstool) path: section/p
+#: C/weatherAppMain.js.page:35
msgid ""
"This line tells how to run the script. It needs to be the first line of the "
"code and it needs to be executable. To get the execution rights go to "
@@ -32419,23 +40650,29 @@ msgid ""
"the box for allow executing file as a program"
msgstr ""
-#: C/weatherAppMain.js.page:41(section/code)
+#. (itstool) path: section/code
+#: C/weatherAppMain.js.page:41
#, no-wrap
msgid ""
"\n"
"var Gtk = imports.gi.Gtk;\n"
"const WeatherService = imports.geonames;"
msgstr ""
+"\n"
+"var Gtk = imports.gi.Gtk;\n"
+"const WeatherService = imports.geonames;"
-#: C/weatherAppMain.js.page:44(section/p)
+#. (itstool) path: section/p
+#: C/weatherAppMain.js.page:44
msgid ""
-"In order to have a working program we need to import a GObject Introspection -"
-"library to our use. For working UI, we need Gtk. Gtk is imported in the "
+"In order to have a working program we need to import a GObject Introspection "
+"-library to our use. For working UI, we need Gtk. Gtk is imported in the "
"beginning so we have it in our use everywhere. We also import our own local "
"JavaScript library geonames to our use here."
msgstr ""
-#: C/weatherAppMain.js.page:49(section/code)
+#. (itstool) path: section/code
+#: C/weatherAppMain.js.page:49
#, no-wrap
msgid ""
"\n"
@@ -32451,12 +40688,26 @@ msgid ""
"//and run it\n"
"Gtk.main();"
msgstr ""
+"\n"
+"// Initialize the gtk\n"
+"Gtk.init(null, 0);\n"
+"//create your window, name it and connect the x to quit function. Remember that window is a taken word\n"
+"var weatherwindow = new Gtk.Window({type: Gtk.WindowType.TOPLEVEL});\n"
+"weatherwindow.title = \"Todays weather\";\n"
+"//Window only accepts one widget and a title. Further structure with Gtk.boxes of similar\n"
+"weatherwindow.connect(\"destroy\", function(){Gtk.main_quit()});\n"
+"\n"
+"weatherwindow.show_all();\n"
+"//and run it\n"
+"Gtk.main();"
-#: C/weatherAppMain.js.page:63(section/title)
+#. (itstool) path: section/title
+#: C/weatherAppMain.js.page:63
msgid "Adding a grid and all the necessary widgets to it"
msgstr ""
-#: C/weatherAppMain.js.page:64(section/code)
+#. (itstool) path: section/code
+#: C/weatherAppMain.js.page:64
#, no-wrap
msgid ""
"\n"
@@ -32485,25 +40736,54 @@ msgid ""
"grid.attach_next_to(button1,entry,1,1,1);\n"
"grid.attach_next_to(weatherIcon,label2,1,1,1)\n"
msgstr ""
+"\n"
+"var grid = new Gtk.Grid();\n"
+"weatherwindow.add(grid);\n"
+"\n"
+"//We initialize the icon here, but deside the file later in geonames.js.\n"
+"var weatherIcon = new Gtk.Image();\n"
+"\n"
+"//Set some labels to your window\n"
+"var label1 = new Gtk.Label({label: \"\"});\n"
+"var label2 = new Gtk.Label({label: \"Looking in the sky...\"});\n"
+"var label3 = new Gtk.Label({label: \"\"});\n"
+"\n"
+"var entry = new Gtk.Entry();\n"
+"entry.set_width_chars(4);\n"
+"entry.set_max_length(4);\n"
+"var label4 = new Gtk.Label({label: \"Enter ICAO station for weather: \"});\n"
+"var button1 = new Gtk.Button({label: \"search!\"});\n"
+"\n"
+"grid.attach(label4, 2, 1, 1, 1);\n"
+"grid.attach_next_to(label1,label4,3,1,1);\n"
+"grid.attach_next_to(label2,label1,3,1,1);\n"
+"grid.attach_next_to(label3,label2,3,1,1);\n"
+"grid.attach_next_to(entry,label4,1,1,1);\n"
+"grid.attach_next_to(button1,entry,1,1,1);\n"
+"grid.attach_next_to(weatherIcon,label2,1,1,1)\n"
-#: C/weatherAppMain.js.page:90(section/p)
+#. (itstool) path: section/p
+#: C/weatherAppMain.js.page:90
msgid ""
"In this section we create the grid we are going to use for positioning the "
-"widgets. All the buttons, labels and entrys are initialized and placed on the "
-"grid. As seen from the placing of the different widgets, they don't need to "
-"be related only to one widget. At this point some of the labels don't have "
-"any content. The content for those widgets is applied later. If you run the "
-"application at this stage, you have the UI ready, but the widgets are not "
-"connected to anything. For this we need to first build the weather searching "
-"local library, and then get the information we need asynchronously. When we "
-"have our local library ready we can connect it to the necessary widgets."
-msgstr ""
-
-#: C/weatherAppMain.js.page:94(section/title)
+"widgets. All the buttons, labels and entrys are initialized and placed on "
+"the grid. As seen from the placing of the different widgets, they don't need "
+"to be related only to one widget. At this point some of the labels don't "
+"have any content. The content for those widgets is applied later. If you run "
+"the application at this stage, you have the UI ready, but the widgets are "
+"not connected to anything. For this we need to first build the weather "
+"searching local library, and then get the information we need "
+"asynchronously. When we have our local library ready we can connect it to "
+"the necessary widgets."
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/weatherAppMain.js.page:94
msgid "Requesting the weather information asynchronously"
msgstr ""
-#: C/weatherAppMain.js.page:95(section/code)
+#. (itstool) path: section/code
+#: C/weatherAppMain.js.page:95
#, no-wrap
msgid ""
"\n"
@@ -32531,25 +40811,52 @@ msgid ""
" });\n"
"}\n"
msgstr ""
+"\n"
+"function getWeatherForStation() {\n"
+" var station = entry.get_text();\n"
+"\n"
+" var GeoNames = new WeatherService.GeoNames(station); //\"EFHF\";\n"
+"\n"
+" GeoNames.getWeather(function(error, weather) {\n"
+" //this here works bit like signals. This code will be run when we have weather.\n"
+" if (error) {\n"
+" label2.set_text(\"Suggested ICAO station does not exist Try EFHF\");\n"
+" return; }\n"
+" weatherIcon.file = GeoNames.getIcon(weather);\n"
+"\n"
+" label1.set_text(\"Temperature is \" + weather.weatherObservation.temperature + \" degrees.\");\n"
+" if (weather.weatherObservation.weatherCondition !== \"n/a\"){\n"
+" label2.set_text(\"Looks like there is \" + weather.weatherObservation.weatherCondition + \" in the
sky.\");\n"
+" }\n"
+" else {\n"
+" label2.set_text(\"Looks like there is \" + weather.weatherObservation.clouds + \" in the sky.\");\n"
+" }\n"
+" label3.set_text(\"Windspeed is \" + weather.weatherObservation.windSpeed + \" m/s\")\n"
+" // ...\n"
+" });\n"
+"}\n"
-#: C/weatherAppMain.js.page:120(section/p)
+#. (itstool) path: section/p
+#: C/weatherAppMain.js.page:120
msgid ""
"This function is dedicated for calling for the weather information and "
"updating labels and icons accordingly. In the beginning of the function we "
"get the user input for the search. So here for the first time we use our own "
-"library and assign it to variable GeoNames. While assigning WeatherService we "
-"give it the station. The firs thing we do with GeoNames is to request "
+"library and assign it to variable GeoNames. While assigning WeatherService "
+"we give it the station. The firs thing we do with GeoNames is to request "
"weather. Everything after GeoNames.getWeather(function(error, weather) "
"happens only if we either get an error message or weather information. If "
"either doesn't come, the rest of the program works as normal, so main_Quit "
"works."
msgstr ""
-#: C/weatherAppMain.js.page:124(section/title)
+#. (itstool) path: section/title
+#: C/weatherAppMain.js.page:124
msgid "Connecting signals to button and entry."
msgstr ""
-#: C/weatherAppMain.js.page:125(section/code)
+#. (itstool) path: section/code
+#: C/weatherAppMain.js.page:125
#, no-wrap
msgid ""
"\n"
@@ -32565,24 +40872,40 @@ msgid ""
" getWeatherForStation();\n"
"});"
msgstr ""
+"\n"
+"entry.connect(\"key_press_event\", function(widget, event) {\n"
+" if (entry.get_text().length === 4) {\n"
+" // Enough is enough\n"
+" getWeatherForStation();\n"
+" }\n"
+" return false;\n"
+"});\n"
+"\n"
+"button1.connect(\"clicked\", function(){\n"
+" getWeatherForStation();\n"
+"});"
-#: C/weatherAppMain.js.page:137(section/p)
+#. (itstool) path: section/p
+#: C/weatherAppMain.js.page:137
msgid ""
-"And finally we have the connections that make the whole application run as it "
-"should. We connect both the entry and the button to do the same thing, "
+"And finally we have the connections that make the whole application run as "
+"it should. We connect both the entry and the button to do the same thing, "
"getting the weather. So it doesn't matter weather you press enter of click "
"the search button."
msgstr ""
-#: C/weatherAppMain.js.page:141(section/title)
+#. (itstool) path: section/title
+#: C/weatherAppMain.js.page:141
msgid "Weatherapp.js"
msgstr "Weatherapp.js"
-#: C/weatherAppMain.js.page:142(section/p)
+#. (itstool) path: section/p
+#: C/weatherAppMain.js.page:142
msgid "Weatherapp.js file looks like this:"
msgstr ""
-#: C/weatherAppMain.js.page:143(section/code)
+#. (itstool) path: section/code
+#: C/weatherAppMain.js.page:143
#, no-wrap
msgid ""
"\n"
@@ -32670,49 +40993,142 @@ msgid ""
"//and run it\n"
"Gtk.main();\n"
msgstr ""
+"\n"
+"#!/usr/bin/gjs\n"
+"//The previous line is a hash bang tells how to run the script.\n"
+"// Note that the script has to be executable (run in terminal in the right folder: chmod +x scriptname)\n"
+"\n"
+"var Gtk = imports.gi.Gtk;\n"
+"\n"
+"const WeatherService = imports.geonames;\n"
+"//Bring your own library from same folder (as set in GJS_PATH). If using autotools .desktop will take care
of this\n"
+"\n"
+"// Initialize the gtk\n"
+"Gtk.init(null, 0);\n"
+"//create your window, name it and connect the x to quit function. Remember that window is a taken word\n"
+"var weatherwindow = new Gtk.Window({type: Gtk.WindowType.TOPLEVEL});\n"
+"weatherwindow.title = \"Todays weather\";\n"
+"//Window only accepts one widget and a title. Further structure with Gtk.boxes of similar\n"
+"weatherwindow.connect(\"destroy\", function(){Gtk.main_quit()});\n"
+"//We initialize the icon here, but deside the file later in geonames.js.\n"
+"\n"
+"var weatherIcon = new Gtk.Image();\n"
+"\n"
+"//Set some labels to your window\n"
+"var label1 = new Gtk.Label({label: \"\"});\n"
+"var label2 = new Gtk.Label({label: \"Looking in the sky...\"});\n"
+"var label3 = new Gtk.Label({label: \"\"});\n"
+"\n"
+"var grid = new Gtk.Grid();\n"
+"weatherwindow.add(grid);\n"
+"\n"
+"var entry = new Gtk.Entry();\n"
+"entry.set_width_chars(4);\n"
+"entry.set_max_length(4);\n"
+"var label4 = new Gtk.Label({label: \"Enter ICAO station for weather: \"});\n"
+"var button1 = new Gtk.Button({label: \"search!\"});\n"
+"\n"
+"//some weather\n"
+"\n"
+"entry.connect(\"key_press_event\", function(widget, event) {\n"
+" // FIXME: Get weather on enter (key 13)\n"
+" if (entry.get_text().length === 4) {\n"
+" // Enough is enough\n"
+" getWeatherForStation();\n"
+" }\n"
+" return false;\n"
+"});\n"
+"\n"
+"button1.connect(\"clicked\", function(){\n"
+" getWeatherForStation();\n"
+"});\n"
+"\n"
+"function getWeatherForStation() {\n"
+" var station = entry.get_text();\n"
+"\n"
+" var GeoNames = new WeatherService.GeoNames(station); //\"EFHF\";\n"
+"\n"
+" GeoNames.getWeather(function(error, weather) {\n"
+" //this here works bit like signals. This code will be run when we have weather.\n"
+" if (error) {\n"
+" label2.set_text(\"Suggested ICAO station does not exist Try EFHF\");\n"
+" return; }\n"
+" weatherIcon.file = GeoNames.getIcon(weather);\n"
+"\n"
+" label1.set_text(\"Temperature is \" + weather.weatherObservation.temperature + \" degrees.\");\n"
+" if (weather.weatherObservation.weatherCondition !== \"n/a\"){\n"
+" label2.set_text(\"Looks like there is \" + weather.weatherObservation.weatherCondition + \" in the
sky.\");\n"
+" }\n"
+" else {\n"
+" label2.set_text(\"Looks like there is \" + weather.weatherObservation.clouds + \" in the sky.\");\n"
+" }\n"
+" label3.set_text(\"Windspeed is \" + weather.weatherObservation.windSpeed + \" m/s\")\n"
+" // ...\n"
+" });\n"
+"}\n"
+"\n"
+"grid.attach(label4, 2, 1, 1, 1);\n"
+"grid.attach_next_to(label1,label4,3,1,1);\n"
+"grid.attach_next_to(label2,label1,3,1,1);\n"
+"grid.attach_next_to(label3,label2,3,1,1);\n"
+"grid.attach_next_to(entry,label4,1,1,1);\n"
+"grid.attach_next_to(button1,entry,1,1,1);\n"
+"grid.attach_next_to(weatherIcon,label2,1,1,1)\n"
+"weatherwindow.show_all();\n"
+"//and run it\n"
+"Gtk.main();\n"
-#: C/weatherAppMain.js.page:228(section/p)
+#. (itstool) path: section/p
+#: C/weatherAppMain.js.page:228
msgid "Running until you have all the autotools files ready. :"
msgstr ""
-#: C/weatherAppMain.js.page:230(section/screen)
+#. (itstool) path: section/screen
+#: C/weatherAppMain.js.page:230
#, no-wrap
msgid " <output style=\"prompt\">$ </output><input> GJS_PATH=`pwd` gjs weatherapp.js</input>"
msgstr ""
-#: C/weatherAppMain.js.page:231(section/p)
+#. (itstool) path: section/p
+#: C/weatherAppMain.js.page:231
msgid ""
-"Use this command on terminal while developing your modules. When calling your "
-"program in this manner it knows where to find your custom JSlibraries, in "
-"this case geonames.js."
+"Use this command on terminal while developing your modules. When calling "
+"your program in this manner it knows where to find your custom JSlibraries, "
+"in this case geonames.js."
msgstr ""
-#: C/weatherAutotools.js.page:18(page/title)
+#. (itstool) path: page/title
+#: C/weatherAutotools.js.page:18
msgid "Autotools and Icons"
msgstr "Autotools und Symbole"
-#: C/weatherAutotools.js.page:20(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/weatherAutotools.js.page:20
msgid ""
"In this part of the guide well construct the autotools and custom icons "
"needed for weather application to be a seamless part of your desktop. To "
"write and run all the code examples yourself, you need an editor to write "
-"code in, Terminal and GNOME 3 or higher installed into your computer. In this "
-"guide we we'll go through the following parts:"
+"code in, Terminal and GNOME 3 or higher installed into your computer. In "
+"this guide we we'll go through the following parts:"
msgstr ""
-#: C/weatherAutotools.js.page:23(item/p)
+#. (itstool) path: item/p
+#: C/weatherAutotools.js.page:23
msgid "<link xref=\"#autotools\"> Autotools</link>"
-msgstr ""
+msgstr "<link xref=\"#autotools\"> Autotools</link>"
-#: C/weatherAutotools.js.page:24(item/p)
+#. (itstool) path: item/p
+#: C/weatherAutotools.js.page:24
msgid "<link xref=\"#icons\">Custom icons for your application</link>"
msgstr ""
-#: C/weatherAutotools.js.page:31(section/title)
+#. (itstool) path: section/title
+#: C/weatherAutotools.js.page:31
msgid "Autotools and necessary files"
msgstr "Autotools und erforderliche Dateien"
-#: C/weatherAutotools.js.page:32(section/p)
+#. (itstool) path: section/p
+#: C/weatherAutotools.js.page:32
msgid ""
"Having more than one file in your folder makes using autotools a bit tricky. "
"You need the .desktop file, autogen.sh, Makefile.am, configure.ac and as a "
@@ -32722,17 +41138,20 @@ msgid ""
"link> provides a good overwiev on the subject."
msgstr ""
-#: C/weatherAutotools.js.page:35(item/p)
-#: C/weatherAutotools.js.page:41(section/p)
+#. (itstool) path: item/p
+#. (itstool) path: section/p
+#: C/weatherAutotools.js.page:35 C/weatherAutotools.js.page:41
msgid "weatherapp.desktop"
msgstr "weatherapp.desktop"
-#: C/weatherAutotools.js.page:36(item/p)
-#: C/weatherAutotools.js.page:56(section/p)
+#. (itstool) path: item/p
+#. (itstool) path: section/p
+#: C/weatherAutotools.js.page:36 C/weatherAutotools.js.page:56
msgid "weatherapp.sh.in"
msgstr "weatherapp.sh.in"
-#: C/weatherAutotools.js.page:42(section/code)
+#. (itstool) path: section/code
+#: C/weatherAutotools.js.page:42
#, no-wrap
msgid ""
"\n"
@@ -32749,14 +41168,16 @@ msgid ""
"Categories=GNOME;GTK;Utility;"
msgstr ""
-#: C/weatherAutotools.js.page:54(section/p)
+#. (itstool) path: section/p
+#: C/weatherAutotools.js.page:54
msgid ""
"The thing to notice in this file is that the Exec line will make this ."
"desktop file work only after running all the other makefiles. Weatherapp.sh "
"is a small shell script created with the weatherapp.sh.in."
msgstr ""
-#: C/weatherAutotools.js.page:57(section/code)
+#. (itstool) path: section/code
+#: C/weatherAutotools.js.page:57
#, no-wrap
msgid ""
"\n"
@@ -32764,13 +41185,19 @@ msgid ""
"export GJS_PATH= bindir@\n"
"gjs @bindir@/weatherapp.js"
msgstr ""
+"\n"
+"#!/bin/sh\n"
+"export GJS_PATH= bindir@\n"
+"gjs @bindir@/weatherapp.js"
-#: C/weatherAutotools.js.page:61(section/p)
+#. (itstool) path: section/p
+#: C/weatherAutotools.js.page:61
msgid ""
"This file is a template to the file Makefile will do to be run from .desktop."
msgstr ""
-#: C/weatherAutotools.js.page:64(section/code)
+#. (itstool) path: section/code
+#: C/weatherAutotools.js.page:64
#, no-wrap
msgid ""
"\n"
@@ -32835,35 +41262,41 @@ msgid ""
"install-data-local: install-icons"
msgstr ""
-#: C/weatherAutotools.js.page:124(section/p)
+#. (itstool) path: section/p
+#: C/weatherAutotools.js.page:124
msgid ""
-"This needs a bit more explaining. Compared to the HelloWorld Makefile.am this "
-"has changed quite a bit. Lets go through all the new blocks:"
+"This needs a bit more explaining. Compared to the HelloWorld Makefile.am "
+"this has changed quite a bit. Lets go through all the new blocks:"
msgstr ""
-#: C/weatherAutotools.js.page:125(section/p)
+#. (itstool) path: section/p
+#: C/weatherAutotools.js.page:125
msgid ""
"bin_scripts are the files that are needed to run your application. In thin "
-"case they are the first two files are the program itself and the third is the "
-"script that launches the application."
+"case they are the first two files are the program itself and the third is "
+"the script that launches the application."
msgstr ""
-#: C/weatherAutotools.js.page:126(section/p)
+#. (itstool) path: section/p
+#: C/weatherAutotools.js.page:126
msgid "EXTRA_DIST are the files that are to be distributed"
msgstr ""
-#: C/weatherAutotools.js.page:127(section/p)
+#. (itstool) path: section/p
+#: C/weatherAutotools.js.page:127
msgid "do_subst block is bits and pieces that need to be where they are"
msgstr ""
-#: C/weatherAutotools.js.page:128(section/p)
+#. (itstool) path: section/p
+#: C/weatherAutotools.js.page:128
msgid ""
"after the comment #icons in the application there are all the icons that are "
"used by the program. For them to be useful you need to install the icons in "
"correct places and that is done byt the install-icons: bit"
msgstr ""
-#: C/weatherAutotools.js.page:131(section/code)
+#. (itstool) path: section/code
+#: C/weatherAutotools.js.page:131
#, no-wrap
msgid ""
"\n"
@@ -32874,11 +41307,13 @@ msgid ""
"AC_OUTPUT"
msgstr ""
-#: C/weatherAutotools.js.page:137(section/p)
+#. (itstool) path: section/p
+#: C/weatherAutotools.js.page:137
msgid "autohen.sh"
msgstr "autohen.sh"
-#: C/weatherAutotools.js.page:138(section/code)
+#. (itstool) path: section/code
+#: C/weatherAutotools.js.page:138
#, no-wrap
msgid ""
"\n"
@@ -32887,20 +41322,23 @@ msgid ""
"autoreconf --force --install"
msgstr ""
-#: C/weatherAutotools.js.page:144(section/title)
+#. (itstool) path: section/title
+#: C/weatherAutotools.js.page:144
msgid "Custom icons for your application"
msgstr ""
-#: C/weatherAutotools.js.page:145(section/p)
+#. (itstool) path: section/p
+#: C/weatherAutotools.js.page:145
msgid ""
"When thinking about custom icons a good rule of thumb is: do you expect to "
-"see that icon used elsewhere or is it private to your app? If the first (e.g. "
-"the icons in the desktop file that are shown by the shell) then you need /usr/"
-"share/hicolor, otherwise (e.g. the weather icons of your app) /usr/share/"
+"see that icon used elsewhere or is it private to your app? If the first (e."
+"g. the icons in the desktop file that are shown by the shell) then you need /"
+"usr/share/hicolor, otherwise (e.g. the weather icons of your app) /usr/share/"
"$application/bla/bla"
msgstr ""
-#: C/weatherAutotools.js.page:146(section/p)
+#. (itstool) path: section/p
+#: C/weatherAutotools.js.page:146
msgid ""
"Using autotools you have to make some changes to your .desktop and Makefile."
"am files. In the desktop file you change the Icon's name Icon=weather-icon. "
@@ -32908,55 +41346,67 @@ msgid ""
"application #the application icon"
msgstr ""
-#: C/weatherAutotools.js.page:147(section/p)
+#. (itstool) path: section/p
+#: C/weatherAutotools.js.page:147
msgid "appicondir=$(datadir)/icons/hicolor/scalable/apps"
-msgstr ""
+msgstr "appicondir=$(datadir)/icons/hicolor/scalable/apps"
-#: C/weatherAutotools.js.page:148(section/p)
+#. (itstool) path: section/p
+#: C/weatherAutotools.js.page:148
msgid "appicon_DATA=weather-icon.svg"
-msgstr ""
+msgstr "appicon_DATA=weather-icon.svg"
-#: C/weatherGeonames.js.page:18(page/title)
+#. (itstool) path: page/title
+#: C/weatherGeonames.js.page:18
msgid "Local library geoNames"
msgstr ""
-#: C/weatherGeonames.js.page:20(synopsis/p)
+#. (itstool) path: synopsis/p
+#: C/weatherGeonames.js.page:20
msgid ""
"In this part of the guide we'll construct the local library geoNames using "
"asynchronous calls. Weather information in this example is fetched from "
"geonames.org and the application is using the <link href=\"http://en."
"wikipedia.org/wiki/List_of_airports_by_ICAO_code:_E\">ICAO codes </link> to "
"place your weather request. To write and run all the code examples yourself, "
-"you need an editor to write code in, Terminal and GNOME 3 or higher installed "
-"into your computer. In this guide we'll go through the following parts:"
+"you need an editor to write code in, Terminal and GNOME 3 or higher "
+"installed into your computer. In this guide we'll go through the following "
+"parts:"
msgstr ""
-#: C/weatherGeonames.js.page:23(item/p)
+#. (itstool) path: item/p
+#: C/weatherGeonames.js.page:23
msgid ""
"<link xref=\"#geonamesimports\">Local library for getting the weather</link>"
msgstr ""
-#: C/weatherGeonames.js.page:24(item/p)
+#. (itstool) path: item/p
+#: C/weatherGeonames.js.page:24
msgid "<link xref=\"#geonamesfunction\">Creating function geoNames</link>"
msgstr ""
-#: C/weatherGeonames.js.page:25(item/p)
+#. (itstool) path: item/p
+#: C/weatherGeonames.js.page:25
msgid "<link xref=\"#geonamesmethods\">Methods for geoNames</link>"
msgstr ""
-#: C/weatherGeonames.js.page:26(item/p)
+#. (itstool) path: item/p
+#: C/weatherGeonames.js.page:26
msgid "<link xref=\"#geonames.js\">geonames.js </link>"
msgstr ""
-#: C/weatherGeonames.js.page:31(section/title)
+#. (itstool) path: section/title
+#: C/weatherGeonames.js.page:31
msgid "Local library for getting the weather"
msgstr ""
-#: C/weatherGeonames.js.page:32(section/p)
+#. (itstool) path: section/p
+#: C/weatherGeonames.js.page:32
msgid "For this we need a new file that will be our local library."
msgstr ""
-#: C/weatherGeonames.js.page:33(section/code)
+#. (itstool) path: section/code
+#: C/weatherGeonames.js.page:33
#, no-wrap
msgid ""
"\n"
@@ -32965,18 +41415,21 @@ msgid ""
"Soup.Session.prototype.add_feature.call(_httpSession, new Soup.ProxyResolverDefault());\n"
msgstr ""
-#: C/weatherGeonames.js.page:38(section/p)
+#. (itstool) path: section/p
+#: C/weatherGeonames.js.page:38
msgid ""
"In the first lines we'll import and initialize the libraries we need to use "
"in this local library. Soup handles all the requests we have to make with "
"http."
msgstr ""
-#: C/weatherGeonames.js.page:42(section/title)
+#. (itstool) path: section/title
+#: C/weatherGeonames.js.page:42
msgid "Creating function GeoNames"
msgstr ""
-#: C/weatherGeonames.js.page:43(section/code)
+#. (itstool) path: section/code
+#: C/weatherGeonames.js.page:43
#, no-wrap
msgid ""
"\n"
@@ -32989,19 +41442,22 @@ msgid ""
"}\n"
msgstr ""
-#: C/weatherGeonames.js.page:52(section/p)
+#. (itstool) path: section/p
+#: C/weatherGeonames.js.page:52
msgid ""
-"Here we create the function GeoNames that will handle getting weather for us. "
-"JavaScript allows us to create functions that have little inside at first and "
-"later expand them. This will be done inside the GeoNames.prototype curly "
-"braces{}"
+"Here we create the function GeoNames that will handle getting weather for "
+"us. JavaScript allows us to create functions that have little inside at "
+"first and later expand them. This will be done inside the GeoNames.prototype "
+"curly braces{}"
msgstr ""
-#: C/weatherGeonames.js.page:56(section/title)
+#. (itstool) path: section/title
+#: C/weatherGeonames.js.page:56
msgid "Methods for GeoNames"
msgstr ""
-#: C/weatherGeonames.js.page:57(section/code)
+#. (itstool) path: section/code
+#: C/weatherGeonames.js.page:57
#, no-wrap
msgid ""
"\n"
@@ -33044,27 +41500,31 @@ msgid ""
"}\n"
msgstr ""
-#: C/weatherGeonames.js.page:96(section/p)
+#. (itstool) path: section/p
+#: C/weatherGeonames.js.page:96
msgid ""
"The first method for GeoNames is getWeather and the second getIcon. In "
-"getWeather we make a http request with soup, handle errors and then parse the "
-"information from the request to form we can use it. In getIcon we simply "
+"getWeather we make a http request with soup, handle errors and then parse "
+"the information from the request to form we can use it. In getIcon we simply "
"compare the results we got from getWeather to the switch we have in order to "
"get the icon matching current weather. Now that we have our local library "
"ready, it's time to make use of it."
msgstr ""
-#: C/weatherGeonames.js.page:101(section/title)
+#. (itstool) path: section/title
+#: C/weatherGeonames.js.page:101
msgid "geonames.js"
msgstr "geonames.js"
-#: C/weatherGeonames.js.page:102(section/p)
+#. (itstool) path: section/p
+#: C/weatherGeonames.js.page:102
msgid ""
"Here is the entire code for our local library. The main program file calls "
"this asynchronously."
msgstr ""
-#: C/weatherGeonames.js.page:103(section/code)
+#. (itstool) path: section/code
+#: C/weatherGeonames.js.page:103
#, no-wrap
msgid ""
"\n"
@@ -33118,28 +41578,32 @@ msgid ""
"} "
msgstr ""
-#: C/window.c.page:7(info/title)
+#. (itstool) path: info/title
+#: C/window.c.page:7
msgctxt "text"
msgid "Window (C)"
msgstr "Fenster (C)"
-#: C/window.c.page:17(info/desc) C/window.py.page:24(info/desc)
-#: C/window.vala.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/window.c.page:17 C/window.py.page:24 C/window.vala.page:17
msgid "A toplevel window which can contain other widgets"
msgstr ""
-#: C/window.c.page:20(page/title) C/window.js.page:20(page/title)
-#: C/window.py.page:27(page/title) C/window.vala.page:20(page/title)
+#. (itstool) path: page/title
+#: C/window.c.page:20 C/window.js.page:20 C/window.py.page:27
+#: C/window.vala.page:20
msgid "Window"
msgstr "Fenster"
-#: C/window.c.page:23(page/p)
+#. (itstool) path: page/p
+#: C/window.c.page:23
msgid ""
"A minimal GtkApplication. Use <link xref=\"GtkApplicationWindow.c"
"\">Application Window</link> if you need GMenu support."
msgstr ""
-#: C/window.c.page:27(page/code)
+#. (itstool) path: page/code
+#: C/window.c.page:27
#, no-wrap
msgid ""
"\n"
@@ -33173,26 +41637,31 @@ msgid ""
"}\n"
msgstr ""
-#: C/window.js.page:7(info/title)
+#. (itstool) path: info/title
+#: C/window.js.page:7
msgctxt "text"
msgid "Window (JavaScript)"
msgstr "Fenster (JavaScript)"
-#: C/window.js.page:17(info/desc)
+#. (itstool) path: info/desc
+#: C/window.js.page:17
msgid "A basic window which can contain other widgets"
msgstr "Ein einfaches Fenster, welches weitere Widgets enthalten kann."
-#: C/window.js.page:25(td/p)
+#. (itstool) path: td/p
+#: C/window.js.page:25
msgid "A minimal GtkApplication"
msgstr "Eine minimale GtkApplication"
-#: C/window.js.page:28(td/p)
+#. (itstool) path: td/p
+#: C/window.js.page:28
msgid ""
"Use <link xref=\"GtkApplicationWindow.js\">ApplicationWindow</link> if you "
"need GMenu support."
msgstr ""
-#: C/window.js.page:32(page/code)
+#. (itstool) path: page/code
+#: C/window.js.page:32
#, no-wrap
msgid ""
"\n"
@@ -33240,11 +41709,13 @@ msgid ""
"app.application.run (ARGV);\n"
msgstr ""
-#: C/window.js.page:34(page/p)
+#. (itstool) path: page/p
+#: C/window.js.page:34
msgid "In this example we used the following:"
msgstr "In diesem Beispiel verwenden wir Folgendes:"
-#: C/window.js.page:39(item/p)
+#. (itstool) path: item/p
+#: C/window.js.page:39
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Window.html"
"\">Gtk.Window</link>"
@@ -33252,28 +41723,34 @@ msgstr ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Window.html"
"\">Gtk.Window</link>"
-#: C/window.py.page:7(info/title)
+#. (itstool) path: info/title
+#: C/window.py.page:7
msgctxt "text"
msgid "Window (Python)"
msgstr "Fenster (Python)"
-#: C/window.py.page:33(td/p)
+#. (itstool) path: td/p
+#: C/window.py.page:33
msgid "A minimal GTK+ Application: a window with a title."
msgstr "Eine minimale GTK+-Anwendung: ein Fenster mit einem Titel."
-#: C/window.py.page:36(td/p)
+#. (itstool) path: td/p
+#: C/window.py.page:36
msgid ""
-"Use <link xref=\"GtkApplicationWindow.py\"/> if you need <link xref=\"gmenu.py"
-"\"/> support."
+"Use <link xref=\"GtkApplicationWindow.py\"/> if you need <link xref=\"gmenu."
+"py\"/> support."
msgstr ""
-#: C/window.py.page:46(section/code)
+#. (itstool) path: section/code
+#: C/window.py.page:46
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def do_activate(self):\n"
" # create a Gtk Window belonging to the application itself\n"
" window = Gtk.Window(application=self)\n"
@@ -33289,26 +41766,31 @@ msgid ""
"sys.exit(exit_status)\n"
msgstr ""
-#: C/window.py.page:51(section/title)
+#. (itstool) path: section/title
+#: C/window.py.page:51
msgid "Useful methods for a Window widget"
msgstr ""
-#: C/window.vala.page:7(info/title)
+#. (itstool) path: info/title
+#: C/window.vala.page:7
msgctxt "text"
msgid "Window (Vala)"
msgstr "Fenster (Vala)"
-#: C/window.vala.page:25(td/p)
+#. (itstool) path: td/p
+#: C/window.vala.page:25
msgid "The simplest Gtk.Application"
msgstr "Die einfachste Gtk.Application"
-#: C/window.vala.page:28(td/p)
+#. (itstool) path: td/p
+#: C/window.vala.page:28
msgid ""
-"Use <link xref=\"GtkApplicationWindow.vala\">Application Window</link> if you "
-"need GMenu support."
+"Use <link xref=\"GtkApplicationWindow.vala\">Application Window</link> if "
+"you need GMenu support."
msgstr ""
-#: C/window.vala.page:32(page/code)
+#. (itstool) path: page/code
+#: C/window.vala.page:32
#, no-wrap
msgid ""
"/* This is the application. */\n"
@@ -33350,35 +41832,57 @@ msgid ""
"}\n"
msgstr ""
-#: C/window.vala.page:38(item/p)
+#. (itstool) path: item/p
+#: C/window.vala.page:38
msgid ""
-"The widget <link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Window.html\">Gtk."
-"Window</link>"
+"The widget <link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Window.html"
+"\">Gtk.Window</link>"
msgstr ""
-#: C/window.vala.page:40(item/p)
+#. (itstool) path: item/p
+#: C/window.vala.page:40
msgid ""
"The enum <link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.WindowPosition.html"
"\">Gtk.WindowPosition</link>"
msgstr ""
-#: C/window.vala.page:42(item/p)
+#. (itstool) path: item/p
+#: C/window.vala.page:42
msgid ""
"The method <link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Window."
"set_default_size.html\">set_default_size</link>"
msgstr ""
-#: C/window.vala.page:44(item/p)
+#. (itstool) path: item/p
+#: C/window.vala.page:44
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Container.border_width.html"
"\">border_width</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Container.border_width.html"
+"\">border_width</link>"
-#: C/window.vala.page:46(item/p)
+#. (itstool) path: item/p
+#: C/window.vala.page:46
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Window.window_position.html"
"\">window_position</link>"
msgstr ""
+"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Window.window_position.html"
+"\">window_position</link>"
+
+#~ msgctxt "_"
+#~ msgid "external ref='media/03_jssignal_02b.png' md5='__failed__'"
+#~ msgstr "external ref='media/03_jssignal_02b.png' md5='__failed__'"
+
+#~ msgid "Automatic installation"
+#~ msgstr "Automatische Installation"
+
+#~ msgctxt "_"
+#~ msgid ""
+#~ "external ref='media/menubutton.png' md5='1feb7b836a522c3007079d4420621d9d'"
+#~ msgstr ""
+#~ "external ref='media/menubutton.png' md5='1feb7b836a522c3007079d4420621d9d'"
#~ msgid "gnome-doc-list gnome org"
#~ msgstr "gnome-doc-list gnome org"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]