[gnome-devel-docs] Update Brazilian Portuguese translation
- From: Translations User D-L <translations src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] Update Brazilian Portuguese translation
- Date: Fri, 7 Dec 2018 12:25:51 +0000 (UTC)
commit 349c70cb921fcc62ab78540c7de875ff01668bda
Author: Rafael Fontenelle <rafaelff gnome org>
Date: Fri Dec 7 12:25:41 2018 +0000
Update Brazilian Portuguese translation
platform-demos/pt_BR/pt_BR.po | 20713 +++++++++++++++++++++++++---------------
1 file changed, 13052 insertions(+), 7661 deletions(-)
---
diff --git a/platform-demos/pt_BR/pt_BR.po b/platform-demos/pt_BR/pt_BR.po
index 96195153..ade791ac 100644
--- a/platform-demos/pt_BR/pt_BR.po
+++ b/platform-demos/pt_BR/pt_BR.po
@@ -1,296 +1,116 @@
# Brazilian Portuguese translation for gnome-devel-docs.
-# Copyright (C) 2013 gnome-devel-docs's COPYRIGHT HOLDER
+# Copyright (C) 2018 gnome-devel-docs's COPYRIGHT HOLDER
# This file is distributed under the same license as the gnome-devel-docs package.
-# Rafael Ferreira <rafael f f1 gmail com>, 2013.
-#
+# Rafael Fontenelle <rafaelff gnome org>, 2013, 2018.
msgid ""
msgstr ""
"Project-Id-Version: gnome-devel-docs master\n"
-"POT-Creation-Date: 2013-09-25 20:49+0000\n"
-"PO-Revision-Date: 2013-08-14 20:26-0300\n"
-"Last-Translator: Rafael Ferreira <rafael f f1 gmail com>\n"
+"POT-Creation-Date: 2018-09-25 15:49+0000\n"
+"PO-Revision-Date: 2018-09-25 14:42-0200\n"
+"Last-Translator: Rafael Fontenelle <rafaelff gnome org>\n"
"Language-Team: Brazilian Portuguese <gnome-pt_br-list gnome org>\n"
"Language: pt_BR\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.5.7\n"
+"X-Generator: Virtaal 1.0.0-beta1\n"
+"X-Project-Style: gnome\n"
#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
msgctxt "_"
msgid "translator-credits"
-msgstr "Rafael Ferreira <rafael f f1 gmail com>, 2013"
+msgstr "Rafael Fontenelle <rafaelff gnome org>, 2013, 2018"
#. (itstool) path: credit/name
-#: C/index.page:7
-msgid "GNOME Documentation Team"
-msgstr "Equipe de documentação GNOME"
-
-#. (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: credit/name
-#: C/index.page:17 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/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: credit/years
-#: C/index.page:19 C/bug-filing.page:11 C/documentation.page:12
-#: C/entry.py.page:22 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"
-
-#. (itstool) path: credit/name
-#: C/index.page:22 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/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"
-
-#. (itstool) path: page/title
-#: C/index.page:27
-msgid "GNOME Developer Platform Demos"
-msgstr "Demonstrações da plataforma de desenvolvimento do GNOME"
-
-#. (itstool) path: section/title
-#: C/index.page:30
-msgid "How to set up your development environment"
-msgstr "Como configurar o ambiente de desenvolvimento"
-
-#. (itstool) path: section/title
-#: C/index.page:34
-msgid "Tutorials, code samples, platform demos and more"
-msgstr "Tutoriais, amostras de código, demonstração da plataforma e mais"
-
-#. (itstool) path: section/title
-#: C/index.page:38
-msgid "Get Involved"
-msgstr "Contribua"
-
-#. (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
-msgctxt "_"
-msgid ""
-"external ref='media/02_jsgrid_01.png' md5='3fdc22d361cf801f71557fdc76ae5b49'"
-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/02_welcome_to_the_grid.js.page:149
-msgctxt "_"
-msgid ""
-"external ref='media/02_jsgrid_02.png' md5='07db86b0043ba5c3c24a90d7322bd81e'"
-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/02_welcome_to_the_grid.js.page:166
-msgctxt "_"
-msgid ""
-"external ref='media/02_jsgrid_03.png' md5='817351e73c687d47253c56ed06b6629f'"
-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/02_welcome_to_the_grid.js.page:196
-msgctxt "_"
-msgid ""
-"external ref='media/02_jsgrid_04.png' md5='eeaead27cee2851877fc3cfe66177f07'"
-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/02_welcome_to_the_grid.js.page:205
-msgctxt "_"
-msgid ""
-"external ref='media/02_jsgrid_05.png' md5='a3ad12f432d5977fc1f66302ad5b7498'"
-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/02_welcome_to_the_grid.js.page:216
-msgctxt "_"
-msgid ""
-"external ref='media/02_jsgrid_06.png' md5='450e48dbf6b8f5ce1c208e4812e1714b'"
-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/02_welcome_to_the_grid.js.page:226
-msgctxt "_"
-msgid ""
-"external ref='media/02_jsgrid_07.png' md5='0b304d70728903fbb2601d55bf00fdb9'"
-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/02_welcome_to_the_grid.js.page:248
-msgctxt "_"
-msgid ""
-"external ref='media/02_jsgrid_08.png' md5='78890beb47bd11360154b8ca4d50d1ff'"
-msgstr ""
-
-#. (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
+#: C/02_welcome_to_the_grid.js.page:15 C/03_getting_the_signal.js.page:16
+#: C/aboutdialog.js.page:12 C/button.js.page:13 C/checkbutton.js.page:13
+#: C/comboboxtext.js.page:15 C/combobox.js.page:17 C/dialog.js.page:13
+#: C/entry.js.page:13 C/grid.js.page:18 C/hellognome.js.page:12
+#: C/image.js.page:12 C/label.js.page:13 C/linkbutton.js.page:13
+#: C/messagedialog.js.page:16 C/progressbar.js.page:12 C/radiobutton.js.page:13
+#: C/scale.js.page:13 C/set-up-gedit.js.page:12 C/spinbutton.js.page:16
+#: C/spinner.js.page:13 C/statusbar.js.page:13 C/switch.js.page:13
+#: C/textview.js.page:17 C/togglebutton.js.page:13
+#: C/treeview_simple_liststore.js.page:16 C/window.js.page:13
msgid "Taryn Fox"
msgstr "Taryn Fox"
#. (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
+#: C/02_welcome_to_the_grid.js.page:17 C/03_getting_the_signal.js.page:18
+#: C/aboutdialog.c.page:17 C/aboutdialog.js.page:14 C/aboutdialog.py.page:16
+#: C/aboutdialog.vala.page:17 C/beginner.js.page:13 C/button.c.page:17
+#: C/button.js.page:15 C/button.py.page:17 C/button.vala.page:16
+#: C/buttonbox.py.page:17 C/checkbutton.c.page:15 C/checkbutton.js.page:15
+#: C/checkbutton.py.page:16 C/checkbutton.vala.page:15 C/colorbutton.py.page:16
+#: C/colorbutton.vala.page:17 C/comboboxtext.js.page:17 C/combobox.c.page:15
+#: C/combobox.js.page:19 C/combobox.py.page:17 C/combobox.vala.page:15
+#: C/combobox_multicolumn.py.page:16 C/dialog.c.page:17 C/dialog.js.page:15
+#: C/dialog.py.page:17 C/dialog.vala.page:15 C/entry.c.page:15
+#: C/entry.js.page:15 C/entry.py.page:17 C/entry.vala.page:15
+#: C/filechooserdialog.py.page:19 C/filechooserdialog.vala.page:18
+#: C/fontchooserwidget.py.page:17 C/gmenu.c.page:15 C/gmenu.js.page:15
+#: C/gmenu.py.page:17 C/gmenu.py.page:23 C/gmenu.vala.page:16 C/grid.c.page:15
+#: C/grid.js.page:15 C/grid.py.page:17 C/grid.py.page:23 C/grid.vala.page:17
+#: C/GtkApplicationWindow.c.page:15 C/GtkApplicationWindow.js.page:15
+#: C/GtkApplicationWindow.py.page:17 C/GtkApplicationWindow.py.page:22
+#: C/GtkApplicationWindow.vala.page:15 C/guitar-tuner.js.page:14
+#: C/hellognome.js.page:14 C/hello-world.c.page:17 C/hello-world.js.page:17
+#: C/hello-world.py.page:17 C/hello-world.vala.page:17 C/image.c.page:15
+#: C/image.js.page:14 C/image.py.page:17 C/image.vala.page:15 C/label.c.page:16
+#: C/label.js.page:15 C/label.py.page:19 C/label.py.page:24
+#: C/label.vala.page:15 C/linkbutton.c.page:15 C/linkbutton.js.page:15
+#: C/linkbutton.py.page:16 C/linkbutton.vala.page:15 C/menubar.c.page:17
+#: C/menubar.py.page:17 C/menubar.py.page:22 C/menubar.vala.page:17
+#: C/menubutton.js.page:15 C/menubutton.py.page:16 C/menubutton.py.page:22
+#: C/menubutton.vala.page:15 C/messagedialog.c.page:16
+#: C/messagedialog.js.page:18 C/messagedialog.py.page:16
+#: C/messagedialog.vala.page:15 C/model-view-controller.py.page:23
+#: C/paned.c.page:15 C/paned.py.page:16 C/progressbar.c.page:16
+#: C/progressbar.js.page:14 C/progressbar.py.page:16 C/progressbar.vala.page:15
+#: C/properties.py.page:23 C/radiobutton.c.page:17 C/radiobutton.js.page:15
+#: C/radiobutton.py.page:17 C/radiobutton.vala.page:18 C/response-type.page:11
+#: C/scale.c.page:17 C/scale.js.page:15 C/scale.py.page:17 C/scale.vala.page:17
+#: C/scrolledwindow.c.page:17 C/scrolledwindow.py.page:16
+#: C/scrolledwindow.vala.page:16 C/separator.py.page:17
+#: C/set-up-gedit.js.page:14 C/signals-callbacks.py.page:23
+#: C/spinbutton.c.page:18 C/spinbutton.js.page:18 C/spinbutton.py.page:17
+#: C/spinbutton.vala.page:17 C/spinner.c.page:16 C/spinner.js.page:15
+#: C/spinner.py.page:16 C/spinner.vala.page:15 C/statusbar.c.page:19
+#: C/statusbar.js.page:15 C/statusbar.py.page:17 C/statusbar.vala.page:18
+#: C/strings.py.page:23 C/switch.c.page:15 C/switch.js.page:15
+#: C/switch.py.page:16 C/switch.vala.page:19 C/textview.c.page:15
+#: C/textview.js.page:19 C/textview.py.page:24 C/textview.vala.page:15
+#: C/togglebutton.c.page:19 C/togglebutton.js.page:15 C/togglebutton.py.page:16
+#: C/togglebutton.vala.page:18 C/toolbar.c.page:17 C/toolbar.js.page:15
+#: C/toolbar.py.page:17 C/toolbar.vala.page:16 C/toolbar_builder.py.page:18
+#: C/toolbar_builder.py.page:24 C/toolbar_builder.vala.page:17
+#: C/tooltip.py.page:17 C/treeview_advanced_liststore.py.page:16
+#: C/treeview_cellrenderertoggle.py.page:16
+#: C/treeview_simple_liststore.js.page:18
+#: C/treeview_simple_liststore.py.page:17
+#: C/treeview_simple_liststore.vala.page:17 C/treeview_treestore.py.page:17
+#: C/tutorial.py.page:17 C/weatherApp.js.page:14 C/weatherAppMain.js.page:13
+#: C/weatherAutotools.js.page:13 C/weatherGeonames.js.page:13
+#: C/window.c.page:15 C/window.js.page:15 C/window.py.page:17
+#: C/window.py.page:22 C/window.vala.page:15
msgid "2012"
msgstr "2012"
#. (itstool) path: info/desc
-#: C/02_welcome_to_the_grid.js.page:19
+#: C/02_welcome_to_the_grid.js.page:20
msgid "Learn how to lay out UI components, like Images and Labels."
msgstr ""
"Aprenda como posicionar componentes de interface de usuário, como Images e "
"Labels."
#. (itstool) path: page/title
-#: C/02_welcome_to_the_grid.js.page:22
+#: C/02_welcome_to_the_grid.js.page:23
msgid "2. Welcome to the Grid"
msgstr "2. Bem-vindo à Grid"
#. (itstool) path: synopsis/p
-#: C/02_welcome_to_the_grid.js.page:24
+#: C/02_welcome_to_the_grid.js.page:25
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 "
@@ -303,7 +123,7 @@ msgstr ""
"que você coloca widgets exatamente onde você os quer."
#. (itstool) path: note/p
-#: C/02_welcome_to_the_grid.js.page:25
+#: C/02_welcome_to_the_grid.js.page:26
msgid ""
"Have you taken <link xref=\"hellognome.js\">the first tutorial in this "
"series</link> already? You'll want to do so before continuing."
@@ -312,12 +132,12 @@ msgstr ""
"link>? Você vai querer vê-lo antes de continuar."
#. (itstool) path: section/title
-#: C/02_welcome_to_the_grid.js.page:31
+#: C/02_welcome_to_the_grid.js.page:32
msgid "Going native"
msgstr "Se tornando nativo"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:33
+#: C/02_welcome_to_the_grid.js.page:34
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 "
@@ -333,7 +153,7 @@ msgstr ""
"páginas na web."
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:34
+#: C/02_welcome_to_the_grid.js.page:35
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 "
@@ -343,31 +163,31 @@ msgid ""
msgstr ""
"Agora, nós vamos usar apenas widgets nativos do GNOME. Um widget é apenas "
"uma coisa, como uma caixa de seleção ou imagem, e o GNOME tem uma ampla "
-"variedade delas para se escolher. Nós chamamos elas de widgets \"nativas\" "
+"variedade delas para se escolher. Nós chamamos elas de widgets “nativas” "
"para diferenciá-las de coisas como o botão e cabeçalho nos aplicativos web "
"que nós escrevemos. Porque em vez de usarmos código web, essas vão ser 100 "
"porcento GNOME, usando o GTK+."
#. (itstool) path: note/p
-#: C/02_welcome_to_the_grid.js.page:35
+#: C/02_welcome_to_the_grid.js.page:36
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."
msgstr ""
-"GTK+ significa \"GIMP Toolkit\" (kit de ferramentas do GIMP). É como uma "
-"caixa de ferramentas de widgets que você pode acessar, enquanto construindo "
-"seus aplicativos. Ele foi escrito originalmente para <link href=\"http://www."
-"gimp.org/\">o GIMP</link>, que é um software livre de edição de imagens."
+"GTK+ significa “GIMP Toolkit” (kit de ferramentas do GIMP). É como uma caixa "
+"de ferramentas de widgets que você pode acessar, enquanto construindo seus "
+"aplicativos. Ele foi escrito originalmente para <link href=\"http://www.gimp."
+"org/\">o GIMP</link>, que é um software livre de edição de imagens."
#. (itstool) path: section/title
-#: C/02_welcome_to_the_grid.js.page:39
+#: C/02_welcome_to_the_grid.js.page:40
msgid "Setting up our application"
msgstr "Configurando seu aplicativo"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:41
+#: C/02_welcome_to_the_grid.js.page:42
msgid ""
"Before we dig out any widgets from the GTK+ toolbox, we first need to write "
"the basic boilerplate code that our application requires."
@@ -376,95 +196,87 @@ msgstr ""
"precisamos escrever o código básico padrão que nosso aplicativo requer."
#. (itstool) path: section/code
-#: C/02_welcome_to_the_grid.js.page:42 C/comboboxtext.js.page:30
-#: C/textview.js.page:38
+#: C/02_welcome_to_the_grid.js.page:43
#, no-wrap
msgid ""
"\n"
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
msgstr ""
"\n"
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:48
+#: C/02_welcome_to_the_grid.js.page:49
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 "
-"today is pretty basic, so these are all we need; Gtk for the widgets, and "
-"Lang so we can use Lang.bind to connect our application's activate and "
-"startup signals to the requisite functions."
+"today is pretty basic, so these are all we need; Gtk for the widgets, using "
+"the stable '3.0' API."
msgstr ""
"Essa parte sempre vai no começo do seu código. Dependendo do que você vai "
"fazer com ele, você pode querer declarar muitas importações aqui. O que nós "
"estamos escrevendo hoje é bem básico, de forma que isso é tudo que "
-"precisamos; o Gtk para os widgets, e Lang de forma que nós possamos usar o "
-"Lang.bind para conectar os sinais de ativação e inicialização de nosso "
-"aplicativo para requisitar funções."
+"precisamos; o Gtk para os widgets, usando a API '3.0' estável."
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:49
+#: C/02_welcome_to_the_grid.js.page:50
msgid "Speaking of which:"
msgstr "Falando nisso:"
#. (itstool) path: section/code
-#: C/02_welcome_to_the_grid.js.page:50
+#: C/02_welcome_to_the_grid.js.page:51
#, no-wrap
msgid ""
"\n"
-"const WelcomeToTheGrid = new Lang.Class({\n"
-" Name: 'Welcome to the Grid',\n"
-"\n"
+"class WelcomeToTheGrid {\n"
" // Create the application itself\n"
-" _init: function() {\n"
+" constructor() {\n"
" this.application = new Gtk.Application();\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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function() {\n"
+" _onStartup() {\n"
" this._buildUI ();\n"
-" },\n"
+" }\n"
msgstr ""
"\n"
-"const WelcomeToTheGrid = new Lang.Class({\n"
-" Name: 'Bem-vindo à Grid',\n"
-"\n"
+"class WelcomeToTheGrid {\n"
" // Cria o aplicativo em si\n"
-" _init: function() {\n"
+" constructor() {\n"
" this.application = new Gtk.Application();\n"
"\n"
-" // Conecta os sinais 'activate' e 'startup' para as funções de chamada\n"
-" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-" },\n"
+" // Conecta os sinais \"activate\" e \"startup\" às funções de chamada\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
-" // Função de chamada para o sinal 'activate' apresenta janelas quando ativa\n"
-" _onActivate: function() {\n"
+" // Função de chamada para o sinal \"activate\" apresenta janelas quando ativa\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
-" // Função de chamada para sinal 'startup' constrói a interface gráfica\n"
-" _onStartup: function() {\n"
+" // Função de chamada para o sinal \"startup\" constrói a interface gráfica\n"
+" _onStartup() {\n"
" this._buildUI ();\n"
-" },\n"
+" }\n"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:73
+#: C/02_welcome_to_the_grid.js.page:72
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 "
@@ -476,7 +288,7 @@ msgstr ""
"_window, e fala para nossa janela para se apresentar quando for necessário."
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:74
+#: C/02_welcome_to_the_grid.js.page:73
msgid ""
"This part, again, is pretty much copy-and-paste, but you always want to give "
"your application a unique name."
@@ -485,12 +297,12 @@ msgstr ""
"dar seu aplicativo um nome único."
#. (itstool) path: section/code
-#: C/02_welcome_to_the_grid.js.page:76
+#: C/02_welcome_to_the_grid.js.page:75
#, no-wrap
msgid ""
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow({\n"
@@ -501,7 +313,7 @@ msgid ""
msgstr ""
"\n"
" // Constrói a interface gráfica do aplicativo\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
"\n"
" // Cria a janela do aplicativo\n"
" this._window = new Gtk.ApplicationWindow({\n"
@@ -511,7 +323,7 @@ msgstr ""
" title: \"Bem-vindo à Grid\"});\n"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:87
+#: C/02_welcome_to_the_grid.js.page:86
msgid ""
"Finally, we start off the _buildUI function by creating a new "
"ApplicationWindow. We specify that it goes with this application, that it "
@@ -526,12 +338,12 @@ msgstr ""
"damos a ela um título, que vai aparecer no topo da janela."
#. (itstool) path: section/title
-#: C/02_welcome_to_the_grid.js.page:91
+#: C/02_welcome_to_the_grid.js.page:90
msgid "Reaching into the GTK+ toolbox"
msgstr "Alcançando a caixa de ferramentas do GTK+"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:92
+#: C/02_welcome_to_the_grid.js.page:91
msgid ""
"What widgets should we use? Well, let's say we want to write an application "
"that looks like this:"
@@ -539,8 +351,20 @@ msgstr ""
"Quais widgets nós deveríamos usar? Bem, digamos que nós queremos escrever um "
"aplicativo que se parece com este:"
+#. (itstool) path: section/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:93
+msgctxt "_"
+msgid ""
+"external ref='media/02_jsgrid_01.png' md5='3fdc22d361cf801f71557fdc76ae5b49'"
+msgstr ""
+"external ref='media/02_jsgrid_01.png' md5='3fdc22d361cf801f71557fdc76ae5b49'"
+
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:96
+#: C/02_welcome_to_the_grid.js.page:95
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:"
@@ -549,7 +373,7 @@ msgstr ""
"seguir. Vamos começar com a imagem:"
#. (itstool) path: section/code
-#: C/02_welcome_to_the_grid.js.page:97
+#: C/02_welcome_to_the_grid.js.page:96
#, no-wrap
msgid ""
"\n"
@@ -561,7 +385,7 @@ msgstr ""
" this._image = new Gtk.Image ({ file: \"gnome-image.png\" });\n"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:102
+#: C/02_welcome_to_the_grid.js.page:101
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."
@@ -574,7 +398,7 @@ msgstr ""
"que você está escrevendo."
#. (itstool) path: section/code
-#: C/02_welcome_to_the_grid.js.page:104
+#: C/02_welcome_to_the_grid.js.page:103
#, no-wrap
msgid ""
"\n"
@@ -586,7 +410,7 @@ msgstr ""
" this._label = new Gtk.Label ({ label: \"Bem-vindo ao GNOME, também!\" });\n"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:108
+#: C/02_welcome_to_the_grid.js.page:107
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 "
@@ -602,7 +426,7 @@ msgstr ""
"a sentença que desejamos embaixo da imagem."
#. (itstool) path: note/p
-#: C/02_welcome_to_the_grid.js.page:109
+#: C/02_welcome_to_the_grid.js.page:108
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 "
@@ -613,7 +437,7 @@ msgstr ""
"que é <em>consistente</em> para o widget de Label ter um também."
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:110
+#: C/02_welcome_to_the_grid.js.page:109
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 "
@@ -624,7 +448,7 @@ msgstr ""
"escreve-os. Isso porque em ApplicationWindow pode conter apenas um widget."
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:111
+#: C/02_welcome_to_the_grid.js.page:110
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 "
@@ -635,7 +459,7 @@ msgstr ""
"Grid."
#. (itstool) path: section/code
-#: C/02_welcome_to_the_grid.js.page:112
+#: C/02_welcome_to_the_grid.js.page:111
#, no-wrap
msgid ""
"\n"
@@ -647,7 +471,7 @@ msgstr ""
" this._grid = new Gtk.Grid ();\n"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:117
+#: C/02_welcome_to_the_grid.js.page:116
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 "
@@ -658,7 +482,7 @@ msgstr ""
"Primeiro, vamos anexar a Image e Label que nós fizemos para nossa Grid."
#. (itstool) path: section/code
-#: C/02_welcome_to_the_grid.js.page:118
+#: C/02_welcome_to_the_grid.js.page:117
#, no-wrap
msgid ""
"\n"
@@ -672,7 +496,7 @@ msgstr ""
" this._grid.attach (this._label, 0, 1, 1, 1);\n"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:124
+#: C/02_welcome_to_the_grid.js.page:123
msgid ""
"This code looks awfully complicated, but it's not. Here's what those numbers "
"mean:"
@@ -681,7 +505,7 @@ msgstr ""
"números significam:"
#. (itstool) path: item/p
-#: C/02_welcome_to_the_grid.js.page:126
+#: C/02_welcome_to_the_grid.js.page:125
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."
@@ -691,9 +515,9 @@ msgstr ""
"o mais esquerda possível."
#. (itstool) path: item/p
-#: C/02_welcome_to_the_grid.js.page:127
+#: C/02_welcome_to_the_grid.js.page:126
msgid ""
-"The <em>second</em> number is what top-to-botton position to put a given "
+"The <em>second</em> number is what top-to-bottom 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 ""
@@ -702,7 +526,7 @@ msgstr ""
"nós damos à Image um 0 e o Label um 1 aqui."
#. (itstool) path: item/p
-#: C/02_welcome_to_the_grid.js.page:128
+#: C/02_welcome_to_the_grid.js.page:127
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."
@@ -711,7 +535,7 @@ msgstr ""
"um widget deveria levar. Nós vamos ver como estes funcionam em um minuto."
#. (itstool) path: section/code
-#: C/02_welcome_to_the_grid.js.page:131
+#: C/02_welcome_to_the_grid.js.page:130
#, no-wrap
msgid ""
"\n"
@@ -722,7 +546,7 @@ msgid ""
" this._window.show_all();\n"
" }\n"
"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new WelcomeToTheGrid ();\n"
@@ -736,14 +560,14 @@ msgstr ""
" this._window.show_all();\n"
" }\n"
"\n"
-"});\n"
+"};\n"
"\n"
"// Executa o aplicativo\n"
"let app = new WelcomeToTheGrid ();\n"
"app.application.run (ARGV);\n"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:145
+#: C/02_welcome_to_the_grid.js.page:144
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 "
@@ -756,7 +580,7 @@ msgstr ""
"da classe do aplicativo e falamos para ele executar."
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:146
+#: C/02_welcome_to_the_grid.js.page:145
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 "
@@ -767,13 +591,25 @@ msgstr ""
"se encontra e digitar"
#. (itstool) path: section/screen
-#: C/02_welcome_to_the_grid.js.page:147
+#: C/02_welcome_to_the_grid.js.page:146
#, no-wrap
msgid " <output style=\"prompt\">$ </output>gjs welcome_to_the_grid.js "
msgstr " <output style=\"prompt\">$ </output>gjs welcome_to_the_grid.js "
+#. (itstool) path: section/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:148
+msgctxt "_"
+msgid ""
+"external ref='media/02_jsgrid_02.png' md5='07db86b0043ba5c3c24a90d7322bd81e'"
+msgstr ""
+"external ref='media/02_jsgrid_02.png' md5='07db86b0043ba5c3c24a90d7322bd81e'"
+
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:151
+#: C/02_welcome_to_the_grid.js.page:150
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 "
@@ -784,12 +620,12 @@ msgstr ""
"ler. O que nós podemos fazer quanto a isso?"
#. (itstool) path: section/title
-#: C/02_welcome_to_the_grid.js.page:155
+#: C/02_welcome_to_the_grid.js.page:154
msgid "Tweaking the Grid"
msgstr "Ajustando a Grid"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:157
+#: C/02_welcome_to_the_grid.js.page:156
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 "
@@ -800,7 +636,7 @@ msgstr ""
"para um elemento HTML usando estilo CSS embutido."
#. (itstool) path: section/code
-#: C/02_welcome_to_the_grid.js.page:158
+#: C/02_welcome_to_the_grid.js.page:157
#, no-wrap
msgid ""
"\n"
@@ -816,7 +652,7 @@ msgstr ""
" margin_top: 20 });\n"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:165
+#: C/02_welcome_to_the_grid.js.page:164
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. "
@@ -827,8 +663,20 @@ msgstr ""
"repetir o margin_top nele também. Do contrário, nós acabaremos com alguma "
"coisa como isso:"
+#. (itstool) path: section/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:165
+msgctxt "_"
+msgid ""
+"external ref='media/02_jsgrid_03.png' md5='817351e73c687d47253c56ed06b6629f'"
+msgstr ""
+"external ref='media/02_jsgrid_03.png' md5='817351e73c687d47253c56ed06b6629f'"
+
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:168
+#: C/02_welcome_to_the_grid.js.page:167
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:"
@@ -838,7 +686,7 @@ msgstr ""
"nós tentarmos isso:"
#. (itstool) path: section/code
-#: C/02_welcome_to_the_grid.js.page:169
+#: C/02_welcome_to_the_grid.js.page:168
#, no-wrap
msgid ""
"\n"
@@ -852,7 +700,7 @@ msgstr ""
" row_spacing: 20 });\n"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:175
+#: C/02_welcome_to_the_grid.js.page:174
msgid ""
"That makes it so that there are always 20 pixels of space in between each "
"horizontal row."
@@ -861,7 +709,7 @@ msgstr ""
"horizontal."
#. (itstool) path: note/p
-#: C/02_welcome_to_the_grid.js.page:176
+#: C/02_welcome_to_the_grid.js.page:175
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 "
@@ -872,12 +720,12 @@ msgstr ""
"você quiser!"
#. (itstool) path: section/title
-#: C/02_welcome_to_the_grid.js.page:180
+#: C/02_welcome_to_the_grid.js.page:179
msgid "Adding more widgets"
msgstr "Adicionando mais widgets"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:182
+#: C/02_welcome_to_the_grid.js.page:181
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 "
@@ -891,7 +739,7 @@ msgstr ""
"números no método para anexar na Grid entram:"
#. (itstool) path: section/code
-#: C/02_welcome_to_the_grid.js.page:183
+#: C/02_welcome_to_the_grid.js.page:182
#, no-wrap
msgid ""
"\n"
@@ -915,7 +763,7 @@ msgstr ""
" this._grid.attach (this._labelTwo, 1, 1, 1, 1);\n"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:194
+#: C/02_welcome_to_the_grid.js.page:193
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 "
@@ -931,7 +779,7 @@ msgstr ""
"direita do primeiro Label."
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:195
+#: C/02_welcome_to_the_grid.js.page:194
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? "
@@ -941,13 +789,25 @@ msgstr ""
"truque aqui. Aquele número é quantas colunas uma Image se estende, lembra-"
"se? Então, quando nós colocarmos isso junto, nós obteremos algo tipo isso:"
+#. (itstool) path: section/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:195
+msgctxt "_"
+msgid ""
+"external ref='media/02_jsgrid_04.png' md5='eeaead27cee2851877fc3cfe66177f07'"
+msgstr ""
+"external ref='media/02_jsgrid_04.png' md5='eeaead27cee2851877fc3cfe66177f07'"
+
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:198
+#: C/02_welcome_to_the_grid.js.page:197
msgid "There are two things you should take note of, here."
msgstr "Há duas coisas das quais você deveria tomar nota, aqui."
#. (itstool) path: item/p
-#: C/02_welcome_to_the_grid.js.page:200
+#: C/02_welcome_to_the_grid.js.page:199
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 "
@@ -959,7 +819,7 @@ msgstr ""
"no centro daquela caixa."
#. (itstool) path: item/p
-#: C/02_welcome_to_the_grid.js.page:201
+#: C/02_welcome_to_the_grid.js.page:200
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 "
@@ -974,7 +834,7 @@ msgstr ""
"GNOME não vê um motivo para mantê-los separados."
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:204
+#: C/02_welcome_to_the_grid.js.page:203
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:"
@@ -982,15 +842,27 @@ msgstr ""
"Há pelo menos três formas de resolvermos o último. Primeiro, nós podemos "
"definir um margin_left ou margin_right em um dos Labels:"
+#. (itstool) path: section/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:204
+msgctxt "_"
+msgid ""
+"external ref='media/02_jsgrid_05.png' md5='a3ad12f432d5977fc1f66302ad5b7498'"
+msgstr ""
+"external ref='media/02_jsgrid_05.png' md5='a3ad12f432d5977fc1f66302ad5b7498'"
+
#. (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."
+#: C/02_welcome_to_the_grid.js.page:206
+msgid "Second, we can set the Grid's column_homogeneous property to true."
msgstr ""
-"Segundo, nós podemos definir a propriedade column_homogenous da Grid para "
-"\"true\"."
+"Segundo, nós podemos definir a propriedade column_homogeneous da Grid para "
+"“true”."
#. (itstool) path: section/code
-#: C/02_welcome_to_the_grid.js.page:208
+#: C/02_welcome_to_the_grid.js.page:207
#, no-wrap
msgid ""
"\n"
@@ -1006,12 +878,24 @@ msgstr ""
" row_spacing: 20 });\n"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:215
+#: C/02_welcome_to_the_grid.js.page:214
msgid "That makes it look something like this:"
msgstr "Isso faz com que ela se pareça com algo como isso:"
+#. (itstool) path: section/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:215
+msgctxt "_"
+msgid ""
+"external ref='media/02_jsgrid_06.png' md5='450e48dbf6b8f5ce1c208e4812e1714b'"
+msgstr ""
+"external ref='media/02_jsgrid_06.png' md5='450e48dbf6b8f5ce1c208e4812e1714b'"
+
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:218
+#: C/02_welcome_to_the_grid.js.page:217
msgid ""
"And third, we can set the Grid's column_spacing property, the same way we "
"set its row_spacing."
@@ -1020,7 +904,7 @@ msgstr ""
"mesma forma que nós definimos sua row_spacing."
#. (itstool) path: section/code
-#: C/02_welcome_to_the_grid.js.page:219
+#: C/02_welcome_to_the_grid.js.page:218
#, no-wrap
msgid ""
"\n"
@@ -1036,17 +920,29 @@ msgstr ""
" row_spacing: 20 });\n"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:225
+#: C/02_welcome_to_the_grid.js.page:224
msgid "That makes it look like this:"
msgstr "Isso faz com que ela se pareça com isso:"
+#. (itstool) path: section/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:225
+msgctxt "_"
+msgid ""
+"external ref='media/02_jsgrid_07.png' md5='0b304d70728903fbb2601d55bf00fdb9'"
+msgstr ""
+"external ref='media/02_jsgrid_07.png' md5='0b304d70728903fbb2601d55bf00fdb9'"
+
#. (itstool) path: section/title
-#: C/02_welcome_to_the_grid.js.page:230
+#: C/02_welcome_to_the_grid.js.page:229
msgid "Using stock images"
msgstr "Usando imagens padrões"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:232
+#: C/02_welcome_to_the_grid.js.page:231
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. "
@@ -1058,7 +954,7 @@ msgstr ""
"comparado com como nós criamos um normal:"
#. (itstool) path: section/code
-#: C/02_welcome_to_the_grid.js.page:233
+#: C/02_welcome_to_the_grid.js.page:232
#, no-wrap
msgid ""
"\n"
@@ -1076,7 +972,7 @@ msgstr ""
" this._icon = new Gtk.Image ({ stock: 'gtk-about' });\n"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:240
+#: C/02_welcome_to_the_grid.js.page:239
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.)"
@@ -1085,7 +981,7 @@ msgstr ""
"vamos usar o segundo para este exemplo.)"
#. (itstool) path: section/code
-#: C/02_welcome_to_the_grid.js.page:241
+#: C/02_welcome_to_the_grid.js.page:240
#, no-wrap
msgid ""
"\n"
@@ -1101,12 +997,24 @@ msgstr ""
" this._grid.attach (this._label, 1, 1, 1, 1);\n"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:247
+#: C/02_welcome_to_the_grid.js.page:246
msgid "That gives us this, when we run it:"
msgstr "Isso nos dá isso, quando nós o executamos:"
+#. (itstool) path: section/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:247
+msgctxt "_"
+msgid ""
+"external ref='media/02_jsgrid_08.png' md5='78890beb47bd11360154b8ca4d50d1ff'"
+msgstr ""
+"external ref='media/02_jsgrid_08.png' md5='78890beb47bd11360154b8ca4d50d1ff'"
+
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:250
+#: C/02_welcome_to_the_grid.js.page:249
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=\"https://developer."
@@ -1115,16 +1023,16 @@ msgid ""
"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 ""
-"É assim que o ícone padrão \"Sobre\" se parece. Você pode ver uma lista de "
+"É assim que o ícone padrão “Sobre” se parece. Você pode ver uma lista de "
"todos os itens padrões começando com o gtk-about na <link href=\"https://"
"developer.gnome.org/gtk3/3.4/gtk3-Stock-Items.html#GTK-STOCK-ABOUT:CAPS"
"\">documentação de desenvolvimento do GNOME</link>. Foi escrita para "
"programadores de C, mas você não precisa saber C para usá-la; basta olha na "
-"parte nos sinais de citação, como \"gtk-about\" e copiar aquela parte para "
+"parte nos sinais de citação, como “gtk-about” e copiar aquela parte para "
"usar o ícone ao lado dele."
#. (itstool) path: note/p
-#: C/02_welcome_to_the_grid.js.page:251
+#: C/02_welcome_to_the_grid.js.page:250
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 "
@@ -1135,24 +1043,24 @@ msgstr ""
"Nós colocamos aspas simples em volta de 'gtk-about' aqui porque, ao "
"contrário de strings de texto que têm aspas duplas em volta, aquela parte "
"nunca precisará ser traduzida para outro idioma. Na verdade, se ela "
-"<em>fosse</em> traduzida, ela quebraria o ícone porque seu nome ainda é "
-"\"gtk-about\" independentemente do seu idioma."
+"<em>fosse</em> traduzida, ela quebraria o ícone porque seu nome ainda é “gtk-"
+"about” independentemente do seu idioma."
#. (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
+#: C/02_welcome_to_the_grid.js.page:255 C/03_getting_the_signal.js.page:336
+#: C/hellognome.js.page:191
msgid "What's next?"
msgstr "O que vem em seguida?"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:257
+#: C/02_welcome_to_the_grid.js.page:256
msgid ""
"Before we go on to the next tutorial, let's try something a little different:"
msgstr ""
"Antes de irmos para o próximo tutorial, vamos tentar algo um pouco diferente:"
#. (itstool) path: section/code
-#: C/02_welcome_to_the_grid.js.page:258
+#: C/02_welcome_to_the_grid.js.page:257
#, no-wrap
msgid ""
"\n"
@@ -1176,7 +1084,7 @@ msgstr ""
" this._grid.attach (this._button, 1, 1, 1, 1);\n"
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:269
+#: C/02_welcome_to_the_grid.js.page:268
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 "
@@ -1191,7 +1099,7 @@ msgstr ""
"tutorial</link>."
#. (itstool) path: section/p
-#: C/02_welcome_to_the_grid.js.page:270
+#: C/02_welcome_to_the_grid.js.page:269
msgid ""
"If you like, feel free to spend some time experimenting with Grids, Labels, "
"and Images, including stock images."
@@ -1200,7 +1108,7 @@ msgstr ""
"Grids, Labels e Images, incluindo imagens padrões."
#. (itstool) path: note/p
-#: C/02_welcome_to_the_grid.js.page:271
+#: C/02_welcome_to_the_grid.js.page:270
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 "
@@ -1213,50 +1121,47 @@ msgstr ""
"\"radiobutton.js\">RadioButton</link>, se você quiser ver como ele é feito."
#. (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
+#: C/02_welcome_to_the_grid.js.page:274 C/checkbutton.js.page:130
+#: C/comboboxtext.js.page:171 C/combobox.js.page:228 C/hellognome.js.page:198
+#: C/messagedialog.js.page:184 C/radiobutton.js.page:269 C/scale.js.page:203
+#: C/spinbutton.js.page:194 C/statusbar.js.page:216 C/switch.js.page:259
+#: C/textview.js.page:243 C/togglebutton.js.page:148
+#: C/treeview_simple_liststore.js.page:267
msgid "Complete code sample"
msgstr "Amostra de código completo"
#. (itstool) path: section/code
-#: C/02_welcome_to_the_grid.js.page:276
+#: C/02_welcome_to_the_grid.js.page:275
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const WelcomeToTheGrid = new Lang.Class({\n"
-" Name: 'Welcome to the Grid',\n"
+"class WelcomeToTheGrid {\n"
"\n"
" // Create the application itself\n"
-" _init: function() {\n"
+" constructor() {\n"
" this.application = new Gtk.Application();\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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function() {\n"
+" _onStartup() {\n"
" this._buildUI ();\n"
-" },\n"
-"\n"
-"\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow({\n"
@@ -1307,7 +1212,7 @@ msgid ""
" this._window.show_all();\n"
" }\n"
"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new WelcomeToTheGrid ();\n"
@@ -1315,35 +1220,32 @@ msgid ""
msgstr ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const WelcomeToTheGrid = new Lang.Class({\n"
-" Name: 'Bem-vindo à Grid',\n"
+"class WelcomeToTheGrid {\n"
"\n"
" // Cria o aplicativo em si\n"
-" _init: function() {\n"
+" constructor() {\n"
" this.application = new Gtk.Application();\n"
"\n"
" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
-" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-" },\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Função de chamada para o sinal 'activate' apresenta janelas quando ativo\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
-" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
-" _onStartup: function() {\n"
+" // Função de chamada para o sinal 'startup' constrói a interface de usuário\n"
+" _onStartup() {\n"
" this._buildUI ();\n"
-" },\n"
-"\n"
+" }\n"
"\n"
-"\n"
-" // Constrói a interface gráfica do aplicativo\n"
-" _buildUI: function() {\n"
+" // Constrói a interface de usuário do aplicativo\n"
+" _buildUI() {\n"
"\n"
" // Cria a janela do aplicativo\n"
" this._window = new Gtk.ApplicationWindow({\n"
@@ -1366,16 +1268,16 @@ msgstr ""
"\n"
" // Cria um rótulo\n"
" this._label = new Gtk.Label ({\n"
-" label: \"Bem-vindo ao GNOME, também!\",\n"
+" label: \"Welcome to GNOME, too!\",\n"
" /* margin_top: 20 */ });\n"
"\n"
" /* Cria um segundo rótulo\n"
" this._labelTwo = new Gtk.Label ({\n"
-" label: \"O bolo é uma torta.\" }); */\n"
+" label: \"The cake is a pie.\" }); */\n"
"\n"
" /* Cria um botão\n"
" this._button = new Gtk.Button ({\n"
-" label: \"Bem-vindo ao GNOME, também!\"}); */\n"
+" label: \"Welcome to GNOME, too!\"}); */\n"
"\n"
" // Anexa as imagens e botão à grade\n"
" this._grid.attach (this._image, 0, 0, 2, 1);\n"
@@ -1394,72 +1296,24 @@ msgstr ""
" this._window.show_all();\n"
" }\n"
"\n"
-"});\n"
+"};\n"
"\n"
"// Executa o aplicativo\n"
"let app = new WelcomeToTheGrid ();\n"
"app.application.run (ARGV);\n"
-#. (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:36 C/03_getting_the_signal.js.page:350
-msgctxt "_"
-msgid ""
-"external ref='media/03_jssignal_01.png' "
-"md5='8d6ecab185f4af4534cc255d62b58b8e'"
-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/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'"
-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/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'"
-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/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'"
-msgstr ""
-
#. (itstool) path: info/desc
-#: C/03_getting_the_signal.js.page:20
+#: C/03_getting_the_signal.js.page:21
msgid "Create Buttons and other widgets that do things when you click on them."
msgstr "Crie Buttons e outros widgets que fazem coisas quando clicados."
#. (itstool) path: page/title
-#: C/03_getting_the_signal.js.page:23
+#: C/03_getting_the_signal.js.page:24
msgid "3. Getting the Signal"
msgstr "3. Obtendo o Signal"
#. (itstool) path: synopsis/p
-#: C/03_getting_the_signal.js.page:25
+#: C/03_getting_the_signal.js.page:26
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 "
@@ -1473,12 +1327,12 @@ msgstr ""
"clicadas ou recebem interação."
#. (itstool) path: section/title
-#: C/03_getting_the_signal.js.page:31
+#: C/03_getting_the_signal.js.page:32
msgid "A basic application"
msgstr "Um aplicativo básico"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:32
+#: C/03_getting_the_signal.js.page:33
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 "
@@ -1487,29 +1341,43 @@ msgid ""
msgstr ""
"No GNOME, widgets com os quais você pode interagir, como Buttons e Switches, "
"enviam sinais quando são clicados ou ativados. Um Button, por exemplo, envia "
-"o sinal de \"clicado\" quando alguém clica nele. Quando isto acontece, o "
-"GNOME procura a parte do código que diz o que deve ser feito."
+"o sinal de “clicado” quando alguém clica nele. Quando isto acontece, o GNOME "
+"procura a parte do código que diz o que deve ser feito."
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:33
+#: C/03_getting_the_signal.js.page:34
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 "
"signal. So whenever it gives off that signal, the function connected to that "
"signal is run."
msgstr ""
-"Como nós vamos escrever esse código? Conectando aquele sinal de \"clicado\" "
-"do Button a uma função de chamada, que é uma função que você escreve apenas "
+"Como nós vamos escrever esse código? Conectando aquele sinal de “clicado” do "
+"Button a uma função de chamada, que é uma função que você escreve apenas "
"para lidar com esse sinal. Então, quando você aplica aquele sinal, a função "
"conectada a ele será executada."
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:34
+#: C/03_getting_the_signal.js.page:35
msgid "Here is an extremely basic example:"
msgstr "Aqui está um exemplo extremamente básico:"
+#. (itstool) path: section/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:37 C/03_getting_the_signal.js.page:349
+msgctxt "_"
+msgid ""
+"external ref='media/03_jssignal_01.png' "
+"md5='8d6ecab185f4af4534cc255d62b58b8e'"
+msgstr ""
+"external ref='media/03_jssignal_01.png' "
+"md5='8d6ecab185f4af4534cc255d62b58b8e'"
+
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:38
+#: C/03_getting_the_signal.js.page:39
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 "
@@ -1522,7 +1390,7 @@ msgstr ""
"atualizado."
#. (itstool) path: note/p
-#: C/03_getting_the_signal.js.page:39
+#: C/03_getting_the_signal.js.page:40
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 "
@@ -1535,7 +1403,7 @@ msgstr ""
"preparar alguns de verdade, se quiser."
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:40
+#: C/03_getting_the_signal.js.page:41
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 "
@@ -1549,93 +1417,89 @@ msgstr ""
"variável global bem perto do começo, para manter o número de cookies."
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:41
+#: C/03_getting_the_signal.js.page:42
#, no-wrap
msgid ""
"\n"
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
"// We start out with 0 cookies\n"
"var cookies = 0;\n"
"\n"
-"const GettingTheSignal = new Lang.Class({\n"
-" Name: 'Getting the Signal',\n"
-"\n"
+"class GettingTheSignal {\n"
" // Create the application itself\n"
-" _init: function() {\n"
+" constructor() {\n"
" this.application = new Gtk.Application();\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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents window when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function() {\n"
+" _onStartup() {\n"
" this._buildUI ();\n"
-" },\n"
+" }\n"
msgstr ""
"\n"
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
"// Nós começamos com 0 cookies\n"
"var cookies = 0;\n"
"\n"
-"const GettingTheSignal = new Lang.Class({\n"
-" Name: 'Obtendo o Signal',\n"
-"\n"
+"class GettingTheSignal {\n"
" // Cria o aplicativo em si\n"
-" _init: function() {\n"
+" constructor() {\n"
" this.application = new Gtk.Application();\n"
"\n"
-" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
-" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-" },\n"
+" // Conecta os sinais \"activate\" e \"startup\" às funções de chamada\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
-" // Função de chamada para o sinal 'activate' apresenta uma janela quando ativa\n"
-" _onActivate: function() {\n"
+" // Função de chamada para o sinal \"activate\" apresenta uma janela quando ativa\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
-" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
-" _onStartup: function() {\n"
+" // Função de chamada para o sinal \"startup\" constrói a UI\n"
+" _onStartup() {\n"
" this._buildUI ();\n"
-" },\n"
+" }\n"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:72
+#: C/03_getting_the_signal.js.page:71
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."
+"Take a look at the part that uses our application's connect method and 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."
msgstr ""
"Dê uma olhada na parte que usa o método de conexão do nosso aplicativo e "
-"Lang.bind, para conectar seus sinais de ativação e inicialização à função "
-"que apresenta a janela e constrói a interface gráfica. Nós vamos fazer a "
-"mesma coisa com o nosso Button quando nós chegarmos nele, porém nós vamos "
-"conectar o seu sinal de \"clicado\"."
+"bind, para conectar seus sinais de ativação e inicialização à função que "
+"apresenta a janela e constrói a interface gráfica. Nós vamos fazer a mesma "
+"coisa com o nosso Button quando nós chegarmos nele, porém nós vamos conectar "
+"o seu sinal de “clicado”."
#. (itstool) path: section/title
-#: C/03_getting_the_signal.js.page:76
+#: C/03_getting_the_signal.js.page:75
msgid "Click the button"
msgstr "Clicando no botão"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:78
+#: C/03_getting_the_signal.js.page:77
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."
@@ -1645,24 +1509,24 @@ msgstr ""
"iniciado."
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:79
+#: C/03_getting_the_signal.js.page:78
#, no-wrap
msgid ""
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
msgstr ""
"\n"
-" // Compila a interface gráfica do aplicativo\n"
-" _buildUI: function() {\n"
+" // Compila a interface de usuário do aplicativo\n"
+" _buildUI() {\n"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:84
+#: C/03_getting_the_signal.js.page:83
msgid "First, we create the window itself:"
msgstr "Primeiro, nós criamos a janela em si:"
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:85
+#: C/03_getting_the_signal.js.page:84
#, no-wrap
msgid ""
"\n"
@@ -1684,7 +1548,7 @@ msgstr ""
" title: \"Clique no botão para obter um cookie!\"});\n"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:94
+#: C/03_getting_the_signal.js.page:93
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."
@@ -1694,7 +1558,7 @@ msgstr ""
"ApplicationWindow será, em pixels."
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:95
+#: C/03_getting_the_signal.js.page:94
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."
@@ -1704,7 +1568,7 @@ msgstr ""
"Label."
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:96
+#: C/03_getting_the_signal.js.page:95
#, no-wrap
msgid ""
"\n"
@@ -1718,7 +1582,7 @@ msgstr ""
" label: \"Número de cookies: \" + cookies });\n"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:102
+#: C/03_getting_the_signal.js.page:101
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 "
@@ -1727,11 +1591,11 @@ msgid ""
msgstr ""
"Agora nós vamos criar o Button. Nós defimos a propriedade do rótulo para "
"mostrar o texto que nós queremos no Button e nós conectamos seu sinal de "
-"\"clicado\" a uma função chamada _getACookie, a qual nós vamos escrever após "
+"“clicado” a uma função chamada _getACookie, a qual nós vamos escrever após "
"nós terminarmos a construção da interface gráfica do nosso aplicativo."
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:103
+#: C/03_getting_the_signal.js.page:102
#, no-wrap
msgid ""
"\n"
@@ -1739,17 +1603,17 @@ msgid ""
" this._cookieButton = new Gtk.Button ({ label: \"Get a cookie\" });\n"
"\n"
" // Connect the cookie button to the function that handles clicking it\n"
-" this._cookieButton.connect ('clicked', Lang.bind (this, this._getACookie));\n"
+" this._cookieButton.connect ('clicked', this._getACookie.bind(this));\n"
msgstr ""
"\n"
" // Cria o botão do cookie\n"
" this._cookieButton = new Gtk.Button ({ label: \"Obter um cookie\" });\n"
"\n"
" // Conecta o botão do cookie à função que lida o clique nele\n"
-" this._cookieButton.connect ('clicked', Lang.bind (this, this._getACookie));\n"
+" this._cookieButton.connect ('clicked', this._getACookie.bind(this));\n"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:110
+#: C/03_getting_the_signal.js.page:109
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 "
@@ -1767,7 +1631,7 @@ msgstr ""
"uma forma que vai colocá-lo na parte inferior."
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:111
+#: C/03_getting_the_signal.js.page:110
#, no-wrap
msgid ""
"\n"
@@ -1787,7 +1651,7 @@ msgid ""
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
"\n"
-" },\n"
+" }\n"
msgstr ""
"\n"
" // Cria uma grade para organizar tudo dentro\n"
@@ -1806,10 +1670,10 @@ msgstr ""
" // Mostra a janela e todos os widgets filhos\n"
" this._window.show_all();\n"
"\n"
-" },\n"
+" }\n"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:130
+#: C/03_getting_the_signal.js.page:129
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 "
@@ -1817,13 +1681,13 @@ msgid ""
"the new number of cookies. We do this using the Label's set_label method."
msgstr ""
"Agora, nós escrevemos a função _getACookie. Quando nosso Button envia seu "
-"sinal de \"clicado\", o código nesta função vai ser executado. Neste caso, "
+"sinal de “clicado”, o código nesta função vai ser executado. Neste caso, "
"tudo que isso faz é aumentar o número de cookies em 1 e atualizar o Label "
"para mostrar o novo número de cookies. Nós fazemos isso usando o método "
"set_label do Label."
#. (itstool) path: note/p
-#: C/03_getting_the_signal.js.page:131
+#: C/03_getting_the_signal.js.page:130
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 "
@@ -1838,7 +1702,7 @@ msgstr ""
"widget funciona, você também vai saber como outros como ele funcionam."
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:132
+#: C/03_getting_the_signal.js.page:131
#, no-wrap
msgid ""
"\n"
@@ -1850,7 +1714,7 @@ msgid ""
"\n"
" }\n"
"\n"
-"});\n"
+"};\n"
msgstr ""
"\n"
" _getACookie: function() {\n"
@@ -1861,10 +1725,10 @@ msgstr ""
"\n"
" }\n"
"\n"
-"});\n"
+"};\n"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:144
+#: C/03_getting_the_signal.js.page:143
msgid ""
"Finally, we run the application, using the same kind of code as in our last "
"tutorial."
@@ -1873,7 +1737,7 @@ msgstr ""
"nosso último tutorial."
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:145
+#: C/03_getting_the_signal.js.page:144
#, no-wrap
msgid ""
"\n"
@@ -1887,28 +1751,49 @@ msgstr ""
"app.application.run (ARGV);\n"
#. (itstool) path: section/title
-#: C/03_getting_the_signal.js.page:153
+#: C/03_getting_the_signal.js.page:152
msgid "Flip the switch"
-msgstr ""
+msgstr "Ligando o switch"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:154
+#: C/03_getting_the_signal.js.page:153
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."
msgstr ""
+"Os botões não são os únicos widgets de entrada na nossa caixa de ferramentas "
+"do GTK+. Também podemos usar <em>switches</em> (interruptores), como o deste "
+"exemplo. Os switches não têm uma propriedade de rótulo, por isso, temos que "
+"criar um rótulo separado que diga o que fazer para ir ao lado dele."
+
+#. (itstool) path: section/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:155 C/03_getting_the_signal.js.page:355
+msgctxt "_"
+msgid ""
+"external ref='media/03_jssignal_02.png' "
+"md5='ba941390fbafc4a0f653c8f70bca92c0'"
+msgstr ""
+"external ref='media/03_jssignal_02.png' "
+"md5='ba941390fbafc4a0f653c8f70bca92c0'"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:158
+#: C/03_getting_the_signal.js.page:157
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 ""
+"Um Switch tem duas posições, desligado <em>(Off)</em> e ligado <em>(On)</"
+"em>. Quando um Switch está ativado, o texto e a cor do plano de fundo mudam, "
+"para que você possa identificar em que posição está."
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:160
+#: C/03_getting_the_signal.js.page:159
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. "
@@ -1916,64 +1801,87 @@ msgid ""
"Switch is turned on, you can get cookies by clicking the \"Get a cookie\" "
"Button. If it's turned off, clicking the Button won't do anything."
msgstr ""
+"Você pode ter visto Switches como esses no menu de acessibilidade do GNOME, "
+"que permite ativar e desativar recursos como texto grande e o teclado na "
+"tela. Neste caso, o Switch controla nosso dispensador de cookie imaginário. "
+"Se o Comutador estiver ativado, você poderá obter cookies clicando no botão "
+"“Obter um cookie”. Se estiver desligado, clicar no botão não fará nada."
#. (itstool) path: note/p
-#: C/03_getting_the_signal.js.page:161
+#: C/03_getting_the_signal.js.page:160
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 ""
+"Você pode acessar o menu de acessibilidade clicando no contorno de um ser "
+"humano, próximo ao seu nome no canto superior direito da tela."
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:162
+#: C/03_getting_the_signal.js.page:161
msgid "Here's how we create the Switch:"
-msgstr ""
+msgstr "Veja como nós criamos o Switch:"
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:163
+#: C/03_getting_the_signal.js.page:162
#, no-wrap
msgid ""
"\n"
" // Create the switch that controls whether or not you can win\n"
" this._cookieSwitch = new Gtk.Switch ();\n"
msgstr ""
+"\n"
+" // Cria um switch que controla se você pode ou não ganhar\n"
+" this._cookieSwitch = new Gtk.Switch ();\n"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:168
+#: C/03_getting_the_signal.js.page:167
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 "
"Switch is turned on. If we wanted to make something happen as soon as you "
"flip the Switch, though, we would connect its notify::active signal, like so:"
msgstr ""
+"Na verdade, não precisamos conectar o Switch a nada. Tudo o que precisamos "
+"fazer é escrever uma declaração if em nossa função _getACookie, para "
+"verificar se o Switch está ativado. Se quiséssemos fazer algo acontecer "
+"assim que você ligasse o Switch, nós conectaríamos o sinal notify::active, "
+"assim:"
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:169
+#: C/03_getting_the_signal.js.page:168
#, no-wrap
msgid ""
"\n"
" // Connect the switch to the function that handles it\n"
-" this._cookieSwitch.connect ('notify::active', Lang.bind (this, this._cookieDispenser));\n"
+" this._cookieSwitch.connect ('notify::active', this._cookieDispenser.bind(this));\n"
msgstr ""
+"\n"
+" // Conecta o switch à função que lida com ele\n"
+" this._cookieSwitch.connect ('notify::active', this._cookieDispenser.bind(this));\n"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:174
+#: C/03_getting_the_signal.js.page:173
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 ""
+"Um Switch está definido para a posição desligada por padrão. Se quiséssemos "
+"que o Switch inciasse ligado, definiríamos o valor de sua propriedade ativa "
+"como “true” quando o criamos."
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:175
+#: C/03_getting_the_signal.js.page:174
#, no-wrap
msgid ""
"\n"
" this._cookieSwitch = new Gtk.Switch ({ active: true });\n"
msgstr ""
+"\n"
+" this._cookieSwitch = new Gtk.Switch ({ active: true });\n"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:179
+#: C/03_getting_the_signal.js.page:178
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 "
@@ -1981,9 +1889,14 @@ msgid ""
"larger Grid that holds all the widgets inside it. Here's what the code looks "
"like to create all that:"
msgstr ""
+"Vamos apenas criá-lo normalmente, e então criar o Label que o acompanha. "
+"Queremos que o Switch e o Label sejam mantidos próximos uns dos outros, "
+"então criaremos um Grid apenas para eles, e então colocaremos esse Grid em "
+"nosso Grid maior que contém todos os widgets dentro dele. Veja como é o "
+"código para criar tudo isso:"
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:180
+#: C/03_getting_the_signal.js.page:179
#, no-wrap
msgid ""
"\n"
@@ -2003,14 +1916,30 @@ msgid ""
" this._switchGrid.attach (this._switchLabel, 0, 0, 1, 1);\n"
" this._switchGrid.attach (this._cookieSwitch, 1, 0, 1, 1);\n"
msgstr ""
+"\n"
+" // Cria o switch que controla se você pode ou não ganhar\n"
+" this._cookieSwitch = new Gtk.Switch ();\n"
+"\n"
+" // Cria o rótulo para ir com o switch\n"
+" this._switchLabel = new Gtk.Label ({\n"
+" label: \"Cookie dispenser\" });\n"
+"\n"
+" // Cria uma grade para o switch e seu rótulo\n"
+" this._switchGrid = new Gtk.Grid ({\n"
+" halign: Gtk.Align.CENTER,\n"
+" valign: Gtk.Align.CENTER });\n"
+"\n"
+" // Coloca seu switch e seu rótulo dentro daquela grade\n"
+" this._switchGrid.attach (this._switchLabel, 0, 0, 1, 1);\n"
+" this._switchGrid.attach (this._cookieSwitch, 1, 0, 1, 1);\n"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:198
+#: C/03_getting_the_signal.js.page:197
msgid "And now we arrange everything in the larger Grid like so."
-msgstr ""
+msgstr "E agora nós organizamos tudo na Grad maior assim."
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:199
+#: C/03_getting_the_signal.js.page:198
#, no-wrap
msgid ""
"\n"
@@ -2019,29 +1948,40 @@ msgid ""
" this._grid.attach (this._switchGrid, 0, 1, 1, 1);\n"
" this._grid.attach (this._cookieLabel, 0, 2, 1, 1);\n"
msgstr ""
+"\n"
+" // Coloca tudo dentro da grade\n"
+" this._grid.attach (this._cookieButton, 0, 0, 1, 1);\n"
+" this._grid.attach (this._switchGrid, 0, 1, 1, 1);\n"
+" this._grid.attach (this._cookieLabel, 0, 2, 1, 1);\n"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:206
+#: C/03_getting_the_signal.js.page:205
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."
msgstr ""
+"Agora, alteramos a função _getACookie para verificar se o fornecedor de "
+"cookie está ativado. Fazemos isso usando o método get_active do Switch. "
+"Retorna “true” se o Switch estiver ligado e “false” se o Switch estiver "
+"desligado."
#. (itstool) path: note/p
-#: C/03_getting_the_signal.js.page:207
+#: C/03_getting_the_signal.js.page:206
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 ""
+"Quando um método é usado em uma instrução if como essa, o código dentro da "
+"instrução if é executado se o método retornar “true”."
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:208
+#: C/03_getting_the_signal.js.page:207
#, no-wrap
msgid ""
"\n"
-" _getACookie: function() {\n"
+" _getACookie() {\n"
"\n"
" // Is the cookie dispenser turned on?\n"
" if (this._cookieSwitch.get_active()) {\n"
@@ -2054,14 +1994,27 @@ msgid ""
"\n"
" }\n"
msgstr ""
+"\n"
+" _getACookie() {\n"
+"\n"
+" // O fornecedor de cookie está ligado?\n"
+" if (this._cookieSwitch.get_active()) {\n"
+"\n"
+" // Aumenta o número de cookies em 1 e atualiza o rótulo\n"
+" cookies++;\n"
+" this._cookieLabel.set_label (\"Número de cookies: \" + cookies);\n"
+"\n"
+" }\n"
+"\n"
+" }\n"
#. (itstool) path: section/title
-#: C/03_getting_the_signal.js.page:226
+#: C/03_getting_the_signal.js.page:225
msgid "Tuning the radio"
-msgstr ""
+msgstr "Sintonizando o rádio"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:228
+#: C/03_getting_the_signal.js.page:227
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 "
@@ -2070,18 +2023,43 @@ msgid ""
"to one station at a time, so whenever you pressed one button in, another "
"would pop back out."
msgstr ""
+"Outro tipo de widget de entrada que podemos usar é chamado de RadioButton, "
+"normalmente conhecido em português como “botão de opção”. Você os cria em "
+"grupos e, em seguida, apenas um RadioButton em um grupo pode ser selecionado "
+"por vez. Eles são chamados de RadioButtons porque funcionam como o botão de "
+"pré-seleção de canais em rádios de carros antigos. O rádio só podia ser "
+"sintonizado em uma estação de cada vez, então, sempre que você pressionasse "
+"um botão, outro retornaria para o estado de não pressionado."
+
+#. (itstool) path: section/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:229 C/03_getting_the_signal.js.page:361
+msgctxt "_"
+msgid ""
+"external ref='media/03_jssignal_03.png' "
+"md5='49ecf251b0bf57543c8d79a77b6f306d'"
+msgstr ""
+"external ref='media/03_jssignal_03.png' "
+"md5='49ecf251b0bf57543c8d79a77b6f306d'"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:232
+#: C/03_getting_the_signal.js.page:231
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 "
"border_width is the number of pixels between any widget and the edge of the "
"window."
msgstr ""
+"Primeiramente, vamos alterar o nome do nosso ApplicationWindow e aumentar "
+"sua propriedade border_width, para que nossos widgets não sejam muito "
+"compactados. A border_width é o número de pixels entre qualquer widget e a "
+"borda da janela."
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:233
+#: C/03_getting_the_signal.js.page:232
#, no-wrap
msgid ""
"\n"
@@ -2094,76 +2072,110 @@ msgid ""
" border_width: 20,\n"
" title: \"Choose the one that says 'cookie'!\"});\n"
msgstr ""
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow({\n"
+" application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" default_height: 200,\n"
+" default_width: 400,\n"
+" border_width: 20,\n"
+" title: \"Escolha o com nome 'cookie'!\"});\n"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:244
+#: C/03_getting_the_signal.js.page:243
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 ""
+"Depois disso, criamos os RadioButtons. Lembre-se de como eles são criados em "
+"grupos? A maneira como fazemos isso, é definir cada nova propriedade de "
+"grupo RadioButton para o nome de outro RadioButton."
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:245
+#: C/03_getting_the_signal.js.page:244
#, no-wrap
msgid ""
"\n"
" // Create the radio buttons\n"
-" this._cookieButton = new Gtk.RadioButton ({ label: \"Cookie\" });\n"
+" this._cookieRadio = new Gtk.RadioButton ({ label: \"Cookie\" });\n"
" this._notCookieOne = new Gtk.RadioButton ({ label: \"Not cookie\",\n"
-" group: this._cookieButton });\n"
+" group: this._cookieRadio });\n"
" this._notCookieTwo = new Gtk.RadioButton ({ label: \"Not cookie\",\n"
-" group: this._cookieButton });\n"
+" group: this._cookieRadio });\n"
msgstr ""
+"\n"
+" // Cria os botões de opção\n"
+" this._cookieRadio = new Gtk.RadioButton ({ label: \"Cookie\" });\n"
+" this._notCookieOne = new Gtk.RadioButton ({ label: \"Não um cookie\",\n"
+" group: this._cookieRadio });\n"
+" this._notCookieTwo = new Gtk.RadioButton ({ label: \"Não um cookie\",\n"
+" group: this._cookieRadio });\n"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:254
+#: C/03_getting_the_signal.js.page:253
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 ""
+"Em seguida, criamos uma grade para os RadioButtons. Lembre-se, não "
+"precisamos organizar as coisas em Grids na mesma ordem em que as criamos."
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:255
+#: C/03_getting_the_signal.js.page:254
#, no-wrap
msgid ""
"\n"
" // Arrange the radio buttons in their own grid\n"
" this._radioGrid = new Gtk.Grid ();\n"
" this._radioGrid.attach (this._notCookieOne, 0, 0, 1, 1);\n"
-" this._radioGrid.attach (this._cookieButton, 0, 1, 1, 1);\n"
+" this._radioGrid.attach (this._cookieRadio, 0, 1, 1, 1);\n"
" this._radioGrid.attach (this._notCookieTwo, 0, 2, 1, 1);\n"
msgstr ""
+"\n"
+" // Ordenamos os botões de opção na sua própria grade\n"
+" this._radioGrid = new Gtk.Grid ();\n"
+" this._radioGrid.attach (this._notCookieOne, 0, 0, 1, 1);\n"
+" this._radioGrid.attach (this._cookieRadio, 0, 1, 1, 1);\n"
+" this._radioGrid.attach (this._notCookieTwo, 0, 2, 1, 1);\n"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:263
+#: C/03_getting_the_signal.js.page:262
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 ""
+"Normalmente, o RadioButton selecionado por padrão é aquele que é o nome do "
+"grupo. Queremos que o primeiro botão “Não um cookie” esteja selecionado por "
+"padrão, motivo pelo qual usamos o método set_active."
#. (itstool) path: note/p
-#: C/03_getting_the_signal.js.page:264
+#: C/03_getting_the_signal.js.page:263
msgid "We could also set its active property to true when we create it."
msgstr ""
+"Poderíamos também definir sua propriedade ativa como “true” quando a criamos."
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:265
+#: C/03_getting_the_signal.js.page:264
#, no-wrap
msgid ""
"\n"
" // Set the button that will be at the top to be active by default\n"
" this._notCookieOne.set_active (true);\n"
msgstr ""
+"\n"
+" // Define o botão que estará no topo como estando ativo por padrão\n"
+" this._notCookieOne.set_active (true);\n"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:270
+#: C/03_getting_the_signal.js.page:269
msgid "Now we arrange everything in our main Grid like usual ..."
-msgstr ""
+msgstr "Agora nós organizamos tudo em nossa Grid principal como de costume …"
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:271
+#: C/03_getting_the_signal.js.page:270
#, no-wrap
msgid ""
"\n"
@@ -2172,23 +2184,30 @@ msgid ""
" this._grid.attach (this._cookieButton, 0, 1, 1, 1);\n"
" this._grid.attach (this._cookieLabel, 0, 2, 1, 1);\n"
msgstr ""
+"\n"
+" // Coloca tudo dentro da grade\n"
+" this._grid.attach (this._radioGrid, 0, 0, 1, 1);\n"
+" this._grid.attach (this._cookieButton, 0, 1, 1, 1);\n"
+" this._grid.attach (this._cookieLabel, 0, 2, 1, 1);\n"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:278
+#: C/03_getting_the_signal.js.page:277
msgid ""
"And then we change our _getACookie function to test to see if the cookie "
"button is the one that's selected."
msgstr ""
+"Em seguida, alteramos nossa função _getACookie para testar se o botão do "
+"cookie é o selecionado."
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:279
+#: C/03_getting_the_signal.js.page:278
#, no-wrap
msgid ""
"\n"
-" _getACookie: function() {\n"
+" _getACookie() {\n"
"\n"
" // Did you select \"cookie\" instead of \"not cookie\"?\n"
-" if (this._cookieButton.get_active()) {\n"
+" if (this._cookieRadio.get_active()) {\n"
"\n"
" // Increase the number of cookies by 1 and update the label\n"
" cookies++;\n"
@@ -2198,48 +2217,83 @@ msgid ""
"\n"
" }\n"
msgstr ""
+"\n"
+" _getACookie() {\n"
+"\n"
+" // Você selecionou \"cookie\" em vez de \"não um cookie\"?\n"
+" if (this._cookieRadio.get_active()) {\n"
+"\n"
+" // Aumenta o número de cookies em 1 e atualiza o rótulo\n"
+" cookies++;\n"
+" this._cookieLabel.set_label (\"Número de cookies: \" + cookies);\n"
+"\n"
+" }\n"
+"\n"
+" }\n"
#. (itstool) path: section/title
-#: C/03_getting_the_signal.js.page:297
+#: C/03_getting_the_signal.js.page:296
msgid "Can you spell \"cookie\"?"
-msgstr ""
+msgstr "Você consegue escrever “cookie”?"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:299
+#: C/03_getting_the_signal.js.page:298
msgid ""
"The last input widget we're going to cover is the Entry widget, which is "
"used for single-line text entry."
msgstr ""
+"O último widget de entrada que vamos cobrir é o widget Entry, que é usado "
+"para entrada de texto de linha única."
#. (itstool) path: note/p
-#: C/03_getting_the_signal.js.page:300
+#: C/03_getting_the_signal.js.page:299
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."
msgstr ""
+"Se você precisar inserir um parágrafo inteiro ou mais, como se estivesse "
+"construindo um editor de texto, você vai querer dar uma olhada no widget "
+"muito mais personalizável <link xref=\"textview.js\">TextView</link>."
+
+#. (itstool) path: section/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:300 C/03_getting_the_signal.js.page:367
+msgctxt "_"
+msgid ""
+"external ref='media/03_jssignal_04.png' "
+"md5='dfc5221ca15ca9fba7d3c76a73804e2d'"
+msgstr ""
+"external ref='media/03_jssignal_04.png' "
+"md5='dfc5221ca15ca9fba7d3c76a73804e2d'"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:303
+#: C/03_getting_the_signal.js.page:302
msgid "After we change the window's name, we create the Entry widget."
-msgstr ""
+msgstr "Depois de alterar o nome da janela, criamos o widget Entry."
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:304
+#: C/03_getting_the_signal.js.page:303
#, no-wrap
msgid ""
"\n"
" // Create the text entry field\n"
" this._spellCookie = new Gtk.Entry ();\n"
msgstr ""
+"\n"
+" // Cria um novo campo de entrada de texto\n"
+" this._spellCookie = new Gtk.Entry ();\n"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:309
+#: C/03_getting_the_signal.js.page:308
msgid "Next, we arrange everything in the Grid ..."
-msgstr ""
+msgstr "Em seguida, organizamos tudo na Grid …"
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:310
+#: C/03_getting_the_signal.js.page:309
#, no-wrap
msgid ""
"\n"
@@ -2248,9 +2302,14 @@ msgid ""
" this._grid.attach (this._cookieButton, 0, 1, 1, 1);\n"
" this._grid.attach (this._cookieLabel, 0, 2, 1, 1);\n"
msgstr ""
+"\n"
+" // Coloca tudo dentro da grade\n"
+" this._grid.attach (this._spellCookie, 0, 0, 1, 1);\n"
+" this._grid.attach (this._cookieButton, 0, 1, 1, 1);\n"
+" this._grid.attach (this._cookieLabel, 0, 2, 1, 1);\n"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:317
+#: C/03_getting_the_signal.js.page:316
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 "
@@ -2258,22 +2317,31 @@ msgid ""
"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 ""
+"E agora nós modificamos a instrução if do _getACookie novamente, usando o "
+"método get_text do Entry para recuperar o texto que você inseriu nele e ver "
+"se você digitou “cookie” corretamente. Não nos importamos se você capitaliza "
+"“cookie” ou não, então usamos o método embutido toLowerCase do JavaScript "
+"para alterar o todo texto do Entry para minúsculo dentro da instrução if."
#. (itstool) path: note/p
-#: C/03_getting_the_signal.js.page:318
+#: C/03_getting_the_signal.js.page:317
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."
msgstr ""
+"Um widget de Entry não possui uma propriedade de rótulo, que é uma string "
+"definida que o usuário não pode alterar. (Você não pode normalmente alterar "
+"o rótulo em um Button, por exemplo). Em vez disso, ele tem uma propriedade "
+"de texto, que muda para corresponder ao que o usuário digita."
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:319
+#: C/03_getting_the_signal.js.page:318
#, no-wrap
msgid ""
"\n"
-" _getACookie: function() {\n"
+" _getACookie() {\n"
"\n"
" // Did you spell \"cookie\" correctly?\n"
" if ((this._spellCookie.get_text()).toLowerCase() == \"cookie\") {\n"
@@ -2286,70 +2354,85 @@ msgid ""
"\n"
" }\n"
msgstr ""
+"\n"
+" _getACookie() {\n"
+"\n"
+" // Você escreveu \"cookie\" corretamente?\n"
+" if ((this._spellCookie.get_text()).toLowerCase() == \"cookie\") {\n"
+"\n"
+" // Aumenta o número de cookies em 1 e atualiza o rótulo\n"
+" cookies++;\n"
+" this._cookieLabel.set_label (\"Número de cookies: \" + cookies);\n"
+"\n"
+" }\n"
+"\n"
+" }\n"
#. (itstool) path: section/p
-#: C/03_getting_the_signal.js.page:338
+#: C/03_getting_the_signal.js.page:337
msgid ""
"Keep reading, if you'd like to see the complete code for each version of our "
"cookie maker application."
msgstr ""
+"Continue lendo, se você quiser ver o código completo para cada versão do "
+"nosso aplicativo de criador de cookies."
#. (itstool) path: note/p
-#: C/03_getting_the_signal.js.page:339
+#: C/03_getting_the_signal.js.page:338
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."
msgstr ""
+"A página principal de tutoriais em JavaScript possui <link xref=\"beginner."
+"js#buttons\">amostras de código mais detalhadas</link> para cada widget de "
+"entrada, incluindo vários não abordados aqui."
#. (itstool) path: section/title
-#: C/03_getting_the_signal.js.page:344
+#: C/03_getting_the_signal.js.page:343
msgid "Complete code samples"
-msgstr ""
+msgstr "Amostra de código completo"
#. (itstool) path: section/title
-#: C/03_getting_the_signal.js.page:349
+#: C/03_getting_the_signal.js.page:348
msgid "Code sample with Button"
-msgstr ""
+msgstr "Amostra de código com Button"
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:351
+#: C/03_getting_the_signal.js.page:350
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
"// We start out with 0 cookies\n"
"var cookies = 0;\n"
"\n"
-"const GettingTheSignal = new Lang.Class({\n"
-" Name: 'Getting the Signal',\n"
+"class GettingTheSignal {\n"
"\n"
" // Create the application itself\n"
-" _init: function() {\n"
+" constructor() {\n"
" this.application = new Gtk.Application();\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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents window when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function() {\n"
-" this._buildUI ();\n"
-" },\n"
-"\n"
-"\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow({\n"
@@ -2367,7 +2450,7 @@ msgid ""
" this._cookieButton = new Gtk.Button ({ label: \"Get a cookie\" });\n"
"\n"
" // Connect the cookie button to the function that handles clicking it\n"
-" this._cookieButton.connect ('clicked', Lang.bind (this, this._getACookie));\n"
+" this._cookieButton.connect ('clicked', this._getACookie.bind(this));\n"
"\n"
" // Create a grid to arrange everything inside\n"
" this._grid = new Gtk.Grid ({\n"
@@ -2385,11 +2468,9 @@ msgid ""
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
"\n"
-" },\n"
-"\n"
+" }\n"
"\n"
-"\n"
-" _getACookie: function() {\n"
+" _getACookie() {\n"
"\n"
" // Increase the number of cookies by 1 and update the label\n"
" cookies++;\n"
@@ -2397,56 +2478,134 @@ msgid ""
"\n"
" }\n"
"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new GettingTheSignal ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"const Gtk = imports.gi.Gtk;\n"
+"\n"
+"// Começamos com 0 cookies\n"
+"var cookies = 0;\n"
+"\n"
+"class GettingTheSignal {\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" constructor() {\n"
+" this.application = new Gtk.Application();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativo\n"
+" _onActivate() {\n"
+" this._window.present();\n"
+" }\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI() {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow({\n"
+" application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" default_height: 200,\n"
+" default_width: 400,\n"
+" title: \"Clique no botão para obter um cookie!\"});\n"
+"\n"
+" // Cria o rótulo\n"
+" this._cookieLabel = new Gtk.Label ({\n"
+" label: \"Número de cookies: \" + cookies });\n"
+"\n"
+" // Cria o botão de cookie\n"
+" this._cookieButton = new Gtk.Button ({ label: \"Obtenha um cookie\" });\n"
+"\n"
+" // Conecta o botão de cookie à função que lida com clicar nele\n"
+" this._cookieButton.connect ('clicked', this._getACookie.bind(this));\n"
+"\n"
+" // Cria uma grade que organiza tudo dentro\n"
+" this._grid = new Gtk.Grid ({\n"
+" halign: Gtk.Align.CENTER,\n"
+" valign: Gtk.Align.CENTER,\n"
+" row_spacing: 20 });\n"
+"\n"
+" // Coloca tudo dentro da grade\n"
+" this._grid.attach (this._cookieButton, 0, 0, 1, 1);\n"
+" this._grid.attach (this._cookieLabel, 0, 1, 1, 1);\n"
+"\n"
+" // Adiciona a grade à janela\n"
+" this._window.add (this._grid);\n"
+"\n"
+" // Mostra a janela e todos os widgets filhos\n"
+" this._window.show_all();\n"
+"\n"
+" }\n"
+"\n"
+" _getACookie() {\n"
+"\n"
+" // Aumenta o número de cookies por 1 e atualiza o rótulo\n"
+" cookies++;\n"
+" this._cookieLabel.set_label (\"Número de cookies: \" + cookies);\n"
+"\n"
+" }\n"
+"\n"
+"};\n"
+"\n"
+"// Executa o aplicativo\n"
+"let app = new GettingTheSignal ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: section/title
-#: C/03_getting_the_signal.js.page:355
+#: C/03_getting_the_signal.js.page:354
msgid "Code sample with Switch"
-msgstr ""
+msgstr "Amostra de código com Switch"
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:357
+#: C/03_getting_the_signal.js.page:356
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
"// We start out with 0 cookies\n"
"var cookies = 0;\n"
"\n"
-"const GettingTheSignal = new Lang.Class({\n"
-" Name: 'Getting the Signal',\n"
+"class GettingTheSignal {\n"
"\n"
" // Create the application itself\n"
-" _init: function() {\n"
+" constructor() {\n"
" this.application = new Gtk.Application();\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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents window when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function() {\n"
-" this._buildUI ();\n"
-" },\n"
-"\n"
-"\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow({\n"
@@ -2465,7 +2624,7 @@ msgid ""
" label: \"Get a cookie\" });\n"
"\n"
" // Connect the cookie button to the function that handles clicking it\n"
-" this._cookieButton.connect ('clicked', Lang.bind (this, this._getACookie));\n"
+" this._cookieButton.connect ('clicked', this._getACookie.bind(this));\n"
"\n"
" // Create the switch that controls whether or not you can win\n"
" this._cookieSwitch = new Gtk.Switch ();\n"
@@ -2500,11 +2659,9 @@ msgid ""
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
"\n"
-" },\n"
-"\n"
-"\n"
+" }\n"
"\n"
-" _getACookie: function() {\n"
+" _getACookie() {\n"
"\n"
" // Is the cookie dispenser turned on?\n"
" if (this._cookieSwitch.get_active()) {\n"
@@ -2517,56 +2674,244 @@ msgid ""
"\n"
" }\n"
"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new GettingTheSignal ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"const Gtk = imports.gi.Gtk;\n"
+"\n"
+"// Nós começamos com 0 cookies\n"
+"var cookies = 0;\n"
+"\n"
+"class GettingTheSignal {\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" constructor() {\n"
+" this.application = new Gtk.Application();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativo\n"
+" _onActivate() {\n"
+" this._window.present();\n"
+" }\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI() {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow({\n"
+" application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" default_height: 200,\n"
+" default_width: 400,\n"
+" title: \"Clique no botão para obter um cookie!\"});\n"
+"\n"
+" // Cria o rótulo\n"
+" this._cookieLabel = new Gtk.Label ({\n"
+" label: \"Número de cookies: \" + cookies });\n"
+"\n"
+" // Cria o botão de cookie\n"
+" this._cookieButton = new Gtk.Button ({\n"
+" label: \"Obter um cookie\" });\n"
+"\n"
+" // Conecta o botão do cookie à função que lida o clique nele\n"
+" this._cookieButton.connect ('clicked', this._getACookie.bind(this));\n"
+"\n"
+" // Cria um switch que controla se você pode ou não ganhar\n"
+" this._cookieSwitch = new Gtk.Switch ();\n"
+"\n"
+" // Cria o rótulo para ir com o switch\n"
+" this._switchLabel = new Gtk.Label ({\n"
+" label: \"Cookie dispenser\" });\n"
+"\n"
+" // Cria uma grade para o switch e seu rótulo\n"
+" this._switchGrid = new Gtk.Grid ({\n"
+" halign: Gtk.Align.CENTER,\n"
+" valign: Gtk.Align.CENTER });\n"
+"\n"
+" // Coloca seu switch e seu rótulo dentro daquela grade\n"
+" this._switchGrid.attach (this._switchLabel, 0, 0, 1, 1);\n"
+" this._switchGrid.attach (this._cookieSwitch, 1, 0, 1, 1);\n"
+"\n"
+" // Cria uma grade para organizar todo resto dentro\n"
+" this._grid = new Gtk.Grid ({\n"
+" halign: Gtk.Align.CENTER,\n"
+" valign: Gtk.Align.CENTER,\n"
+" row_spacing: 20 });\n"
+"\n"
+" // Coloca tudo dentro da grade\n"
+" this._grid.attach (this._cookieButton, 0, 0, 1, 1);\n"
+" this._grid.attach (this._switchGrid, 0, 1, 1, 1);\n"
+" this._grid.attach (this._cookieLabel, 0, 2, 1, 1);\n"
+"\n"
+" // Adiciona a grade à janela\n"
+" this._window.add (this._grid);\n"
+"\n"
+" // Mostra a janela e todos os widgets filhos\n"
+" this._window.show_all();\n"
+"\n"
+" }\n"
+"\n"
+" _getACookie() {\n"
+"\n"
+" // O fornecedor de cookie está ligado?\n"
+" if (this._cookieSwitch.get_active()) {\n"
+"\n"
+" // Aumenta o número de cookies em 1 e atualiza o rótulo\n"
+" cookies++;\n"
+" this._cookieLabel.set_label (\"Número de cookies: \" + cookies);\n"
+"\n"
+" }\n"
+"\n"
+" }\n"
+"\n"
+"};\n"
+"\n"
+"// Executa o aplicativo\n"
+"let app = new GettingTheSignal ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: section/title
-#: C/03_getting_the_signal.js.page:361
+#: C/03_getting_the_signal.js.page:360
msgid "Code sample with RadioButton"
-msgstr ""
-
-#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:363
-#, no-wrap
+msgstr "Amostra de código com RadioButton"
+
+#. (itstool) path: section/code
+#: C/03_getting_the_signal.js.page:362
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "\n"
+#| "const WelcomeToTheGrid = new Lang.Class({\n"
+#| " Name: 'Welcome to the Grid',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function() {\n"
+#| " this.application = new Gtk.Application();\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"
+#| "\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: 10,\n"
+#| " title: \"Welcome to the Grid\"});\n"
+#| "\n"
+#| " // Create the Grid\n"
+#| " this._grid = new Gtk.Grid ({\n"
+#| " // column_homogeneous: true,\n"
+#| " // column_spacing: 20,\n"
+#| " row_spacing: 20 });\n"
+#| "\n"
+#| " // Create an image\n"
+#| " this._image = new Gtk.Image ({ file: \"gnome-image.png\" });\n"
+#| "\n"
+#| " // Create a second image using a stock icon\n"
+#| " this._icon = new Gtk.Image ({ stock: 'gtk-about' });\n"
+#| "\n"
+#| " // Create a label\n"
+#| " this._label = new Gtk.Label ({\n"
+#| " label: \"Welcome to GNOME, too!\",\n"
+#| " /* margin_top: 20 */ });\n"
+#| "\n"
+#| " /* Create a second label\n"
+#| " this._labelTwo = new Gtk.Label ({\n"
+#| " label: \"The cake is a pie.\" }); */\n"
+#| "\n"
+#| " /* Create a button\n"
+#| " this._button = new Gtk.Button ({\n"
+#| " label: \"Welcome to GNOME, too!\"}); */\n"
+#| "\n"
+#| " // Attach the images and button to the grid\n"
+#| " this._grid.attach (this._image, 0, 0, 2, 1);\n"
+#| " this._grid.attach (this._icon, 0, 1, 1, 1);\n"
+#| " this._grid.attach (this._label, 1, 1, 1, 1);\n"
+#| "\n"
+#| " // this._grid.attach (this._label, 0, 1, 1, 1);\n"
+#| " // this._grid.attach (this._labelTwo, 1, 1, 1, 1);\n"
+#| "\n"
+#| " // this._grid.attach (this._button, 1, 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"
+#| "// Run the application\n"
+#| "let app = new WelcomeToTheGrid ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
"// We start out with 0 cookies\n"
"var cookies = 0;\n"
"\n"
-"const GettingTheSignal = new Lang.Class({\n"
-" Name: 'Getting the Signal',\n"
+"class GettingTheSignal {\n"
"\n"
" // Create the application itself\n"
-" _init: function() {\n"
+" constructor() {\n"
" this.application = new Gtk.Application();\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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents window when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function() {\n"
-" this._buildUI ();\n"
-" },\n"
-"\n"
-"\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow({\n"
@@ -2578,16 +2923,16 @@ msgid ""
" title: \"Choose the one that says 'cookie'!\"});\n"
"\n"
" // Create the radio buttons\n"
-" this._cookieButton = new Gtk.RadioButton ({ label: \"Cookie\" });\n"
+" this._cookieRadio = new Gtk.RadioButton ({ label: \"Cookie\" });\n"
" this._notCookieOne = new Gtk.RadioButton ({ label: \"Not cookie\",\n"
-" group: this._cookieButton });\n"
+" group: this._cookieRadio });\n"
" this._notCookieTwo = new Gtk.RadioButton ({ label: \"Not cookie\",\n"
-" group: this._cookieButton });\n"
+" group: this._cookieRadio });\n"
"\n"
" // Arrange the radio buttons in their own grid\n"
" this._radioGrid = new Gtk.Grid ();\n"
" this._radioGrid.attach (this._notCookieOne, 0, 0, 1, 1);\n"
-" this._radioGrid.attach (this._cookieButton, 0, 1, 1, 1);\n"
+" this._radioGrid.attach (this._cookieRadio, 0, 1, 1, 1);\n"
" this._radioGrid.attach (this._notCookieTwo, 0, 2, 1, 1);\n"
"\n"
" // Set the button that will be at the top to be active by default\n"
@@ -2598,7 +2943,7 @@ msgid ""
" label: \"Get a cookie\" });\n"
"\n"
" // Connect the cookie button to the function that handles clicking it\n"
-" this._cookieButton.connect ('clicked', Lang.bind (this, this._getACookie));\n"
+" this._cookieButton.connect ('clicked', this._getACookie.bind(this));\n"
"\n"
" // Create the label\n"
" this._cookieLabel = new Gtk.Label ({\n"
@@ -2621,14 +2966,12 @@ msgid ""
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
"\n"
-" },\n"
-"\n"
-"\n"
+" }\n"
"\n"
-" _getACookie: function() {\n"
+" _getACookie() {\n"
"\n"
" // Did you select \"cookie\" instead of \"not cookie\"?\n"
-" if (this._cookieButton.get_active()) {\n"
+" if (this._cookieRadio.get_active()) {\n"
"\n"
" // Increase the number of cookies by 1 and update the label\n"
" cookies++;\n"
@@ -2638,56 +2981,227 @@ msgid ""
"\n"
" }\n"
"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new GettingTheSignal ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"\n"
+"const WelcomeToTheGrid = new Lang.Class({\n"
+" Name: 'Bem-vindo à Grid',\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function() {\n"
+" this.application = new Gtk.Application();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativo\n"
+" _onActivate: function() {\n"
+" this._window.present();\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup: function() {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+"\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function() {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow({\n"
+" application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" border_width: 10,\n"
+" title: \"Bem-vindo à Grid\"});\n"
+"\n"
+" // Cria a Grid\n"
+" this._grid = new Gtk.Grid ({\n"
+" // column_homogeneous: true,\n"
+" // column_spacing: 20,\n"
+" row_spacing: 20 });\n"
+"\n"
+" // Cria uma imagem\n"
+" this._image = new Gtk.Image ({ file: \"gnome-image.png\" });\n"
+"\n"
+" // Cria uma segunda imagem usando um ícone padrão\n"
+" this._icon = new Gtk.Image ({ stock: 'gtk-about' });\n"
+"\n"
+" // Cria um rótulo\n"
+" this._label = new Gtk.Label ({\n"
+" label: \"Bem-vindo ao GNOME, também!\",\n"
+" /* margin_top: 20 */ });\n"
+"\n"
+" /* Cria um segundo rótulo\n"
+" this._labelTwo = new Gtk.Label ({\n"
+" label: \"O bolo é uma torta.\" }); */\n"
+"\n"
+" /* Cria um botão\n"
+" this._button = new Gtk.Button ({\n"
+" label: \"Bem-vindo ao GNOME, também!\"}); */\n"
+"\n"
+" // Anexa as imagens e botão à grade\n"
+" this._grid.attach (this._image, 0, 0, 2, 1);\n"
+" this._grid.attach (this._icon, 0, 1, 1, 1);\n"
+" this._grid.attach (this._label, 1, 1, 1, 1);\n"
+"\n"
+" // this._grid.attach (this._label, 0, 1, 1, 1);\n"
+" // this._grid.attach (this._labelTwo, 1, 1, 1, 1);\n"
+"\n"
+" // this._grid.attach (this._button, 1, 1, 1, 1);\n"
+"\n"
+" // Adiciona a grade à janela\n"
+" this._window.add (this._grid);\n"
+"\n"
+" // Mostra a janela e todos os widgets filhos\n"
+" this._window.show_all();\n"
+" }\n"
+"\n"
+"});\n"
+"\n"
+"// Executa o aplicativo\n"
+"let app = new WelcomeToTheGrid ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: section/title
-#: C/03_getting_the_signal.js.page:367
+#: C/03_getting_the_signal.js.page:366
+#, fuzzy
msgid "Code sample with Entry"
-msgstr ""
+msgstr "Amostra de código completo"
#. (itstool) path: section/code
-#: C/03_getting_the_signal.js.page:369
-#, no-wrap
+#: C/03_getting_the_signal.js.page:368
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "\n"
+#| "const WelcomeToTheGrid = new Lang.Class({\n"
+#| " Name: 'Welcome to the Grid',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function() {\n"
+#| " this.application = new Gtk.Application();\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"
+#| "\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: 10,\n"
+#| " title: \"Welcome to the Grid\"});\n"
+#| "\n"
+#| " // Create the Grid\n"
+#| " this._grid = new Gtk.Grid ({\n"
+#| " // column_homogeneous: true,\n"
+#| " // column_spacing: 20,\n"
+#| " row_spacing: 20 });\n"
+#| "\n"
+#| " // Create an image\n"
+#| " this._image = new Gtk.Image ({ file: \"gnome-image.png\" });\n"
+#| "\n"
+#| " // Create a second image using a stock icon\n"
+#| " this._icon = new Gtk.Image ({ stock: 'gtk-about' });\n"
+#| "\n"
+#| " // Create a label\n"
+#| " this._label = new Gtk.Label ({\n"
+#| " label: \"Welcome to GNOME, too!\",\n"
+#| " /* margin_top: 20 */ });\n"
+#| "\n"
+#| " /* Create a second label\n"
+#| " this._labelTwo = new Gtk.Label ({\n"
+#| " label: \"The cake is a pie.\" }); */\n"
+#| "\n"
+#| " /* Create a button\n"
+#| " this._button = new Gtk.Button ({\n"
+#| " label: \"Welcome to GNOME, too!\"}); */\n"
+#| "\n"
+#| " // Attach the images and button to the grid\n"
+#| " this._grid.attach (this._image, 0, 0, 2, 1);\n"
+#| " this._grid.attach (this._icon, 0, 1, 1, 1);\n"
+#| " this._grid.attach (this._label, 1, 1, 1, 1);\n"
+#| "\n"
+#| " // this._grid.attach (this._label, 0, 1, 1, 1);\n"
+#| " // this._grid.attach (this._labelTwo, 1, 1, 1, 1);\n"
+#| "\n"
+#| " // this._grid.attach (this._button, 1, 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"
+#| "// Run the application\n"
+#| "let app = new WelcomeToTheGrid ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
"// We start out with 0 cookies\n"
"var cookies = 0;\n"
"\n"
-"const GettingTheSignal = new Lang.Class({\n"
-" Name: 'Getting the Signal',\n"
+"class GettingTheSignal {\n"
"\n"
" // Create the application itself\n"
-" _init: function() {\n"
+" constructor() {\n"
" this.application = new Gtk.Application();\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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents window when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function() {\n"
-" this._buildUI ();\n"
-" },\n"
-"\n"
-"\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow({\n"
@@ -2706,7 +3220,7 @@ msgid ""
" label: \"Get a cookie\" });\n"
"\n"
" // Connect the cookie button to the function that handles clicking it\n"
-" this._cookieButton.connect ('clicked', Lang.bind (this, this._getACookie));\n"
+" this._cookieButton.connect ('clicked', this._getACookie.bind(this));\n"
"\n"
" // Create the label\n"
" this._cookieLabel = new Gtk.Label ({\n"
@@ -2729,11 +3243,9 @@ msgid ""
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
"\n"
-" },\n"
-"\n"
-"\n"
+" }\n"
"\n"
-" _getACookie: function() {\n"
+" _getACookie() {\n"
"\n"
" // Did you spell \"cookie\" correctly?\n"
" if ((this._spellCookie.get_text()).toLowerCase() == \"cookie\") {\n"
@@ -2746,75 +3258,161 @@ msgid ""
"\n"
" }\n"
"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new GettingTheSignal ();\n"
"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/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' "
-"md5='a36117a559fa98e25e2f6b3db593639f'"
-msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"\n"
+"const WelcomeToTheGrid = new Lang.Class({\n"
+" Name: 'Bem-vindo à Grid',\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function() {\n"
+" this.application = new Gtk.Application();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativo\n"
+" _onActivate: function() {\n"
+" this._window.present();\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup: function() {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+"\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function() {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow({\n"
+" application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" border_width: 10,\n"
+" title: \"Bem-vindo à Grid\"});\n"
+"\n"
+" // Cria a Grid\n"
+" this._grid = new Gtk.Grid ({\n"
+" // column_homogeneous: true,\n"
+" // column_spacing: 20,\n"
+" row_spacing: 20 });\n"
+"\n"
+" // Cria uma imagem\n"
+" this._image = new Gtk.Image ({ file: \"gnome-image.png\" });\n"
+"\n"
+" // Cria uma segunda imagem usando um ícone padrão\n"
+" this._icon = new Gtk.Image ({ stock: 'gtk-about' });\n"
+"\n"
+" // Cria um rótulo\n"
+" this._label = new Gtk.Label ({\n"
+" label: \"Bem-vindo ao GNOME, também!\",\n"
+" /* margin_top: 20 */ });\n"
+"\n"
+" /* Cria um segundo rótulo\n"
+" this._labelTwo = new Gtk.Label ({\n"
+" label: \"O bolo é uma torta.\" }); */\n"
+"\n"
+" /* Cria um botão\n"
+" this._button = new Gtk.Button ({\n"
+" label: \"Bem-vindo ao GNOME, também!\"}); */\n"
+"\n"
+" // Anexa as imagens e botão à grade\n"
+" this._grid.attach (this._image, 0, 0, 2, 1);\n"
+" this._grid.attach (this._icon, 0, 1, 1, 1);\n"
+" this._grid.attach (this._label, 1, 1, 1, 1);\n"
+"\n"
+" // this._grid.attach (this._label, 0, 1, 1, 1);\n"
+" // this._grid.attach (this._labelTwo, 1, 1, 1, 1);\n"
+"\n"
+" // this._grid.attach (this._button, 1, 1, 1, 1);\n"
+"\n"
+" // Adiciona a grade à janela\n"
+" this._window.add (this._grid);\n"
+"\n"
+" // Mostra a janela e todos os widgets filhos\n"
+" this._window.show_all();\n"
+" }\n"
+"\n"
+"});\n"
+"\n"
+"// Executa o aplicativo\n"
+"let app = new WelcomeToTheGrid ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: info/title
-#: C/aboutdialog.c.page:7
+#: C/aboutdialog.c.page:8
msgctxt "text"
msgid "AboutDialog (C)"
-msgstr ""
+msgstr "AboutDialog (C)"
#. (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
+#: C/aboutdialog.c.page:15 C/button.c.page:15 C/combobox.c.page:13
+#: C/dialog.c.page:15 C/entry.c.page:13 C/grid.c.page:13 C/image.c.page:13
+#: C/label.c.page:14 C/linkbutton.c.page:13 C/menubar.c.page:15
+#: C/messagedialog.c.page:14 C/progressbar.c.page:14 C/radiobutton.c.page:15
+#: C/scale.c.page:15 C/scrolledwindow.c.page:15 C/spinbutton.c.page:16
+#: C/spinner.c.page:14 C/statusbar.c.page:17 C/switch.c.page:13
+#: C/textview.c.page:13 C/togglebutton.c.page:17 C/toolbar.c.page:15
+#, fuzzy
msgid "Monica Kochofar"
-msgstr ""
+msgstr "Monica Kochofar"
#. (itstool) path: info/desc
-#: C/aboutdialog.c.page:19 C/aboutdialog.js.page:16 C/aboutdialog.vala.page:25
+#: C/aboutdialog.c.page:20 C/aboutdialog.js.page:17 C/aboutdialog.vala.page:26
+#, fuzzy
msgid "Display information about an application"
-msgstr ""
+msgstr "Exibe informações sobre esse aplicativo"
#. (itstool) path: page/title
-#: C/aboutdialog.c.page:22 C/aboutdialog.js.page:19 C/aboutdialog.py.page:21
-#: C/aboutdialog.vala.page:28
+#: C/aboutdialog.c.page:23 C/aboutdialog.js.page:20 C/aboutdialog.py.page:22
+#: C/aboutdialog.vala.page:29
msgid "AboutDialog"
msgstr ""
+#. (itstool) path: page/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/aboutdialog.c.page:25 C/aboutdialog.js.page:21 C/aboutdialog.py.page:23
+#: C/aboutdialog.vala.page:30
+msgctxt "_"
+msgid ""
+"external ref='media/aboutdialog_GMenu.png' "
+"md5='a36117a559fa98e25e2f6b3db593639f'"
+msgstr ""
+
#. (itstool) path: page/p
-#: C/aboutdialog.c.page:25 C/aboutdialog.vala.page:30
+#: C/aboutdialog.c.page:26 C/aboutdialog.vala.page:31
msgid "An AboutDialog example using Gtk.ApplicationWindow and Menu"
msgstr ""
#. (itstool) path: note/p
-#: C/aboutdialog.c.page:26 C/aboutdialog.vala.page:31 C/gmenu.c.page:23
+#: C/aboutdialog.c.page:27 C/aboutdialog.vala.page:32 C/gmenu.c.page:24
msgid ""
"<em style=\"bold\">You need to be running Gtk3.4 or later for this to work</"
"em>"
msgstr ""
#. (itstool) path: page/code
-#: C/aboutdialog.c.page:28
+#: C/aboutdialog.c.page:29
#, no-wrap
msgid ""
"\n"
"#include <gtk/gtk.h>\n"
"\n"
-"\n"
-"\n"
"/* Callback function in which reacts to the \"response\" signal from the user in\n"
" * the message dialog window.\n"
" * This function is used to destroy the dialog window.\n"
@@ -2824,13 +3422,10 @@ msgid ""
" gint response_id,\n"
" gpointer user_data)\n"
"{\n"
-" /*This will cause the dialog to be destroyed*/\n"
+" /* This will cause the dialog to be destroyed */\n"
" gtk_widget_destroy (GTK_WIDGET (dialog));\n"
-"\n"
"}\n"
"\n"
-"\n"
-"\n"
"/* Callback function for the response signal \"activate\" related to the SimpleAction\n"
" * \"about_action\".\n"
" * This function is used to cause the about dialog window to popup.\n"
@@ -2840,42 +3435,40 @@ msgid ""
" GVariant *parameter,\n"
" gpointer user_data)\n"
"{\n"
-" GtkWidget *about_dialog;\n"
+" GtkWidget *about_dialog;\n"
"\n"
-" about_dialog = gtk_about_dialog_new ();\n"
-"\n"
-" /* Lists of authors/ documentators to be used later, they must be initialized\n"
-" * in a null terminated array of strings.\n"
-" */\n"
-" const gchar *authors[] = {\"GNOME Documentation Team\", NULL};\n"
-" const gchar *documenters[] = {\"GNOME Documentation Team\", NULL};\n"
-"\n"
-" /* We fill in the information for the about dialog */\n"
-" gtk_about_dialog_set_program_name (GTK_ABOUT_DIALOG (about_dialog), \"AboutDialog Example\");\n"
-" gtk_about_dialog_set_copyright (GTK_ABOUT_DIALOG (about_dialog), \"Copyright \\xc2\\xa9 2012 GNOME
Documentation Team\");\n"
-" gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG (about_dialog), authors);\n"
-" gtk_about_dialog_set_documenters (GTK_ABOUT_DIALOG (about_dialog), documenters);\n"
-" gtk_about_dialog_set_website_label (GTK_ABOUT_DIALOG (about_dialog), \"GNOME Developer Website\");\n"
-" gtk_about_dialog_set_website (GTK_ABOUT_DIALOG (about_dialog), \"http://developer.gnome.org\");\n"
+" about_dialog = gtk_about_dialog_new ();\n"
"\n"
-" /* We do not wish to show the title, which in this case would be \n"
-" * \"AboutDialog Example\". We have to reset the title of the messagedialog \n"
+" /* Lists of authors/ documentators to be used later, they must be initialized\n"
+" * in a null terminated array of strings.\n"
+" */\n"
+" const gchar *authors[] = {\"GNOME Documentation Team\", NULL};\n"
+" const gchar *documenters[] = {\"GNOME Documentation Team\", NULL};\n"
+"\n"
+" /* We fill in the information for the about dialog */\n"
+" gtk_about_dialog_set_program_name (GTK_ABOUT_DIALOG (about_dialog), \"AboutDialog Example\");\n"
+" gtk_about_dialog_set_copyright (GTK_ABOUT_DIALOG (about_dialog), \"Copyright \\xc2\\xa9 2012 GNOME
Documentation Team\");\n"
+" gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG (about_dialog), authors);\n"
+" gtk_about_dialog_set_documenters (GTK_ABOUT_DIALOG (about_dialog), documenters);\n"
+" gtk_about_dialog_set_website_label (GTK_ABOUT_DIALOG (about_dialog), \"GNOME Developer Website\");\n"
+" gtk_about_dialog_set_website (GTK_ABOUT_DIALOG (about_dialog), \"http://developer.gnome.org\");\n"
+"\n"
+" /* We do not wish to show the title, which in this case would be\n"
+" * \"AboutDialog Example\". We have to reset the title of the messagedialog\n"
" * window after setting the program name.\n"
" */\n"
" gtk_window_set_title (GTK_WINDOW (about_dialog), \"\");\n"
"\n"
-" /* To close the aboutdialog when \"close\" is clicked we connect the response \n"
+" /* To close the aboutdialog when \"close\" is clicked we connect the response\n"
" * signal to on_close\n"
" */\n"
-" g_signal_connect (GTK_DIALOG (about_dialog), \"response\", \n"
+" g_signal_connect (GTK_DIALOG (about_dialog), \"response\",\n"
" G_CALLBACK (on_close), NULL);\n"
"\n"
" /* Show the about dialog */\n"
-" gtk_widget_show (about_dialog); \n"
+" gtk_widget_show (about_dialog);\n"
"}\n"
"\n"
-"\n"
-"\n"
"static void\n"
"activate (GtkApplication *app,\n"
" gpointer user_data)\n"
@@ -2889,32 +3482,30 @@ msgid ""
" gtk_window_set_title (GTK_WINDOW (window), \"AboutDialog Example\");\n"
" gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);\n"
"\n"
-" /* Create a new simple action, giving it a NULL parameter type. It will \n"
-" * always be NULL for actions invoked from a menu. (e.g clicking on an \"ok\" \n"
+" /* Create a new simple action, giving it a NULL parameter type. It will\n"
+" * always be NULL for actions invoked from a menu. (e.g clicking on an \"ok\"\n"
" * or \"cancel\" button)\n"
" */\n"
-" about_action = g_simple_action_new (\"about\", NULL); \n"
+" about_action = g_simple_action_new (\"about\", NULL);\n"
"\n"
-" /* Connect the \"activate\" signal to the appropriate callback function. \n"
+" /* Connect the \"activate\" signal to the appropriate callback function.\n"
" * It will indicate that the action was just activated.\n"
" */\n"
-" g_signal_connect (about_action, \"activate\", G_CALLBACK (about_cb), \n"
+" g_signal_connect (about_action, \"activate\", G_CALLBACK (about_cb),\n"
" GTK_WINDOW (window));\n"
"\n"
-" /* Adds the about_action to the overall action map. An Action map is an \n"
-" * interface that contains a number of named GAction instances \n"
-" * (such as about_action) \n"
+" /* Adds the about_action to the overall action map. An Action map is an\n"
+" * interface that contains a number of named GAction instances\n"
+" * (such as about_action)\n"
" */\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"
-"\n"
-"/* Callback function for the response signal \"activate\" from the \"quit\" action \n"
+"/* Callback function for the response signal \"activate\" from the \"quit\" action\n"
" * found in the function directly below.\n"
-" */ \n"
+" */\n"
"static void\n"
"quit_cb (GSimpleAction *simple,\n"
" GVariant *parameter,\n"
@@ -2925,8 +3516,6 @@ msgid ""
" g_application_quit (application);\n"
"}\n"
"\n"
-"\n"
-"\n"
"/* Startup function for the menu we are creating in this sample */\n"
"static void\n"
"startup (GApplication *app,\n"
@@ -2935,15 +3524,15 @@ msgid ""
" GMenu *menu;\n"
" GSimpleAction *quit_action;\n"
"\n"
-" /* Initialize the GMenu, and add a menu item with label \"About\" and action \n"
-" * \"win.about\". Also add another menu item with label \"Quit\" and action \n"
-" * \"app.quit\" \n"
+" /* Initialize the GMenu, and add a menu item with label \"About\" and action\n"
+" * \"win.about\". Also add another menu item with label \"Quit\" and action\n"
+" * \"app.quit\"\n"
" */\n"
" menu = g_menu_new ();\n"
" g_menu_append (menu, \"About\", \"win.about\");\n"
" g_menu_append (menu, \"Quit\", \"app.quit\");\n"
"\n"
-" /* Create a new simple action for the application. (In this case it is the \n"
+" /* Create a new simple action for the application. (In this case it is the\n"
" * \"quit\" action.\n"
" */\n"
" quit_action = g_simple_action_new (\"quit\", NULL);\n"
@@ -2951,17 +3540,14 @@ msgid ""
" /* Ensure that the menu we have just created is set for the overall application */\n"
" gtk_application_set_app_menu (GTK_APPLICATION (app), G_MENU_MODEL (menu));\n"
"\n"
-" g_signal_connect (quit_action, \n"
-" \"activate\", \n"
-" G_CALLBACK (quit_cb), \n"
+" g_signal_connect (quit_action,\n"
+" \"activate\",\n"
+" G_CALLBACK (quit_cb),\n"
" app);\n"
"\n"
" g_action_map_add_action (G_ACTION_MAP (app), G_ACTION (quit_action));\n"
-"\n"
"}\n"
"\n"
-"\n"
-"\n"
"/* Startup function for the application */\n"
"int\n"
"main (int argc, char **argv)\n"
@@ -2981,112 +3567,120 @@ msgstr ""
#. (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
+#: C/aboutdialog.c.page:31 C/aboutdialog.js.page:25 C/aboutdialog.py.page:42
+#: C/aboutdialog.vala.page:35 C/button.c.page:30 C/button.js.page:27
+#: C/button.py.page:53 C/buttonbox.js.page:36 C/buttonbox.py.page:47
+#: C/checkbutton.c.page:26 C/checkbutton.py.page:43 C/checkbutton.vala.page:26
+#: C/colorbutton.js.page:34 C/colorbutton.py.page:41 C/colorbutton.vala.page:28
+#: C/comboboxtext.js.page:177 C/combobox.c.page:31 C/combobox.js.page:234
+#: C/combobox.py.page:43 C/combobox.vala.page:26
+#: C/combobox_multicolumn.py.page:42 C/combobox_multicolumn.vala.page:36
+#: C/dialog.c.page:30 C/dialog.js.page:26 C/dialog.py.page:47
+#: C/dialog.vala.page:28 C/entry.c.page:28 C/entry.js.page:26
+#: C/entry.py.page:62 C/entry.vala.page:26 C/filechooserdialog.py.page:71
+#: C/filechooserdialog.vala.page:36 C/fontchooserwidget.js.page:35
+#: C/fontchooserwidget.py.page:45 C/fontchooserwidget.vala.page:35
+#: C/gmenu.c.page:28 C/gmenu.js.page:26 C/gmenu.py.page:78 C/gmenu.vala.page:35
+#: C/grid.c.page:28 C/grid.js.page:30 C/grid.py.page:55 C/grid.vala.page:28
+#: C/GtkApplicationWindow.c.page:26 C/GtkApplicationWindow.js.page:27
+#: C/GtkApplicationWindow.py.page:51 C/GtkApplicationWindow.vala.page:27
+#: C/image.c.page:29 C/image.js.page:28 C/image.py.page:128
+#: C/image.vala.page:28 C/label.c.page:33 C/label.js.page:26
+#: C/label.py.page:103 C/label.vala.page:27 C/linkbutton.c.page:28
+#: C/linkbutton.js.page:26 C/linkbutton.py.page:45 C/linkbutton.vala.page:26
+#: C/menubar.c.page:33 C/menubar.py.page:184 C/menubar.vala.page:188
+#: C/menubutton.c.page:36 C/menubutton.js.page:29 C/menubutton.py.page:54
+#: C/menubutton.vala.page:29 C/messagedialog.c.page:32
+#: C/messagedialog.js.page:190 C/messagedialog.py.page:55
+#: C/messagedialog.vala.page:27 C/paned.c.page:34 C/paned.js.page:34
+#: C/paned.py.page:40 C/paned.vala.page:34 C/progressbar.c.page:29
+#: C/progressbar.js.page:35 C/progressbar.py.page:55 C/progressbar.vala.page:26
+#: C/radiobutton.c.page:30 C/radiobutton.py.page:47 C/radiobutton.vala.page:29
+#: C/scale.c.page:30 C/scale.py.page:55 C/scale.vala.page:28
+#: C/scrolledwindow.c.page:30 C/scrolledwindow.js.page:34
+#: C/scrolledwindow.py.page:43 C/scrolledwindow.vala.page:27
+#: C/separator.c.page:36 C/separator.py.page:37 C/separator.vala.page:38
+#: C/spinbutton.c.page:31 C/spinbutton.py.page:47 C/spinbutton.vala.page:28
+#: C/spinner.c.page:29 C/spinner.js.page:26 C/spinner.py.page:40
+#: C/spinner.vala.page:26 C/statusbar.c.page:32 C/statusbar.py.page:51
+#: C/statusbar.vala.page:29 C/switch.c.page:29 C/switch.py.page:43
+#: C/switch.vala.page:32 C/textview.c.page:32 C/textview.py.page:94
+#: C/textview.vala.page:31 C/togglebutton.c.page:32 C/togglebutton.py.page:42
+#: C/togglebutton.vala.page:29 C/toolbar.c.page:31 C/toolbar.js.page:27
+#: C/toolbar.py.page:53 C/toolbar.vala.page:30 C/toolbar_builder.py.page:192
+#: C/toolbar_builder.vala.page:147 C/tooltip.c.page:36 C/tooltip.js.page:35
+#: C/tooltip.py.page:57 C/tooltip.vala.page:36
+#: C/treeview_advanced_liststore.py.page:42
+#: C/treeview_cellrenderertoggle.py.page:42
+#: C/treeview_simple_liststore.js.page:273
+#: C/treeview_simple_liststore.py.page:43
+#: C/treeview_simple_liststore.vala.page:28 C/treeview_treestore.py.page:42
+#: C/widget_drawing.py.page:36 C/window.c.page:30 C/window.py.page:62
+#: C/window.vala.page:34
+#, fuzzy
msgid "In this sample we used the following:"
-msgstr ""
+msgstr "A seguir estão os exemplos que nós apresentamos:"
#. (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
+#: 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/GtkApplicationWindow.c.page:30 C/image.c.page:33 C/label.c.page:37
+#: C/linkbutton.c.page:32 C/messagedialog.c.page:36 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/GtkApplication.html"
"\">GtkApplication</link>"
msgstr ""
#. (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
+#: C/aboutdialog.c.page:36 C/button.c.page:35 C/combobox.c.page:36
+#: C/dialog.c.page:35 C/entry.c.page:33 C/grid.c.page:33 C/linkbutton.c.page:33
+#: C/messagedialog.c.page:38 C/progressbar.c.page:34 C/radiobutton.c.page:35
+#: C/scale.c.page:35 C/spinbutton.c.page:36 C/spinner.c.page:34
+#: C/statusbar.c.page:37 C/switch.c.page:34 C/textview.c.page:37
+#: C/togglebutton.c.page:37 C/window.c.page:35
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/3.4/GtkWindow.html\">GtkWindow</"
"link>"
msgstr ""
#. (itstool) path: item/p
-#: C/aboutdialog.c.page:36
+#: C/aboutdialog.c.page:37
+#, fuzzy
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkAboutDialog.html"
"\">GtkAboutDialog</link>"
msgstr ""
+"<link href=\"https://developer.gnome.org/gtk3/stable/GtkAboutDialog.html"
+"\">GtkAboutDialog</link>"
#. (itstool) path: item/p
-#: C/aboutdialog.c.page:37 C/aboutdialog.py.page:47 C/messagedialog.c.page:41
-#: C/messagedialog.py.page:63
+#: C/aboutdialog.c.page:38 C/aboutdialog.py.page:48 C/messagedialog.c.page:42
+#: C/messagedialog.py.page:64
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>"
#. (itstool) path: item/p
-#: C/aboutdialog.c.page:38 C/messagedialog.c.page:40
+#: C/aboutdialog.c.page:39 C/messagedialog.c.page:41
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>"
#. (itstool) path: info/title
-#: C/aboutdialog.js.page:6
+#: C/aboutdialog.js.page:7
msgctxt "text"
msgid "AboutDialog (JavaScript)"
-msgstr ""
+msgstr "AboutDialog (JavaScript)"
#. (itstool) path: page/p
-#: C/aboutdialog.js.page:21
+#: C/aboutdialog.js.page:22
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 "
@@ -3094,44 +3688,44 @@ msgid ""
msgstr ""
#. (itstool) path: page/code
-#: C/aboutdialog.js.page:23
+#: C/aboutdialog.js.page:24
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const Gio = imports.gi.Gio;\n"
"const GLib = imports.gi.GLib;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const AboutDialogExample = new Lang.Class({\n"
-" Name: 'AboutDialog Example',\n"
+"class AboutDialogExample {\n"
"\n"
" // Create the application itself\n"
-" _init: function() {\n"
-" this.application = new Gtk.Application({\n"
-" application_id: 'org.example.jsaboutdialog',\n"
-" flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-" });\n"
+" constructor() {\n"
+" this.application = new Gtk.Application({\n"
+" application_id: 'org.example.jsaboutdialog',\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"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal creates the menu and builds the UI\n"
-" _onStartup: function() {\n"
+" _onStartup() {\n"
" this._initMenus();\n"
" this._buildUI();\n"
-" },\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function(){\n"
+" _buildUI() {\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow({ application: this.application,\n"
" window_position: Gtk.WindowPosition.CENTER,\n"
@@ -3141,10 +3735,10 @@ msgid ""
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
+" }\n"
"\n"
" // Create the application menu\n"
-" _initMenus: function() {\n"
+" _initMenus() {\n"
" let menu = new Gio.Menu();\n"
" menu.append(\"About\", 'app.about');\n"
" menu.append(\"Quit\",'app.quit');\n"
@@ -3152,22 +3746,16 @@ msgid ""
"\n"
" // Create the \"About\" menu option and have it call 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"
+" aboutAction.connect('activate', () => { this._showAbout(); });\n"
" this.application.add_action(aboutAction);\n"
"\n"
" // Create the \"Quit\" menu option and have it close 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"
+" quitAction.connect('activate', () => { this._window.destroy(); });\n"
" this.application.add_action(quitAction);\n"
-" },\n"
+" }\n"
"\n"
-" _showAbout: function() {\n"
+" _showAbout() {\n"
"\n"
" // String arrays of the names of the people involved in the project\n"
" var authors = [\"GNOME Documentation Team\"];\n"
@@ -3194,7 +3782,7 @@ msgid ""
" aboutDialog.destroy();\n"
" });\n"
" }\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new AboutDialogExample();\n"
@@ -3202,46 +3790,33 @@ msgid ""
msgstr ""
#. (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
+#: C/aboutdialog.js.page:29 C/gmenu.c.page:32 C/gmenu.js.page:30
+#: C/gmenu.py.page:80 C/messagedialog.js.page:194 C/switch.js.page:266
msgid ""
"<link href=\"http://developer.gnome.org/gio/unstable/GMenu.html\">GMenu</"
"link>"
msgstr ""
#. (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
+#: C/aboutdialog.js.page:30 C/filechooserdialog.py.page:80 C/gmenu.c.page:33
+#: C/gmenu.js.page:31 C/gmenu.py.page:81 C/menubar.c.page:39
+#: C/messagedialog.js.page:195 C/messagedialog.py.page:62 C/switch.js.page:267
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>"
#. (itstool) path: item/p
-#: C/aboutdialog.js.page:30
+#: C/aboutdialog.js.page:31
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.AboutDialog."
"html\">Gtk.AboutDialog</link>"
msgstr ""
#. (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 ""
-
-#. (itstool) path: item/p
-#: C/aboutdialog.js.page:32 C/button.js.page:31 C/checkbutton.js.page:138
+#: C/aboutdialog.js.page:32 C/button.js.page:31 C/checkbutton.js.page:137
#: 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
@@ -3249,96 +3824,115 @@ msgstr ""
#: 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
+#: C/treeview_simple_liststore.js.page:277 C/window.js.page:39
+msgid ""
+"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Application."
+"html\">Gtk.Application</link>"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/aboutdialog.js.page:33 C/button.js.page:32 C/checkbutton.js.page:138
+#: C/comboboxtext.js.page:182 C/combobox.js.page:239 C/dialog.js.page:31
+#: C/entry.js.page:31 C/grid.js.page:35 C/GtkApplicationWindow.js.page:32
+#: C/image.js.page:33 C/label.js.page:31 C/linkbutton.js.page:31
+#: C/messagedialog.js.page:197 C/progressbar.js.page:41
+#: C/radiobutton.js.page:277 C/scale.js.page:212 C/spinbutton.js.page:203
+#: C/spinner.js.page:32 C/statusbar.js.page:224 C/switch.js.page:269
+#: C/textview.js.page:251 C/togglebutton.js.page:156
+#: C/treeview_simple_liststore.js.page:278
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>"
#. (itstool) path: info/title
-#: C/aboutdialog.py.page:7
+#: C/aboutdialog.py.page:8
msgctxt "text"
msgid "AboutDialog (Python)"
-msgstr ""
+msgstr "AboutDialog (Python)"
#. (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
+#: C/aboutdialog.py.page:14 C/beginner.js.page:16 C/beginner.py.page:19
+#: C/beginner.vala.page:19 C/button.py.page:15 C/buttonbox.py.page:15
+#: C/checkbutton.py.page:14 C/colorbutton.py.page:14 C/combobox.py.page:15
+#: C/combobox_multicolumn.py.page:14 C/dialog.py.page:15 C/entry.py.page:15
+#: C/filechooserdialog.py.page:17 C/fontchooserwidget.py.page:15
+#: C/gmenu.py.page:21 C/grid.py.page:21 C/GtkApplicationWindow.py.page:20
+#: C/guitar-tuner.c.page:23 C/guitar-tuner.cpp.page:21
+#: C/guitar-tuner.py.page:23 C/guitar-tuner.py.page:28
+#: C/guitar-tuner.vala.page:26 C/image.py.page:15 C/image-viewer.c.page:23
+#: C/image-viewer.cpp.page:21 C/image-viewer.js.page:23
+#: C/image-viewer.py.page:23 C/image-viewer.vala.page:31 C/js.page:16
+#: C/label.py.page:17 C/linkbutton.py.page:14 C/magic-mirror.vala.page:23
+#: C/menubar.py.page:20 C/menubutton.py.page:20 C/message-board.c.page:20
+#: C/messagedialog.py.page:14 C/model-view-controller.py.page:21
+#: C/paned.py.page:14 C/photo-wall.c.page:22 C/progressbar.py.page:14
+#: C/properties.py.page:21 C/py.page:15 C/radiobutton.py.page:15
+#: C/record-collection.js.page:23 C/scale.py.page:15
+#: C/scrolledwindow.py.page:14 C/separator.py.page:15
+#: C/signals-callbacks.py.page:21 C/spinbutton.py.page:15 C/spinner.py.page:14
+#: C/statusbar.py.page:15 C/strings.py.page:21 C/switch.py.page:14
+#: C/textview.py.page:22 C/togglebutton.py.page:14 C/toolbar.py.page:15
+#: C/toolbar_builder.py.page:22 C/tooltip.py.page:15
+#: C/treeview_advanced_liststore.py.page:14
+#: C/treeview_cellrenderertoggle.py.page:14
+#: C/treeview_simple_liststore.py.page:15 C/treeview_treestore.py.page:15
+#: C/tutorial.py.page:20 C/vala.page:15 C/weatherApp.js.page:17
+#: C/widget_drawing.py.page:13 C/window.py.page:20
+#, fuzzy
msgid "Marta Maria Casetti"
-msgstr ""
+msgstr "Santa Marta"
#. (itstool) path: info/desc
-#: C/aboutdialog.py.page:18
+#: C/aboutdialog.py.page:19
+#, fuzzy
msgid "A window that displays information about an application"
-msgstr ""
+msgstr "Exibe informações sobre esse aplicativo"
#. (itstool) path: page/p
-#: C/aboutdialog.py.page:23
+#: C/aboutdialog.py.page:24
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
+#: C/aboutdialog.py.page:29 C/button.py.page:31 C/buttonbox.js.page:30
+#: C/buttonbox.py.page:31 C/checkbutton.py.page:29 C/colorbutton.js.page:28
+#: C/colorbutton.py.page:29 C/combobox.py.page:30
+#: C/combobox_multicolumn.py.page:29 C/combobox_multicolumn.vala.page:29
+#: C/dialog.py.page:30 C/entry.py.page:35 C/filechooserdialog.py.page:53
+#: C/fontchooserwidget.js.page:29 C/fontchooserwidget.py.page:31
+#: C/fontchooserwidget.vala.page:29 C/gmenu.py.page:36 C/grid.py.page:37
+#: C/GtkApplicationWindow.py.page:35 C/image.py.page:41 C/label.py.page:37
+#: C/linkbutton.py.page:30 C/menubutton.c.page:30 C/menubutton.py.page:37
+#: C/messagedialog.py.page:29 C/paned.c.page:28 C/paned.js.page:28
+#: C/paned.py.page:29 C/paned.vala.page:28 C/progressbar.py.page:39
+#: C/radiobutton.py.page:30 C/scale.py.page:30 C/scrolledwindow.js.page:28
+#: C/scrolledwindow.py.page:29 C/separator.c.page:30 C/separator.py.page:31
+#: C/separator.vala.page:32 C/spinbutton.py.page:30 C/spinner.py.page:29
+#: C/statusbar.py.page:30 C/switch.py.page:31 C/textview.py.page:44
+#: C/togglebutton.py.page:29 C/toolbar.py.page:31 C/toolbar_builder.py.page:164
+#: C/tooltip.c.page:30 C/tooltip.js.page:29 C/tooltip.py.page:31
+#: C/tooltip.vala.page:30 C/treeview_advanced_liststore.py.page:29
+#: C/treeview_cellrenderertoggle.py.page:29
+#: C/treeview_simple_liststore.py.page:30 C/treeview_treestore.py.page:30
+#: C/widget_drawing.py.page:28 C/window.py.page:45
+#, fuzzy
msgid "Code used to generate this example"
-msgstr ""
+msgstr "-M\t\tgera código MT-safe\n"
#. (itstool) path: section/code
-#: C/aboutdialog.py.page:30
+#: C/aboutdialog.py.page:31
#, 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"
@@ -3364,14 +3958,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"
@@ -3384,7 +3980,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"
@@ -3395,17 +3993,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"
@@ -3418,81 +4016,114 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/aboutdialog.py.page:35
+#: C/aboutdialog.py.page:36
+#, fuzzy
msgid "Useful methods for an AboutDialog widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: section/p
-#: C/aboutdialog.py.page:36
+#: C/aboutdialog.py.page:37
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."
+"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
+#: C/aboutdialog.py.page:41 C/button.py.page:52 C/buttonbox.js.page:35
+#: C/buttonbox.py.page:46 C/checkbutton.py.page:42 C/colorbutton.js.page:33
+#: C/colorbutton.py.page:40 C/combobox.py.page:42
+#: C/combobox_multicolumn.py.page:41 C/combobox_multicolumn.vala.page:35
+#: C/dialog.py.page:46 C/entry.py.page:61 C/filechooserdialog.py.page:70
+#: C/fontchooserwidget.js.page:34 C/fontchooserwidget.py.page:44
+#: C/fontchooserwidget.vala.page:34 C/gmenu.py.page:77 C/grid.py.page:54
+#: C/GtkApplicationWindow.py.page:50 C/image.py.page:126 C/label.py.page:102
+#: C/linkbutton.py.page:44 C/menubar.py.page:183 C/menubutton.c.page:35
+#: C/menubutton.py.page:53 C/messagedialog.py.page:54 C/paned.c.page:33
+#: C/paned.js.page:33 C/paned.py.page:39 C/paned.vala.page:33
+#: C/progressbar.py.page:54 C/radiobutton.py.page:46 C/scale.py.page:54
+#: C/scrolledwindow.js.page:33 C/scrolledwindow.py.page:42
+#: C/spinbutton.py.page:46 C/spinner.py.page:39 C/statusbar.py.page:50
+#: C/switch.py.page:42 C/textview.py.page:93 C/togglebutton.py.page:41
+#: C/toolbar.py.page:52 C/toolbar_builder.py.page:191 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.py.page:42 C/treeview_treestore.py.page:41
+#: C/widget_drawing.py.page:35 C/window.py.page:60
msgid "API References"
-msgstr ""
+msgstr "Referências da API"
#. (itstool) path: item/p
-#: C/aboutdialog.py.page:45
+#: C/aboutdialog.py.page:46
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>"
#. (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
+#: C/aboutdialog.py.page:47 C/checkbutton.py.page:46 C/grid.py.page:58
+#: C/GtkApplicationWindow.py.page:56 C/separator.c.page:38
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkApplicationWindow."
"html\">GtkApplicationWindow</link>"
msgstr ""
#. (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
+#: C/aboutdialog.py.page:49 C/checkbutton.py.page:45 C/grid.py.page:57
+#: C/GtkApplicationWindow.py.page:55 C/messagedialog.py.page:65
+#: C/window.py.page:64
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>"
#. (itstool) path: info/title
-#: C/aboutdialog.vala.page:7
+#: C/aboutdialog.vala.page:8
msgctxt "text"
msgid "AboutDialog (Vala)"
-msgstr ""
+msgstr "AboutDialog (Vala)"
#. (itstool) path: credit/name
-#: C/aboutdialog.vala.page:14 C/gmenu.vala.page:13
+#: C/aboutdialog.vala.page:15 C/gmenu.vala.page:14
msgid "Ryan Lortie"
-msgstr ""
+msgstr "Ryan Lortie"
+
+#. (itstool) path: credit/name
+#: C/aboutdialog.vala.page:21 C/beginner.py.page:15 C/beginner.vala.page:15
+#: C/button.vala.page:14 C/c.page:14 C/checkbutton.c.page:13
+#: C/checkbutton.vala.page:13 C/colorbutton.vala.page:15 C/combobox.c.page:18
+#: C/combobox.vala.page:13 C/combobox_multicolumn.vala.page:14 C/cpp.page:11
+#: C/dialog.vala.page:13 C/entry.vala.page:13 C/filechooserdialog.vala.page:16
+#: C/gmenu.c.page:13 C/gmenu.js.page:13 C/gmenu.py.page:15 C/gmenu.vala.page:20
+#: C/grid.py.page:15 C/grid.vala.page:15 C/GtkApplicationWindow.c.page:13
+#: C/GtkApplicationWindow.js.page:13 C/GtkApplicationWindow.py.page:15
+#: C/GtkApplicationWindow.vala.page:13 C/guitar-tuner.vala.page:22
+#: C/hello-world.c.page:20 C/hello-world.js.page:20 C/hello-world.py.page:20
+#: C/hello-world.vala.page:20 C/image.vala.page:13 C/image-viewer.vala.page:27
+#: C/index.page:23 C/js.page:12 C/label.vala.page:13 C/linkbutton.vala.page:13
+#: C/menubar.py.page:15 C/menubar.vala.page:15 C/menubutton.c.page:13
+#: C/menubutton.py.page:14 C/menubutton.vala.page:13
+#: C/messagedialog.vala.page:13 C/paned.c.page:13 C/paned.vala.page:13
+#: C/progressbar.vala.page:13 C/py.page:11 C/radiobutton.vala.page:16
+#: C/response-type.page:9 C/scale.vala.page:15 C/scrolledwindow.vala.page:14
+#: C/separator.c.page:14 C/separator.vala.page:16 C/spinbutton.vala.page:15
+#: C/spinner.vala.page:13 C/statusbar.vala.page:16 C/switch.vala.page:17
+#: C/textview.vala.page:13 C/togglebutton.vala.page:16 C/toolbar.js.page:13
+#: C/toolbar.vala.page:14 C/toolbar_builder.py.page:16
+#: C/toolbar_builder.vala.page:15 C/tooltip.c.page:14 C/tooltip.vala.page:14
+#: C/treeview_simple_liststore.vala.page:15 C/tutorial.py.page:15
+#: C/vala.page:11 C/window.c.page:13 C/window.py.page:15 C/window.vala.page:13
+msgid "Tiffany Antopolski"
+msgstr "Tiffany Antopolski"
#. (itstool) path: page/code
-#: C/aboutdialog.vala.page:33
+#: C/aboutdialog.vala.page:34
#, no-wrap
msgid ""
"/* A window in the application */\n"
@@ -3563,388 +4194,339 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/aboutdialog.vala.page:38 C/gmenu.vala.page:41 C/window.vala.page:37
+#: C/aboutdialog.vala.page:39 C/gmenu.vala.page:39 C/window.vala.page:38
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Application.html\">Gtk."
"Application</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/aboutdialog.vala.page:39 C/gmenu.vala.page:42
-#: C/GtkApplicationWindow.vala.page:31 C/label.vala.page:31
+#: C/aboutdialog.vala.page:40 C/gmenu.vala.page:40
+#: C/GtkApplicationWindow.vala.page:32 C/label.vala.page:32
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ApplicationWindow.html"
"\">Gtk.ApplicationWindow</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/aboutdialog.vala.page:40
+#: C/aboutdialog.vala.page:41
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Window.set_default_size.html"
"\">set_default_size</link>"
msgstr ""
#. (itstool) path: info/desc
-#: C/audio-player.vala.page:9
+#: C/audio-player.vala.page:10
+#, fuzzy
msgid "Coming soon..."
msgstr ""
+"Você está usando uma prévia do Livros. Recursos de visualização completos "
+"chegarão em breve!"
#. (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
+#: C/audio-player.vala.page:14 C/guitar-tuner.c.page:15
+#: C/guitar-tuner.cpp.page:13 C/guitar-tuner.py.page:15
+#: C/guitar-tuner.vala.page:14 C/image-viewer.c.page:15
+#: C/image-viewer.cpp.page:13 C/image-viewer.vala.page:15
+#: C/record-collection.js.page:15
msgid "GNOME Documentation Project"
-msgstr ""
+msgstr "Projeto de Documentação do GNOME"
#. (itstool) path: page/title
-#: C/audio-player.vala.page:18
+#: C/audio-player.vala.page:19
+#, fuzzy
msgid "Audio player"
-msgstr ""
+msgstr "Reproduzir o anexo no reprodutor de áudio embutido"
-#. (itstool) path: info/title
-#: C/beginner.c.page:8
-msgctxt "text"
-msgid "Tutorial for beginners (C)"
-msgstr ""
-
-#. (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 ""
+#. (itstool) path: credit/name
+#: C/beginner.js.page:11 C/grid.js.page:13 C/guitar-tuner.js.page:12
+#: C/hello-world.c.page:15 C/hello-world.js.page:15 C/hello-world.py.page:15
+#: C/hello-world.vala.page:15 C/weatherApp.js.page:12
+#: C/weatherAppMain.js.page:11 C/weatherAutotools.js.page:11
+#: C/weatherGeonames.js.page:11
+msgid "Susanna Huhtanen"
+msgstr "Susanna Huhtanen"
#. (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
+#: C/beginner.js.page:18 C/beginner.py.page:21 C/beginner.vala.page:21
+#: C/buttonbox.js.page:16 C/colorbutton.js.page:15
+#: C/combobox_multicolumn.vala.page:16 C/fontchooserwidget.js.page:15
+#: C/fontchooserwidget.vala.page:15 C/guitar-tuner.c.page:25
+#: C/guitar-tuner.cpp.page:23 C/guitar-tuner.py.page:25
+#: C/guitar-tuner.py.page:30 C/guitar-tuner.vala.page:28
+#: C/image-viewer.c.page:25 C/image-viewer.cpp.page:23
+#: C/image-viewer.js.page:25 C/image-viewer.py.page:25
+#: C/image-viewer.vala.page:33 C/js.page:18 C/magic-mirror.vala.page:25
+#: C/menubutton.c.page:15 C/message-board.c.page:22 C/paned.js.page:15
+#: C/paned.vala.page:15 C/photo-wall.c.page:24 C/py.page:17
+#: C/record-collection.js.page:25 C/scrolledwindow.js.page:15
+#: C/separator.c.page:16 C/separator.vala.page:18 C/tooltip.c.page:16
+#: C/tooltip.js.page:16 C/tooltip.vala.page:16 C/tutorial.py.page:27
+#: C/vala.page:17 C/weatherApp.js.page:19 C/widget_drawing.py.page:15
msgid "2013"
+msgstr "2013"
+
+#. (itstool) path: info/desc
+#: C/beginner.js.page:21
+msgid ""
+"A beginner's guide to writing GNOME applications in JavaScript, including "
+"code samples and practice exercises."
msgstr ""
+"Um guia para iniciantes na escrita de aplicativos do GNOME em JavaScript, "
+"incluindo amostras de códigos e exercícios práticos."
#. (itstool) path: page/title
-#: C/beginner.c.page:25 C/beginner.js.page:23 C/beginner.vala.page:24
+#: C/beginner.js.page:24 C/beginner.vala.page:25
msgid "Tutorial for beginners and code samples"
-msgstr ""
+msgstr "Tutoriais para iniciantes e amostras de códigos"
#. (itstool) path: synopsis/p
-#: C/beginner.c.page:27 C/beginner.vala.page:26
+#: C/beginner.js.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 ""
-
-#. (itstool) path: item/p
-#: C/beginner.c.page:29 C/beginner.vala.page:28
-msgid "Object oriented programming"
-msgstr ""
-
-#. (itstool) path: item/p
-#: C/beginner.c.page:30
-msgid "The C programming language"
+"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 "
+"JavaScript, you can write full-fledged applications for GNOME. <link href="
+"\"https://wiki.gnome.org/Apps/Documents\">GNOME Documents</link> is written "
+"in JavaScript, and so is <link href=\"https://live.gnome.org/GnomeShell/Tour"
+"\">GNOME Shell</link>, the most basic part of GNOME."
msgstr ""
+"JavaScript é uma das linguagens de programação mais populares da web. Não é "
+"apenas para a web, no entanto. Se você tiver uma compreensão básica do "
+"JavaScript, poderá criar aplicativos completos para o GNOME. <link href="
+"\"https://wiki.gnome.org/Apps/Documents\">Documentos do GNOME</link> é "
+"escrito em JavaScript, assim como <link href=\"https://live.gnome.org/"
+"GnomeShell/Tour\">GNOME Shell</link>, a parte mais básica do GNOME."
-#. (itstool) path: synopsis/p
-#: C/beginner.c.page:34 C/beginner.vala.page:37
+#. (itstool) path: note/p
+#: C/beginner.js.page:27
msgid ""
-"By following these tutorials you will learn the basics of GUI programming "
-"using GTK+."
-msgstr ""
-
-#. (itstool) path: section/title
-#: C/beginner.c.page:38 C/beginner.js.page:41 C/beginner.vala.page:41
-msgid "Tutorials"
+"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 "
+"panel. Besides showing how you to write GNOME applications, these tutorials "
+"will also show you how to use JavaScript to write GNOME Shell extensions, "
+"which give it new features or change the way it does things."
msgstr ""
+"O GNOME Shell é o que você vê quando clica em “Atividades” no canto superior "
+"esquerdo da tela. Também controla o relógio e o resto do painel superior. "
+"Além de mostrar como você escreve aplicativos GNOME, esses tutoriais também "
+"mostram como usar o JavaScript para escrever extensões do GNOME Shell, que "
+"fornecem novos recursos ou mudam a maneira como ele faz as coisas."
#. (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.js.page:31
+msgid "Getting Started"
+msgstr "Primeiros passos"
#. (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:"
+#: C/beginner.js.page:32
+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 "
+"are new to developing GNOME applications. If you don't already know "
+"JavaScript, or if you need help getting GNOME set up, take a look at these "
+"resources first:"
msgstr ""
#. (itstool) path: item/p
-#: C/beginner.c.page:47
-msgid "Copy and paste the code into <var>filename</var>.c"
+#: C/beginner.js.page:34
+msgid ""
+"<link href=\"http://eloquentjavascript.net/contents.html\">Eloquent "
+"JavaScript</link> is a free, Creative Commons-licensed book, which explains "
+"the basics of JavaScript programming. Since you won't be writing JavaScript "
+"for the web, you only need to read up to chapter 10 or so."
msgstr ""
#. (itstool) path: item/p
-#: C/beginner.c.page:48 C/beginner.c.page:61 C/beginner.vala.page:51
-msgid "In the terminal type:"
+#: C/beginner.js.page:35
+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 ""
-#. (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"
+#. (itstool) path: item/p
+#: C/beginner.js.page:36
+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 ""
-#. (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>"
+#. (itstool) path: section/title
+#: C/beginner.js.page:42 C/beginner.vala.page:42 C/c.page:113
+msgid "Tutorials"
+msgstr "Tutoriais"
+
+#. (itstool) path: section/title
+#: C/beginner.js.page:46 C/beginner.vala.page:46 C/py.page:32
+#, fuzzy
+msgid "Code samples"
msgstr ""
+"Tutoriais, amostras de código e demonstrações da plataforma em JavaScript"
-#. (itstool) path: note/p
-#: C/beginner.c.page:55
+#. (itstool) path: section/p
+#: C/beginner.js.page:47
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>."
+"These samples show how to use widgets in your GNOME applications. Each one "
+"demonstrates a complete application which showcases the featured widget. At "
+"the end of each sample, you will find links to more detailed reference "
+"material."
msgstr ""
#. (itstool) path: section/p
-#: C/beginner.c.page:59
-msgid "You can also use the Vala compiler to compile these samples:"
-msgstr ""
+#: C/beginner.js.page:48 C/beginner.vala.page:47 C/c.page:91
+#, fuzzy
+msgid "To run the code samples:"
+msgstr "Amostras de códigos e tutoriais"
-#. (itstool) path: item/screen
-#: C/beginner.c.page:62
-#, no-wrap
-msgid "valac --pkg gtk+-3.0 <var>filename</var>.c"
+#. (itstool) path: item/p
+#: C/beginner.js.page:50
+msgid "Copy and paste the code into <var>filename</var>.js"
msgstr ""
#. (itstool) path: item/p
-#: C/beginner.c.page:64
-msgid "To run:"
-msgstr ""
+#: C/beginner.js.page:51
+#, fuzzy
+msgid "In the terminal, type:"
+msgstr "Em um terminal, digite:"
+
+#. (itstool) path: item/screen
+#: C/beginner.js.page:52
+#, fuzzy, no-wrap
+msgid "gjs <var>filename</var>.js"
+msgstr "<cmd>--filename</cmd>=<var>arquivo</var>"
#. (itstool) path: section/title
-#: C/beginner.c.page:68 C/beginner.js.page:54 C/beginner.py.page:31
-#: C/beginner.vala.page:57
+#: C/beginner.js.page:55 C/beginner.py.page:32 C/beginner.vala.page:58
+#: C/c.page:118
+#, fuzzy
msgid "Windows"
-msgstr ""
+msgstr "Windows"
#. (itstool) path: section/title
-#: C/beginner.c.page:71 C/beginner.js.page:56 C/beginner.py.page:33
-#: C/beginner.vala.page:60
+#: C/beginner.js.page:57 C/beginner.py.page:34 C/beginner.vala.page:61
+#: C/c.page:121
+#, fuzzy
msgid "Display widgets"
-msgstr ""
+msgstr "Widgets disponíveis"
#. (itstool) path: section/title
-#: C/beginner.c.page:73 C/beginner.js.page:58 C/beginner.py.page:35
-#: C/beginner.vala.page:62
+#: C/beginner.js.page:59 C/beginner.py.page:36 C/beginner.vala.page:63
+#: C/c.page:123
+#, fuzzy
msgid "Buttons and toggles"
-msgstr ""
+msgstr "Alterna o negrito do texto."
#. (itstool) path: section/title
-#: C/beginner.c.page:75 C/beginner.js.page:60 C/beginner.py.page:37
-#: C/beginner.vala.page:64
+#: C/beginner.js.page:61 C/beginner.py.page:38 C/beginner.vala.page:65
+#: C/c.page:125
+#, fuzzy
msgid "Numeric and text data entry"
-msgstr ""
+msgstr "Entrada de texto"
#. (itstool) path: section/title
-#: C/beginner.c.page:77 C/beginner.js.page:62 C/beginner.py.page:39
-#: C/beginner.vala.page:66
+#: C/beginner.js.page:63 C/beginner.py.page:40 C/beginner.vala.page:67
+#: C/c.page:127
+#, fuzzy
msgid "Multiline text editor"
-msgstr ""
+msgstr "Multilinha"
#. (itstool) path: section/title
-#: C/beginner.c.page:79 C/beginner.js.page:64 C/beginner.py.page:41
-#: C/beginner.vala.page:68
+#: C/beginner.js.page:65 C/beginner.py.page:42 C/beginner.vala.page:69
+#: C/c.page:129
msgid "Menu, combo box and toolbar widgets"
msgstr ""
#. (itstool) path: section/title
-#: C/beginner.c.page:81 C/beginner.js.page:66 C/beginner.py.page:43
-#: C/beginner.vala.page:70
+#: C/beginner.js.page:67 C/beginner.py.page:44 C/beginner.vala.page:71
+#: C/c.page:131
+#, fuzzy
msgid "TreeView widget"
-msgstr ""
+msgstr "Widget de visualização em árvore"
#. (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
+#: C/beginner.js.page:69 C/beginner.py.page:46 C/beginner.vala.page:73
+#: C/c.page:133 C/tutorial.py.page:127
+#, fuzzy
msgid "Selectors"
-msgstr ""
+msgstr "Suplemento de seletores de variação"
#. (itstool) path: section/title
-#: C/beginner.c.page:84 C/beginner.js.page:69 C/beginner.py.page:46
-#: C/beginner.vala.page:73
+#: C/beginner.js.page:70 C/beginner.py.page:47 C/beginner.vala.page:74
+#: C/c.page:134
+#, fuzzy
msgid "File selectors"
-msgstr ""
+msgstr "Seletores de cor"
#. (itstool) path: section/title
-#: C/beginner.c.page:86 C/beginner.js.page:71 C/beginner.py.page:48
-#: C/beginner.vala.page:75
+#: C/beginner.js.page:72 C/beginner.py.page:49 C/beginner.vala.page:76
+#: C/c.page:136
+#, fuzzy
msgid "Font selectors"
-msgstr ""
+msgstr "Seletores de cor"
#. (itstool) path: section/title
-#: C/beginner.c.page:88 C/beginner.js.page:73 C/beginner.py.page:50
-#: C/beginner.vala.page:77
+#: C/beginner.js.page:74 C/beginner.py.page:51 C/beginner.vala.page:78
+#: C/c.page:138
+#, fuzzy
msgid "Color Selectors"
-msgstr ""
+msgstr "Seletores de cor"
#. (itstool) path: section/title
-#: C/beginner.c.page:91 C/beginner.js.page:76 C/beginner.py.page:53
-#: C/beginner.vala.page:80
+#: C/beginner.js.page:77 C/beginner.py.page:54 C/beginner.vala.page:81
+#: C/c.page:141
+#, fuzzy
msgid "Layout containers"
-msgstr ""
+msgstr "Contêiners personalizados"
#. (itstool) path: section/title
-#: C/beginner.c.page:93 C/beginner.js.page:78 C/beginner.py.page:55
-#: C/beginner.vala.page:82
+#: C/beginner.js.page:79 C/beginner.py.page:56 C/beginner.vala.page:83
+#: C/c.page:143
+#, fuzzy
msgid "Ornaments"
-msgstr ""
+msgstr "Ornamentos"
#. (itstool) path: section/title
-#: C/beginner.c.page:95 C/beginner.js.page:80 C/beginner.py.page:57
-#: C/beginner.vala.page:84
+#: C/beginner.js.page:81 C/beginner.py.page:58 C/beginner.vala.page:85
+#: C/c.page:145
+#, fuzzy
msgid "Scrolling"
-msgstr ""
+msgstr "Bloquear rolagem"
#. (itstool) path: section/title
-#: C/beginner.c.page:97 C/beginner.js.page:82 C/beginner.py.page:59
-#: C/beginner.vala.page:86
+#: C/beginner.js.page:83 C/beginner.py.page:60 C/beginner.vala.page:87
+#: C/c.page:147
+#, fuzzy
msgid "Miscellaneous"
-msgstr ""
+msgstr "Diversos"
#. (itstool) path: section/title
-#: C/beginner.c.page:102 C/beginner.js.page:87 C/beginner.vala.page:91
-#: C/menubar.vala.page:197
+#: C/beginner.js.page:88 C/beginner.vala.page:92 C/menubar.vala.page:198
+#, fuzzy
msgid "Exercises"
-msgstr ""
-
-#. (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 ""
-
-#. (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 ""
-
-#. (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 "
-"JavaScript, you can write full-fledged applications for GNOME. <link href="
-"\"https://live.gnome.org/GnomeDocuments\">GNOME Documents</link> is written "
-"in JavaScript, and so is <link href=\"https://live.gnome.org/GnomeShell/Tour"
-"\">GNOME Shell</link>, the most basic part of GNOME."
-msgstr ""
-
-#. (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 "
-"panel. Besides showing how you to write GNOME applications, these tutorials "
-"will also show you how to use JavaScript to write GNOME Shell extensions, "
-"which give it new features or change the way it does things."
-msgstr ""
-
-#. (itstool) path: section/title
-#: C/beginner.js.page:30
-msgid "Getting Started"
-msgstr ""
-
-#. (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 "
-"are new to developing GNOME applications. If you don't already know "
-"JavaScript, or if you need help getting GNOME set up, take a look at these "
-"resources first:"
-msgstr ""
-
-#. (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 "
-"the basics of JavaScript programming. Since you won't be writing JavaScript "
-"for the web, you only need to read up to chapter 10 or so."
-msgstr ""
-
-#. (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 ""
-
-#. (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 ""
-
-#. (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 "
-"the end of each sample, you will find links to more detailed reference "
-"material."
-msgstr ""
-
-#. (itstool) path: item/p
-#: C/beginner.js.page:49
-msgid "Copy and paste the code into <var>filename</var>.js"
-msgstr ""
-
-#. (itstool) path: item/p
-#: C/beginner.js.page:50
-msgid "In the terminal, type:"
-msgstr ""
-
-#. (itstool) path: item/screen
-#: C/beginner.js.page:51
-#, no-wrap
-msgid "gjs <var>filename</var>.js"
-msgstr ""
+msgstr "Todos os exercícios"
#. (itstool) path: info/title
-#: C/beginner.py.page:8
+#: C/beginner.py.page:9
msgctxt "text"
msgid "GTK+ widgets sample code (Python)"
msgstr ""
#. (itstool) path: info/desc
-#: C/beginner.py.page:12
+#: C/beginner.py.page:13
msgid ""
"A guide to GUI programming using GTK+, including code samples and practice "
"exercises."
msgstr ""
#. (itstool) path: page/title
-#: C/beginner.py.page:24
+#: C/beginner.py.page:25
+#, fuzzy
msgid "GTK+ widgets sample code"
-msgstr ""
+msgstr "Widgets e objetos não-GTK+"
#. (itstool) path: synopsis/p
-#: C/beginner.py.page:26
+#: C/beginner.py.page:27
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 "
@@ -3953,183 +4535,127 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/beginner.py.page:63
+#: C/beginner.py.page:64
+#, fuzzy
msgid "Theory pages"
-msgstr ""
+msgstr "Teoria musical"
#. (itstool) path: info/title
-#: C/beginner.vala.page:8
+#: C/beginner.vala.page:9
msgctxt "text"
msgid "Tutorial for beginners (Vala)"
+msgstr "Tutorial for beginners (Vala)"
+
+#. (itstool) path: info/desc
+#: C/beginner.vala.page:13
+msgid ""
+"A beginner's guide to GUI programming using GTK+, including code samples and "
+"practice exercises."
+msgstr ""
+
+#. (itstool) path: synopsis/p
+#: C/beginner.vala.page:27
+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 ""
#. (itstool) path: item/p
#: C/beginner.vala.page:29
-msgid "The Vala programming language:"
+#, fuzzy
+msgid "Object oriented programming"
msgstr ""
+"Cim é o compilador GNU para Simula, a primeira linguagem de programação "
+"orientada a objetos. <small>(<a href=\"/manual/manual.html#cim\">doc</a>)</"
+"small>"
+
+#. (itstool) path: item/p
+#: C/beginner.vala.page:30
+#, fuzzy
+msgid "The Vala programming language:"
+msgstr "Linguagem de _programação:"
#. (itstool) path: item/p
-#: C/beginner.vala.page:31
+#: C/beginner.vala.page:32
msgid ""
"<link href=\"https://live.gnome.org/Vala/Tutorial\">The Vala Tutorial</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/beginner.vala.page:32
+#: C/beginner.vala.page:33
msgid ""
"<link href=\"https://live.gnome.org/Vala/Documentation#Sample_Code\">Sample "
"Vala code</link>"
msgstr ""
+#. (itstool) path: synopsis/p
+#: C/beginner.vala.page:38
+msgid ""
+"By following these tutorials you will learn the basics of GUI programming "
+"using GTK+."
+msgstr ""
+
#. (itstool) path: item/p
-#: C/beginner.vala.page:50
+#: C/beginner.vala.page:51
msgid "Copy and paste the code into <var>filename</var>.vala"
msgstr ""
+#. (itstool) path: item/p
+#: C/beginner.vala.page:52 C/c.page:98
+#, fuzzy
+msgid "In the terminal type:"
+msgstr "Em um terminal, digite:"
+
#. (itstool) path: item/screen
-#: C/beginner.vala.page:52
+#: C/beginner.vala.page:53
#, no-wrap
msgid "valac --pkg gtk+-3.0 <var>filename</var>.vala"
msgstr ""
-#. (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 ""
-
-#. (itstool) path: page/title
-#: C/bug-filing.page:18
-msgid "Help make <app>GNOME Developer Tutorials</app> better"
-msgstr ""
-"Ajudando a melhorar os <app>tutoriais de desenvolvimento do GNOME</app>"
-
-#. (itstool) path: section/title
-#: C/bug-filing.page:21
-msgid "Report a bug or suggest an improvement"
-msgstr "Relatando um erro ou sugerindo uma melhora"
-
-#. (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/\"/>."
-msgstr ""
-"Os <app>tutoriais de desenvolvimento do GNOME</app> são mantidos por uma "
-"comunidade voluntária. Você está convidado para participar. Se você "
-"identificar um problema, você pode preencher um <em>relatório de erro</em>. "
-"Para isso, acesse o <link href=\"https://bugzilla.gnome.org/\"/>."
-
-#. (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 ""
-"Esse é um sistema de rastreamento de erros, no qual usuários e "
-"desenvolvedores podem informar detalhes sobre erros, travamentos e "
-"requisitar melhoras."
-
-# Bugzilla não está traduzido e, portanto, mantive "New Account" em inglês
-#. (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 "
-"receive updates by e-mail about the status of your bug. If you don't already "
-"have an account, just click on the <gui>New Account</gui> link to create one."
-msgstr ""
-"Para participar, você precisa de uma conta que vai dar a você a habilidade "
-"de acessar, preencher relatórios de erros e fazer comentários. Além disso, "
-"você vai vai precisar registrar de forma que você possa receber atualizações "
-"por e-mail sobre o estado de seus relatórios de erros. Se você ainda não "
-"tiver uma conta, basta clicar no link <gui>New Account</gui> para criar uma."
-
-#. (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."
-msgstr ""
-"Assim que você tiver uma conta, inicie a sessão, clique em <guiseq><gui>File "
-"a Bug</gui><gui>All</gui><gui>gnome-devel-docs</gui></guiseq>. Antes de "
-"relatar um erro, por favor leia as <link href=\"https://bugzilla.gnome.org/"
-"page.cgi?id=bug-writing.html\">diretrizes para relatar de erros</link> e, "
-"por favor, <link href=\"https://bugzilla.gnome.org/browse.cgi?product=gnome-"
-"games\">pesquisem</link> o erro para ver se um relatório de erro já existe."
-
-#. (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 ""
-"Para relatar seu erro, escolha o componente <gui>platform-demos</gui> no "
-"menu <gui>Component</gui>."
-
-#. (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 ""
-"Se você está requisitando uma nova funcionalidade, escolha <gui>enhancement</"
-"gui> no menu de <gui>Severity</gui>. Preencha as seções Summary e "
-"Description e clique em <gui>Commit</gui>."
-
-#. (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 ""
-"Seu relatório vai receber um número de ID e seu estado será atualizado como "
-"sendo lidado. Obrigado por ajudar na melhoria dos <app>tutoriais de "
-"desenvolvimento do GNOME</app>!"
-
-#. (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/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 ""
+#. (itstool) path: item/screen
+#: C/beginner.vala.page:54 C/c.page:100
+#, fuzzy, no-wrap
+msgid "./<var>filename</var>"
+msgstr "Localiza mensagens com anexos cujo nome corresponda a <var>nome de arquivo</var>."
#. (itstool) path: info/title
-#: C/button.c.page:7
+#: C/button.c.page:8
msgctxt "text"
msgid "Button (C)"
-msgstr ""
+msgstr "Button (C)"
#. (itstool) path: info/desc
-#: C/button.c.page:19 C/button.py.page:19 C/button.vala.page:18
+#: C/button.c.page:20 C/button.py.page:20 C/button.vala.page:19
msgid "A button widget which emits a signal when clicked"
msgstr ""
#. (itstool) path: page/title
-#: C/button.c.page:22 C/button.js.page:20 C/button.py.page:22
+#: C/button.c.page:23 C/button.js.page:21 C/button.py.page:23
+#, fuzzy
msgid "Button"
-msgstr ""
+msgstr "Bot@~{a}o"
+
+#. (itstool) path: page/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/button.c.page:25 C/button.js.page:22 C/button.py.page:25
+#: C/button.vala.page:24
+msgctxt "_"
+msgid "external ref='media/button.png' md5='8d69efbb3a0d3e043af6139b6492171c'"
+msgstr "external ref='media/button.png' md5='8d69efbb3a0d3e043af6139b6492171c'"
#. (itstool) path: page/p
-#: C/button.c.page:25
+#: C/button.c.page:26
msgid ""
"A button widget connected to a callback function that reverses its label "
"when clicked."
msgstr ""
#. (itstool) path: page/code
-#: C/button.c.page:27
+#: C/button.c.page:28
#, no-wrap
msgid ""
"\n"
@@ -4199,74 +4725,137 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/button.c.page:35 C/buttonbox.py.page:50 C/grid.c.page:34
+#: C/button.c.page:36 C/buttonbox.py.page:51 C/grid.c.page:35
+#, fuzzy
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkButton.html"
"\">GtkButton</link>"
msgstr ""
+"<link href=\"https://developer.gnome.org/gtk3/stable/GtkButton.html"
+"\">GtkButton</link>"
#. (itstool) path: item/p
-#: C/button.c.page:36
+#: C/button.c.page:37
msgid ""
"<link href=\"http://developer.gnome.org/glib/stable/glib-Unicode-"
"Manipulation.html#g-utf8-strreverse\">Unicode Manipulation</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/button.js.page:7
+#: C/button.js.page:8
msgctxt "text"
msgid "Button (JavaScript)"
-msgstr ""
+msgstr "Button (JavaScript)"
#. (itstool) path: info/desc
-#: C/button.js.page:17
+#: C/button.js.page:18
msgid "A button which can be connected to other widgets"
msgstr ""
#. (itstool) path: page/p
-#: C/button.js.page:22
+#: C/button.js.page:23
msgid "A button widget that changes its label when you click it."
msgstr ""
#. (itstool) path: page/code
-#: C/button.js.page:24
-#, no-wrap
+#: C/button.js.page:25
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const GLib = imports.gi.GLib;\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "const Webkit = imports.gi.WebKit;\n"
+#| "\n"
+#| "const HelloGNOME = new Lang.Class ({\n"
+#| " Name: 'Hello GNOME',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function () {\n"
+#| " this.application = new Gtk.Application ();\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 ({\n"
+#| " application: this.application,\n"
+#| " title: \"Welcome to GNOME\",\n"
+#| " default_height: 200,\n"
+#| " default_width: 400,\n"
+#| " window_position: Gtk.WindowPosition.CENTER });\n"
+#| "\n"
+#| " // Create a webview to show the web app\n"
+#| " this._webView = new Webkit.WebView ();\n"
+#| "\n"
+#| " // Put the web app into the webview\n"
+#| " this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+#| " \"/hellognome.html\", null));\n"
+#| "\n"
+#| " // Put the webview into the window\n"
+#| " this._window.add (this._webView);\n"
+#| "\n"
+#| " // Show the window and all child widgets\n"
+#| " this._window.show_all();\n"
+#| " },\n"
+#| "\n"
+#| "});\n"
+#| "\n"
+#| "// Run the application\n"
+#| "let app = new HelloGNOME ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const Gio = imports.gi.Gio;\n"
"const GLib = imports.gi.GLib;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const ButtonExample = new Lang.Class ({\n"
-" Name: 'Button Example',\n"
+"class ButtonExample {\n"
"\n"
" /* Create the application itself\n"
" This boilerplate code is needed to build any GTK+ application. */\n"
-" _init: function () {\n"
-" this.application = new Gtk.Application ({\n"
-" application_id: 'org.example.jsbutton',\n"
-" flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-" });\n"
+" constructor() {\n"
+" this.application = new Gtk.Application ({\n"
+" application_id: 'org.example.jsbutton',\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"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function () {\n"
+" _onActivate() {\n"
" this._window.present ();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal initializes menus and builds the UI\n"
-" _onStartup: function () {\n"
-" this._buildUI ();\n"
-" },\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function () {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow ({ application: this.application,\n"
@@ -4280,50 +4869,111 @@ msgid ""
" this._window.add (this.Button);\n"
"\n"
" // Bind it to a function that says what to do when the button is clicked\n"
-" this.Button.connect (\"clicked\", Lang.bind(this, this._clickHandler));\n"
+" this.Button.connect (\"clicked\", this._clickHandler.bind(this));\n"
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
+" }\n"
"\n"
" // Here's the function that says what happens when the button is clicked\n"
-" _clickHandler: function () {\n"
+" _clickHandler() {\n"
" this.Button.set_label (\"Clicked!\");\n"
" }\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new ButtonExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const GLib = imports.gi.GLib;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"const Webkit = imports.gi.WebKit;\n"
+"\n"
+"const HelloGNOME = new Lang.Class ({\n"
+" Name: 'Olá, GNOME',\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function () {\n"
+" this.application = new Gtk.Application ();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativa\n"
+" _onActivate: function () {\n"
+" this._window.present ();\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup: function () {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function () {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow ({\n"
+" application: this.application,\n"
+" title: \"Bem-vindo ao GNOME\",\n"
+" default_height: 200,\n"
+" default_width: 400,\n"
+" window_position: Gtk.WindowPosition.CENTER });\n"
+"\n"
+" // Cria um webview para mostrar o aplicativo web\n"
+" this._webView = new Webkit.WebView ();\n"
+"\n"
+" // Coloca o aplicativo web no webview\n"
+" this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+" \"/hellognome.html\", null));\n"
+"\n"
+" // Coloca o webview na janela\n"
+" this._window.add (this._webView);\n"
+"\n"
+" // Mostra a janela e todos seus widgets filhos\n"
+" this._window.show_all();\n"
+" },\n"
+"\n"
+"});\n"
+"\n"
+"// Executa o aplicativo\n"
+"let app = new HelloGNOME ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: item/p
-#: C/button.js.page:32 C/grid.js.page:35
+#: C/button.js.page:33 C/grid.js.page:36
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Button.html"
"\">Gtk.Button</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/button.py.page:7
+#: C/button.py.page:8
msgctxt "text"
msgid "Button (Python)"
-msgstr ""
+msgstr "Button (Python)"
#. (itstool) path: page/p
-#: C/button.py.page:25 C/button.vala.page:24
+#: C/button.py.page:26 C/button.vala.page:25
msgid "A button widget connected to a simple callback function."
msgstr ""
#. (itstool) path: section/code
-#: C/button.py.page:31
+#: C/button.py.page:32
#, no-wrap
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"
@@ -4340,9 +4990,11 @@ msgid ""
"\n"
" # callback function connected to the signal \"clicked\" of the button\n"
" def do_clicked(self, button):\n"
-" print \"You clicked me!\"\n"
+" print(\"You clicked me!\")\n"
+"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -4350,8 +5002,8 @@ 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"
@@ -4359,12 +5011,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/button.py.page:35
+#: C/button.py.page:36
+#, fuzzy
msgid "Useful methods for a Button widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: section/p
-#: C/button.py.page:36
+#: C/button.py.page:37
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</"
@@ -4373,7 +5026,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/button.py.page:38
+#: C/button.py.page:39
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</"
@@ -4381,21 +5034,22 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/button.py.page:39
+#: C/button.py.page:40
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 ""
#. (itstool) path: item/p
-#: C/button.py.page:40
+#: C/button.py.page:41
msgid ""
"To set an image (e.g. a stock image) for the button <code>button</code>:"
msgstr ""
#. (itstool) path: item/code
-#: C/button.py.page:41
+#: C/button.py.page:42
#, no-wrap
msgid ""
"\n"
@@ -4405,14 +5059,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/button.py.page:45
+#: C/button.py.page:46
msgid ""
"You should not set a label for the button after this, otherwise it will show "
"the label and not the image."
msgstr ""
#. (itstool) path: item/p
-#: C/button.py.page:46
+#: C/button.py.page:47
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 "
@@ -4421,34 +5075,37 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/button.py.page:54
+#: C/button.py.page:55
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkButton.html"
"\">GtkButton</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkButton.html"
+"\">GtkButton</link>"
#. (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
+#: C/button.py.page:56 C/dialog.py.page:52 C/label.py.page:106
+#: C/linkbutton.py.page:47 C/messagedialog.py.page:61 C/radiobutton.py.page:49
+#: C/separator.py.page:39 C/window.py.page:65
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkWindow.html"
"\">GtkWindow</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/button.vala.page:7
+#: C/button.vala.page:8
msgctxt "text"
msgid "Button (Vala)"
-msgstr ""
+msgstr "Button (Vala)"
#. (itstool) path: page/title
-#: C/button.vala.page:21
+#: C/button.vala.page:22
+#, fuzzy
msgid "Button widget"
-msgstr ""
+msgstr "A largura desejada do componente do botão, em caracteres."
#. (itstool) path: page/code
-#: C/button.vala.page:26
+#: C/button.vala.page:27
#, no-wrap
msgid ""
"\n"
@@ -4497,87 +5154,90 @@ msgid ""
msgstr ""
#. (itstool) path: page/p
-#: C/button.vala.page:28
+#: C/button.vala.page:29
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.js.page:23 C/buttonbox.py.page:24
-msgctxt "_"
-msgid ""
-"external ref='media/buttonbox_calculator.png' "
-"md5='ce0de08b7ac66f517290e33e6d33d508'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/buttonbox.js.page:7
+#: C/buttonbox.js.page:8
msgctxt "text"
msgid "ButtonBox (JavaScript)"
-msgstr ""
+msgstr "ButtonBox (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
+#: C/buttonbox.js.page:14 C/colorbutton.js.page:13
+#: C/fontchooserwidget.js.page:13 C/paned.js.page:13
+#: C/scrolledwindow.js.page:13 C/tooltip.js.page:14
msgid "Meg Ford"
msgstr ""
#. (itstool) path: info/desc
-#: C/buttonbox.js.page:18 C/buttonbox.py.page:19
+#: C/buttonbox.js.page:19 C/buttonbox.py.page:20
+#, fuzzy
msgid "A container for arranging buttons"
-msgstr ""
+msgstr "Organizando elementos nas interfaces de usuário."
#. (itstool) path: page/title
#. (itstool) path: steps/title
-#: C/buttonbox.js.page:21 C/buttonbox.py.page:22 C/tutorial.py.page:91
+#: C/buttonbox.js.page:22 C/buttonbox.py.page:23 C/tutorial.py.page:92
msgid "ButtonBox"
+msgstr "ButtonBox"
+
+#. (itstool) path: page/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.js.page:24 C/buttonbox.py.page:25
+msgctxt "_"
+msgid ""
+"external ref='media/buttonbox_calculator.png' "
+"md5='ce0de08b7ac66f517290e33e6d33d508'"
msgstr ""
#. (itstool) path: page/p
-#: C/buttonbox.js.page:24 C/buttonbox.py.page:25
+#: C/buttonbox.js.page:25 C/buttonbox.py.page:26
msgid "A calculator - the buttons are enclosed in horizontal ButtonBoxes."
msgstr ""
#. (itstool) path: section/code
-#: C/buttonbox.js.page:30
+#: C/buttonbox.js.page:31
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\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"
+"class ButtonBoxExample {\n"
"\n"
" // Create the application itthis\n"
-" _init: function () {\n"
-" this.application = new Gtk.Application({ application_id: 'org.example.jsbuttonbox' });\n"
+" constructor() {\n"
+" this.application = new Gtk.Application({\n"
+" application_id: 'org.example.jsbuttonbox'\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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this.window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function() {\n"
-" this._buildUI ();\n"
-" },\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
" // Create the application window\n"
" this.window = new Gtk.ApplicationWindow ({ application: this.application,\n"
" window_position: Gtk.WindowPosition.CENTER,\n"
@@ -4603,17 +5263,17 @@ msgid ""
" 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"
+" for (let 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"
+" for (let 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.button.connect(\"clicked\", this._buttonClicked.bind(this));\n"
" this.hbox.add(this.button);\n"
" }\n"
" }\n"
@@ -4627,10 +5287,10 @@ msgid ""
" // add the grid to the window\n"
" this.window.add(this.grid);\n"
" this.window.show_all();\n"
-" },\n"
+" }\n"
"\n"
" // callback function for all the buttons\n"
-" _buttonClicked: function(button) {\n"
+" _buttonClicked(button) {\n"
" this.button = button;\n"
" // for the operations\n"
" if (this.button.get_label() == '+') {\n"
@@ -4695,9 +5355,9 @@ msgid ""
" this.secondNumber = this.number;\n"
" this.entry.set_text(this.number.toString());\n"
" }\n"
-" },\n"
+" }\n"
"\n"
-" _doOperation: function() {\n"
+" _doOperation() {\n"
" if (this.operation == \"plus\") {\n"
" this.firstNumber += this.secondNumber;\n"
" } else if (this.operation == \"minus\") {\n"
@@ -4723,7 +5383,7 @@ msgid ""
" this.entry.set_text(\"error\");\n"
" }\n"
" }\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new ButtonBoxExample();\n"
@@ -4731,54 +5391,56 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/buttonbox.js.page:37
+#: C/buttonbox.js.page:38
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.ButtonBox.html"
"\">GtkButtonBox</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/buttonbox.js.page:38
+#: C/buttonbox.js.page:39
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Box.html"
"\">GtkBox</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/buttonbox.js.page:39
+#: C/buttonbox.js.page:40
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Button.html"
"\">GtkButton</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/buttonbox.js.page:40
+#: C/buttonbox.js.page:41
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Entry.html"
"\">GtkEntry</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/buttonbox.js.page:41
+#: C/buttonbox.js.page:42
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Grid.html"
"\">GtkGrid</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/buttonbox.py.page:7
+#: C/buttonbox.py.page:8
msgctxt "text"
msgid "ButtonBox (Python)"
-msgstr ""
+msgstr "ButtonBox (Python)"
#. (itstool) path: section/code
-#: C/buttonbox.py.page:31
+#: C/buttonbox.py.page:32
#, 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"
@@ -4796,17 +5458,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"
@@ -4817,7 +5479,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"
@@ -4831,25 +5493,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"
@@ -4873,7 +5535,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"
@@ -4902,8 +5564,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"
@@ -4920,12 +5584,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/buttonbox.py.page:35
-msgid "Uselful methods for a ButtonBox widget"
-msgstr ""
+#: C/buttonbox.py.page:36
+#, fuzzy
+msgid "Useful methods for a ButtonBox widget"
+msgstr "Métodos úteis"
#. (itstool) path: item/p
-#: C/buttonbox.py.page:37
+#: C/buttonbox.py.page:38
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> "
@@ -4937,7 +5602,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/buttonbox.py.page:38
+#: C/buttonbox.py.page:39
msgid ""
"<code>set_child_secondary(button, is_secondary)</code> sets whether "
"<code>button</code> should appear in a secondary group of children. A "
@@ -4951,107 +5616,236 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/buttonbox.py.page:39
+#: C/buttonbox.py.page:40
msgid ""
"<code>set_child_non_homogeneous(button, is_non_homogeneous)</code> sets "
-"whether the child is exempted from homogeous sizing. Default value is "
+"whether the child is exempted from homogeneous sizing. Default value is "
"<code>False</code>."
msgstr ""
#. (itstool) path: item/p
-#: C/buttonbox.py.page:40
+#: C/buttonbox.py.page:41
msgid ""
"<code>set_spacing(spacing)</code> sets the spacing, in pixels, between the "
"buttons of the box."
msgstr ""
#. (itstool) path: item/p
-#: C/buttonbox.py.page:48
+#: C/buttonbox.py.page:49
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>"
#. (itstool) path: item/p
-#: C/buttonbox.py.page:49
+#: C/buttonbox.py.page:50
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>"
#. (itstool) path: item/p
-#: C/buttonbox.py.page:51 C/entry.c.page:33
+#: C/buttonbox.py.page:52 C/entry.c.page:34
msgid ""
"<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>"
#. (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
+#: C/buttonbox.py.page:53 C/grid.c.page:36 C/radiobutton.c.page:37
+#: C/spinbutton.c.page:40 C/statusbar.c.page:40 C/switch.c.page:37
+#: C/togglebutton.c.page:40
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>"
#. (itstool) path: info/title
-#: C/c.page:6
+#: C/c.page:9
msgctxt "link"
msgid "C"
+msgstr "C"
+
+#. (itstool) path: credit/name
+#: C/c.page:18
+msgid "Bastian Ilso"
msgstr ""
+#. (itstool) path: info/desc
+#: C/c.page:24
+#, fuzzy
+#| msgid "Tutorials, code samples, platform demos and more"
+msgid "Tutorials and code samples in C."
+msgstr "Amostras de códigos e tutoriais"
+
#. (itstool) path: page/title
-#: C/c.page:15
-msgid "Tutorials, code samples and plaform demos in C"
+#: C/c.page:27
+#, fuzzy
+msgid "Platform Demos in C"
+msgstr "Demonstrativos da plataforma do GNOME"
+
+#. (itstool) path: section/title
+#: C/c.page:31
+msgid "Prerequisites"
+msgstr "Pré-requisitos"
+
+#. (itstool) path: section/p
+#: C/c.page:33
+msgid ""
+"To compile these platform demos you will need a C compiler, for example "
+"<link href=\"https://gcc.gnu.org/\">gcc</link>. You will also need GTK+ 3 "
+"including headers and pkg-config files. Linux distributions usually abstract "
+"GTK+ 3 headers and pkg-config files into separate packages called <em>gtk3-"
+"devel</em>, <em>gtk3-dev</em> or similar."
msgstr ""
#. (itstool) path: section/title
-#: C/c.page:20 C/vala.page:25
-msgid "Code samples and tutorial"
+#: C/c.page:44
+#, fuzzy
+msgid "Guidelines for new developers"
+msgstr "Diretrizes"
+
+#. (itstool) path: section/p
+#: C/c.page:46
+msgid ""
+"Beyond the prerequisites mentioned above, several tools has been developed "
+"to assist you further in developing your GNOME application. GNOME also "
+"recommends a specific coding style and conventions which this section will "
+"elaborate further upon."
msgstr ""
#. (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"
+#: C/c.page:52
+#, fuzzy
+msgid "Recommended tools"
+msgstr "Não recomendado"
+
+#. (itstool) path: item/p
+#: C/c.page:56
+msgid ""
+"<link href=\"https://wiki.gnome.org/Apps/Devhelp\">DevHelp</link>: An API "
+"documentation browser for GNOME."
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/checkbutton.c.page:21 C/checkbutton.js.page:21 C/checkbutton.py.page:22
-#: C/checkbutton.vala.page:21
-msgctxt "_"
+#. (itstool) path: item/p
+#: C/c.page:60
msgid ""
-"external ref='media/checkbutton.png' md5='7921a6812c87dd2b3781f4fad241e858'"
+"A GNOME IDE (Integrated Development Environment). An IDE can assist you in "
+"writing and debugging C code, for example <link href=\"https://wiki.gnome."
+"org/Apps/Builder\">Builder</link> or <link href=\"https://wiki.gnome.org/"
+"Apps/Anjuta\">Anjuta</link>."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/c.page:66
+msgid ""
+"<link href=\"http://glade.gnome.org/\">Glade</link>: A user interface "
+"designer for GTK+ Applications."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/c.page:70
+msgid ""
+"An IRC Client, for example <link href=\"https://wiki.gnome.org/Apps/Polari"
+"\">Polari</link> or <link href=\"https://wiki.gnome.org/Apps/Empathy"
+"\">Empathy</link>. If you run into problems while following the beginner "
+"tutorials, join #gnome on <em>irc.gnome.org</em>."
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/c.page:80
+#, fuzzy
+msgid "Coding Style"
+msgstr "Estilo de codificação C"
+
+#. (itstool) path: section/p
+#: C/c.page:82
+msgid ""
+"Most applications in the GNOME project is written in the <link href=\"http://"
+"en.wikipedia.org/wiki/Indent_style#GNU_style\">GNU style</link> of "
+"indentation. The tutorials and code examples presented are following this "
+"convention and you are recommended to do so too."
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/c.page:89
+#, fuzzy
+msgid "Executing Code"
+msgstr "EXECUTANDO"
+
+#. (itstool) path: item/p
+#: C/c.page:95
+msgid "Copy and paste the code into <var>filename</var>.c"
+msgstr ""
+
+#. (itstool) path: item/screen
+#: C/c.page:99
+#, no-wrap
+msgid "gcc <var>filename</var>.c `pkg-config --cflags --libs gtk+-3.0` -o <var>filename</var>"
msgstr ""
+#. (itstool) path: note/p
+#: C/c.page:105
+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>."
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/c.page:117
+#, fuzzy
+#| msgid "Complete code sample"
+msgid "Widget Code Examples"
+msgstr "Demonstrações e exemplos de códigos"
+
#. (itstool) path: info/title
-#: C/checkbutton.c.page:7
+#: C/checkbutton.c.page:8
msgctxt "text"
msgid "CheckButton (C)"
-msgstr ""
+msgstr "CheckButton (C)"
#. (itstool) path: info/desc
-#: C/checkbutton.c.page:17
+#: C/checkbutton.c.page:18
msgid "Create widgets with a discrete ToggleButton"
msgstr ""
#. (itstool) path: page/title
-#: C/checkbutton.c.page:20 C/checkbutton.js.page:20 C/checkbutton.py.page:21
-#: C/checkbutton.vala.page:20
+#: C/checkbutton.c.page:21 C/checkbutton.js.page:21 C/checkbutton.py.page:22
+#: C/checkbutton.vala.page:21
+#, fuzzy
msgid "CheckButton"
+msgstr "Botão de seleção"
+
+#. (itstool) path: page/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/checkbutton.c.page:22 C/checkbutton.js.page:22 C/checkbutton.py.page:23
+#: C/checkbutton.vala.page:22
+msgctxt "_"
+msgid ""
+"external ref='media/checkbutton.png' md5='7921a6812c87dd2b3781f4fad241e858'"
msgstr ""
+"external ref='media/checkbutton.png' md5='7921a6812c87dd2b3781f4fad241e858'"
#. (itstool) path: page/p
-#: C/checkbutton.c.page:22 C/checkbutton.py.page:23 C/checkbutton.vala.page:22
+#: C/checkbutton.c.page:23 C/checkbutton.py.page:24 C/checkbutton.vala.page:23
+#, fuzzy
msgid "This CheckButton toggles the title."
-msgstr ""
+msgstr "Botão de seleção"
#. (itstool) path: page/code
-#: C/checkbutton.c.page:24
+#: C/checkbutton.c.page:25
#, no-wrap
msgid ""
"#include <gtk/gtk.h>\n"
@@ -5103,32 +5897,32 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/checkbutton.c.page:29
+#: C/checkbutton.c.page:30
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/3.2/GtkCheckButton.html"
"\">GtkCheckButton</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/checkbutton.js.page:7
+#: C/checkbutton.js.page:8
msgctxt "text"
msgid "CheckButton (JavaScript)"
-msgstr ""
+msgstr "CheckButton (JavaScript)"
#. (itstool) path: info/desc
-#: C/checkbutton.js.page:17
+#: C/checkbutton.js.page:18
msgid "A box which can be checked or unchecked"
msgstr ""
#. (itstool) path: page/p
-#: C/checkbutton.js.page:22
+#: C/checkbutton.js.page:23
msgid ""
"This application has a CheckButton. Whether the box is checked dictates "
"whether the window's title bar shows anything."
msgstr ""
#. (itstool) path: page/p
-#: C/checkbutton.js.page:23
+#: C/checkbutton.js.page:24
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"
@@ -5136,36 +5930,46 @@ msgid ""
msgstr ""
#. (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
+#: C/checkbutton.js.page:28 C/comboboxtext.js.page:30 C/combobox.js.page:33
+#: C/guitar-tuner.js.page:55 C/hello-world.js.page:53 C/hello-world.py.page:46
+#: 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/textview.js.page:38 C/togglebutton.js.page:28
+#: C/treeview_simple_liststore.js.page:37 C/weatherAppMain.js.page:41
+#, fuzzy
msgid "Libraries to import"
-msgstr ""
+msgstr "Bibliotecas"
#. (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
+#: C/checkbutton.js.page:29
+#, fuzzy, no-wrap
+#| msgid ""
+#| "\n"
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
msgid ""
"\n"
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const Gio = imports.gi.Gio;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
msgstr ""
+"\n"
+"#!/usr/bin/gjs\n"
+"\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
#. (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
+#: C/checkbutton.js.page:37 C/comboboxtext.js.page:37 C/combobox.js.page:42
+#: C/messagedialog.js.page:39 C/radiobutton.js.page:36 C/scale.js.page:36
+#: C/spinbutton.js.page:39 C/statusbar.js.page:36 C/switch.js.page:43
+#: C/textview.js.page:45 C/togglebutton.js.page:36
+#: C/treeview_simple_liststore.js.page:46
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 "
@@ -5173,44 +5977,82 @@ msgid ""
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
+#: C/checkbutton.js.page:41 C/comboboxtext.js.page:41 C/combobox.js.page:46
+#: C/messagedialog.js.page:43 C/radiobutton.js.page:40 C/scale.js.page:40
+#: C/spinbutton.js.page:43 C/statusbar.js.page:40 C/switch.js.page:47
+#: C/textview.js.page:49 C/togglebutton.js.page:40
+#: C/treeview_simple_liststore.js.page:50
+#, fuzzy
msgid "Creating the application window"
-msgstr ""
-
-#. (itstool) path: section/code
-#: C/checkbutton.js.page:40
-#, no-wrap
-msgid ""
-"\n"
-"const CheckButtonExample = new Lang.Class({\n"
-" Name: 'CheckButton Example',\n"
-"\n"
+msgstr "Criando janela de aplicativo"
+
+#. (itstool) path: section/code
+#: C/checkbutton.js.page:42
+#, fuzzy, no-wrap
+#| msgid ""
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function () {\n"
+#| " this.application = new Gtk.Application ();\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"
+msgid ""
+"\n"
+"class CheckButtonExample {\n"
" // Create the application itself\n"
-" _init: function() {\n"
+" constructor() {\n"
" this.application = new Gtk.Application({\n"
" application_id: 'org.example.jscheckbutton',\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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents window when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function() {\n"
+" _onStartup() {\n"
" this._buildUI ();\n"
-" },\n"
+" }\n"
msgstr ""
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function () {\n"
+" this.application = new Gtk.Application ();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativa\n"
+" _onActivate: function () {\n"
+" this._window.present ();\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup: function () {\n"
+" this._buildUI ();\n"
+" },\n"
#. (itstool) path: section/p
#: C/checkbutton.js.page:66
@@ -5223,11 +6065,22 @@ msgstr ""
#. (itstool) path: section/code
#: C/checkbutton.js.page:67
-#, no-wrap
+#, fuzzy, no-wrap
+#| msgid ""
+#| "\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: 10,\n"
+#| " title: \"Welcome to the Grid\"});\n"
msgid ""
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow({\n"
@@ -5238,6 +6091,16 @@ msgid ""
" border_width: 10,\n"
" title: \"CheckButton Example\"});\n"
msgstr ""
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function() {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow({\n"
+" application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" border_width: 10,\n"
+" title: \"Bem-vindo à Grid\"});\n"
#. (itstool) path: section/p
#: C/checkbutton.js.page:80
@@ -5250,12 +6113,20 @@ msgstr ""
#. (itstool) path: section/title
#: C/checkbutton.js.page:84
+#, fuzzy
msgid "Creating the checkbutton"
-msgstr ""
+msgstr "Botão de seleção"
#. (itstool) path: section/code
#: C/checkbutton.js.page:85
-#, no-wrap
+#, fuzzy, no-wrap
+#| msgid ""
+#| "\n"
+#| " // Create the cookie button\n"
+#| " this._cookieButton = new Gtk.Button ({ label: \"Get a cookie\" });\n"
+#| "\n"
+#| " // Connect the cookie button to the function that handles clicking it\n"
+#| " this._cookieButton.connect ('clicked', Lang.bind (this, this._getACookie));\n"
msgid ""
"\n"
" // Create the check button\n"
@@ -5266,8 +6137,14 @@ msgid ""
" this._button.set_active (true);\n"
"\n"
" // Connect the button to a function that does something when it's toggled\n"
-" this._button.connect (\"toggled\", Lang.bind (this, this._toggledCB));\n"
+" this._button.connect (\"toggled\", this._toggledCB.bind(this));\n"
msgstr ""
+"\n"
+" // Cria o botão do cookie\n"
+" this._cookieButton = new Gtk.Button ({ label: \"Obter um cookie\" });\n"
+"\n"
+" // Conecta o botão do cookie à função que lida o clique nele\n"
+" this._cookieButton.connect ('clicked', Lang.bind (this, this._getACookie));\n"
#. (itstool) path: section/p
#: C/checkbutton.js.page:96
@@ -5281,14 +6158,33 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/checkbutton.js.page:97 C/radiobutton.js.page:169
-#, no-wrap
+#: C/checkbutton.js.page:97
+#, fuzzy, no-wrap
+#| msgid ""
+#| "\n"
+#| " // Put the webview into the window\n"
+#| " this._window.add (this._webView);\n"
+#| "\n"
+#| " // Show the window and all child widgets\n"
+#| " this._window.show_all();\n"
+#| " },\n"
+#| "\n"
+#| "});\n"
msgid ""
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
+" }\n"
msgstr ""
+"\n"
+" // Coloca o webview na janela\n"
+" this._window.add (this._webView);\n"
+"\n"
+" // Mostra a janela e todos seus widgets filhos\n"
+" this._window.show_all();\n"
+" },\n"
+"\n"
+"});\n"
#. (itstool) path: section/p
#: C/checkbutton.js.page:102
@@ -5307,7 +6203,7 @@ msgstr ""
#, no-wrap
msgid ""
"\n"
-" _toggledCB: function () {\n"
+" _toggledCB() {\n"
"\n"
" // Make the window title appear or disappear when the checkbox is toggled\n"
" if (this._button.get_active() == true)\n"
@@ -5317,7 +6213,7 @@ msgid ""
"\n"
" }\n"
"\n"
-"});\n"
+"};\n"
msgstr ""
#. (itstool) path: section/p
@@ -5332,13 +6228,17 @@ msgstr ""
#. (itstool) path: section/code
#: C/checkbutton.js.page:121
-#, no-wrap
+#, fuzzy, no-wrap
msgid ""
"\n"
"// Run the application\n"
"let app = new CheckButtonExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"\n"
+"// Executa o aplicativo\n"
+"let app = new GettingTheSignal ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: section/p
#: C/checkbutton.js.page:126
@@ -5349,43 +6249,101 @@ msgstr ""
#. (itstool) path: section/code
#: C/checkbutton.js.page:131
-#, no-wrap
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const GLib = imports.gi.GLib;\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "const Webkit = imports.gi.WebKit;\n"
+#| "\n"
+#| "const HelloGNOME = new Lang.Class ({\n"
+#| " Name: 'Hello GNOME',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function () {\n"
+#| " this.application = new Gtk.Application ();\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 ({\n"
+#| " application: this.application,\n"
+#| " title: \"Welcome to GNOME\",\n"
+#| " default_height: 200,\n"
+#| " default_width: 400,\n"
+#| " window_position: Gtk.WindowPosition.CENTER });\n"
+#| "\n"
+#| " // Create a webview to show the web app\n"
+#| " this._webView = new Webkit.WebView ();\n"
+#| "\n"
+#| " // Put the web app into the webview\n"
+#| " this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+#| " \"/hellognome.html\", null));\n"
+#| "\n"
+#| " // Put the webview into the window\n"
+#| " this._window.add (this._webView);\n"
+#| "\n"
+#| " // Show the window and all child widgets\n"
+#| " this._window.show_all();\n"
+#| " },\n"
+#| "\n"
+#| "});\n"
+#| "\n"
+#| "// Run the application\n"
+#| "let app = new HelloGNOME ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const Gio = imports.gi.Gio;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const CheckButtonExample = new Lang.Class({\n"
-" Name: 'CheckButton Example',\n"
+"class CheckButtonExample {\n"
"\n"
" // Create the application itself\n"
-" _init: function() {\n"
+" constructor() {\n"
" this.application = new Gtk.Application({\n"
" application_id: 'org.example.jscheckbutton',\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"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents window when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function() {\n"
-" this._buildUI ();\n"
-" },\n"
-"\n"
-"\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow({\n"
@@ -5404,15 +6362,13 @@ msgid ""
" this._button.set_active (true);\n"
"\n"
" // Connect the button to a function that does something when it's toggled\n"
-" this._button.connect (\"toggled\", Lang.bind (this, this._toggledCB));\n"
+" this._button.connect (\"toggled\", this._toggledCB.bind(this));\n"
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
-"\n"
-"\n"
+" }\n"
"\n"
-" _toggledCB: function () {\n"
+" _toggledCB() {\n"
"\n"
" // Make the window title appear or disappear when the checkbox is toggled\n"
" if (this._button.get_active() == true)\n"
@@ -5422,21 +6378,81 @@ msgid ""
"\n"
" }\n"
"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new CheckButtonExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const GLib = imports.gi.GLib;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"const Webkit = imports.gi.WebKit;\n"
+"\n"
+"const HelloGNOME = new Lang.Class ({\n"
+" Name: 'Olá, GNOME',\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function () {\n"
+" this.application = new Gtk.Application ();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativa\n"
+" _onActivate: function () {\n"
+" this._window.present ();\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup: function () {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function () {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow ({\n"
+" application: this.application,\n"
+" title: \"Bem-vindo ao GNOME\",\n"
+" default_height: 200,\n"
+" default_width: 400,\n"
+" window_position: Gtk.WindowPosition.CENTER });\n"
+"\n"
+" // Cria um webview para mostrar o aplicativo web\n"
+" this._webView = new Webkit.WebView ();\n"
+"\n"
+" // Coloca o aplicativo web no webview\n"
+" this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+" \"/hellognome.html\", null));\n"
+"\n"
+" // Coloca o webview na janela\n"
+" this._window.add (this._webView);\n"
+"\n"
+" // Mostra a janela e todos seus widgets filhos\n"
+" this._window.show_all();\n"
+" },\n"
+"\n"
+"});\n"
+"\n"
+"// Executa o aplicativo\n"
+"let app = new HelloGNOME ();\n"
+"app.application.run (ARGV);\n"
#. (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
+#: C/checkbutton.js.page:135 C/comboboxtext.js.page:176 C/combobox.js.page:233
+#: C/messagedialog.js.page:189 C/radiobutton.js.page:274 C/scale.js.page:208
+#: C/spinbutton.js.page:199 C/statusbar.js.page:221 C/switch.js.page:264
+#: C/textview.js.page:248 C/togglebutton.js.page:153
+#: C/treeview_simple_liststore.js.page:272
+#, fuzzy
msgid "In-depth documentation"
-msgstr ""
+msgstr "Em Detalhes"
#. (itstool) path: item/p
#: C/checkbutton.js.page:139
@@ -5446,25 +6462,28 @@ msgid ""
msgstr ""
#. (itstool) path: info/title
-#: C/checkbutton.py.page:7
+#: C/checkbutton.py.page:8
msgctxt "text"
msgid "CheckButton (Python)"
-msgstr ""
+msgstr "CheckButton (Python)"
#. (itstool) path: info/desc
-#: C/checkbutton.py.page:18
+#: C/checkbutton.py.page:19
+#, fuzzy
msgid "A toggle button in a window"
-msgstr ""
+msgstr "Desenhar o botão de alternância como um botão de opção"
#. (itstool) path: section/code
-#: C/checkbutton.py.page:30
+#: C/checkbutton.py.page:31
#, no-wrap
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"
@@ -5493,7 +6512,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"
@@ -5510,46 +6531,51 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/checkbutton.py.page:35
+#: C/checkbutton.py.page:36
+#, fuzzy
msgid "Useful methods for a CheckButton widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: section/p
-#: C/checkbutton.py.page:36
+#: C/checkbutton.py.page:37
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 ""
#. (itstool) path: item/p
-#: C/checkbutton.py.page:46 C/togglebutton.py.page:43
+#: C/checkbutton.py.page:47 C/togglebutton.py.page:44
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkToggleButton.html"
"\">GtkToggleButton</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkToggleButton.html"
+"\">GtkToggleButton</link>"
#. (itstool) path: item/p
-#: C/checkbutton.py.page:47
+#: C/checkbutton.py.page:48
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkCheckButton.html"
"\">GtkCheckButton</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkCheckButton.html"
+"\">GtkCheckButton</link>"
#. (itstool) path: info/title
-#: C/checkbutton.vala.page:7
+#: C/checkbutton.vala.page:8
msgctxt "text"
msgid "CheckButton (Vala)"
-msgstr ""
+msgstr "CheckButton (Vala)"
#. (itstool) path: info/desc
-#: C/checkbutton.vala.page:17
-msgid "Create widgets with a disrete toggle button"
+#: C/checkbutton.vala.page:18
+msgid "Create widgets with a discrete toggle button"
msgstr ""
#. (itstool) path: page/code
-#: C/checkbutton.vala.page:24
+#: C/checkbutton.vala.page:25
#, no-wrap
msgid ""
"/* A window in the application */\n"
@@ -5607,84 +6633,170 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/checkbutton.vala.page:29
+#: C/checkbutton.vala.page:30
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.
-#: 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 ""
-
#. (itstool) path: info/title
-#: C/colorbutton.js.page:7
+#: C/colorbutton.js.page:8
msgctxt "text"
msgid "ColorButton (JavaScript)"
-msgstr ""
+msgstr "ColorButton (JavaScript)"
#. (itstool) path: info/desc
-#: C/colorbutton.js.page:17 C/colorbutton.py.page:18
-#: C/colorbutton.vala.page:19
+#: C/colorbutton.js.page:18 C/colorbutton.py.page:19 C/colorbutton.vala.page:20
msgid "A button to launch a color selection dialog"
msgstr ""
#. (itstool) path: page/title
-#: C/colorbutton.js.page:20 C/colorbutton.py.page:21
-#: C/colorbutton.vala.page:22
+#: C/colorbutton.js.page:21 C/colorbutton.py.page:22 C/colorbutton.vala.page:23
msgid "ColorButton"
msgstr ""
+#. (itstool) path: page/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/colorbutton.js.page:22 C/colorbutton.py.page:23 C/colorbutton.vala.page:24
+msgctxt "_"
+msgid ""
+"external ref='media/colorbutton.png' md5='904539d26fe367bf99f9a0961cfc9a03'"
+msgstr ""
+"external ref='media/colorbutton.png' md5='904539d26fe367bf99f9a0961cfc9a03'"
+
#. (itstool) path: page/p
-#: C/colorbutton.js.page:22 C/colorbutton.py.page:23
+#: C/colorbutton.js.page:23 C/colorbutton.py.page:24
msgid ""
"This ColorButton launches a color selection dialog and prints in the "
"terminal the RGB values of the color selected."
msgstr ""
#. (itstool) path: section/code
-#: C/colorbutton.js.page:28
-#, no-wrap
+#: C/colorbutton.js.page:29
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "\n"
+#| "const WelcomeToTheGrid = new Lang.Class({\n"
+#| " Name: 'Welcome to the Grid',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function() {\n"
+#| " this.application = new Gtk.Application();\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"
+#| "\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: 10,\n"
+#| " title: \"Welcome to the Grid\"});\n"
+#| "\n"
+#| " // Create the Grid\n"
+#| " this._grid = new Gtk.Grid ({\n"
+#| " // column_homogeneous: true,\n"
+#| " // column_spacing: 20,\n"
+#| " row_spacing: 20 });\n"
+#| "\n"
+#| " // Create an image\n"
+#| " this._image = new Gtk.Image ({ file: \"gnome-image.png\" });\n"
+#| "\n"
+#| " // Create a second image using a stock icon\n"
+#| " this._icon = new Gtk.Image ({ stock: 'gtk-about' });\n"
+#| "\n"
+#| " // Create a label\n"
+#| " this._label = new Gtk.Label ({\n"
+#| " label: \"Welcome to GNOME, too!\",\n"
+#| " /* margin_top: 20 */ });\n"
+#| "\n"
+#| " /* Create a second label\n"
+#| " this._labelTwo = new Gtk.Label ({\n"
+#| " label: \"The cake is a pie.\" }); */\n"
+#| "\n"
+#| " /* Create a button\n"
+#| " this._button = new Gtk.Button ({\n"
+#| " label: \"Welcome to GNOME, too!\"}); */\n"
+#| "\n"
+#| " // Attach the images and button to the grid\n"
+#| " this._grid.attach (this._image, 0, 0, 2, 1);\n"
+#| " this._grid.attach (this._icon, 0, 1, 1, 1);\n"
+#| " this._grid.attach (this._label, 1, 1, 1, 1);\n"
+#| "\n"
+#| " // this._grid.attach (this._label, 0, 1, 1, 1);\n"
+#| " // this._grid.attach (this._labelTwo, 1, 1, 1, 1);\n"
+#| "\n"
+#| " // this._grid.attach (this._button, 1, 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"
+#| "// Run the application\n"
+#| "let app = new WelcomeToTheGrid ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gdk = '3.0';\n"
+"imports.gi.versions.Gtk = '3.0';\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"
+"class ColorbuttonExample {\n"
"\n"
" // Create the application itself\n"
-" _init: function () {\n"
+" constructor() {\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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this.window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function () {\n"
-" this._buildUI ();\n"
-" },\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function () {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this.window = new Gtk.ApplicationWindow ({ application: this.application,\n"
@@ -5701,7 +6813,7 @@ msgid ""
" 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.button.connect(\"color-set\", this.onColorChosen.bind(this));\n"
" this.label = new Gtk.Label();\n"
" this.label.set_text(\"Click to choose a color\");\n"
"\n"
@@ -5710,48 +6822,136 @@ msgid ""
" grid.attach(this.label, 0, 1, 2, 1);\n"
" this.window.add(grid);\n"
" this.window.show_all();\n"
-" },\n"
+" }\n"
"\n"
-" onColorChosen: function() {\n"
-" let colorName = this.color.to_string();\n"
-" this.label.set_text(\"You chose the color \" + colorName);\n"
+" onColorChosen() {\n"
+" let colorName = this.color.to_string();\n"
+" this.label.set_text(\"You chose the color \" + colorName);\n"
" }\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new ColorbuttonExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"\n"
+"const WelcomeToTheGrid = new Lang.Class({\n"
+" Name: 'Bem-vindo à Grid',\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function() {\n"
+" this.application = new Gtk.Application();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativo\n"
+" _onActivate: function() {\n"
+" this._window.present();\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup: function() {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+"\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function() {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow({\n"
+" application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" border_width: 10,\n"
+" title: \"Bem-vindo à Grid\"});\n"
+"\n"
+" // Cria a Grid\n"
+" this._grid = new Gtk.Grid ({\n"
+" // column_homogeneous: true,\n"
+" // column_spacing: 20,\n"
+" row_spacing: 20 });\n"
+"\n"
+" // Cria uma imagem\n"
+" this._image = new Gtk.Image ({ file: \"gnome-image.png\" });\n"
+"\n"
+" // Cria uma segunda imagem usando um ícone padrão\n"
+" this._icon = new Gtk.Image ({ stock: 'gtk-about' });\n"
+"\n"
+" // Cria um rótulo\n"
+" this._label = new Gtk.Label ({\n"
+" label: \"Bem-vindo ao GNOME, também!\",\n"
+" /* margin_top: 20 */ });\n"
+"\n"
+" /* Cria um segundo rótulo\n"
+" this._labelTwo = new Gtk.Label ({\n"
+" label: \"O bolo é uma torta.\" }); */\n"
+"\n"
+" /* Cria um botão\n"
+" this._button = new Gtk.Button ({\n"
+" label: \"Bem-vindo ao GNOME, também!\"}); */\n"
+"\n"
+" // Anexa as imagens e botão à grade\n"
+" this._grid.attach (this._image, 0, 0, 2, 1);\n"
+" this._grid.attach (this._icon, 0, 1, 1, 1);\n"
+" this._grid.attach (this._label, 1, 1, 1, 1);\n"
+"\n"
+" // this._grid.attach (this._label, 0, 1, 1, 1);\n"
+" // this._grid.attach (this._labelTwo, 1, 1, 1, 1);\n"
+"\n"
+" // this._grid.attach (this._button, 1, 1, 1, 1);\n"
+"\n"
+" // Adiciona a grade à janela\n"
+" this._window.add (this._grid);\n"
+"\n"
+" // Mostra a janela e todos os widgets filhos\n"
+" this._window.show_all();\n"
+" }\n"
+"\n"
+"});\n"
+"\n"
+"// Executa o aplicativo\n"
+"let app = new WelcomeToTheGrid ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: item/p
-#: C/colorbutton.js.page:35
+#: C/colorbutton.js.page:36
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.ColorButton."
"html\">GtkColorButton</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/colorbutton.js.page:36 C/colorbutton.py.page:44
+#: C/colorbutton.js.page:37 C/colorbutton.py.page:45
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
+#: C/colorbutton.py.page:8
msgctxt "text"
msgid "ColorButton (Python)"
-msgstr ""
+msgstr "ColorButton (Python)"
#. (itstool) path: section/code
-#: C/colorbutton.py.page:29
+#: C/colorbutton.py.page:30
#, no-wrap
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"
@@ -5783,9 +6983,11 @@ msgid ""
"\n"
" # if a new color is chosen, we print it as rgb(r,g,b) in the terminal\n"
" def on_color_chosen(self, user_data):\n"
-" print \"You chose the color: \" + self.button.get_rgba().to_string()\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"
@@ -5793,8 +6995,8 @@ 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"
@@ -5802,12 +7004,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/colorbutton.py.page:33
+#: C/colorbutton.py.page:34
+#, fuzzy
msgid "Useful methods for a ColorButton widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: section/p
-#: C/colorbutton.py.page:34
+#: C/colorbutton.py.page:35
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. "
@@ -5815,7 +7018,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/colorbutton.py.page:35
+#: C/colorbutton.py.page:36
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</"
@@ -5824,32 +7027,32 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/colorbutton.py.page:42
+#: C/colorbutton.py.page:43
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkColorButton.html"
"\">GtkColorButton</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/colorbutton.py.page:43
+#: C/colorbutton.py.page:44
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkColorChooser.html"
"\">GtkColorChooser</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/colorbutton.vala.page:7
+#: C/colorbutton.vala.page:8
msgctxt "text"
msgid "ColorButton (Vala)"
-msgstr ""
+msgstr "ColorButton (Vala)"
#. (itstool) path: page/p
-#: C/colorbutton.vala.page:24
+#: C/colorbutton.vala.page:25
msgid "RGB values of the selected color are shown in the label."
msgstr ""
#. (itstool) path: page/code
-#: C/colorbutton.vala.page:26
+#: C/colorbutton.vala.page:27
#, no-wrap
msgid ""
"/* This is the application. */\n"
@@ -5894,47 +7097,50 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/colorbutton.vala.page:31
+#: C/colorbutton.vala.page:32
msgid ""
"<link href=\"http://valadoc.org/gtk+-3.0/Gtk.ColorButton.html\">Gtk."
"ColorButton</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/colorbutton.vala.page:32
+#: C/colorbutton.vala.page:33
msgid "<link href=\"http://valadoc.org/gdk-3.0/Gdk.RGBA.html\">Gdk.RGBA</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/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'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/comboboxtext.js.page:7
+#: C/comboboxtext.js.page:8
msgctxt "text"
msgid "ComboBoxText (JavaScript)"
-msgstr ""
+msgstr "ComboBoxText (JavaScript)"
#. (itstool) path: info/desc
-#: C/comboboxtext.js.page:19
+#: C/comboboxtext.js.page:20
+#, fuzzy
msgid "A text-only drop-down menu"
-msgstr ""
+msgstr "Menu suspenso"
#. (itstool) path: page/title
-#: C/comboboxtext.js.page:22
+#: C/comboboxtext.js.page:23
+#, fuzzy
msgid "ComboBoxText"
+msgstr "ComboBoxText com uma entrada"
+
+#. (itstool) path: page/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/comboboxtext.js.page:24 C/combobox.c.page:26 C/combobox.py.page:24
+#: C/combobox.vala.page:22
+msgctxt "_"
+msgid ""
+"external ref='media/combobox.png' md5='ab9e91bc1a58fe866cb00dd52159251d'"
msgstr ""
+"external ref='media/combobox.png' md5='ab9e91bc1a58fe866cb00dd52159251d'"
#. (itstool) path: page/p
-#: C/comboboxtext.js.page:24
+#: C/comboboxtext.js.page:25
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 "
@@ -5944,7 +7150,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/comboboxtext.js.page:25
+#: C/comboboxtext.js.page:26
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 "
@@ -5952,7 +7158,23 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/comboboxtext.js.page:41
+#: C/comboboxtext.js.page:31 C/textview.js.page:39
+#, no-wrap
+msgid ""
+"\n"
+"#!/usr/bin/gjs\n"
+"\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+msgstr ""
+"\n"
+"#!/usr/bin/gjs\n"
+"\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+
+#. (itstool) path: section/code
+#: C/comboboxtext.js.page:42
#, no-wrap
msgid ""
"\n"
@@ -5981,7 +7203,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/comboboxtext.js.page:65 C/messagedialog.js.page:69
+#: C/comboboxtext.js.page:66 C/messagedialog.js.page:70
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/"
@@ -5990,7 +7212,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/comboboxtext.js.page:66 C/combobox.js.page:70
+#: C/comboboxtext.js.page:67
#, no-wrap
msgid ""
"\n"
@@ -6007,10 +7229,10 @@ msgid ""
msgstr ""
#. (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
+#: C/comboboxtext.js.page:79 C/combobox.js.page:83 C/messagedialog.js.page:84
+#: C/radiobutton.js.page:79 C/scale.js.page:78 C/spinbutton.js.page:81
+#: C/switch.js.page:88 C/textview.js.page:88 C/togglebutton.js.page:81
+#: C/treeview_simple_liststore.js.page:90
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="
@@ -6019,12 +7241,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/comboboxtext.js.page:82
+#: C/comboboxtext.js.page:83
+#, fuzzy
msgid "Creating the ComboBoxText"
-msgstr ""
+msgstr "ComboBoxText com uma entrada"
#. (itstool) path: section/code
-#: C/comboboxtext.js.page:83
+#: C/comboboxtext.js.page:84
#, no-wrap
msgid ""
"\n"
@@ -6042,7 +7265,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/comboboxtext.js.page:96
+#: C/comboboxtext.js.page:97
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 "
@@ -6052,7 +7275,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/comboboxtext.js.page:97
+#: C/comboboxtext.js.page:98
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 "
@@ -6062,7 +7285,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/comboboxtext.js.page:98
+#: C/comboboxtext.js.page:99
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 "
@@ -6072,7 +7295,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/comboboxtext.js.page:100
+#: C/comboboxtext.js.page:101
#, no-wrap
msgid ""
"\n"
@@ -6085,19 +7308,19 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/comboboxtext.js.page:108
+#: C/comboboxtext.js.page:109
msgid ""
"Finally, we add the ComboBoxText to the window, and tell the window to show "
"itself and the widget inside it."
msgstr ""
#. (itstool) path: section/title
-#: C/comboboxtext.js.page:112 C/combobox.js.page:169 C/radiobutton.js.page:180
+#: C/comboboxtext.js.page:113 C/combobox.js.page:170 C/radiobutton.js.page:181
msgid "Function which handles your selection"
msgstr ""
#. (itstool) path: section/code
-#: C/comboboxtext.js.page:113
+#: C/comboboxtext.js.page:114
#, no-wrap
msgid ""
"\n"
@@ -6111,7 +7334,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/comboboxtext.js.page:122
+#: C/comboboxtext.js.page:123
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 "
@@ -6121,7 +7344,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/comboboxtext.js.page:124
+#: C/comboboxtext.js.page:125
#, no-wrap
msgid ""
"\n"
@@ -6148,7 +7371,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/comboboxtext.js.page:146
+#: C/comboboxtext.js.page:147
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 "
@@ -6158,7 +7381,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/comboboxtext.js.page:147
+#: C/comboboxtext.js.page:148
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,</"
@@ -6166,15 +7389,15 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/comboboxtext.js.page:148 C/combobox.js.page:205
+#: C/comboboxtext.js.page:149 C/combobox.js.page:206
msgid ""
"After we create the MessageDialog, we connect its response signal to the "
"_onDialogResponse function, then tell it to show itself."
msgstr ""
#. (itstool) path: section/code
-#: C/comboboxtext.js.page:150 C/combobox.js.page:207
-#, no-wrap
+#: C/comboboxtext.js.page:151
+#, fuzzy, no-wrap
msgid ""
"\n"
" _onDialogResponse: function () {\n"
@@ -6184,10 +7407,10 @@ msgid ""
" }\n"
"\n"
"});\n"
-msgstr ""
+msgstr "A função <function>car</function> "
#. (itstool) path: section/p
-#: C/comboboxtext.js.page:159 C/combobox.js.page:216
+#: C/comboboxtext.js.page:160 C/combobox.js.page:217
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 "
@@ -6195,58 +7418,146 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/comboboxtext.js.page:161
-#, no-wrap
+#: C/comboboxtext.js.page:162
+#, fuzzy, no-wrap
msgid ""
"\n"
"// Run the application\n"
"let app = new ComboBoxTextExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"\n"
+"// Executa o aplicativo\n"
+"let app = new GettingTheSignal ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: section/p
-#: C/comboboxtext.js.page:166
+#: C/comboboxtext.js.page:167
msgid ""
"Finally, we create a new instance of the finished ComboBoxTextExample class, "
"and set the application running."
msgstr ""
#. (itstool) path: section/code
-#: C/comboboxtext.js.page:171
-#, no-wrap
+#: C/comboboxtext.js.page:172
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "\n"
+#| "const WelcomeToTheGrid = new Lang.Class({\n"
+#| " Name: 'Welcome to the Grid',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function() {\n"
+#| " this.application = new Gtk.Application();\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"
+#| "\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: 10,\n"
+#| " title: \"Welcome to the Grid\"});\n"
+#| "\n"
+#| " // Create the Grid\n"
+#| " this._grid = new Gtk.Grid ({\n"
+#| " // column_homogeneous: true,\n"
+#| " // column_spacing: 20,\n"
+#| " row_spacing: 20 });\n"
+#| "\n"
+#| " // Create an image\n"
+#| " this._image = new Gtk.Image ({ file: \"gnome-image.png\" });\n"
+#| "\n"
+#| " // Create a second image using a stock icon\n"
+#| " this._icon = new Gtk.Image ({ stock: 'gtk-about' });\n"
+#| "\n"
+#| " // Create a label\n"
+#| " this._label = new Gtk.Label ({\n"
+#| " label: \"Welcome to GNOME, too!\",\n"
+#| " /* margin_top: 20 */ });\n"
+#| "\n"
+#| " /* Create a second label\n"
+#| " this._labelTwo = new Gtk.Label ({\n"
+#| " label: \"The cake is a pie.\" }); */\n"
+#| "\n"
+#| " /* Create a button\n"
+#| " this._button = new Gtk.Button ({\n"
+#| " label: \"Welcome to GNOME, too!\"}); */\n"
+#| "\n"
+#| " // Attach the images and button to the grid\n"
+#| " this._grid.attach (this._image, 0, 0, 2, 1);\n"
+#| " this._grid.attach (this._icon, 0, 1, 1, 1);\n"
+#| " this._grid.attach (this._label, 1, 1, 1, 1);\n"
+#| "\n"
+#| " // this._grid.attach (this._label, 0, 1, 1, 1);\n"
+#| " // this._grid.attach (this._labelTwo, 1, 1, 1, 1);\n"
+#| "\n"
+#| " // this._grid.attach (this._button, 1, 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"
+#| "// Run the application\n"
+#| "let app = new WelcomeToTheGrid ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const ComboBoxTextExample = new Lang.Class ({\n"
-" Name: 'ComboBoxText Example',\n"
+"class ComboBoxTextExample {\n"
"\n"
" // Create the application itself\n"
-" _init: function () {\n"
+" constructor() {\n"
" this.application = new Gtk.Application ({\n"
" application_id: 'org.example.jscomboboxtext'});\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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function () {\n"
+" _onActivate() {\n"
" this._window.present ();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function () {\n"
-" this._buildUI ();\n"
-" },\n"
-"\n"
-"\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function () {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow ({\n"
@@ -6266,18 +7577,16 @@ msgid ""
" this._comboBoxText.set_active (0);\n"
"\n"
" // Connect the combobox's 'changed' signal to our callback function\n"
-" this._comboBoxText.connect ('changed', Lang.bind (this, this._onComboChanged));\n"
+" this._comboBoxText.connect ('changed', this._onComboChanged.bind(this));\n"
"\n"
" // Add the combobox to the window\n"
" this._window.add (this._comboBoxText);\n"
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
-"\n"
-"\n"
+" }\n"
"\n"
-" _onComboChanged: function () {\n"
+" _onComboChanged() {\n"
"\n"
" // The responses we'll use for our messagedialog\n"
" let responses = [\"\",\n"
@@ -6298,68 +7607,153 @@ msgid ""
" text: responses[activeItem]});\n"
"\n"
" // Connect the OK button to a handler function\n"
-" this._popUp.connect ('response', Lang.bind (this, this._onDialogResponse));\n"
+" this._popUp.connect ('response', this._onDialogResponse.bind(this));\n"
"\n"
" // Show the messagedialog\n"
" this._popUp.show();\n"
" }\n"
"\n"
-" },\n"
-"\n"
+" }\n"
"\n"
-"\n"
-" _onDialogResponse: function () {\n"
+" _onDialogResponse() {\n"
"\n"
" this._popUp.destroy ();\n"
"\n"
" }\n"
"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new ComboBoxTextExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"\n"
+"const WelcomeToTheGrid = new Lang.Class({\n"
+" Name: 'Bem-vindo à Grid',\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function() {\n"
+" this.application = new Gtk.Application();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativo\n"
+" _onActivate: function() {\n"
+" this._window.present();\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup: function() {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+"\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function() {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow({\n"
+" application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" border_width: 10,\n"
+" title: \"Bem-vindo à Grid\"});\n"
+"\n"
+" // Cria a Grid\n"
+" this._grid = new Gtk.Grid ({\n"
+" // column_homogeneous: true,\n"
+" // column_spacing: 20,\n"
+" row_spacing: 20 });\n"
+"\n"
+" // Cria uma imagem\n"
+" this._image = new Gtk.Image ({ file: \"gnome-image.png\" });\n"
+"\n"
+" // Cria uma segunda imagem usando um ícone padrão\n"
+" this._icon = new Gtk.Image ({ stock: 'gtk-about' });\n"
+"\n"
+" // Cria um rótulo\n"
+" this._label = new Gtk.Label ({\n"
+" label: \"Bem-vindo ao GNOME, também!\",\n"
+" /* margin_top: 20 */ });\n"
+"\n"
+" /* Cria um segundo rótulo\n"
+" this._labelTwo = new Gtk.Label ({\n"
+" label: \"O bolo é uma torta.\" }); */\n"
+"\n"
+" /* Cria um botão\n"
+" this._button = new Gtk.Button ({\n"
+" label: \"Bem-vindo ao GNOME, também!\"}); */\n"
+"\n"
+" // Anexa as imagens e botão à grade\n"
+" this._grid.attach (this._image, 0, 0, 2, 1);\n"
+" this._grid.attach (this._icon, 0, 1, 1, 1);\n"
+" this._grid.attach (this._label, 1, 1, 1, 1);\n"
+"\n"
+" // this._grid.attach (this._label, 0, 1, 1, 1);\n"
+" // this._grid.attach (this._labelTwo, 1, 1, 1, 1);\n"
+"\n"
+" // this._grid.attach (this._button, 1, 1, 1, 1);\n"
+"\n"
+" // Adiciona a grade à janela\n"
+" this._window.add (this._grid);\n"
+"\n"
+" // Mostra a janela e todos os widgets filhos\n"
+" this._window.show_all();\n"
+" }\n"
+"\n"
+"});\n"
+"\n"
+"// Executa o aplicativo\n"
+"let app = new WelcomeToTheGrid ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: item/p
-#: C/comboboxtext.js.page:182
+#: C/comboboxtext.js.page:183
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.ComboBoxText."
"html\">Gtk.ComboBoxText</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/comboboxtext.js.page:183 C/combobox.js.page:243 C/entry.js.page:32
-#: C/messagedialog.js.page:197
+#: C/comboboxtext.js.page:184 C/combobox.js.page:244 C/entry.js.page:33
+#: C/messagedialog.js.page:198
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.MessageDialog."
"html\">Gtk.MessageDialog</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/combobox.c.page:7
+#: C/combobox.c.page:8
msgctxt "text"
msgid "ComboBox (C)"
-msgstr ""
+msgstr "ComboBox (C)"
#. (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
+#: C/combobox.c.page:22 C/combobox.py.page:20 C/combobox.vala.page:18
+#: C/combobox_multicolumn.py.page:19 C/combobox_multicolumn.vala.page:19
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
+#: C/combobox.c.page:25 C/combobox.js.page:25 C/combobox.vala.page:21
+#, fuzzy
msgid "ComboBox"
-msgstr ""
+msgstr "Caixa de combinação"
#. (itstool) path: page/p
-#: C/combobox.c.page:26 C/combobox.vala.page:22
+#: C/combobox.c.page:27 C/combobox.vala.page:23
msgid "This ComboBox prints to the terminal when you change your selection."
msgstr ""
#. (itstool) path: page/code
-#: C/combobox.c.page:28
+#: C/combobox.c.page:29
#, no-wrap
msgid ""
"\n"
@@ -6447,38 +7841,42 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/combobox.c.page:36
+#: C/combobox.c.page:37
+#, fuzzy
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkComboBoxText.html"
"\">GtkComboBoxText</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/\">Manual de referência</"
+"link>"
+
+#. (itstool) path: info/title
+#: C/combobox.js.page:8
+msgctxt "text"
+msgid "ComboBox (JavaScript)"
+msgstr "ComboBox (JavaScript)"
+
+#. (itstool) path: info/desc
+#: C/combobox.js.page:22
+#, fuzzy
+msgid "A customizable drop-down menu"
+msgstr "Menu suspenso"
-#. (itstool) path: media
+#. (itstool) path: page/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/combobox.js.page:25 C/combobox_multicolumn.py.page:22
-#: C/combobox_multicolumn.vala.page:22
+#: C/combobox.js.page:26 C/combobox_multicolumn.py.page:23
+#: C/combobox_multicolumn.vala.page:23
msgctxt "_"
msgid ""
"external ref='media/combobox_multicolumn.png' "
"md5='43f16648fb11ebc7d2f70825ed0f63b3'"
msgstr ""
-#. (itstool) path: info/title
-#: C/combobox.js.page:7
-msgctxt "text"
-msgid "ComboBox (JavaScript)"
-msgstr ""
-
-#. (itstool) path: info/desc
-#: C/combobox.js.page:21
-msgid "A customizable drop-down menu"
-msgstr ""
-
#. (itstool) path: page/p
-#: C/combobox.js.page:26
+#: C/combobox.js.page:27
msgid ""
"A ComboBox is an extremely customizable drop-down menu. It holds the "
"equivalent of a <link xref=\"treeview_simple_liststore.js\">TreeView</link> "
@@ -6490,7 +7888,7 @@ msgid ""
msgstr ""
#. (itstool) path: page/p
-#: C/combobox.js.page:27
+#: C/combobox.js.page:28
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 "
@@ -6498,7 +7896,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/combobox.js.page:28
+#: C/combobox.js.page:29
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"
@@ -6507,48 +7905,98 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/combobox.js.page:33
-#, no-wrap
+#: C/combobox.js.page:34
+#, fuzzy, no-wrap
+#| msgid ""
+#| "\n"
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
msgid ""
"\n"
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const GObject = imports.gi.GObject;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
msgstr ""
+"\n"
+"#!/usr/bin/gjs\n"
+"\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
#. (itstool) path: section/code
-#: C/combobox.js.page:45
-#, no-wrap
-msgid ""
-"\n"
-"const ComboBoxExample = new Lang.Class ({\n"
-" Name: 'ComboBox Example',\n"
+#: C/combobox.js.page:47
+#, fuzzy, no-wrap
+#| msgid ""
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function () {\n"
+#| " this.application = new Gtk.Application ();\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"
+msgid ""
+"\n"
+"class ComboBoxExample {\n"
"\n"
" // Create the application itself\n"
-" _init: function () {\n"
+" constructor() {\n"
" this.application = new Gtk.Application ({\n"
" application_id: 'org.example.jscombobox'});\n"
"\n"
" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
+"\n"
+" // Callback function for 'activate' signal presents windows when active\n"
+" _onActivate() {\n"
+" this._window.present ();\n"
+" }\n"
+"\n"
+" // Callback function for 'startup' signal builds the UI\n"
+" _onStartup() {\n"
+" this._buildUI ();\n"
+" }\n"
+msgstr ""
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function () {\n"
+" this.application = new Gtk.Application ();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\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"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativa\n"
" _onActivate: function () {\n"
" this._window.present ();\n"
" },\n"
"\n"
-" // Callback function for 'startup' signal builds the UI\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
" _onStartup: function () {\n"
" this._buildUI ();\n"
" },\n"
-msgstr ""
#. (itstool) path: section/p
-#: C/combobox.js.page:69
+#: C/combobox.js.page:70
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/"
@@ -6556,13 +8004,52 @@ msgid ""
"go in."
msgstr ""
+#. (itstool) path: section/code
+#: C/combobox.js.page:71
+#, fuzzy, no-wrap
+#| msgid ""
+#| "\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: 10,\n"
+#| " title: \"Welcome to the Grid\"});\n"
+msgid ""
+"\n"
+" // Build the application's UI\n"
+" _buildUI() {\n"
+"\n"
+" // Create the application window\n"
+" this._window = new Gtk.ApplicationWindow ({\n"
+" application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" title: \"Welcome to GNOME\",\n"
+" default_width: 200,\n"
+" border_width: 10 });\n"
+msgstr ""
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function() {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow({\n"
+" application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" border_width: 10,\n"
+" title: \"Bem-vindo à Grid\"});\n"
+
#. (itstool) path: section/title
-#: C/combobox.js.page:86 C/treeview_simple_liststore.js.page:93
+#: C/combobox.js.page:87 C/treeview_simple_liststore.js.page:94
+#, fuzzy
msgid "Creating the ListStore"
-msgstr ""
+msgstr "Criar correções (patches)"
#. (itstool) path: section/code
-#: C/combobox.js.page:87
+#: C/combobox.js.page:88
#, no-wrap
msgid ""
"\n"
@@ -6574,7 +8061,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/combobox.js.page:94
+#: C/combobox.js.page:95
msgid ""
"This ListStore works like the one used in the <link xref="
"\"treeview_simple_liststore.js\">TreeView</link> example. We're giving it "
@@ -6584,7 +8071,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/combobox.js.page:95
+#: C/combobox.js.page:96
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 "
@@ -6592,24 +8079,24 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/combobox.js.page:97 C/treeview_simple_liststore.js.page:106
+#: C/combobox.js.page:98 C/treeview_simple_liststore.js.page:107
msgid "<file>GObject.TYPE_BOOLEAN</file> -- True or false"
msgstr ""
#. (itstool) path: item/p
-#: C/combobox.js.page:98 C/treeview_simple_liststore.js.page:107
+#: C/combobox.js.page:99 C/treeview_simple_liststore.js.page:108
msgid ""
"<file>GObject.TYPE_FLOAT</file> -- A floating point number (one with a "
"decimal point)"
msgstr ""
#. (itstool) path: item/p
-#: C/combobox.js.page:99 C/treeview_simple_liststore.js.page:108
+#: C/combobox.js.page:100 C/treeview_simple_liststore.js.page:109
msgid "<file>GObject.TYPE_STRING</file> -- A string of letters and numbers"
msgstr ""
#. (itstool) path: note/p
-#: C/combobox.js.page:101 C/treeview_simple_liststore.js.page:112
+#: C/combobox.js.page:102 C/treeview_simple_liststore.js.page:113
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 "
@@ -6617,7 +8104,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/combobox.js.page:103
+#: C/combobox.js.page:104
#, no-wrap
msgid ""
"\n"
@@ -6638,7 +8125,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/combobox.js.page:119
+#: C/combobox.js.page:120
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 "
@@ -6648,19 +8135,20 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/combobox.js.page:120
+#: C/combobox.js.page:121
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 ""
#. (itstool) path: section/title
-#: C/combobox.js.page:124
+#: C/combobox.js.page:125
+#, fuzzy
msgid "Creating the ComboBox"
-msgstr ""
+msgstr "Caixa de combinação"
#. (itstool) path: section/code
-#: C/combobox.js.page:125
+#: C/combobox.js.page:126
#, no-wrap
msgid ""
"\n"
@@ -6670,7 +8158,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/combobox.js.page:130
+#: C/combobox.js.page:131
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. "
@@ -6678,7 +8166,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/combobox.js.page:131
+#: C/combobox.js.page:132
#, no-wrap
msgid ""
"\n"
@@ -6696,7 +8184,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/combobox.js.page:144
+#: C/combobox.js.page:145
msgid ""
"This part, again, works much like creating CellRenderers and packing them "
"into the columns of a <link xref=\"treeview_simple_liststore.js\">TreeView</"
@@ -6707,7 +8195,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/combobox.js.page:145
+#: C/combobox.js.page:146
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 "
@@ -6715,7 +8203,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/combobox.js.page:146
+#: C/combobox.js.page:147
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 "
@@ -6727,7 +8215,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/combobox.js.page:148
+#: C/combobox.js.page:149
#, no-wrap
msgid ""
"\n"
@@ -6735,11 +8223,11 @@ msgid ""
" this._comboBox.set_active (0);\n"
"\n"
" // Connect the combobox's 'changed' signal to our callback function\n"
-" this._comboBox.connect ('changed', Lang.bind (this, this._onComboChanged));\n"
+" this._comboBox.connect ('changed', this._onComboChanged.bind(this));\n"
msgstr ""
#. (itstool) path: section/p
-#: C/combobox.js.page:155
+#: C/combobox.js.page:156
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 "
@@ -6749,8 +8237,18 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/combobox.js.page:157
-#, no-wrap
+#: C/combobox.js.page:158
+#, fuzzy, no-wrap
+#| msgid ""
+#| "\n"
+#| " // Put the webview into the window\n"
+#| " this._window.add (this._webView);\n"
+#| "\n"
+#| " // Show the window and all child widgets\n"
+#| " this._window.show_all();\n"
+#| " },\n"
+#| "\n"
+#| "});\n"
msgid ""
"\n"
" // Add the combobox to the window\n"
@@ -6758,22 +8256,31 @@ msgid ""
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
+" }\n"
msgstr ""
+"\n"
+" // Coloca o webview na janela\n"
+" this._window.add (this._webView);\n"
+"\n"
+" // Mostra a janela e todos seus widgets filhos\n"
+" this._window.show_all();\n"
+" },\n"
+"\n"
+"});\n"
#. (itstool) path: section/p
-#: C/combobox.js.page:165
+#: C/combobox.js.page:166
msgid ""
"Finally, we add the ComboBox to the window, and tell the window to show "
"itself and everything inside it."
msgstr ""
#. (itstool) path: section/code
-#: C/combobox.js.page:170
+#: C/combobox.js.page:171
#, no-wrap
msgid ""
"\n"
-" _selected: function () {\n"
+" _selected() {\n"
"\n"
" // The silly pseudohaiku that we'll use for our messagedialog\n"
" let haiku = [\"\",\n"
@@ -6783,7 +8290,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/combobox.js.page:179
+#: C/combobox.js.page:180
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 "
@@ -6793,7 +8300,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/combobox.js.page:181
+#: C/combobox.js.page:182
#, no-wrap
msgid ""
"\n"
@@ -6810,17 +8317,17 @@ msgid ""
" text: haiku[activeItem]});\n"
"\n"
" // Connect the OK button to a handler function\n"
-" this._popUp.connect ('response', Lang.bind (this, this._onDialogResponse));\n"
+" this._popUp.connect ('response', this._onDialogResponse.bind(this));\n"
"\n"
" // Show the messagedialog\n"
" this._popUp.show();\n"
" }\n"
"\n"
-" },\n"
+" }\n"
msgstr ""
#. (itstool) path: section/p
-#: C/combobox.js.page:203
+#: C/combobox.js.page:204
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 "
@@ -6830,7 +8337,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/combobox.js.page:204
+#: C/combobox.js.page:205
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</"
@@ -6838,59 +8345,75 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/combobox.js.page:218
+#: C/combobox.js.page:208
#, no-wrap
msgid ""
"\n"
+" _onDialogResponse() {\n"
+"\n"
+" this._popUp.destroy ();\n"
+"\n"
+" }\n"
+"\n"
+"};\n"
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/combobox.js.page:219
+#, fuzzy, no-wrap
+msgid ""
+"\n"
"// Run the application\n"
"let app = new ComboBoxExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"\n"
+"// Executa o aplicativo\n"
+"let app = new GettingTheSignal ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: section/p
-#: C/combobox.js.page:223
+#: C/combobox.js.page:224
msgid ""
"Finally, we create a new instance of the finished ComboBoxExample class, and "
"set the application running."
msgstr ""
#. (itstool) path: section/code
-#: C/combobox.js.page:228
+#: C/combobox.js.page:229
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const GObject = imports.gi.GObject;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const ComboBoxExample = new Lang.Class ({\n"
-" Name: 'ComboBox Example',\n"
+"class ComboBoxExample {\n"
"\n"
" // Create the application itself\n"
-" _init: function () {\n"
+" constructor() {\n"
" this.application = new Gtk.Application ({\n"
" application_id: 'org.example.jscombobox'});\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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function () {\n"
+" _onActivate() {\n"
" this._window.present ();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function () {\n"
-" this._buildUI ();\n"
-" },\n"
-"\n"
-"\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function () {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow ({\n"
@@ -6941,18 +8464,16 @@ msgid ""
" this._comboBox.set_active (0);\n"
"\n"
" // Connect the combobox's 'changed' signal to our callback function\n"
-" this._comboBox.connect ('changed', Lang.bind (this, this._onComboChanged));\n"
+" this._comboBox.connect ('changed', this._onComboChanged.bind(this));\n"
"\n"
" // Add the combobox to the window\n"
" this._window.add (this._comboBox);\n"
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
-"\n"
+" }\n"
"\n"
-"\n"
-" _onComboChanged: function () {\n"
+" _onComboChanged() {\n"
"\n"
" // The silly pseudohaiku that we'll use for our messagedialog\n"
" let haiku = [\"\",\n"
@@ -6973,23 +8494,21 @@ msgid ""
" text: haiku[activeItem]});\n"
"\n"
" // Connect the OK button to a handler function\n"
-" this._popUp.connect ('response', Lang.bind (this, this._onDialogResponse));\n"
+" this._popUp.connect ('response', this._onDialogResponse.bind(this));\n"
"\n"
" // Show the messagedialog\n"
" this._popUp.show();\n"
" }\n"
"\n"
-" },\n"
-"\n"
-"\n"
+" }\n"
"\n"
-" _onDialogResponse: function () {\n"
+" _onDialogResponse() {\n"
"\n"
" this._popUp.destroy ();\n"
"\n"
" }\n"
"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new ComboBoxExample ();\n"
@@ -6997,59 +8516,60 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/combobox.js.page:239
+#: C/combobox.js.page:240
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk."
"CellRendererPixbuf.html\">Gtk.CellRendererPixbuf</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/combobox.js.page:240 C/treeview_simple_liststore.js.page:278
+#: C/combobox.js.page:241 C/treeview_simple_liststore.js.page:279
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk."
"CellRendererText.html\">Gtk.CellRendererText</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/combobox.js.page:241
+#: C/combobox.js.page:242
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.ComboBox.html"
"\">Gtk.ComboBox</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/combobox.js.page:242 C/treeview_simple_liststore.js.page:279
+#: C/combobox.js.page:243 C/treeview_simple_liststore.js.page:280
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.ListStore.html"
"\">Gtk.ListStore</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/combobox.js.page:244 C/treeview_simple_liststore.js.page:280
+#: C/combobox.js.page:245 C/treeview_simple_liststore.js.page:281
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.TreeIter.html"
"\">Gtk.TreeIter</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/combobox.py.page:7 C/combobox_multicolumn.py.page:7
+#: C/combobox.py.page:8 C/combobox_multicolumn.py.page:8
msgctxt "text"
msgid "ComboBox (Python)"
-msgstr ""
+msgstr "ComboBox (Python)"
#. (itstool) path: page/title
-#: C/combobox.py.page:22
+#: C/combobox.py.page:23
+#, fuzzy
msgid "ComboBox (one column)"
-msgstr ""
+msgstr "Caixa de combinação"
#. (itstool) path: page/p
-#: C/combobox.py.page:24 C/combobox_multicolumn.py.page:23
-#: C/combobox_multicolumn.vala.page:23
+#: C/combobox.py.page:25 C/combobox_multicolumn.py.page:24
+#: C/combobox_multicolumn.vala.page:24
msgid "This ComboBox prints to the terminal your selection when you change it."
msgstr ""
#. (itstool) path: section/code
-#: C/combobox.py.page:30
+#: C/combobox.py.page:31
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -7057,7 +8577,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"
@@ -7085,20 +8607,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"
@@ -7115,12 +8640,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/combobox.py.page:34 C/combobox_multicolumn.py.page:34
+#: C/combobox.py.page:35 C/combobox_multicolumn.py.page:35
+#, fuzzy
msgid "Useful methods for a ComboBox widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: section/p
-#: C/combobox.py.page:35 C/combobox_multicolumn.py.page:35
+#: C/combobox.py.page:36 C/combobox_multicolumn.py.page:36
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 "
@@ -7131,65 +8657,65 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/combobox.py.page:36
+#: C/combobox.py.page:37
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 ""
#. (itstool) path: item/p
-#: C/combobox.py.page:44 C/combobox_multicolumn.py.page:43
-#: C/model-view-controller.py.page:189
+#: C/combobox.py.page:45 C/combobox_multicolumn.py.page:44
+#: C/model-view-controller.py.page:190
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkComboBox.html"
"\">GtkComboBox</link>"
msgstr ""
#. (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
+#: C/combobox.py.page:46 C/combobox_multicolumn.py.page:45
+#: C/treeview_advanced_liststore.py.page:46
+#: C/treeview_simple_liststore.py.page:47
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkListStore.html"
"\">GtkListStore</link>"
msgstr ""
#. (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
+#: C/combobox.py.page:47 C/combobox_multicolumn.py.page:46
+#: C/treeview_advanced_liststore.py.page:47
+#: C/treeview_cellrenderertoggle.py.page:47
+#: C/treeview_simple_liststore.py.page:48 C/treeview_treestore.py.page:47
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkCellRendererText."
"html\">GtkCellRendererText</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/combobox.py.page:47
+#: C/combobox.py.page:48
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkCellLayout.html"
"\">GtkCellLayout</link>"
msgstr ""
#. (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
+#: C/combobox.py.page:49 C/combobox_multicolumn.py.page:49
+#: C/treeview_advanced_liststore.py.page:49
+#: C/treeview_simple_liststore.py.page:50
msgid ""
"<link href=\"http://git.gnome.org/browse/pygobject/tree/gi/overrides/Gtk.py"
"\">pygobject - Python bindings for GObject Introspection</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/combobox.vala.page:7 C/combobox_multicolumn.vala.page:7
+#: C/combobox.vala.page:8 C/combobox_multicolumn.vala.page:8
msgctxt "text"
msgid "ComboBox (Vala)"
-msgstr ""
+msgstr "ComboBox (Vala)"
#. (itstool) path: page/code
-#: C/combobox.vala.page:24
+#: C/combobox.vala.page:25
#, no-wrap
msgid ""
"/* A window in the application */\n"
@@ -7230,7 +8756,7 @@ msgid ""
"\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 * to the signal handler (aka. callback function).\n"
"\t\t */\n"
"\t\tcombobox.changed.connect (this.item_changed);\n"
"\n"
@@ -7274,40 +8800,41 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/combobox.vala.page:29 C/treeview_simple_liststore.vala.page:32
+#: C/combobox.vala.page:30 C/treeview_simple_liststore.vala.page:33
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ListStore.html\">Gtk."
"ListStore</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/combobox.vala.page:30
+#: C/combobox.vala.page:31
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ComboBox.html\">Gtk."
"ComboBox</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/combobox.vala.page:31
+#: C/combobox.vala.page:32
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.CellRendererText.html\">Gtk."
"CellRendererText</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/combobox.vala.page:32
+#: C/combobox.vala.page:33
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.CellLayout.set_attributes."
"html\">set_attributes</link>"
msgstr ""
#. (itstool) path: page/title
-#: C/combobox_multicolumn.py.page:21 C/combobox_multicolumn.vala.page:21
+#: C/combobox_multicolumn.py.page:22 C/combobox_multicolumn.vala.page:22
+#, fuzzy
msgid "ComboBox (two columns)"
-msgstr ""
+msgstr "Duas colunas – \\begin{columns}"
#. (itstool) path: section/code
-#: C/combobox_multicolumn.py.page:29
+#: C/combobox_multicolumn.py.page:30
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -7318,7 +8845,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"
@@ -7353,7 +8882,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"
@@ -7363,11 +8893,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"
@@ -7384,31 +8915,31 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/combobox_multicolumn.py.page:36
+#: C/combobox_multicolumn.py.page:37
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 ""
#. (itstool) path: item/p
-#: C/combobox_multicolumn.py.page:46
+#: C/combobox_multicolumn.py.page:47
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkCellRendererPixbuf."
"html\">GtkCellRendererPixbuf</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/combobox_multicolumn.py.page:47 C/combobox_multicolumn.vala.page:41
-#: C/toolbar.py.page:57
+#: C/combobox_multicolumn.py.page:48 C/combobox_multicolumn.vala.page:42
+#: C/toolbar.py.page:58
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/gtk3-Stock-Items.html"
"\">Stock Items</link>"
msgstr ""
#. (itstool) path: section/code
-#: C/combobox_multicolumn.vala.page:29
+#: C/combobox_multicolumn.vala.page:30
#, no-wrap
msgid ""
"class MyWindow : Gtk.ApplicationWindow {\n"
@@ -7462,7 +8993,7 @@ msgid ""
"\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 * to the signal handler (aka. callback function).\n"
"\t\t */\n"
"\t\tcombobox.changed.connect (this.item_changed);\n"
"\n"
@@ -7490,80 +9021,94 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/combobox_multicolumn.vala.page:37
+#: C/combobox_multicolumn.vala.page:38
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
+#: C/combobox_multicolumn.vala.page:39
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
+#: C/combobox_multicolumn.vala.page:40
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
+#: C/combobox_multicolumn.vala.page:41
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
+#: C/cpp.page:7
msgctxt "link"
msgid "C++"
-msgstr ""
+msgstr "C++"
#. (itstool) path: page/title
-#: C/cpp.page:15
+#: C/cpp.page:16
msgid "Code samples and platform demos in C++"
-msgstr ""
+msgstr "Amostras de código e demonstrações da plataforma em C++"
-#. (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/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 ""
+#. (itstool) path: section/title
+#: C/cpp.page:21 C/js.page:36 C/py.page:39 C/vala.page:30
+msgid "Examples of applications"
+msgstr "Exemplos de aplicativos"
#. (itstool) path: info/title
-#: C/dialog.c.page:7
+#: C/dialog.c.page:8
msgctxt "text"
msgid "Dialog (C)"
-msgstr ""
+msgstr "Dialog (C)"
#. (itstool) path: info/desc
-#: C/dialog.c.page:19 C/dialog.js.page:17 C/dialog.py.page:19
-#: C/dialog.vala.page:17
+#: C/dialog.c.page:20 C/dialog.js.page:18 C/dialog.py.page:20
+#: C/dialog.vala.page:18
+#, fuzzy
msgid "A popup window"
-msgstr ""
+msgstr "** Tag HTML desconhecida ** Impossível criar janela de pop-up!"
#. (itstool) path: page/title
-#: C/dialog.c.page:22 C/dialog.js.page:20 C/dialog.py.page:22
-#: C/dialog.vala.page:20
+#: C/dialog.c.page:23 C/dialog.js.page:21 C/dialog.py.page:23
+#: C/dialog.vala.page:21
msgid "Dialog"
-msgstr ""
+msgstr "Diálogo"
+
+#. (itstool) path: page/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/dialog.c.page:25 C/dialog.js.page:22 C/dialog.py.page:24
+#: C/dialog.vala.page:22
+msgctxt "_"
+msgid "external ref='media/dialog.png' md5='c90a33386a600e892fe623d4072c8c38'"
+msgstr "external ref='media/dialog.png' md5='c90a33386a600e892fe623d4072c8c38'"
#. (itstool) path: page/p
-#: C/dialog.c.page:25
+#: C/dialog.c.page:26
msgid "A dialog window that pops up when a button is pressed."
msgstr ""
#. (itstool) path: page/code
-#: C/dialog.c.page:27
+#: C/dialog.c.page:28
#, no-wrap
msgid ""
"\n"
@@ -7670,28 +9215,32 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/dialog.c.page:35
+#: C/dialog.c.page:36
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkDialog.html"
"\">GtkDialog</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkDialog.html"
+"\">GtkDialog</link>"
#. (itstool) path: item/p
-#: C/dialog.c.page:36 C/radiobutton.c.page:35 C/spinbutton.c.page:37
-#: C/switch.c.page:34
+#: C/dialog.c.page:37 C/radiobutton.c.page:36 C/spinbutton.c.page:38
+#: C/switch.c.page:35
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkLabel.html"
"\">GtkLabel</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkLabel.html"
+"\">GtkLabel</link>"
#. (itstool) path: info/title
-#: C/dialog.js.page:7
+#: C/dialog.js.page:8
msgctxt "text"
msgid "Dialog (JavaScript)"
-msgstr ""
+msgstr "Dialog (JavaScript)"
#. (itstool) path: page/p
-#: C/dialog.js.page:22
+#: C/dialog.js.page:23
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 "
@@ -7699,43 +9248,130 @@ msgid ""
msgstr ""
#. (itstool) path: page/code
-#: C/dialog.js.page:24
-#, no-wrap
+#: C/dialog.js.page:25
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "\n"
+#| "const WelcomeToTheGrid = new Lang.Class({\n"
+#| " Name: 'Welcome to the Grid',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function() {\n"
+#| " this.application = new Gtk.Application();\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"
+#| "\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: 10,\n"
+#| " title: \"Welcome to the Grid\"});\n"
+#| "\n"
+#| " // Create the Grid\n"
+#| " this._grid = new Gtk.Grid ({\n"
+#| " // column_homogeneous: true,\n"
+#| " // column_spacing: 20,\n"
+#| " row_spacing: 20 });\n"
+#| "\n"
+#| " // Create an image\n"
+#| " this._image = new Gtk.Image ({ file: \"gnome-image.png\" });\n"
+#| "\n"
+#| " // Create a second image using a stock icon\n"
+#| " this._icon = new Gtk.Image ({ stock: 'gtk-about' });\n"
+#| "\n"
+#| " // Create a label\n"
+#| " this._label = new Gtk.Label ({\n"
+#| " label: \"Welcome to GNOME, too!\",\n"
+#| " /* margin_top: 20 */ });\n"
+#| "\n"
+#| " /* Create a second label\n"
+#| " this._labelTwo = new Gtk.Label ({\n"
+#| " label: \"The cake is a pie.\" }); */\n"
+#| "\n"
+#| " /* Create a button\n"
+#| " this._button = new Gtk.Button ({\n"
+#| " label: \"Welcome to GNOME, too!\"}); */\n"
+#| "\n"
+#| " // Attach the images and button to the grid\n"
+#| " this._grid.attach (this._image, 0, 0, 2, 1);\n"
+#| " this._grid.attach (this._icon, 0, 1, 1, 1);\n"
+#| " this._grid.attach (this._label, 1, 1, 1, 1);\n"
+#| "\n"
+#| " // this._grid.attach (this._label, 0, 1, 1, 1);\n"
+#| " // this._grid.attach (this._labelTwo, 1, 1, 1, 1);\n"
+#| "\n"
+#| " // this._grid.attach (this._button, 1, 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"
+#| "// Run the application\n"
+#| "let app = new WelcomeToTheGrid ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const Gio = imports.gi.Gio;\n"
"const GLib = imports.gi.GLib;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const DialogExample = new Lang.Class ({\n"
-" Name: 'Dialog Example',\n"
+"class DialogExample {\n"
"\n"
" // Create the application itself\n"
-" _init: function () {\n"
-" this.application = new Gtk.Application ({\n"
-" application_id: 'org.example.jsdialog',\n"
-" flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-" });\n"
+" constructor() {\n"
+" this.application = new Gtk.Application ({\n"
+" application_id: 'org.example.jsdialog',\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"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function () {\n"
-" this._window.present ();\n"
-" },\n"
+" _onActivate() {\n"
+" this._window.present();\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function () {\n"
-" this._buildUI ();\n"
-" },\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function () {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow ({ application: this.application,\n"
@@ -7749,13 +9385,13 @@ msgid ""
" this._window.add (this._button);\n"
"\n"
" // Bind it to the function that creates the dialog\n"
-" this._button.connect (\"clicked\", Lang.bind(this, this._createDialog));\n"
+" this._button.connect (\"clicked\", this._createDialog.bind(this));\n"
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
+" }\n"
"\n"
-" _createDialog: function () {\n"
+" _createDialog() {\n"
"\n"
" // Create the dialog\n"
" this._dialog = new Gtk.Dialog ({ transient_for: this._window,\n"
@@ -7769,67 +9405,157 @@ msgid ""
"\n"
" // Create the dialog's action area, which contains a stock OK button\n"
" this._actionArea = this._dialog.get_action_area();\n"
-" this._OKButton = new Gtk.Button.new_from_stock (Gtk.STOCK_OK);\n"
+" this._OKButton = Gtk.Button.new_from_stock (Gtk.STOCK_OK);\n"
" this._actionArea.add (this._OKButton);\n"
"\n"
" // Connect the button to the function that handles what it does\n"
-" this._OKButton.connect (\"clicked\", Lang.bind (this, this._OKHandler));\n"
+" this._OKButton.connect (\"clicked\", this._OKHandler.bind(this));\n"
"\n"
" this._dialog.show_all();\n"
-" },\n"
+" }\n"
"\n"
-" _OKHandler: function (dialog, response_id) {\n"
+" _OKHandler(dialog, response_id) {\n"
"\n"
" // Destroy the dialog\n"
" this._dialog.destroy();\n"
" }\n"
"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new DialogExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"\n"
+"const WelcomeToTheGrid = new Lang.Class({\n"
+" Name: 'Bem-vindo à Grid',\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function() {\n"
+" this.application = new Gtk.Application();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativo\n"
+" _onActivate: function() {\n"
+" this._window.present();\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup: function() {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+"\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function() {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow({\n"
+" application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" border_width: 10,\n"
+" title: \"Bem-vindo à Grid\"});\n"
+"\n"
+" // Cria a Grid\n"
+" this._grid = new Gtk.Grid ({\n"
+" // column_homogeneous: true,\n"
+" // column_spacing: 20,\n"
+" row_spacing: 20 });\n"
+"\n"
+" // Cria uma imagem\n"
+" this._image = new Gtk.Image ({ file: \"gnome-image.png\" });\n"
+"\n"
+" // Cria uma segunda imagem usando um ícone padrão\n"
+" this._icon = new Gtk.Image ({ stock: 'gtk-about' });\n"
+"\n"
+" // Cria um rótulo\n"
+" this._label = new Gtk.Label ({\n"
+" label: \"Bem-vindo ao GNOME, também!\",\n"
+" /* margin_top: 20 */ });\n"
+"\n"
+" /* Cria um segundo rótulo\n"
+" this._labelTwo = new Gtk.Label ({\n"
+" label: \"O bolo é uma torta.\" }); */\n"
+"\n"
+" /* Cria um botão\n"
+" this._button = new Gtk.Button ({\n"
+" label: \"Bem-vindo ao GNOME, também!\"}); */\n"
+"\n"
+" // Anexa as imagens e botão à grade\n"
+" this._grid.attach (this._image, 0, 0, 2, 1);\n"
+" this._grid.attach (this._icon, 0, 1, 1, 1);\n"
+" this._grid.attach (this._label, 1, 1, 1, 1);\n"
+"\n"
+" // this._grid.attach (this._label, 0, 1, 1, 1);\n"
+" // this._grid.attach (this._labelTwo, 1, 1, 1, 1);\n"
+"\n"
+" // this._grid.attach (this._button, 1, 1, 1, 1);\n"
+"\n"
+" // Adiciona a grade à janela\n"
+" this._window.add (this._grid);\n"
+"\n"
+" // Mostra a janela e todos os widgets filhos\n"
+" this._window.show_all();\n"
+" }\n"
+"\n"
+"});\n"
+"\n"
+"// Executa o aplicativo\n"
+"let app = new WelcomeToTheGrid ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: item/p
-#: C/dialog.js.page:31
+#: C/dialog.js.page:32
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Dialog.html"
"\">Gtk.Dialog</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/dialog.py.page:7
+#: C/dialog.py.page:8
msgctxt "text"
msgid "Dialog (Python)"
-msgstr ""
+msgstr "Dialog (Python)"
#. (itstool) path: page/p
-#: C/dialog.py.page:24
+#: C/dialog.py.page:25
msgid "A dialog with the response signal connected to a callback function."
msgstr ""
#. (itstool) path: section/code
-#: C/dialog.py.page:31
+#: C/dialog.py.page:32
#, 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"
@@ -7841,7 +9567,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"
@@ -7852,12 +9579,14 @@ msgid ""
" dialog.show_all()\n"
"\n"
" def on_response(self, widget, response_id):\n"
-" print \"response_id is\", response_id\n"
+" print(\"response_id is\", response_id)\n"
" # destroy the widget (the dialog) when the function on_response() is called\n"
" # (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"
@@ -7865,7 +9594,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"
@@ -7874,58 +9603,62 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/dialog.py.page:36
+#: C/dialog.py.page:37
+#, fuzzy
msgid "Useful methods for a Dialog widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: section/p
-#: C/dialog.py.page:37
+#: C/dialog.py.page:38
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 ""
#. (itstool) path: item/p
-#: C/dialog.py.page:39
+#: C/dialog.py.page:40
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 ""
#. (itstool) path: item/p
-#: C/dialog.py.page:40
+#: C/dialog.py.page:41
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 ""
#. (itstool) path: item/p
-#: C/dialog.py.page:50 C/messagedialog.py.page:59
+#: C/dialog.py.page:51 C/messagedialog.py.page:60
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkDialog.html"
"\">GtkDialog</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkDialog.html"
+"\">GtkDialog</link>"
#. (itstool) path: info/title
-#: C/dialog.vala.page:7
+#: C/dialog.vala.page:8
msgctxt "text"
msgid "Dialog (Vala)"
-msgstr ""
+msgstr "Dialog (Vala)"
#. (itstool) path: page/p
-#: C/dialog.vala.page:22
+#: C/dialog.vala.page:23
msgid "A dialog with the response signal hooked up to a callback function."
msgstr ""
#. (itstool) path: page/code
-#: C/dialog.vala.page:24
+#: C/dialog.vala.page:25
#, no-wrap
msgid ""
"\n"
@@ -7989,7 +9722,7 @@ msgid ""
"/* This is the application. */\n"
"public class MyApplication : Gtk.Application {\n"
"\n"
-"\t/* The constructore of the application. */\n"
+"\t/* The constructor of the application. */\n"
"\tinternal MyApplication () {\n"
"\t\tObject (application_id: \"org.example.MyApplication\");\n"
"\t}\n"
@@ -8009,100 +9742,69 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/dialog.vala.page:31
+#: C/dialog.vala.page:32
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Dialog.html\">Gtk.Dialog</"
"link>"
msgstr ""
#. (itstool) path: item/p
-#: C/dialog.vala.page:32
+#: C/dialog.vala.page:33
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Dialog.Dialog.with_buttons."
"html\">Gtk.Dialog.with_buttons</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/dialog.vala.page:33 C/label.vala.page:32
+#: C/dialog.vala.page:34 C/label.vala.page:33
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Label.html\">Gtk.Label</"
"link>"
msgstr ""
#. (itstool) path: item/p
-#: C/dialog.vala.page:34
+#: C/dialog.vala.page:35
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Dialog.get_content_area.html"
"\">get_content_area</link>"
msgstr ""
-#. (itstool) path: page/title
-#: C/documentation.page:19
-msgid "Help develop"
-msgstr "Ajudando a desenvolver"
-
-#. (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 ""
-"Os <app>tutoriais de desenvolvimento do GNOME</app> são desenvolvidos e "
-"mantido por uma comunidade voluntária. Você está convidado para participar."
-
-#. (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>."
-msgstr ""
-"Se você gostaria de <link href=\"https://live.gnome.org/DocumentationProject/"
-"Tasks/DeveloperDocs\">ajudar a desenvolver os <app>tutoriais de "
-"desenvolvimento do GNOME</app></link>, você pode entrar em contato com os "
-"desenvolvedores usando o <link href=\"https://cbe005.chat.mibbit.com/?url=irc"
-"%3A%2F%2Firc.gnome.org%2Fdocs\">irc</link> ou via nossa <link href=\"http://"
-"mail.gnome.org/mailman/listinfo/gnome-doc-devel-list\">lista de discussão</"
-"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/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 ""
-
#. (itstool) path: info/title
-#: C/entry.c.page:7
+#: C/entry.c.page:8
msgctxt "text"
msgid "Entry (C)"
-msgstr ""
+msgstr "Entry (C)"
#. (itstool) path: info/desc
-#: C/entry.c.page:17 C/entry.py.page:24 C/entry.vala.page:17
+#: C/entry.c.page:18 C/entry.py.page:25 C/entry.vala.page:18
+#, fuzzy
msgid "A single line text entry field"
-msgstr ""
+msgstr "Oculta o texto no campo de entrada do diálogo de entrada de texto."
#. (itstool) path: page/title
-#: C/entry.c.page:20 C/entry.js.page:20 C/entry.py.page:27
-#: C/entry.vala.page:20
+#: C/entry.c.page:21 C/entry.js.page:21 C/entry.py.page:28 C/entry.vala.page:21
+#, fuzzy
msgid "Entry"
-msgstr ""
+msgstr "entrada"
+
+#. (itstool) path: page/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/entry.c.page:23 C/entry.js.page:22 C/entry.py.page:29 C/entry.vala.page:22
+msgctxt "_"
+msgid "external ref='media/entry.png' md5='8a828cffdcbaa4bad83342e109f28cc8'"
+msgstr "external ref='media/entry.png' md5='8a828cffdcbaa4bad83342e109f28cc8'"
#. (itstool) path: page/p
-#: C/entry.c.page:23 C/entry.vala.page:22
+#: C/entry.c.page:24 C/entry.vala.page:23
+#, fuzzy
msgid "This application greets you in the terminal."
-msgstr ""
+msgstr "Aplicativo no terminal"
#. (itstool) path: page/code
-#: C/entry.c.page:25
+#: C/entry.c.page:26
#, no-wrap
msgid ""
"\n"
@@ -8168,61 +9870,120 @@ msgid ""
msgstr ""
#. (itstool) path: info/title
-#: C/entry.js.page:7
+#: C/entry.js.page:8
msgctxt "text"
msgid "Entry (JavaScript)"
-msgstr ""
+msgstr "Entry (JavaScript)"
#. (itstool) path: info/desc
-#: C/entry.js.page:17
+#: C/entry.js.page:18
+#, fuzzy
msgid "A single-line text entry field"
-msgstr ""
+msgstr "Oculta o texto no campo de entrada do diálogo de entrada de texto."
#. (itstool) path: page/p
-#: C/entry.js.page:22
+#: C/entry.js.page:23
msgid "This application greets you by name through a pop-up window."
msgstr ""
#. (itstool) path: page/code
-#: C/entry.js.page:24
-#, no-wrap
+#: C/entry.js.page:25
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const GLib = imports.gi.GLib;\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "const Webkit = imports.gi.WebKit;\n"
+#| "\n"
+#| "const HelloGNOME = new Lang.Class ({\n"
+#| " Name: 'Hello GNOME',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function () {\n"
+#| " this.application = new Gtk.Application ();\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 ({\n"
+#| " application: this.application,\n"
+#| " title: \"Welcome to GNOME\",\n"
+#| " default_height: 200,\n"
+#| " default_width: 400,\n"
+#| " window_position: Gtk.WindowPosition.CENTER });\n"
+#| "\n"
+#| " // Create a webview to show the web app\n"
+#| " this._webView = new Webkit.WebView ();\n"
+#| "\n"
+#| " // Put the web app into the webview\n"
+#| " this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+#| " \"/hellognome.html\", null));\n"
+#| "\n"
+#| " // Put the webview into the window\n"
+#| " this._window.add (this._webView);\n"
+#| "\n"
+#| " // Show the window and all child widgets\n"
+#| " this._window.show_all();\n"
+#| " },\n"
+#| "\n"
+#| "});\n"
+#| "\n"
+#| "// Run the application\n"
+#| "let app = new HelloGNOME ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const Gio = imports.gi.Gio;\n"
"const GLib = imports.gi.GLib;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const EntryExample = new Lang.Class({\n"
-" Name: 'Entry Example',\n"
+"class EntryExample {\n"
"\n"
" // Create the application itself\n"
-" _init: function() {\n"
+" constructor() {\n"
" this.application = new Gtk.Application({\n"
" application_id: 'org.example.jsentry',\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"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function() {\n"
-" this._buildUI ();\n"
-" },\n"
-"\n"
-"\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow({\n"
@@ -8238,15 +9999,13 @@ msgid ""
" this._window.add(this.entry);\n"
"\n"
" // Connect the text entry box to a function that responds to what you type in\n"
-" this.entry.connect(\"activate\", Lang.bind (this, this._hello));\n"
+" this.entry.connect(\"activate\", this._hello.bind(this));\n"
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
-"\n"
-"\n"
+" }\n"
"\n"
-" _hello: function() {\n"
+" _hello() {\n"
"\n"
" // Create a popup dialog to greet the person who types in their name\n"
" this._greeter = new Gtk.MessageDialog ({\n"
@@ -8261,53 +10020,122 @@ msgid ""
" this._greeter.show();\n"
"\n"
" // Bind the OK button to the function that closes the popup\n"
-" this._greeter.connect (\"response\", Lang.bind(this, this._okClicked));\n"
-" },\n"
+" this._greeter.connect (\"response\", this._okClicked.bind(this));\n"
+" }\n"
"\n"
-" _okClicked: function () {\n"
+" _okClicked() {\n"
" this._greeter.destroy();\n"
" }\n"
"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new EntryExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const GLib = imports.gi.GLib;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"const Webkit = imports.gi.WebKit;\n"
+"\n"
+"const HelloGNOME = new Lang.Class ({\n"
+" Name: 'Olá, GNOME',\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function () {\n"
+" this.application = new Gtk.Application ();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativa\n"
+" _onActivate: function () {\n"
+" this._window.present ();\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup: function () {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function () {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow ({\n"
+" application: this.application,\n"
+" title: \"Bem-vindo ao GNOME\",\n"
+" default_height: 200,\n"
+" default_width: 400,\n"
+" window_position: Gtk.WindowPosition.CENTER });\n"
+"\n"
+" // Cria um webview para mostrar o aplicativo web\n"
+" this._webView = new Webkit.WebView ();\n"
+"\n"
+" // Coloca o aplicativo web no webview\n"
+" this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+" \"/hellognome.html\", null));\n"
+"\n"
+" // Coloca o webview na janela\n"
+" this._window.add (this._webView);\n"
+"\n"
+" // Mostra a janela e todos seus widgets filhos\n"
+" this._window.show_all();\n"
+" },\n"
+"\n"
+"});\n"
+"\n"
+"// Executa o aplicativo\n"
+"let app = new HelloGNOME ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: item/p
-#: C/entry.js.page:31
+#: C/entry.js.page:32
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Entry.html"
"\">Gtk.Entry</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/entry.py.page:7
+#: C/entry.py.page:8
msgctxt "text"
msgid "Entry (Python)"
-msgstr ""
+msgstr "Entry (Python)"
#. (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
+#: C/entry.py.page:21 C/label.py.page:22 C/model-view-controller.py.page:16
+#: C/properties.py.page:16 C/signals-callbacks.py.page:16 C/strings.py.page:16
+#: C/textview.py.page:16 C/toolbar_builder.py.page:28
+#, fuzzy
msgid "Sebastian Pölsterl"
-msgstr ""
+msgstr "Sebastian Rasmussen"
+
+#. (itstool) path: credit/years
+#: C/entry.py.page:23 C/index.page:20 C/model-view-controller.py.page:18
+#: C/properties.py.page:18 C/signals-callbacks.py.page:18 C/strings.py.page:18
+#: C/textview.py.page:18 C/toolbar_builder.py.page:30
+msgid "2011"
+msgstr "2011"
#. (itstool) path: page/p
-#: C/entry.py.page:29
+#: C/entry.py.page:30
msgid "This application greets you in the terminal with the name you provide."
msgstr ""
#. (itstool) path: section/code
-#: C/entry.py.page:35
+#: C/entry.py.page:36
#, 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=\"What is your name?\", application=app)\n"
" self.set_default_size(300, 100)\n"
@@ -8325,11 +10153,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"
@@ -8346,26 +10176,27 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/entry.py.page:39
+#: C/entry.py.page:40
+#, fuzzy
msgid "Useful methods for an Entry widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: section/p
-#: C/entry.py.page:40
+#: C/entry.py.page:41
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 "
+"<code>\"icon-press\"</code> (emitted when the user clicks an activatable "
"icon); <code>\"icon-release\"</code> (emitted on the button release from a "
-"mouse click over an activable icon); <code>\"insert-at-cursor\"</code> "
+"mouse click over an activatable 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 "
@@ -8373,7 +10204,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/entry.py.page:42
+#: C/entry.py.page:43
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 "
@@ -8381,35 +10212,35 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/entry.py.page:43
+#: C/entry.py.page:44
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 ""
#. (itstool) path: item/p
-#: C/entry.py.page:44
+#: C/entry.py.page:45
msgid "<code>get_text_length()</code> is self-explanatory."
msgstr ""
#. (itstool) path: item/p
-#: C/entry.py.page:45
+#: C/entry.py.page:46
msgid ""
"<code>get_text_area()</code> gets the area where the entry's text is drawn."
msgstr ""
#. (itstool) path: item/p
-#: C/entry.py.page:46
+#: C/entry.py.page:47
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 "
"font, but it can be changed with <code>set_invisible_char(ch)</code>, where "
-"<code>ch</code> is a Unicode charcater. The latter method is reversed by "
-"<code>unset_invisbile_char()</code>."
+"<code>ch</code> is a Unicode character. The latter method is reversed by "
+"<code>unset_invisible_char()</code>."
msgstr ""
#. (itstool) path: item/p
-#: C/entry.py.page:47
+#: C/entry.py.page:48
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 "
@@ -8417,7 +10248,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/entry.py.page:48
+#: C/entry.py.page:49
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 "
@@ -8426,33 +10257,33 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/entry.py.page:49
+#: C/entry.py.page:50
msgid "To set a frame around the entry: <code>set_has_frame(True)</code>."
msgstr ""
#. (itstool) path: item/p
-#: C/entry.py.page:50
+#: C/entry.py.page:51
msgid ""
"<code>set_placeholder_text(\"some text\")</code> sets the text to be "
"displayed in the entry when it is empty and unfocused."
msgstr ""
#. (itstool) path: item/p
-#: C/entry.py.page:51
+#: C/entry.py.page:52
msgid ""
"<code>set_overwrite_mode(True)</code> and <code>set_overwrite_mode(False)</"
"code> are self-explanatory."
msgstr ""
#. (itstool) path: item/p
-#: C/entry.py.page:52
+#: C/entry.py.page:53
msgid ""
"If we have <code>set_editable(False)</code> the user cannot edit the text in "
"the widget."
msgstr ""
#. (itstool) path: item/p
-#: C/entry.py.page:53
+#: C/entry.py.page:54
msgid ""
"<code>set_completion(completion)</code>, where <code>completion</code> is a "
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkEntryCompletion.html"
@@ -8461,7 +10292,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/entry.py.page:54
+#: C/entry.py.page:55
msgid ""
"An Entry widget can display progress or activity information behind the "
"text. We use <code>set_progress_fraction(fraction)</code>, where "
@@ -8478,7 +10309,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/entry.py.page:55
+#: C/entry.py.page:56
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 "
@@ -8488,26 +10319,27 @@ msgid ""
"<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>."
+"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 ""
#. (itstool) path: item/p
-#: C/entry.py.page:63
+#: C/entry.py.page:64
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkEntry.html"
"\">GtkEntry</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/entry.vala.page:7
+#: C/entry.vala.page:8
msgctxt "text"
msgid "Entry (Vala)"
-msgstr ""
+msgstr "Entry (Vala)"
#. (itstool) path: page/code
-#: C/entry.vala.page:24
+#: C/entry.vala.page:25
#, no-wrap
msgid ""
"/* A window in the application. */\n"
@@ -8557,78 +10389,80 @@ msgid ""
"\n"
"}\n"
"\n"
-"/* The main function creats and runs the application. */\n"
+"/* The main function creates and runs the application. */\n"
"int main (string[] args) {\n"
"\treturn new MyApplication ().run (args);\n"
"}\n"
msgstr ""
#. (itstool) path: item/p
-#: C/entry.vala.page:29
+#: C/entry.vala.page:30
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Entry.html\">Gtk.Entry</"
"link>"
msgstr ""
-#. (itstool) path: media
+#. (itstool) path: info/title
+#: C/filechooserdialog.py.page:8
+msgctxt "text"
+msgid "FileChooserDialog (Python)"
+msgstr "FileChooserDialog (Python)"
+
+#. (itstool) path: info/desc
+#: C/filechooserdialog.py.page:22
+#, fuzzy
+msgid "A dialog suitable for \"Open\" and \"Save\" commands"
+msgstr "O diretório para a janela de salvamento de jogos"
+
+#. (itstool) path: page/title
+#: C/filechooserdialog.py.page:25 C/filechooserdialog.vala.page:24
+msgid "FileChooserDialog"
+msgstr ""
+
+#. (itstool) path: page/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
+#: C/filechooserdialog.py.page:26
msgctxt "_"
msgid ""
"external ref='media/filechooserdialog_save.png' "
"md5='3a7a3b71b9d3a36066857843b68ff27f'"
msgstr ""
-#. (itstool) path: media
+#. (itstool) path: page/p
+#: C/filechooserdialog.py.page:27
+msgid ""
+"This FileChooserDialog saves a text document, which can be opened or written "
+"from scratch in a TextView (see below)."
+msgstr ""
+
+#. (itstool) path: page/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
+#: C/filechooserdialog.py.page:28
msgctxt "_"
msgid ""
"external ref='media/filechooserdialog_menu.png' "
"md5='8a75f04127a70eba0ed68a9eb1d3bbca'"
msgstr ""
-#. (itstool) path: info/title
-#: C/filechooserdialog.py.page:7
-msgctxt "text"
-msgid "FileChooserDialog (Python)"
-msgstr ""
-
-#. (itstool) path: info/desc
-#: C/filechooserdialog.py.page:21
-msgid "A dialog suitable for \"Open\" and \"Save\" commands"
-msgstr ""
-
-#. (itstool) path: page/title
-#: C/filechooserdialog.py.page:24 C/filechooserdialog.vala.page:23
-msgid "FileChooserDialog"
-msgstr ""
-
-#. (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 ""
-
#. (itstool) path: page/p
-#: C/filechooserdialog.py.page:28
+#: C/filechooserdialog.py.page:29
msgid "It is also possible to call a FileChooserDialog to open a new document."
msgstr ""
#. (itstool) path: section/title
-#: C/filechooserdialog.py.page:33
+#: C/filechooserdialog.py.page:34
+#, fuzzy
msgid "Steps to recreate the example"
-msgstr ""
+msgstr "Atualizar pré-_visualização"
#. (itstool) path: item/p
-#: C/filechooserdialog.py.page:35
+#: C/filechooserdialog.py.page:36
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 "
@@ -8636,7 +10470,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/filechooserdialog.py.page:36
+#: C/filechooserdialog.py.page:37
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 "
@@ -8644,7 +10478,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/filechooserdialog.py.page:37
+#: C/filechooserdialog.py.page:38
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 "
@@ -8652,7 +10486,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/filechooserdialog.py.page:38
+#: C/filechooserdialog.py.page:39
msgid ""
"\"New\" and \"Quit\" actions and callback functions are quite "
"straightforward, see <link xref=\"#code\"/>. See <link xref=\"signals-"
@@ -8661,7 +10495,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/filechooserdialog.py.page:39
+#: C/filechooserdialog.py.page:40
msgid ""
"\"Open\" callback should create and open a Gtk.FileChooserDialog for \"Open"
"\", connected with another callback function for each of the two \"Open\" "
@@ -8669,14 +10503,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/filechooserdialog.py.page:40
+#: C/filechooserdialog.py.page:41
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 ""
#. (itstool) path: item/p
-#: C/filechooserdialog.py.page:41
+#: C/filechooserdialog.py.page:42
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 "
@@ -8685,19 +10519,19 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/filechooserdialog.py.page:42
+#: C/filechooserdialog.py.page:43
msgid ""
"Finally, the method <code>save_to_file()</code>: see <link xref=\"#code\"/>, "
"lines 146 - 175."
msgstr ""
#. (itstool) path: section/title
-#: C/filechooserdialog.py.page:47
+#: C/filechooserdialog.py.page:48
msgid "XML file which creates the app-menu"
msgstr ""
#. (itstool) path: section/code
-#: C/filechooserdialog.py.page:48 C/filechooserdialog.vala.page:29
+#: C/filechooserdialog.py.page:49 C/filechooserdialog.vala.page:30
#, no-wrap
msgid ""
"<?xml version=\"1.0\"?>\n"
@@ -8734,7 +10568,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/filechooserdialog.py.page:53
+#: C/filechooserdialog.py.page:54
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -8743,59 +10577,64 @@ 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"
" # callback for new\n"
" def new_callback(self, action, parameter):\n"
" self.buffer.set_text(\"\")\n"
-" print \"New file created\"\n"
-" \n"
+" print(\"New file created\")\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"
@@ -8822,24 +10661,25 @@ msgid ""
" # file has been modified from the version on the file system)\n"
" [success, content, etags] = self.file.load_contents(None)\n"
" except GObject.GError as e:\n"
-" print \"Error: \" + e.message\n"
+" print(\"Error: \" + e.message)\n"
" # set the content as the text into the buffer\n"
" self.buffer.set_text(content, len(content))\n"
-" print \"opened: \" + open_dialog.get_filename()\n"
+" print(\"opened: \" + open_dialog.get_filename())\n"
" # if response is \"CANCEL\" (the button \"Cancel\" has been clicked)\n"
" elif response_id == Gtk.ResponseType.CANCEL:\n"
-" print \"cancelled: FileChooserAction.OPEN\"\n"
+" print(\"cancelled: FileChooserAction.OPEN\")\n"
" # destroy the FileChooserDialog\n"
" dialog.destroy()\n"
"\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"
@@ -8851,12 +10691,12 @@ msgid ""
" # set self.file as the current filename for the file chooser\n"
" save_dialog.set_file(self.file)\n"
" except GObject.GError as e:\n"
-" print \"Error: \" + e.message\n"
+" print(\"Error: \" + e.message)\n"
" # connect the dialog to the callback function save_response_cb()\n"
" 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"
@@ -8868,11 +10708,11 @@ msgid ""
" self.save_to_file()\n"
" # if response is \"CANCEL\" (the button \"Cancel\" has been clicked)\n"
" elif response_id == Gtk.ResponseType.CANCEL:\n"
-" print \"cancelled: FileChooserAction.SAVE\"\n"
+" 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"
@@ -8897,23 +10737,25 @@ msgid ""
" False,\n"
" Gio.FileCreateFlags.NONE,\n"
" None)\n"
-" print \"saved: \" + self.file.get_path()\n"
+" print(\"saved: \" + self.file.get_path())\n"
" except GObject.GError as e:\n"
-" print \"Error: \" + e.message\n"
+" print(\"Error: \" + e.message)\n"
" # 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"
+" print(\"saved: \" + self.file.get_path())\n"
" except GObject.GError as e:\n"
-" print \"Error: \" + e.message\n"
-" \n"
+" print(\"Error: \" + e.message)\n"
+"\n"
+"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -8934,11 +10776,11 @@ msgid ""
" try:\n"
" builder.add_from_file(\"filechooserdialog.ui\")\n"
" except:\n"
-" print \"file not found\"\n"
+" print(\"file not found\")\n"
" 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"
@@ -8949,12 +10791,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/filechooserdialog.py.page:57
+#: C/filechooserdialog.py.page:58
+#, fuzzy
msgid "Useful methods for a FileChooserDialog"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: section/p
-#: C/filechooserdialog.py.page:58
+#: C/filechooserdialog.py.page:59
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 "
@@ -8967,19 +10810,19 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/filechooserdialog.py.page:59
+#: C/filechooserdialog.py.page:60
msgid "Besides the methods used in the <link xref=\"#code\"/>, we have:"
msgstr ""
#. (itstool) path: item/p
-#: C/filechooserdialog.py.page:61
+#: C/filechooserdialog.py.page:62
msgid ""
"<code>set_show_hidden(True)</code> is used to display hidden files and "
"folders."
msgstr ""
#. (itstool) path: item/p
-#: C/filechooserdialog.py.page:62
+#: C/filechooserdialog.py.page:63
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."
@@ -8987,7 +10830,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/filechooserdialog.py.page:63
+#: C/filechooserdialog.py.page:64
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; "
@@ -8996,7 +10839,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/filechooserdialog.py.page:64
+#: C/filechooserdialog.py.page:65
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 "
@@ -9005,80 +10848,100 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/filechooserdialog.py.page:72
+#: C/filechooserdialog.py.page:73
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>"
#. (itstool) path: item/p
-#: C/filechooserdialog.py.page:73
+#: C/filechooserdialog.py.page:74
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>"
#. (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
+#: C/filechooserdialog.py.page:75 C/image.c.page:34 C/label.c.page:38
+#: C/menubar.c.page:38 C/scrolledwindow.c.page:35
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>"
#. (itstool) path: item/p
-#: C/filechooserdialog.py.page:75 C/textview.c.page:38
+#: C/filechooserdialog.py.page:76 C/textview.c.page:39
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>"
#. (itstool) path: item/p
-#: C/filechooserdialog.py.page:76 C/textview.c.page:37
+#: C/filechooserdialog.py.page:77 C/textview.c.page:38
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>"
#. (itstool) path: item/p
-#: C/filechooserdialog.py.page:77 C/scrolledwindow.c.page:35
-#: C/textview.c.page:39
+#: C/filechooserdialog.py.page:78 C/scrolledwindow.c.page:36
+#: C/textview.c.page:40
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>"
#. (itstool) path: item/p
-#: C/filechooserdialog.py.page:78
+#: C/filechooserdialog.py.page:79
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>"
#. (itstool) path: item/p
-#: C/filechooserdialog.py.page:80
+#: C/filechooserdialog.py.page:81
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>"
#. (itstool) path: info/title
-#: C/filechooserdialog.vala.page:7
+#: C/filechooserdialog.vala.page:8
msgctxt "text"
msgid "FileChooserDialog (Vala)"
-msgstr ""
+msgstr "FileChooserDialog (Vala)"
#. (itstool) path: info/desc
-#: C/filechooserdialog.vala.page:20
+#: C/filechooserdialog.vala.page:21
+#, fuzzy
msgid "A dialog suitable for \"Open\" and \"Save\" commands."
-msgstr ""
+msgstr "O diretório para a janela de salvamento de jogos"
#. (itstool) path: section/title
-#: C/filechooserdialog.vala.page:25
+#: C/filechooserdialog.vala.page:26
+#, fuzzy
msgid "Overview of the example"
msgstr ""
+"GNOME permite que você personalize o que você deseja exibir nos resultados "
+"de pesquisa no <gui>Panorama de atividades</gui>. Por exemplo, você pode "
+"escolher se deseja mostrar resultados de páginas web, fotos ou músicas."
#. (itstool) path: section/p
-#: C/filechooserdialog.vala.page:26
+#: C/filechooserdialog.vala.page:27
msgid ""
"This example demonstrates how the FileChooserDialog can be used. It is "
"incorporated into a very simple text editor application. All the <link xref="
@@ -9089,17 +10952,18 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/filechooserdialog.vala.page:28
+#: C/filechooserdialog.vala.page:29
msgid "XML UI file which creates the app-menu"
msgstr ""
#. (itstool) path: section/title
-#: C/filechooserdialog.vala.page:31
+#: C/filechooserdialog.vala.page:32
+#, fuzzy
msgid "Vala Code"
-msgstr ""
+msgstr "Código-fonte Vala"
#. (itstool) path: section/code
-#: C/filechooserdialog.vala.page:32
+#: C/filechooserdialog.vala.page:33
#, no-wrap
msgid ""
"class MyWindow: Gtk.ApplicationWindow {\n"
@@ -9301,107 +11165,171 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/filechooserdialog.vala.page:34 C/menubar.vala.page:186
+#: C/filechooserdialog.vala.page:35 C/menubar.vala.page:187
+#, fuzzy
msgid "Relevant API documentation"
-msgstr ""
+msgstr "Navegador de documentação de API"
#. (itstool) path: item/p
-#: C/filechooserdialog.vala.page:39
+#: C/filechooserdialog.vala.page:40
msgid ""
"<link href=\"http://valadoc.org/gtk+-3.0/Gtk.FileChooser.html\">FileChooser</"
"link>"
msgstr ""
#. (itstool) path: item/p
-#: C/filechooserdialog.vala.page:40
+#: C/filechooserdialog.vala.page:41
msgid ""
"<link href=\"http://valadoc.org/gtk+-3.0/Gtk.FileChooserDialog.html"
"\">FileChooserDialog</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/filechooserdialog.vala.page:41
+#: C/filechooserdialog.vala.page:42
msgid ""
"<link href=\"http://valadoc.org/gtk+-3.0/Gtk.Builder.html\">Gtk.Builder</"
"link>"
msgstr ""
#. (itstool) path: item/p
-#: C/filechooserdialog.vala.page:42
+#: C/filechooserdialog.vala.page:43
msgid ""
"<link href=\"http://valadoc.org/gio-2.0/GLib.ActionEntry.html\">GLib."
"ActionEntry</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/fontchooserwidget.js.page:22 C/fontchooserwidget.py.page:24
-#: C/fontchooserwidget.vala.page:22
-msgctxt "_"
-msgid ""
-"external ref='media/fontchooserwidget.png' "
-"md5='9161245e307b432ae1313e9a9941edae'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/fontchooserwidget.js.page:7
+#: C/fontchooserwidget.js.page:8
msgctxt "text"
msgid "FontChooserWidget (JavaScript)"
-msgstr ""
+msgstr "FontChooserWidget (JavaScript)"
#. (itstool) path: info/desc
-#: C/fontchooserwidget.js.page:17 C/fontchooserwidget.py.page:19
-#: C/fontchooserwidget.vala.page:17
+#: C/fontchooserwidget.js.page:18 C/fontchooserwidget.py.page:20
+#: C/fontchooserwidget.vala.page:18
+#, fuzzy
msgid "A widget to choose a font"
-msgstr ""
+msgstr "Widget de seleção de fontes"
#. (itstool) path: page/title
-#: C/fontchooserwidget.js.page:20 C/fontchooserwidget.py.page:22
-#: C/fontchooserwidget.vala.page:20
+#: C/fontchooserwidget.js.page:21 C/fontchooserwidget.py.page:23
+#: C/fontchooserwidget.vala.page:21
msgid "FontChooserWidget"
msgstr ""
-#. (itstool) path: page/p
+#. (itstool) path: page/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.js.page:23 C/fontchooserwidget.py.page:25
-msgid "A FontChooserWidget with a callback function."
+#: C/fontchooserwidget.vala.page:23
+msgctxt "_"
+msgid ""
+"external ref='media/fontchooserwidget.png' "
+"md5='9161245e307b432ae1313e9a9941edae'"
msgstr ""
+"external ref='media/fontchooserwidget.png' "
+"md5='9161245e307b432ae1313e9a9941edae'"
-#. (itstool) path: section/code
-#: C/fontchooserwidget.js.page:29
-#, no-wrap
+#. (itstool) path: page/p
+#: C/fontchooserwidget.js.page:24 C/fontchooserwidget.py.page:26
+#, fuzzy
+msgid "A FontChooserWidget with a callback function."
+msgstr "slot_callback"
+
+#. (itstool) path: section/code
+#: C/fontchooserwidget.js.page:30
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const GLib = imports.gi.GLib;\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "const Webkit = imports.gi.WebKit;\n"
+#| "\n"
+#| "const HelloGNOME = new Lang.Class ({\n"
+#| " Name: 'Hello GNOME',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function () {\n"
+#| " this.application = new Gtk.Application ();\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 ({\n"
+#| " application: this.application,\n"
+#| " title: \"Welcome to GNOME\",\n"
+#| " default_height: 200,\n"
+#| " default_width: 400,\n"
+#| " window_position: Gtk.WindowPosition.CENTER });\n"
+#| "\n"
+#| " // Create a webview to show the web app\n"
+#| " this._webView = new Webkit.WebView ();\n"
+#| "\n"
+#| " // Put the web app into the webview\n"
+#| " this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+#| " \"/hellognome.html\", null));\n"
+#| "\n"
+#| " // Put the webview into the window\n"
+#| " this._window.add (this._webView);\n"
+#| "\n"
+#| " // Show the window and all child widgets\n"
+#| " this._window.show_all();\n"
+#| " },\n"
+#| "\n"
+#| "});\n"
+#| "\n"
+#| "// Run the application\n"
+#| "let app = new HelloGNOME ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"//!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\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"
+"class FontChooserWidgetExample {\n"
"\n"
" // Create the application itthis\n"
-" _init: function () {\n"
+" constructor() {\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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this.window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function() {\n"
-" this._buildUI ();\n"
-" },\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
" // Create the application window\n"
" this.window = new Gtk.ApplicationWindow ({ application: this.application,\n"
" window_position: Gtk.WindowPosition.CENTER,\n"
@@ -9417,46 +11345,107 @@ msgid ""
" 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"
+" this.fontChooser.connect(\"notify::font\", this._fontCb.bind(this));\n"
"\n"
" // add the font chooser to the window\n"
" this.window.add(this.fontChooser);\n"
" this.window.show_all();\n"
-" },\n"
+" }\n"
"\n"
" // callback function:\n"
-" _fontCb: function() {\n"
+" _fontCb() {\n"
" // print in the terminal\n"
" print(\"You chose the font \" + this.fontChooser.get_font());\n"
" }\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new FontChooserWidgetExample();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const GLib = imports.gi.GLib;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"const Webkit = imports.gi.WebKit;\n"
+"\n"
+"const HelloGNOME = new Lang.Class ({\n"
+" Name: 'Olá, GNOME',\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function () {\n"
+" this.application = new Gtk.Application ();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativa\n"
+" _onActivate: function () {\n"
+" this._window.present ();\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup: function () {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function () {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow ({\n"
+" application: this.application,\n"
+" title: \"Bem-vindo ao GNOME\",\n"
+" default_height: 200,\n"
+" default_width: 400,\n"
+" window_position: Gtk.WindowPosition.CENTER });\n"
+"\n"
+" // Cria um webview para mostrar o aplicativo web\n"
+" this._webView = new Webkit.WebView ();\n"
+"\n"
+" // Coloca o aplicativo web no webview\n"
+" this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+" \"/hellognome.html\", null));\n"
+"\n"
+" // Coloca o webview na janela\n"
+" this._window.add (this._webView);\n"
+"\n"
+" // Mostra a janela e todos seus widgets filhos\n"
+" this._window.show_all();\n"
+" },\n"
+"\n"
+"});\n"
+"\n"
+"// Executa o aplicativo\n"
+"let app = new HelloGNOME ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: item/p
-#: C/fontchooserwidget.js.page:36 C/fontchooserwidget.py.page:46
+#: C/fontchooserwidget.js.page:37 C/fontchooserwidget.py.page:47
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkFontChooserWidget."
"html\">GtkFontChooserWidget</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/fontchooserwidget.py.page:7
+#: C/fontchooserwidget.py.page:8
msgctxt "text"
msgid "FontChooserWidget (Python)"
-msgstr ""
+msgstr "FontChooserWidget (Python)"
#. (itstool) path: section/code
-#: C/fontchooserwidget.py.page:31
+#: C/fontchooserwidget.py.page:32
#, 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=\"FontChooserWidget\", application=app)\n"
"\n"
@@ -9465,7 +11454,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"
@@ -9476,9 +11466,11 @@ msgid ""
" # callback function:\n"
" def font_cb(self, event, user_data):\n"
" # print in the terminal\n"
-" print \"You chose the font \" + self.font_chooser.get_font()\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"
@@ -9495,12 +11487,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/fontchooserwidget.py.page:34
+#: C/fontchooserwidget.py.page:35
+#, fuzzy
msgid "Useful methods for a FontChooserWidget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: section/p
-#: C/fontchooserwidget.py.page:35
+#: C/fontchooserwidget.py.page:36
msgid ""
"In line 16 the <code>\"notify::font\"</code> signal from the widget is "
"connected to the callback function <code>font_cb()</code> using "
@@ -9510,7 +11503,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/fontchooserwidget.py.page:37
+#: C/fontchooserwidget.py.page:38
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)</"
@@ -9518,37 +11511,38 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/fontchooserwidget.py.page:38
+#: C/fontchooserwidget.py.page:39
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 ""
#. (itstool) path: item/p
-#: C/fontchooserwidget.py.page:39
+#: C/fontchooserwidget.py.page:40
msgid ""
"To change the text which is shown in the preview area, use "
"<code>set_preview_text()</code>."
msgstr ""
#. (itstool) path: info/title
-#: C/fontchooserwidget.vala.page:7
+#: C/fontchooserwidget.vala.page:8
msgctxt "text"
msgid "FontChooserWidget (Vala)"
-msgstr ""
+msgstr "FontChooserWidget (Vala)"
#. (itstool) path: credit/name
-#: C/fontchooserwidget.vala.page:12
+#: C/fontchooserwidget.vala.page:13
+#, fuzzy
msgid "Tiffany Antpoolski"
-msgstr ""
+msgstr "Tiffany Antopolski"
#. (itstool) path: page/p
-#: C/fontchooserwidget.vala.page:23
+#: C/fontchooserwidget.vala.page:24
msgid "A FontChooserWidget with a lambda callback function."
msgstr ""
#. (itstool) path: section/code
-#: C/fontchooserwidget.vala.page:29
+#: C/fontchooserwidget.vala.page:30
#, no-wrap
msgid ""
"public class MyWindow : Gtk.ApplicationWindow {\n"
@@ -9586,220 +11580,47 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/fontchooserwidget.vala.page:36
+#: C/fontchooserwidget.vala.page:37
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.FontChooserWidget.html"
"\">GtkFontChooserWidget</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/getting-ready.page:39
-msgctxt "_"
-msgid "external ref='media/ubuntu.png' md5='40845e4a40b335b1958da1403f01c13f'"
-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/getting-ready.page:44
-msgctxt "_"
-msgid "external ref='media/fedora.png' md5='19add55f4349fd9e90f3a50b344ba626'"
-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/getting-ready.page:49
-msgctxt "_"
-msgid ""
-"external ref='media/opensuse.png' md5='a852a94199328e2f978c7f6a55bf8b54'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/getting-ready.page:6
-msgctxt "link"
-msgid "Install GNOME development tools"
-msgstr "Instalando ferramentas de desenvolvimento do GNOME"
-
-#. (itstool) path: page/title
-#: C/getting-ready.page:16
-msgid "Getting ready for GNOME development"
-msgstr "Se preparando para desenvolvimento do GNOME"
-
-#. (itstool) path: section/title
-#: C/getting-ready.page:19
-msgid "Install the required tools"
-msgstr "Instalando as ferramentas necessárias"
-
-#. (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 ""
-"Antes que você possa começar a codificação, você terá que instalar as "
-"ferramentas necessárias para o desenvolvimento do GNOME no seu computador. "
-"Isso não deveria levar mais de dez minutos."
-
-#. (itstool) path: section/title
-#: C/getting-ready.page:25
-msgid "Automatic installation"
-msgstr "Instalação automática"
-
-#. (itstool) path: section/p
-#: C/getting-ready.page:26
-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 ""
-"Em uma distribuição atualizada você deveria poder simplesmente instalar os "
-"pacotes necessários clicando em <link href=\"media/gnome-devtools.catalog"
-"\">Instalar agora</link>."
-
-#. (itstool) path: section/title
-#: C/getting-ready.page:31
-msgid "Manual installation"
-msgstr "Instalação manual"
-
-#. (itstool) path: section/p
-#: C/getting-ready.page:32
-msgid ""
-"If you prefer manual installation you can find the instructions for the "
-"various distributions in the <link href=\"http://live.gnome.org/"
-"DeveloperTools/Installation\">GNOME wiki</link>. Click on the image to go "
-"directly to the installation page for your distribution:"
-msgstr ""
-"Se você preferir instalação manual, você pode encontrar as instruções para "
-"várias distribuições no <link href=\"http://live.gnome.org/DeveloperTools/"
-"Installation\">wiki do GNOME</link>. Clique na imagem para ir diretamente "
-"para a página de instalação de sua distribuição:"
-
-#. (itstool) path: item/p
-#: C/getting-ready.page:37
-msgid ""
-"<link href=\"http://live.gnome.org/DeveloperTools/Installation/Ubuntu\"> "
-"<media type=\"image\" mime=\"image/png\" src=\"media/ubuntu.png\">Ubuntu</"
-"media> </link>"
-msgstr ""
-"<link href=\"http://live.gnome.org/DeveloperTools/Installation/Ubuntu\"> "
-"<media type=\"image\" mime=\"image/png\" src=\"media/ubuntu.png\">Ubuntu</"
-"media> </link>"
-
-#. (itstool) path: item/p
-#: C/getting-ready.page:42
-msgid ""
-"<link href=\"http://live.gnome.org/DeveloperTools/Installation/Fedora\"> "
-"<media type=\"image\" mime=\"image/png\" src=\"media/fedora.png\">Fedora</"
-"media> </link>"
-msgstr ""
-"<link href=\"http://live.gnome.org/DeveloperTools/Installation/Fedora\"> "
-"<media type=\"image\" mime=\"image/png\" src=\"media/fedora.png\">Fedora</"
-"media> </link>"
-
-#. (itstool) path: item/p
-#: C/getting-ready.page:47
-msgid ""
-"<link href=\"http://live.gnome.org/DeveloperTools/Installation/OpenSuSE\"> "
-"<media type=\"image\" mime=\"image/png\" src=\"media/opensuse.png"
-"\">OpenSuSE</media> </link>"
-msgstr ""
-"<link href=\"http://live.gnome.org/DeveloperTools/Installation/OpenSuSE\"> "
-"<media type=\"image\" mime=\"image/png\" src=\"media/opensuse.png"
-"\">OpenSuSE</media> </link>"
-
-#. (itstool) path: item/p
-#: C/getting-ready.page:52
-msgid ""
-"<link href=\"http://live.gnome.org/DeveloperTools/Installation\">Others</"
-"link>"
-msgstr ""
-"<link href=\"http://live.gnome.org/DeveloperTools/Installation\">Outras</"
-"link>"
-
-#. (itstool) path: section/title
-#: C/getting-ready.page:59
-msgid "Required versions"
-msgstr "Versões necessárias"
-
-#. (itstool) path: section/p
-#: C/getting-ready.page:60
-msgid ""
-"The guides assume that you have at least the following versions of the tools "
-"installed:"
-msgstr ""
-"Os guias presumem que você tem instaladas pelo menos as seguintes versões "
-"das ferramentas instaladas:"
-
-#. (itstool) path: item/p
-#: C/getting-ready.page:63
-msgid "Anjuta - 3.0"
-msgstr "Anjuta - 3.0"
-
-#. (itstool) path: item/p
-#: C/getting-ready.page:64
-msgid "Devhelp - 3.0"
-msgstr "Devhelp - 3.0"
+#: C/gmenu.c.page:8
+msgctxt "text"
+msgid "GMenu (C)"
+msgstr "GMenu (C)"
-#. (itstool) path: item/p
-#: C/getting-ready.page:65
-msgid "Glade - 3.10"
-msgstr "Glade - 3.10"
+#. (itstool) path: info/desc
+#: C/gmenu.c.page:18 C/gmenu.js.page:18 C/gmenu.vala.page:24
+#, fuzzy
+msgid "A simple implementation of GMenuModel"
+msgstr "O GMenuModel para a barra de menu"
-#. (itstool) path: section/p
-#: C/getting-ready.page:67
-msgid ""
-"Of course, any newer version will also work. Now, we wish you a lot of fun "
-"with the <link xref=\"index\">Demos</link>."
+#. (itstool) path: page/title
+#: C/gmenu.c.page:21 C/gmenu.js.page:21 C/gmenu.py.page:29 C/gmenu.vala.page:27
+msgid "GMenu"
msgstr ""
-"É claro, qualquer versão mais nova também vai funcionar. Agora, nós "
-"desejamos a você muita diversão com as <link xref=\"index\">Demonstrações</"
-"link>."
-#. (itstool) path: media
+#. (itstool) path: page/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
+#: C/gmenu.c.page:22
msgctxt "_"
msgid "external ref='media/gmenu.c.png' md5='f305fc3cae8d16d72b734ee53b559e33'"
msgstr ""
-
-#. (itstool) path: info/title
-#: C/gmenu.c.page:7
-msgctxt "text"
-msgid "GMenu (C)"
-msgstr ""
-
-#. (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 ""
-
-#. (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 ""
+"external ref='media/gmenu.c.png' md5='f305fc3cae8d16d72b734ee53b559e33'"
#. (itstool) path: page/p
-#: C/gmenu.c.page:22 C/gmenu.js.page:22 C/gmenu.py.page:30
-#: C/gmenu.vala.page:34
+#: C/gmenu.c.page:23 C/gmenu.js.page:23 C/gmenu.py.page:31 C/gmenu.vala.page:32
msgid "A GtkApplication with a simple GMenu and SimpleActions"
msgstr ""
#. (itstool) path: page/code
-#: C/gmenu.c.page:25
+#: C/gmenu.c.page:26
#, no-wrap
msgid ""
"\n"
@@ -9872,51 +11693,52 @@ msgid ""
"}\n"
msgstr ""
-#. (itstool) path: media
+#. (itstool) path: info/title
+#: C/gmenu.js.page:8
+msgctxt "text"
+msgid "GMenu (JavaScript)"
+msgstr "GMenu (JavaScript)"
+
+#. (itstool) path: page/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
+#: C/gmenu.js.page:22
msgctxt "_"
msgid ""
"external ref='media/gmenu.js.png' md5='16b8bee122197771ec8498dac42f196b'"
msgstr ""
-
-#. (itstool) path: info/title
-#: C/gmenu.js.page:7
-msgctxt "text"
-msgid "GMenu (JavaScript)"
-msgstr ""
+"external ref='media/gmenu.js.png' md5='16b8bee122197771ec8498dac42f196b'"
#. (itstool) path: page/code
-#: C/gmenu.js.page:24
+#: C/gmenu.js.page:25
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const Gio = imports.gi.Gio;\n"
"const GLib = imports.gi.GLib;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const Application = new Lang.Class ({\n"
-" Name: 'Application',\n"
+"class Application {\n"
"\n"
" //create the application\n"
-" _init: function () {\n"
+" constructor() {\n"
" this.application = new Gtk.Application ({\n"
" application_id: 'org.example.myapp',\n"
" flags: Gio.ApplicationFlags.FLAGS_NONE\n"
" });\n"
"\n"
" //connect to '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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" //create the UI (in this case it's just the ApplicationWindow\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
" this._window = new Gtk.ApplicationWindow ({ application: this.application,\n"
" window_position: Gtk.WindowPosition.CENTER,\n"
" title: \"Welcome to GNOME\" });\n"
@@ -9926,18 +11748,18 @@ msgid ""
"\n"
" //show the window and all child widgets (none in this case)\n"
" this._window.show_all();\n"
-" },\n"
+" }\n"
"\n"
-" _showNew: function() {\n"
-" print (\"This doesn't do anything. It is only a demonstration.\");\n"
-" },\n"
+" _showNew() {\n"
+" print(\"This doesn't do anything. It is only a demonstration.\");\n"
+" }\n"
"\n"
-" _showAbout: function() {\n"
-" print (\"No AboutDialog here. This is only a demonstration.\");\n"
-" },\n"
+" _showAbout() {\n"
+" print(\"No AboutDialog here. This is only a demonstration.\");\n"
+" }\n"
"\n"
" //create the menu items and connect the signals to the callback functions.\n"
-" _initMenus: function() {\n"
+" _initMenus() {\n"
" let menu = new Gio.Menu();\n"
" menu.append(\"New\",'app.new');\n"
" menu.append(\"About\", 'app.about');\n"
@@ -9945,69 +11767,62 @@ msgid ""
" this.application.set_app_menu(menu);\n"
"\n"
" let newAction = new Gio.SimpleAction ({ name: 'new' });\n"
-" newAction.connect('activate', Lang.bind(this,\n"
-" function() {\n"
-" this._showNew();\n"
-" }));\n"
+" newAction.connect('activate', () => { this._showNew(); });\n"
" this.application.add_action(newAction);\n"
"\n"
" let aboutAction = new Gio.SimpleAction ({ name: 'about' });\n"
-" aboutAction.connect('activate', Lang.bind(this,\n"
-" function() {\n"
-" this._showAbout();\n"
-" }));\n"
+" aboutAction.connect('activate', () => { this._showAbout(); });\n"
" this.application.add_action(aboutAction);\n"
"\n"
" let quitAction = new Gio.SimpleAction ({ name: 'quit' });\n"
-" quitAction.connect('activate', Lang.bind(this,\n"
-" function() {\n"
-" this._window.destroy();\n"
-" }));\n"
+" quitAction.connect('activate', () => { this._window.destroy(); });\n"
" this.application.add_action(quitAction);\n"
-" },\n"
+" }\n"
"\n"
" //callback function for 'activate' signal\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" //callback function for 'startup' signal\n"
-" _onStartup: function() {\n"
+" _onStartup() {\n"
" //You must call _initMenus() before calling _buildUI().\n"
" this._initMenus();\n"
" this._buildUI();\n"
" }\n"
-"});\n"
+"};\n"
"\n"
"//run the application\n"
"let app = new Application ();\n"
"app.application.run (ARGV);\n"
msgstr ""
-#. (itstool) path: media
+#. (itstool) path: info/title
+#: C/gmenu.py.page:8
+msgctxt "text"
+msgid "GMenu (Python)"
+msgstr "GMenu (Python)"
+
+#. (itstool) path: info/desc
+#: C/gmenu.py.page:26
+#, fuzzy
+msgid "A simple implementation of GMenu"
+msgstr "Sem implementação"
+
+#. (itstool) path: page/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
+#: C/gmenu.py.page:30
msgctxt "_"
msgid ""
"external ref='media/gmenu.py.png' md5='52c68b34d5d566f37e9f803dedb6353a'"
msgstr ""
-
-#. (itstool) path: info/title
-#: C/gmenu.py.page:7
-msgctxt "text"
-msgid "GMenu (Python)"
-msgstr ""
-
-#. (itstool) path: info/desc
-#: C/gmenu.py.page:25
-msgid "A simple implementation of GMenu"
-msgstr ""
+"external ref='media/gmenu.py.png' md5='52c68b34d5d566f37e9f803dedb6353a'"
#. (itstool) path: section/code
-#: C/gmenu.py.page:36
+#: C/gmenu.py.page:37
#, no-wrap
msgid ""
"\n"
@@ -10015,11 +11830,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"
@@ -10027,7 +11846,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"
@@ -10059,15 +11878,15 @@ msgid ""
"\n"
" # callback function for \"new\"\n"
" def new_cb(self, action, parameter):\n"
-" print \"This does nothing. It is only a demonstration.\"\n"
+" print(\"This does nothing. It is only a demonstration.\")\n"
"\n"
" # callback function for \"about\"\n"
" def about_cb(self, action, parameter):\n"
-" print \"No AboutDialog for you. This is only a demonstration.\"\n"
+" print(\"No AboutDialog for you. This is only a demonstration.\")\n"
"\n"
" # callback function for \"quit\"\n"
" def quit_cb(self, action, parameter):\n"
-" print \"You have quit.\"\n"
+" print(\"You have quit.\")\n"
" self.quit()\n"
"\n"
"app = MyApplication()\n"
@@ -10076,34 +11895,36 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/gmenu.py.page:41
+#: C/gmenu.py.page:42
+#, fuzzy
msgid "Useful methods for a GSimpleAction and a GMenu"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: section/p
-#: C/gmenu.py.page:43
+#: C/gmenu.py.page:44
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."
+"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 ""
#. (itstool) path: section/p
-#: C/gmenu.py.page:45
+#: C/gmenu.py.page:46
+#, fuzzy
msgid "Useful methods for a GSimpleAction:"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: item/p
-#: C/gmenu.py.page:47
+#: C/gmenu.py.page:48
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"
msgstr ""
#. (itstool) path: item/code
-#: C/gmenu.py.page:48
+#: C/gmenu.py.page:49
#, no-wrap
msgid ""
"\n"
@@ -10111,7 +11932,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/gmenu.py.page:50
+#: C/gmenu.py.page:51
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 "
@@ -10123,7 +11944,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/code
-#: C/gmenu.py.page:51
+#: C/gmenu.py.page:52
#, no-wrap
msgid ""
"\n"
@@ -10131,16 +11952,16 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/gmenu.py.page:53
+#: C/gmenu.py.page:54
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 "
+"<code>Glib.Variant.new_string('start')</code>; for a list of possibilities "
"see <link href=\"http://developer.gnome.org/glib/unstable/glib-GVariant.html"
"\">here</link>."
msgstr ""
#. (itstool) path: item/p
-#: C/gmenu.py.page:54
+#: C/gmenu.py.page:55
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 "
@@ -10149,7 +11970,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/gmenu.py.page:55
+#: C/gmenu.py.page:56
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. "
@@ -10159,12 +11980,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/gmenu.py.page:58
+#: C/gmenu.py.page:59
+#, fuzzy
msgid "Useful methods for a GMenu:"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: item/p
-#: C/gmenu.py.page:60
+#: C/gmenu.py.page:61
msgid ""
"To insert an item in the menu in position <code>position</code>, use "
"<code>insert(position, label, detailed_action)</code>, where <code>label</"
@@ -10175,15 +11997,15 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/gmenu.py.page:61
+#: C/gmenu.py.page:62
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 ""
#. (itstool) path: item/p
-#: C/gmenu.py.page:62
+#: C/gmenu.py.page:63
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>, "
@@ -10192,7 +12014,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/code
-#: C/gmenu.py.page:63
+#: C/gmenu.py.page:64
#, no-wrap
msgid ""
"\n"
@@ -10201,81 +12023,74 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/gmenu.py.page:67
+#: C/gmenu.py.page:68
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 ""
#. (itstool) path: item/p
-#: C/gmenu.py.page:68
+#: C/gmenu.py.page:69
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 ""
#. (itstool) path: item/p
-#: C/gmenu.py.page:69
-msgid "To remove an item from the menu, use <code>remove(postion)</code>."
+#: C/gmenu.py.page:70
+msgid "To remove an item from the menu, use <code>remove(position)</code>."
msgstr ""
#. (itstool) path: item/p
-#: C/gmenu.py.page:70
+#: C/gmenu.py.page:71
msgid "To set a label for the menu, use <code>set_label(label)</code>."
msgstr ""
#. (itstool) path: item/p
-#: C/gmenu.py.page:81
+#: C/gmenu.py.page:82
msgid ""
"<link href=\"http://developer.gnome.org/glib/unstable/glib-GVariantType.html"
"\">GVariantType</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/gmenu.py.page:82
+#: C/gmenu.py.page:83
msgid ""
"<link href=\"http://developer.gnome.org/glib/unstable/glib-GVariant.html"
"\">GVariant</link>"
msgstr ""
-#. (itstool) path: media
+#. (itstool) path: info/title
+#: C/gmenu.vala.page:8
+msgctxt "text"
+msgid "GMenu (Vala)"
+msgstr "GMenu (Vala)"
+
+#. (itstool) path: page/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
+#: C/gmenu.vala.page:28
msgctxt "_"
msgid ""
"external ref='media/gmenu.vala.png' md5='7a9f381fc3ed5bf8d1c50d2acb095400'"
msgstr ""
-
-#. (itstool) path: info/title
-#: C/gmenu.vala.page:7
-msgctxt "text"
-msgid "GMenu (Vala)"
-msgstr ""
+"external ref='media/gmenu.vala.png' md5='7a9f381fc3ed5bf8d1c50d2acb095400'"
#. (itstool) path: note/p
-#: C/gmenu.vala.page:29
+#: C/gmenu.vala.page:30
msgid ""
"<em style=\"strong\">You need to be running GTK+-3.4 or later for this to "
"work</em>"
msgstr ""
-#. (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."
-msgstr ""
-
#. (itstool) path: page/code
-#: C/gmenu.vala.page:36
+#: C/gmenu.vala.page:34
#, no-wrap
msgid ""
"/* A window in the application. */\n"
@@ -10329,7 +12144,7 @@ msgid ""
"\t\tthis.app_menu = menu;\n"
"\n"
"\t\tvar quit_action = new SimpleAction (\"quit\", null);\n"
-"\t\t//quit_action.activate.connect (this.quit);\n"
+"\t\tquit_action.activate.connect (this.quit);\n"
"\t\tthis.add_action (quit_action);\n"
"\t}\n"
"}\n"
@@ -10341,65 +12156,67 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/gmenu.vala.page:43
+#: C/gmenu.vala.page:41
msgid ""
"<link href=\"http://www.valadoc.org/gio-2.0/GLib.Menu.Menu.html\">Menu</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/gmenu.vala.page:44
+#: C/gmenu.vala.page:42
msgid ""
"<link href=\"http://www.valadoc.org/gio-2.0/GLib.Menu.append.html\">append</"
"link>"
msgstr ""
#. (itstool) path: item/p
-#: C/gmenu.vala.page:45
+#: C/gmenu.vala.page:43
msgid ""
"<link href=\"http://www.valadoc.org/gio-2.0/GLib.SimpleAction.html"
"\">SimpleAction</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/gmenu.vala.page:46
+#: C/gmenu.vala.page:44
msgid ""
"<link href=\"http://www.valadoc.org/gio-2.0/GLib.ActionMap.add_action.html"
"\">add_action</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/grid.c.page:22 C/grid.js.page:25 C/grid.vala.page:23
-msgctxt "_"
-msgid "external ref='media/grid.png' md5='27d45da115401127456a3b854dcfc5be'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/grid.c.page:7
+#: C/grid.c.page:8
msgctxt "text"
msgid "Grid (C)"
-msgstr ""
+msgstr "Grid (C)"
#. (itstool) path: info/desc
-#: C/grid.c.page:17 C/grid.js.page:21 C/grid.py.page:25 C/grid.vala.page:19
+#: C/grid.c.page:18 C/grid.js.page:22 C/grid.py.page:26 C/grid.vala.page:20
+#, fuzzy
msgid "Pack widgets in rows and columns"
-msgstr ""
+msgstr "dimensões (colunas x linhas)"
#. (itstool) path: page/title
-#: C/grid.c.page:20 C/grid.js.page:24 C/grid.py.page:28
+#: C/grid.c.page:21 C/grid.js.page:25 C/grid.py.page:29
+#, fuzzy
msgid "Grid"
-msgstr ""
+msgstr "Grade"
+
+#. (itstool) path: page/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.c.page:23 C/grid.js.page:26 C/grid.vala.page:24
+msgctxt "_"
+msgid "external ref='media/grid.png' md5='27d45da115401127456a3b854dcfc5be'"
+msgstr "external ref='media/grid.png' md5='27d45da115401127456a3b854dcfc5be'"
#. (itstool) path: page/p
-#: C/grid.c.page:23 C/grid.vala.page:24
+#: C/grid.c.page:24 C/grid.vala.page:25
msgid "A button widget connected to a progress bar."
msgstr ""
#. (itstool) path: page/code
-#: C/grid.c.page:25
+#: C/grid.c.page:26
#, no-wrap
msgid ""
"\n"
@@ -10474,67 +12291,126 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/grid.c.page:33 C/progressbar.c.page:34
+#: C/grid.c.page:34 C/progressbar.c.page:35
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>"
#. (itstool) path: info/title
-#: C/grid.js.page:7
+#: C/grid.js.page:8
msgctxt "text"
msgid "Grid (JavaScript)"
-msgstr ""
+msgstr "Grid (JavaScript)"
#. (itstool) path: page/p
-#: C/grid.js.page:26
+#: C/grid.js.page:27
msgid ""
"A button widget connected to a progress bar, inside of a grid which handles "
"the layout."
msgstr ""
#. (itstool) path: page/code
-#: C/grid.js.page:28
-#, no-wrap
+#: C/grid.js.page:29
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const GLib = imports.gi.GLib;\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "const Webkit = imports.gi.WebKit;\n"
+#| "\n"
+#| "const HelloGNOME = new Lang.Class ({\n"
+#| " Name: 'Hello GNOME',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function () {\n"
+#| " this.application = new Gtk.Application ();\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 ({\n"
+#| " application: this.application,\n"
+#| " title: \"Welcome to GNOME\",\n"
+#| " default_height: 200,\n"
+#| " default_width: 400,\n"
+#| " window_position: Gtk.WindowPosition.CENTER });\n"
+#| "\n"
+#| " // Create a webview to show the web app\n"
+#| " this._webView = new Webkit.WebView ();\n"
+#| "\n"
+#| " // Put the web app into the webview\n"
+#| " this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+#| " \"/hellognome.html\", null));\n"
+#| "\n"
+#| " // Put the webview into the window\n"
+#| " this._window.add (this._webView);\n"
+#| "\n"
+#| " // Show the window and all child widgets\n"
+#| " this._window.show_all();\n"
+#| " },\n"
+#| "\n"
+#| "});\n"
+#| "\n"
+#| "// Run the application\n"
+#| "let app = new HelloGNOME ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const Gio = imports.gi.Gio;\n"
"const GLib = imports.gi.GLib;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const GridExample = new Lang.Class ({\n"
-" Name: 'Grid Example',\n"
+"class GridExample {\n"
"\n"
" /* Create the application itself\n"
" This boilerplate code is needed to build any GTK+ application. */\n"
-" _init: function () {\n"
-" this.application = new Gtk.Application ({\n"
-" application_id: 'org.example.jsgrid',\n"
-" flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-" });\n"
+" constructor() {\n"
+" this.application = new Gtk.Application ({\n"
+" application_id: 'org.example.jsgrid',\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"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function () {\n"
-" this._window.present ();\n"
-" },\n"
+" _onActivate() {\n"
+" this._window.present();\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal initializes menus and builds the UI\n"
-" _onStartup: function () {\n"
-" this._buildUI ();\n"
-" },\n"
-"\n"
-"\n"
-"\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function () {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow ({ application: this.application,\n"
@@ -10547,7 +12423,7 @@ msgid ""
" // Create the widgets inside the grid\n"
" this.progressBar = new Gtk.ProgressBar ();\n"
" this.Button = new Gtk.Button ({ label: \"Button\" });\n"
-" this.Button.connect (\"clicked\", Lang.bind(this, this._clickHandler));\n"
+" this.Button.connect (\"clicked\", this._clickHandler.bind(this));\n"
"\n"
" // Assemble the grid\n"
" this._window.add (this.Grid);\n"
@@ -10556,65 +12432,127 @@ msgid ""
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
+" }\n"
"\n"
" // Here's the function that says what happens when the button is clicked\n"
-" _clickHandler: function () {\n"
+" _clickHandler() {\n"
" this.progressBar.pulse ();\n"
" }\n"
"\n"
"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new GridExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const GLib = imports.gi.GLib;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"const Webkit = imports.gi.WebKit;\n"
+"\n"
+"const HelloGNOME = new Lang.Class ({\n"
+" Name: 'Olá, GNOME',\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function () {\n"
+" this.application = new Gtk.Application ();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativa\n"
+" _onActivate: function () {\n"
+" this._window.present ();\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup: function () {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function () {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow ({\n"
+" application: this.application,\n"
+" title: \"Bem-vindo ao GNOME\",\n"
+" default_height: 200,\n"
+" default_width: 400,\n"
+" window_position: Gtk.WindowPosition.CENTER });\n"
+"\n"
+" // Cria um webview para mostrar o aplicativo web\n"
+" this._webView = new Webkit.WebView ();\n"
+"\n"
+" // Coloca o aplicativo web no webview\n"
+" this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+" \"/hellognome.html\", null));\n"
+"\n"
+" // Coloca o webview na janela\n"
+" this._window.add (this._webView);\n"
+"\n"
+" // Mostra a janela e todos seus widgets filhos\n"
+" this._window.show_all();\n"
+" },\n"
+"\n"
+"});\n"
+"\n"
+"// Executa o aplicativo\n"
+"let app = new HelloGNOME ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: item/p
-#: C/grid.js.page:36
+#: C/grid.js.page:37
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Grid.html"
"\">Gtk.Grid</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/grid.js.page:37 C/progressbar.js.page:41
+#: C/grid.js.page:38 C/progressbar.js.page:42
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.ProgressBar."
"html\">Gtk.ProgressBar</link>"
msgstr ""
-#. (itstool) path: media
+#. (itstool) path: info/title
+#: C/grid.py.page:8
+msgctxt "text"
+msgid "Grid (Python)"
+msgstr "Grid (Python)"
+
+#. (itstool) path: page/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
+#: C/grid.py.page:31
msgctxt "_"
msgid ""
"external ref='media/grid_simple.png' md5='c806f2e69b30373d4d2e08b41d6cc1f6'"
msgstr ""
-#. (itstool) path: info/title
-#: C/grid.py.page:7
-msgctxt "text"
-msgid "Grid (Python)"
-msgstr ""
-
#. (itstool) path: page/p
-#: C/grid.py.page:31
+#: C/grid.py.page:32
+#, fuzzy
msgid "Some labels in a grid."
-msgstr ""
+msgstr "Grade"
#. (itstool) path: section/code
-#: C/grid.py.page:37
+#: C/grid.py.page:38
#, 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=\"Grid Example\", application=app)\n"
"\n"
@@ -10635,12 +12573,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"
@@ -10654,12 +12595,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/grid.py.page:41
+#: C/grid.py.page:42
+#, fuzzy
msgid "Useful methods for a Grid widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: item/p
-#: C/grid.py.page:44
+#: C/grid.py.page:45
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, "
@@ -10671,7 +12613,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/grid.py.page:45
+#: C/grid.py.page:46
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 "
@@ -10686,15 +12628,15 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/grid.py.page:46
+#: C/grid.py.page:47
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 ""
#. (itstool) path: item/p
-#: C/grid.py.page:47
+#: C/grid.py.page:48
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 "
@@ -10703,42 +12645,43 @@ msgid ""
msgstr ""
#. (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
+#: C/grid.py.page:59 C/label.py.page:105 C/separator.c.page:41
+#: C/separator.py.page:42 C/switch.py.page:46
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkLabel.html"
"\">GtkLabel</link>"
msgstr ""
#. (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
+#: C/grid.py.page:60 C/paned.c.page:38 C/paned.py.page:44
+#: C/scrolledwindow.py.page:47
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkImage.html"
"\">GtkImage</link>"
msgstr ""
#. (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
+#: C/grid.py.page:61 C/radiobutton.py.page:50 C/separator.c.page:40
+#: C/separator.py.page:41 C/switch.py.page:47 C/toolbar_builder.py.page:196
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkGrid.html"
"\">GtkGrid</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/grid.vala.page:7
+#: C/grid.vala.page:8
msgctxt "text"
msgid "Grid (Vala)"
-msgstr ""
+msgstr "Grid (Vala)"
#. (itstool) path: page/title
-#: C/grid.vala.page:22
+#: C/grid.vala.page:23
+#, fuzzy
msgid "Grid widget"
-msgstr ""
+msgstr "Widget:"
#. (itstool) path: page/code
-#: C/grid.vala.page:26
+#: C/grid.vala.page:27
#, no-wrap
msgid ""
"public class MyWindow : Gtk.ApplicationWindow {\n"
@@ -10784,48 +12727,54 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/grid.vala.page:31
+#: C/grid.vala.page:32
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Grid.html\">Gtk.Grid</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/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 ""
-
#. (itstool) path: info/title
-#: C/GtkApplicationWindow.c.page:7
+#: C/GtkApplicationWindow.c.page:8
msgctxt "text"
msgid "ApplicationWindow (C)"
-msgstr ""
+msgstr "ApplicationWindow (C)"
#. (itstool) path: info/desc
-#: C/GtkApplicationWindow.c.page:17
+#: C/GtkApplicationWindow.c.page:18
msgid "A toplevel window which can contain other widgets, and support GMenu"
msgstr ""
#. (itstool) path: page/title
-#: C/GtkApplicationWindow.c.page:20 C/GtkApplicationWindow.js.page:20
-#: C/GtkApplicationWindow.py.page:27 C/GtkApplicationWindow.vala.page:20
+#: C/GtkApplicationWindow.c.page:21 C/GtkApplicationWindow.js.page:21
+#: C/GtkApplicationWindow.py.page:28 C/GtkApplicationWindow.vala.page:21
+#, fuzzy
msgid "ApplicationWindow"
msgstr ""
+"Esse é o começo de um aplicativo em si e a função _init que cria-o. Ela fala "
+"para _buildUI criar um ApplicationWindow, com o qual nós vamos chamar "
+"_window, e fala para nossa janela para se apresentar quando for necessário."
+
+#. (itstool) path: page/media
+#. (itstool) path: td/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/GtkApplicationWindow.c.page:22 C/GtkApplicationWindow.js.page:22
+#: C/GtkApplicationWindow.py.page:29 C/GtkApplicationWindow.vala.page:22
+#: C/window.c.page:22 C/window.js.page:25 C/window.py.page:33
+#: C/window.vala.page:25
+msgctxt "_"
+msgid "external ref='media/window.png' md5='eb0cde3530978619c25bddfaeb453345'"
+msgstr "external ref='media/window.png' md5='eb0cde3530978619c25bddfaeb453345'"
#. (itstool) path: page/p
-#: C/GtkApplicationWindow.c.page:22
+#: C/GtkApplicationWindow.c.page:23
+#, fuzzy
msgid "A minimal GtkApplication with a GtkApplicationWindow"
-msgstr ""
+msgstr "GtkApplication"
#. (itstool) path: page/code
-#: C/GtkApplicationWindow.c.page:24
+#: C/GtkApplicationWindow.c.page:25
#, no-wrap
msgid ""
"#include <gtk/gtk.h>\n"
@@ -10856,59 +12805,119 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/GtkApplicationWindow.c.page:30
+#: C/GtkApplicationWindow.c.page:31
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/3.4/GtkApplicationWindow.html"
"\">GtkApplicationWindow</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/GtkApplicationWindow.js.page:7
+#: C/GtkApplicationWindow.js.page:8
msgctxt "text"
msgid "ApplicationWindow (JavaScript)"
-msgstr ""
+msgstr "ApplicationWindow (JavaScript)"
#. (itstool) path: info/desc
-#: C/GtkApplicationWindow.js.page:17 C/GtkApplicationWindow.py.page:24
-#: C/GtkApplicationWindow.vala.page:17
+#: C/GtkApplicationWindow.js.page:18 C/GtkApplicationWindow.py.page:25
+#: C/GtkApplicationWindow.vala.page:18
msgid "GtkWindow subclass with GtkApplication support"
msgstr ""
#. (itstool) path: page/p
-#: C/GtkApplicationWindow.js.page:22
+#: C/GtkApplicationWindow.js.page:23
msgid "A simple GtkApplicationWindow which can support Menus."
msgstr ""
#. (itstool) path: page/code
-#: C/GtkApplicationWindow.js.page:24
-#, no-wrap
+#: C/GtkApplicationWindow.js.page:25
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const GLib = imports.gi.GLib;\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "const Webkit = imports.gi.WebKit;\n"
+#| "\n"
+#| "const HelloGNOME = new Lang.Class ({\n"
+#| " Name: 'Hello GNOME',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function () {\n"
+#| " this.application = new Gtk.Application ();\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 ({\n"
+#| " application: this.application,\n"
+#| " title: \"Welcome to GNOME\",\n"
+#| " default_height: 200,\n"
+#| " default_width: 400,\n"
+#| " window_position: Gtk.WindowPosition.CENTER });\n"
+#| "\n"
+#| " // Create a webview to show the web app\n"
+#| " this._webView = new Webkit.WebView ();\n"
+#| "\n"
+#| " // Put the web app into the webview\n"
+#| " this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+#| " \"/hellognome.html\", null));\n"
+#| "\n"
+#| " // Put the webview into the window\n"
+#| " this._window.add (this._webView);\n"
+#| "\n"
+#| " // Show the window and all child widgets\n"
+#| " this._window.show_all();\n"
+#| " },\n"
+#| "\n"
+#| "});\n"
+#| "\n"
+#| "// Run the application\n"
+#| "let app = new HelloGNOME ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"\n"
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const Gio = imports.gi.Gio;\n"
"const GLib = imports.gi.GLib;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const Application = new Lang.Class ({\n"
-" Name: 'Application',\n"
+"class Application {\n"
"\n"
" //create the application\n"
-" _init: function () {\n"
+" constructor() {\n"
" this.application = new Gtk.Application ({\n"
" application_id: 'org.example.myapp',\n"
" flags: Gio.ApplicationFlags.FLAGS_NONE\n"
" });\n"
"\n"
" //connect to '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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" //create the UI (in this case it's just the ApplicationWindow\n"
-" _buildUI: function () {\n"
-" this._window = new Gtk.ApplicationWindow ({ application: this.application,\n"
+" _buildUI() {\n"
+" this._window = new Gtk.ApplicationWindow({ application: this.application,\n"
" window_position: Gtk.WindowPosition.CENTER,\n"
" title: \"Welcome to GNOME\" });\n"
"\n"
@@ -10917,51 +12926,117 @@ msgid ""
"\n"
" //show the window and all child widgets (none in this case)\n"
" this._window.show_all();\n"
-" },\n"
+" }\n"
"\n"
" //callback function for 'activate' signal\n"
+" _onActivate() {\n"
+" this._window.present();\n"
+" }\n"
+"\n"
+" //callback function for 'startup' signal\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
+"};\n"
+"\n"
+"//run the application\n"
+"let app = new Application ();\n"
+"app.application.run (ARGV);\n"
+msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const GLib = imports.gi.GLib;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"const Webkit = imports.gi.WebKit;\n"
+"\n"
+"const HelloGNOME = new Lang.Class ({\n"
+" Name: 'Olá, GNOME',\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function () {\n"
+" this.application = new Gtk.Application ();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativa\n"
" _onActivate: function () {\n"
" this._window.present ();\n"
" },\n"
"\n"
-" //callback function for 'startup' signal\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
" _onStartup: function () {\n"
" this._buildUI ();\n"
-" }\n"
+" },\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function () {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow ({\n"
+" application: this.application,\n"
+" title: \"Bem-vindo ao GNOME\",\n"
+" default_height: 200,\n"
+" default_width: 400,\n"
+" window_position: Gtk.WindowPosition.CENTER });\n"
+"\n"
+" // Cria um webview para mostrar o aplicativo web\n"
+" this._webView = new Webkit.WebView ();\n"
+"\n"
+" // Coloca o aplicativo web no webview\n"
+" this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+" \"/hellognome.html\", null));\n"
+"\n"
+" // Coloca o webview na janela\n"
+" this._window.add (this._webView);\n"
+"\n"
+" // Mostra a janela e todos seus widgets filhos\n"
+" this._window.show_all();\n"
+" },\n"
+"\n"
"});\n"
"\n"
-"//run the application\n"
-"let app = new Application ();\n"
+"// Executa o aplicativo\n"
+"let app = new HelloGNOME ();\n"
"app.application.run (ARGV);\n"
-msgstr ""
#. (itstool) path: info/title
-#: C/GtkApplicationWindow.py.page:7
+#: C/GtkApplicationWindow.py.page:8
msgctxt "text"
msgid "ApplicationWindow (Python)"
-msgstr ""
+msgstr "ApplicationWindow (Python)"
#. (itstool) path: page/p
-#: C/GtkApplicationWindow.py.page:29 C/GtkApplicationWindow.vala.page:22
-msgid "The simplest GtkApplication Window which can support Menus."
+#: C/GtkApplicationWindow.py.page:30
+msgid ""
+"The simplest GtkApplication Window which can support <link xref=\"gmenu.py\"/"
+">."
msgstr ""
#. (itstool) path: section/code
-#: C/GtkApplicationWindow.py.page:36
+#: C/GtkApplicationWindow.py.page:37
#, 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"
@@ -10987,12 +13062,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/GtkApplicationWindow.py.page:40
+#: C/GtkApplicationWindow.py.page:41
+#, fuzzy
msgid "Useful methods for a Gtk.ApplicationWindow widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: item/p
-#: C/GtkApplicationWindow.py.page:43 C/window.py.page:53
+#: C/GtkApplicationWindow.py.page:44 C/window.py.page:54
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 "
@@ -11000,7 +13076,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/GtkApplicationWindow.py.page:44 C/window.py.page:54
+#: C/GtkApplicationWindow.py.page:45 C/window.py.page:55
msgid ""
"<code>set_position(Gtk.WindowPosition.CENTER)</code> centers the window. "
"Other options are <code>Gtk.WindowPosition.NONE, Gtk.WindowPosition.MOUSE, "
@@ -11008,13 +13084,18 @@ msgid ""
msgstr ""
#. (itstool) path: info/title
-#: C/GtkApplicationWindow.vala.page:7
+#: C/GtkApplicationWindow.vala.page:8
msgctxt "text"
msgid "ApplicationWindow (Vala)"
+msgstr "ApplicationWindow (Vala)"
+
+#. (itstool) path: page/p
+#: C/GtkApplicationWindow.vala.page:23
+msgid "The simplest GtkApplication Window which can support Menus."
msgstr ""
#. (itstool) path: page/code
-#: C/GtkApplicationWindow.vala.page:24
+#: C/GtkApplicationWindow.vala.page:25
#, no-wrap
msgid ""
"\n"
@@ -11036,135 +13117,122 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/GtkApplicationWindow.vala.page:30 C/label.vala.page:30
+#: C/GtkApplicationWindow.vala.page:31 C/label.vala.page:31
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.
-#: 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 ""
-
-#. (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/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' "
-"md5='f6606525443ab2160f53a87a454364d0'"
-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/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' "
-"md5='5adc952909d92af5dae6954781b4ad5f'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/guitar-tuner.c.page:7
+#: C/guitar-tuner.c.page:8
msgctxt "text"
msgid "Guitar tuner (C)"
-msgstr ""
+msgstr "Guitar tuner (C)"
#. (itstool) path: info/desc
-#: C/guitar-tuner.c.page:10 C/guitar-tuner.py.page:10
+#: C/guitar-tuner.c.page:11 C/guitar-tuner.py.page:11
msgid ""
"Use GTK+ and GStreamer to build a simple guitar tuner application for GNOME. "
"Shows off how to use the interface designer."
msgstr ""
+"Use o GTK+ e o GStreamer para criar um aplicativo simples de sintonizador de "
+"violão para o GNOME. Mostra como usar o designer de interface."
+
+#. (itstool) path: credit/name
+#: C/guitar-tuner.c.page:19 C/guitar-tuner.cpp.page:17
+#: C/guitar-tuner.py.page:19 C/guitar-tuner.vala.page:18
+#: C/image-viewer.c.page:19 C/image-viewer.cpp.page:17
+#: C/image-viewer.js.page:19 C/image-viewer.py.page:19
+#: C/image-viewer.vala.page:19 C/index.page:18 C/magic-mirror.vala.page:19
+#: C/photo-wall.c.page:18 C/record-collection.js.page:19
+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
+#: C/guitar-tuner.c.page:29 C/guitar-tuner.cpp.page:27
+#: C/guitar-tuner.js.page:20 C/guitar-tuner.py.page:34
+#: C/guitar-tuner.vala.page:32
msgid "Guitar tuner"
-msgstr ""
+msgstr "Guitar tuner"
#. (itstool) path: synopsis/p
-#: C/guitar-tuner.c.page:31 C/guitar-tuner.cpp.page:29
-#: C/guitar-tuner.py.page:36
+#: C/guitar-tuner.c.page:32 C/guitar-tuner.cpp.page:30
+#: C/guitar-tuner.py.page:37
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 ""
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:33 C/guitar-tuner.cpp.page:31
-#: C/guitar-tuner.py.page:38
+#: C/guitar-tuner.c.page:34 C/guitar-tuner.cpp.page:32
+#: C/guitar-tuner.py.page:39
msgid "Set up a basic project in Anjuta"
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:34 C/guitar-tuner.cpp.page:32
-#: C/guitar-tuner.py.page:39
+#: C/guitar-tuner.c.page:35 C/guitar-tuner.cpp.page:33
+#: C/guitar-tuner.py.page:40
msgid "Create a simple GUI with Anjuta's UI designer"
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:35 C/guitar-tuner.cpp.page:33
-#: C/guitar-tuner.py.page:40
+#: C/guitar-tuner.c.page:36 C/guitar-tuner.cpp.page:34
+#: C/guitar-tuner.py.page:41
+#, fuzzy
msgid "Use GStreamer to play sounds"
-msgstr ""
+msgstr "Reproduzir sons enquanto captura"
#. (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
+#: C/guitar-tuner.c.page:38 C/guitar-tuner.cpp.page:36
+#: C/guitar-tuner.py.page:43 C/guitar-tuner.vala.page:41
+#: C/image-viewer.js.page:39 C/image-viewer.py.page:39
+#: C/image-viewer.vala.page:46 C/magic-mirror.vala.page:39
msgid "You'll need the following to be able to follow this tutorial:"
msgstr ""
#. (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
+#: C/guitar-tuner.c.page:40 C/guitar-tuner.cpp.page:38
+#: C/guitar-tuner.py.page:45 C/image-viewer.js.page:41
+#: C/image-viewer.py.page:41 C/magic-mirror.vala.page:41
msgid "An installed copy of the <link xref=\"getting-ready\">Anjuta IDE</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:40
+#: C/guitar-tuner.c.page:41
msgid "Basic knowledge of the C programming language"
msgstr ""
+#. (itstool) path: page/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/guitar-tuner.c.page:45 C/guitar-tuner.cpp.page:43
+#: C/guitar-tuner.js.page:37 C/guitar-tuner.py.page:50
+#: C/guitar-tuner.vala.page:48
+msgctxt "_"
+msgid ""
+"external ref='media/guitar-tuner.png' md5='35e615e0f5e293671d00c5c414ac2f6b'"
+msgstr ""
+
#. (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
+#: C/guitar-tuner.c.page:48 C/guitar-tuner.cpp.page:46
+#: C/guitar-tuner.py.page:53 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/message-board.c.page:46 C/photo-wall.c.page:52
+#: C/record-collection.js.page:53
+#, fuzzy
msgid "Create a project in Anjuta"
-msgstr ""
+msgstr "Importe um projeto para o <app>Anjuta</app>."
#. (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
+#: C/guitar-tuner.c.page:49 C/guitar-tuner.cpp.page:47
+#: C/guitar-tuner.py.page:54 C/guitar-tuner.vala.page:52
+#: C/image-viewer.c.page:43 C/image-viewer.cpp.page:41
+#: C/image-viewer.js.page:51 C/image-viewer.py.page:50
+#: C/image-viewer.vala.page:58 C/magic-mirror.vala.page:51
+#: C/photo-wall.c.page:53 C/record-collection.js.page:54
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. "
@@ -11172,18 +13240,18 @@ msgid ""
msgstr ""
#. (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
+#: C/guitar-tuner.c.page:52 C/guitar-tuner.cpp.page:50
+#: C/guitar-tuner.py.page:57 C/image-viewer.c.page:46
+#: C/image-viewer.cpp.page:44 C/image-viewer.js.page:54
+#: C/image-viewer.py.page:53 C/magic-mirror.vala.page:54 C/photo-wall.c.page:56
+#: C/record-collection.js.page:57
msgid ""
"Start Anjuta and click <guiseq><gui>File</gui><gui>New</gui><gui>Project</"
"gui></guiseq> to open the project wizard."
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:54
+#: C/guitar-tuner.c.page:55
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 "
@@ -11191,7 +13259,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:57
+#: C/guitar-tuner.c.page:58
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 "
@@ -11199,7 +13267,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:61 C/image-viewer.c.page:56 C/photo-wall.c.page:70
+#: C/guitar-tuner.c.page:62 C/image-viewer.c.page:57 C/photo-wall.c.page:71
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. "
@@ -11207,7 +13275,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/code
-#: C/guitar-tuner.c.page:62 C/image-viewer.c.page:57 C/photo-wall.c.page:71
+#: C/guitar-tuner.c.page:63 C/image-viewer.c.page:58 C/photo-wall.c.page:72
#, no-wrap
msgid ""
"\n"
@@ -11216,15 +13284,16 @@ msgid ""
msgstr ""
#. (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
+#: C/guitar-tuner.c.page:71 C/guitar-tuner.cpp.page:69
+#: C/guitar-tuner.vala.page:74 C/image-viewer.c.page:66
+#: C/image-viewer.cpp.page:66 C/image-viewer.vala.page:113
+#: C/magic-mirror.vala.page:78
+#, fuzzy
msgid "Build the code for the first time"
-msgstr ""
+msgstr "Opções de primeira execução:"
#. (itstool) path: section/p
-#: C/guitar-tuner.c.page:71
+#: C/guitar-tuner.c.page:72
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 "
@@ -11233,7 +13302,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:75 C/image-viewer.c.page:70
+#: C/guitar-tuner.c.page:76 C/image-viewer.c.page:71
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 "
@@ -11242,7 +13311,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:78
+#: C/guitar-tuner.c.page:79
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 "
@@ -11252,8 +13321,8 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:79 C/image-viewer.c.page:74
-#: C/image-viewer.vala.page:122
+#: C/guitar-tuner.c.page:80 C/image-viewer.c.page:75
+#: C/image-viewer.vala.page:123
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 "
@@ -11261,7 +13330,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:82 C/image-viewer.c.page:77
+#: C/guitar-tuner.c.page:83 C/image-viewer.c.page:78
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 "
@@ -11271,7 +13340,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:85 C/image-viewer.c.page:80
+#: C/guitar-tuner.c.page:86 C/image-viewer.c.page:81
msgid ""
"The <code>ENABLE_NLS</code> conditional definition sets up <code>gettext</"
"code>, which is a framework for translating applications. These functions "
@@ -11279,9 +13348,9 @@ msgid ""
msgstr ""
#. (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
+#: C/guitar-tuner.c.page:90 C/guitar-tuner.cpp.page:84 C/image-viewer.c.page:85
+#: C/image-viewer.cpp.page:82 C/image-viewer.vala.page:133
+#: C/magic-mirror.vala.page:93
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 "
@@ -11289,21 +13358,22 @@ msgid ""
msgstr ""
#. (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
+#: C/guitar-tuner.c.page:91 C/guitar-tuner.cpp.page:85 C/image-viewer.c.page:86
+#: C/image-viewer.cpp.page:83
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."
msgstr ""
#. (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
+#: C/guitar-tuner.c.page:95 C/guitar-tuner.cpp.page:89
+#: C/guitar-tuner.py.page:96 C/guitar-tuner.vala.page:96
+#, fuzzy
msgid "Create the user interface"
-msgstr ""
+msgstr "Criando uma interface de usuário"
#. (itstool) path: section/p
-#: C/guitar-tuner.c.page:95 C/guitar-tuner.cpp.page:89
+#: C/guitar-tuner.c.page:96 C/guitar-tuner.cpp.page:90
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>. "
@@ -11313,17 +13383,30 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.c.page:97 C/guitar-tuner.cpp.page:91
-#: C/guitar-tuner.py.page:98
+#: C/guitar-tuner.c.page:98 C/guitar-tuner.cpp.page:92
+#: C/guitar-tuner.py.page:99
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."
msgstr ""
+#. (itstool) path: section/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/guitar-tuner.c.page:100 C/guitar-tuner.cpp.page:94
+#: C/guitar-tuner.py.page:101 C/guitar-tuner.vala.page:101
+msgctxt "_"
+msgid ""
+"external ref='media/guitar-tuner-glade.png' "
+"md5='f6606525443ab2160f53a87a454364d0'"
+msgstr ""
+
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:103 C/guitar-tuner.cpp.page:97
-#: C/guitar-tuner.py.page:104
+#: C/guitar-tuner.c.page:104 C/guitar-tuner.cpp.page:98
+#: C/guitar-tuner.py.page:105
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 "
@@ -11332,22 +13415,22 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:107 C/guitar-tuner.cpp.page:101
-#: C/guitar-tuner.py.page:108
+#: C/guitar-tuner.c.page:108 C/guitar-tuner.cpp.page:102
+#: C/guitar-tuner.py.page:109
msgid ""
"Now, choose a <gui>GtkButton</gui> from the palette and put it into the "
"first part of the box."
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:110 C/guitar-tuner.py.page:111
+#: C/guitar-tuner.c.page:111 C/guitar-tuner.py.page:112
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 ""
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:113 C/guitar-tuner.py.page:114
+#: C/guitar-tuner.c.page:114 C/guitar-tuner.py.page:115
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 "
@@ -11357,28 +13440,29 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:116 C/guitar-tuner.py.page:117
-#: C/guitar-tuner.vala.page:121
+#: C/guitar-tuner.c.page:117 C/guitar-tuner.py.page:118
+#: C/guitar-tuner.vala.page:122
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 ""
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:119 C/guitar-tuner.py.page:120
-#: C/guitar-tuner.vala.page:124
+#: C/guitar-tuner.c.page:120 C/guitar-tuner.py.page:121
+#: C/guitar-tuner.vala.page:125
msgid ""
"Save the UI design (by clicking <guiseq><gui>File</gui><gui>Save</gui></"
"guiseq>) and keep it open."
msgstr ""
#. (itstool) path: section/title
-#: C/guitar-tuner.c.page:125 C/guitar-tuner.vala.page:202
+#: C/guitar-tuner.c.page:126 C/guitar-tuner.vala.page:203
+#, fuzzy
msgid "Creating the signal handler"
-msgstr ""
+msgstr "O manipulador para este sinal"
#. (itstool) path: section/p
-#: C/guitar-tuner.c.page:126 C/guitar-tuner.py.page:127
+#: C/guitar-tuner.c.page:127 C/guitar-tuner.py.page:128
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 "
@@ -11386,7 +13470,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.c.page:127
+#: C/guitar-tuner.c.page:128
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 "
@@ -11396,7 +13480,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.c.page:130
+#: C/guitar-tuner.c.page:131
#, no-wrap
msgid ""
"\n"
@@ -11407,7 +13491,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.c.page:135
+#: C/guitar-tuner.c.page:136
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</"
@@ -11419,22 +13503,31 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.c.page:136 C/guitar-tuner.py.page:135
+#: C/guitar-tuner.c.page:137 C/guitar-tuner.py.page:136
msgid ""
"For now, we'll leave the signal handler empty while we work on writing the "
"code to produce sounds."
msgstr ""
#. (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
+#: C/guitar-tuner.c.page:141 C/guitar-tuner.cpp.page:118
+#: C/guitar-tuner.js.page:39 C/guitar-tuner.py.page:140
+#: C/guitar-tuner.vala.page:131
+#, fuzzy
msgid "GStreamer pipelines"
msgstr ""
+"Você pode clicar no botão <guibutton>Editar Perfis</guibutton> para editar "
+"os formatos de áudio disponíveis. A janela de diálogo do editor de perfil "
+"fornece acesso direto à conversão de áudio. Os perfis são definidos com base "
+"nas filas de processamento do <application>GStreamer</application>. O "
+"<application>Sound Juicer</application> e outros aplicativos multimídia "
+"utilizam como base a biblioteca multimídia <application>GStreamer</"
+"application>. Uma explicação completa sobre os perfis de áudio está fora do "
+"escopo deste documento."
#. (itstool) path: section/p
-#: C/guitar-tuner.c.page:141 C/guitar-tuner.js.page:39
-#: C/guitar-tuner.py.page:140
+#: C/guitar-tuner.c.page:142 C/guitar-tuner.js.page:40
+#: C/guitar-tuner.py.page:141
msgid ""
"GStreamer is GNOME's multimedia framework — you can use it for playing, "
"recording, and processing video, audio, webcam streams and the like. Here, "
@@ -11442,8 +13535,8 @@ msgid ""
msgstr ""
#. (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
+#: C/guitar-tuner.c.page:143 C/guitar-tuner.cpp.page:121
+#: C/guitar-tuner.js.page:41 C/guitar-tuner.py.page:142
msgid ""
"Conceptually, GStreamer works as follows: You create a <em>pipeline</em> "
"containing several processing elements going from the <em>source</em> to the "
@@ -11452,31 +13545,49 @@ msgid ""
msgstr ""
#. (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
+#: 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
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 ""
-#. (itstool) path: media/p
+#. (itstool) path: section/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/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."
+msgctxt "_"
+msgid ""
+"external ref='media/guitar-tuner-pipeline.png' "
+"md5='5adc952909d92af5dae6954781b4ad5f'"
msgstr ""
+#. (itstool) path: media/p
+#: C/guitar-tuner.c.page:146 C/guitar-tuner.cpp.page:124
+#: C/guitar-tuner.js.page:44 C/guitar-tuner.py.page:145
+#: C/guitar-tuner.vala.page:136
+#, fuzzy
+msgid "An example GStreamer pipeline."
+msgstr "pipeline"
+
#. (itstool) path: section/title
-#: C/guitar-tuner.c.page:150 C/guitar-tuner.py.page:149
-#: C/guitar-tuner.vala.page:140
+#: C/guitar-tuner.c.page:151 C/guitar-tuner.py.page:150
+#: C/guitar-tuner.vala.page:141
+#, fuzzy
msgid "Set up the pipeline"
msgstr ""
+"Não foi possível definir a linha \n"
+"de processamento para o estado de gravação."
#. (itstool) path: section/p
-#: C/guitar-tuner.c.page:151 C/guitar-tuner.cpp.page:134
-#: C/guitar-tuner.py.page:150
+#: C/guitar-tuner.c.page:152 C/guitar-tuner.cpp.page:135
+#: C/guitar-tuner.py.page:151
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 "
@@ -11486,20 +13597,20 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.c.page:153
+#: C/guitar-tuner.c.page:154
msgid ""
"Insert the following line into <file>main.c</file>, just below the "
"<code>#include <gtk/gtk.h></code> line:"
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.c.page:154
-#, no-wrap
+#: C/guitar-tuner.c.page:155
+#, fuzzy, no-wrap
msgid "#include <gst/gst.h>"
-msgstr ""
+msgstr "#include <gtkmm.h>"
#. (itstool) path: section/p
-#: C/guitar-tuner.c.page:155
+#: C/guitar-tuner.c.page:156
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 "
@@ -11507,20 +13618,20 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.c.page:156
+#: C/guitar-tuner.c.page:157
#, no-wrap
msgid "gst_init (&argc, &argv);"
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.c.page:157
+#: C/guitar-tuner.c.page:158
msgid ""
"Then, copy the following function into <file>main.c</file> above the empty "
"<code>on_button_clicked</code> function:"
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.c.page:158
+#: C/guitar-tuner.c.page:159
#, no-wrap
msgid ""
"static void\n"
@@ -11549,7 +13660,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:184
+#: C/guitar-tuner.c.page:185
msgid ""
"The first five lines create source and sink GStreamer elements "
"(<code>GstElement</code>), and a pipeline element (which will be used as a "
@@ -11560,7 +13671,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:187
+#: C/guitar-tuner.c.page:188
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 "
@@ -11569,7 +13680,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:190
+#: C/guitar-tuner.c.page:191
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 "
@@ -11579,7 +13690,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.c.page:193
+#: C/guitar-tuner.c.page:194
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 "
@@ -11590,12 +13701,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/guitar-tuner.c.page:200 C/guitar-tuner.py.page:190
+#: C/guitar-tuner.c.page:201 C/guitar-tuner.py.page:191
+#, fuzzy
msgid "Stopping playback"
-msgstr ""
+msgstr "Parando…"
#. (itstool) path: section/p
-#: C/guitar-tuner.c.page:201
+#: C/guitar-tuner.c.page:202
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 "
@@ -11606,7 +13718,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.c.page:202
+#: C/guitar-tuner.c.page:203
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 "
@@ -11614,7 +13726,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.c.page:203
+#: C/guitar-tuner.c.page:204
#, no-wrap
msgid ""
"\n"
@@ -11631,7 +13743,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.c.page:214
+#: C/guitar-tuner.c.page:215
msgid ""
"The call to <code>gst_element_set_state</code> stops the playback of the "
"pipeline and <code>g_object_unref</code> unreferences the pipeline, "
@@ -11639,12 +13751,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/guitar-tuner.c.page:218 C/guitar-tuner.py.page:207
+#: C/guitar-tuner.c.page:219 C/guitar-tuner.py.page:208
+#, fuzzy
msgid "Define the tones"
-msgstr ""
+msgstr "Tons"
#. (itstool) path: section/p
-#: C/guitar-tuner.c.page:219
+#: C/guitar-tuner.c.page:220
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 "
@@ -11652,7 +13765,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.c.page:220
+#: C/guitar-tuner.c.page:221
#, no-wrap
msgid ""
"\n"
@@ -11666,7 +13779,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.c.page:228 C/guitar-tuner.py.page:221
+#: C/guitar-tuner.c.page:229 C/guitar-tuner.py.page:222
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 "
@@ -11676,7 +13789,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.c.page:229
+#: C/guitar-tuner.c.page:230
#, no-wrap
msgid ""
"\n"
@@ -11702,7 +13815,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.c.page:250
+#: C/guitar-tuner.c.page:251
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 "
@@ -11710,7 +13823,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.c.page:251
+#: C/guitar-tuner.c.page:252
msgid ""
"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 "
@@ -11718,17 +13831,18 @@ msgid ""
msgstr ""
#. (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
+#: C/guitar-tuner.c.page:256 C/guitar-tuner.cpp.page:255
+#: C/guitar-tuner.vala.page:253 C/image-viewer.c.page:222
+#: C/image-viewer.cpp.page:210 C/image-viewer.vala.page:280
+#: C/photo-wall.c.page:392
+#, fuzzy
msgid "Build and run the application"
-msgstr ""
+msgstr "Execute o aplicativo:"
#. (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
+#: C/guitar-tuner.c.page:257 C/guitar-tuner.vala.page:254
+#: C/image-viewer.c.page:223 C/image-viewer.cpp.page:211
+#: C/image-viewer.vala.page:281
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 "
@@ -11736,8 +13850,8 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.c.page:257 C/guitar-tuner.cpp.page:256
-#: C/guitar-tuner.vala.page:254
+#: C/guitar-tuner.c.page:258 C/guitar-tuner.cpp.page:257
+#: C/guitar-tuner.vala.page:255
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> "
@@ -11745,56 +13859,62 @@ msgid ""
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
+#: C/guitar-tuner.c.page:262 C/guitar-tuner.cpp.page:261
+#: C/guitar-tuner.js.page:242 C/guitar-tuner.py.page:240
+#: C/guitar-tuner.vala.page:259 C/image-viewer.c.page:228
+#: C/image-viewer.cpp.page:216 C/image-viewer.js.page:316
+#: C/image-viewer.py.page:230 C/image-viewer.vala.page:288
+#: C/magic-mirror.vala.page:150 C/photo-wall.c.page:400
+#: C/record-collection.js.page:297
+#, fuzzy
msgid "Reference Implementation"
-msgstr ""
+msgstr "Implementação referência"
#. (itstool) path: section/p
-#: C/guitar-tuner.c.page:262
+#: C/guitar-tuner.c.page:263
msgid ""
"If you run into problems with the tutorial, compare your code with this "
"<link href=\"guitar-tuner/guitar-tuner.c\">reference code</link>."
msgstr ""
#. (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 ""
-
-#. (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
+#, fuzzy
+msgid "Next steps"
+msgstr ""
+"O plug-in do <app>gedit</app> contém um script python (<file>evince_dbus.py</"
+"file>) que pode ser usado para fazer SyncTeX funcionar com o Vim. Para "
+"utilizar vim-latex com o <app>Visualizador de documentos</app> você precisa "
+"seguir os seguintes passos:"
+
+#. (itstool) path: section/p
+#: C/guitar-tuner.c.page:268 C/guitar-tuner.cpp.page:275
+#: C/guitar-tuner.py.page:246 C/guitar-tuner.vala.page:271
+#: C/image-viewer.c.page:234 C/image-viewer.cpp.page:222
+#: C/image-viewer.js.page:322 C/image-viewer.py.page:236
+#: C/image-viewer.vala.page:294
msgid "Here are some ideas for how you can extend this simple demonstration:"
msgstr ""
#. (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
+#: C/guitar-tuner.c.page:271 C/guitar-tuner.cpp.page:278
+#: C/guitar-tuner.py.page:249 C/guitar-tuner.vala.page:274
msgid "Have the program automatically cycle through the notes."
msgstr ""
#. (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
+#: 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 "Make the program play recordings of real guitar strings being plucked."
msgstr ""
#. (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
+#: 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 ""
"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 "
@@ -11805,8 +13925,8 @@ msgid ""
msgstr ""
#. (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
+#: C/guitar-tuner.c.page:276 C/guitar-tuner.cpp.page:283
+#: C/guitar-tuner.py.page:254 C/guitar-tuner.vala.page:279
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/"
@@ -11818,14 +13938,14 @@ msgid ""
msgstr ""
#. (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
+#: 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 "Automatically analyze notes that the user plays."
msgstr ""
#. (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
+#: C/guitar-tuner.c.page:280 C/guitar-tuner.cpp.page:287
+#: C/guitar-tuner.py.page:258 C/guitar-tuner.vala.page:283
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-"
@@ -11837,19 +13957,19 @@ msgid ""
msgstr ""
#. (itstool) path: info/desc
-#: C/guitar-tuner.cpp.page:8
+#: C/guitar-tuner.cpp.page:9
msgid ""
"Use GTKmm and GStreamermm to build a simple guitar tuner application for "
"GNOME. Shows off how to use the interface designer."
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.cpp.page:38
+#: C/guitar-tuner.cpp.page:39
msgid "Basic knowledge of the C++ programming language"
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.cpp.page:52
+#: C/guitar-tuner.cpp.page:53
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 "
@@ -11857,7 +13977,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.cpp.page:55
+#: C/guitar-tuner.cpp.page:56
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 "
@@ -11865,7 +13985,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.cpp.page:59
+#: C/guitar-tuner.cpp.page:60
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> "
@@ -11873,7 +13993,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/code
-#: C/guitar-tuner.cpp.page:60
+#: C/guitar-tuner.cpp.page:61
#, no-wrap
msgid ""
"\n"
@@ -11882,14 +14002,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.cpp.page:69 C/image-viewer.cpp.page:66
+#: C/guitar-tuner.cpp.page:70 C/image-viewer.cpp.page:67
msgid ""
"This is a very basic C++ code setting up GTKmm. More details are given "
"below; skip this list if you understand the basics:"
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.cpp.page:73
+#: C/guitar-tuner.cpp.page:74
msgid ""
"The three <code>#include</code> lines at the top include the <code>config</"
"code> (useful autoconf build defines), <code>gtkmm</code> (user interface) "
@@ -11898,7 +14018,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.cpp.page:76
+#: C/guitar-tuner.cpp.page:77
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 "
@@ -11908,7 +14028,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.cpp.page:79
+#: C/guitar-tuner.cpp.page:80
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, "
@@ -11917,7 +14037,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.cpp.page:104
+#: C/guitar-tuner.cpp.page:105
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. "
@@ -11926,7 +14046,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.cpp.page:108
+#: C/guitar-tuner.cpp.page:109
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> "
@@ -11934,14 +14054,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.cpp.page:111
+#: C/guitar-tuner.cpp.page:112
msgid ""
"Save the UI design (by clicking <guiseq><gui>File</gui><gui>Save</gui></"
"guiseq>) and close the file."
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.cpp.page:118
+#: C/guitar-tuner.cpp.page:119
msgid ""
"GStreamer is GNOME's multimedia framework — you can use it for playing, "
"recording, and processing video, audio, webcam streams and the like. Here, "
@@ -11950,12 +14070,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/guitar-tuner.cpp.page:128
+#: C/guitar-tuner.cpp.page:129
+#, fuzzy
msgid "Using GStreamermm"
-msgstr ""
+msgstr "Documentação da gstreamermm"
#. (itstool) path: section/p
-#: C/guitar-tuner.cpp.page:129
+#: C/guitar-tuner.cpp.page:130
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> "
@@ -11963,20 +14084,20 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.cpp.page:131
+#: C/guitar-tuner.cpp.page:132
#, no-wrap
msgid "\tGst::init (argc, argv);"
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.cpp.page:132
+#: C/guitar-tuner.cpp.page:133
msgid ""
"While we are on it, also make sure that the <file>gstreamermm.h</file> is "
"included in <file>main.cc</file> properly."
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.cpp.page:136
+#: C/guitar-tuner.cpp.page:137
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 "
@@ -11984,7 +14105,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.cpp.page:139
+#: C/guitar-tuner.cpp.page:140
#, no-wrap
msgid ""
"\n"
@@ -12032,12 +14153,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.cpp.page:183
+#: C/guitar-tuner.cpp.page:184
+#, fuzzy
msgid "The code has the following purpose:"
-msgstr ""
+msgstr "Esse guia tem um propósito duplo:"
#. (itstool) path: item/p
-#: C/guitar-tuner.cpp.page:186
+#: C/guitar-tuner.cpp.page:187
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 "
@@ -12050,7 +14172,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.cpp.page:189
+#: C/guitar-tuner.cpp.page:190
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. "
@@ -12059,7 +14181,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.cpp.page:194
+#: C/guitar-tuner.cpp.page:195
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 "
@@ -12069,12 +14191,12 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/guitar-tuner.cpp.page:202
+#: C/guitar-tuner.cpp.page:203
msgid "Connecting the signals"
-msgstr ""
+msgstr "Conectando os sinais"
#. (itstool) path: section/p
-#: C/guitar-tuner.cpp.page:203
+#: C/guitar-tuner.cpp.page:204
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 "
@@ -12084,14 +14206,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.cpp.page:208
+#: C/guitar-tuner.cpp.page:209
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 ""
#. (itstool) path: section/code
-#: C/guitar-tuner.cpp.page:210
+#: C/guitar-tuner.cpp.page:211
#, no-wrap
msgid ""
"\n"
@@ -12103,7 +14225,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.cpp.page:217
+#: C/guitar-tuner.cpp.page:218
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 "
@@ -12112,7 +14234,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.cpp.page:221
+#: C/guitar-tuner.cpp.page:222
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\", "
@@ -12120,7 +14242,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.cpp.page:223
+#: C/guitar-tuner.cpp.page:224
#, no-wrap
msgid ""
"\n"
@@ -12133,14 +14255,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.cpp.page:233
+#: C/guitar-tuner.cpp.page:234
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 ""
#. (itstool) path: item/p
-#: C/guitar-tuner.cpp.page:237
+#: C/guitar-tuner.cpp.page:238
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 "
@@ -12148,7 +14270,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.cpp.page:241
+#: C/guitar-tuner.cpp.page:242
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 "
@@ -12161,7 +14283,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.cpp.page:248
+#: C/guitar-tuner.cpp.page:249
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, "
@@ -12170,7 +14292,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.cpp.page:255
+#: C/guitar-tuner.cpp.page:256
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 "
@@ -12178,19 +14300,20 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.cpp.page:261
+#: C/guitar-tuner.cpp.page:262
msgid ""
"If you run into problems with the tutorial, compare your code with this "
"<link href=\"guitar-tuner/guitar-tuner.cc\">reference code</link>."
msgstr ""
#. (itstool) path: section/title
-#: C/guitar-tuner.cpp.page:265
+#: C/guitar-tuner.cpp.page:266
+#, fuzzy
msgid "Further Reading"
-msgstr ""
+msgstr "Para demais leituras, por favor selecione uma seção no menu acima."
#. (itstool) path: section/p
-#: C/guitar-tuner.cpp.page:266
+#: C/guitar-tuner.cpp.page:267
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> "
@@ -12200,19 +14323,20 @@ msgid ""
msgstr ""
#. (itstool) path: info/title
-#: C/guitar-tuner.js.page:6
+#: C/guitar-tuner.js.page:7
+#, fuzzy
msgctxt "text"
msgid "Guitar tuner (JavaScript)"
-msgstr ""
+msgstr "Guitar tuner (JavaScript)"
#. (itstool) path: info/desc
-#: C/guitar-tuner.js.page:16
+#: C/guitar-tuner.js.page:17
msgid ""
"Use GTK+ and GStreamer to build a simple guitar tuner application for GNOME."
msgstr ""
#. (itstool) path: synopsis/p
-#: C/guitar-tuner.js.page:22
+#: C/guitar-tuner.js.page:23
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 "
@@ -12221,73 +14345,81 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.js.page:24
+#: C/guitar-tuner.js.page:25
+#, fuzzy
msgid "<link xref=\"#gstreamer\">GStreamer pipelines</link>"
msgstr ""
+"Falha ao conectar o novo fluxo dentro da linha de processamento do GStreamer"
#. (itstool) path: item/p
-#: C/guitar-tuner.js.page:25 C/weatherAppMain.js.page:22
+#: C/guitar-tuner.js.page:26 C/weatherAppMain.js.page:23
msgid "<link xref=\"#script\">Script for running the application</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.js.page:26 C/weatherAppMain.js.page:23
+#: C/guitar-tuner.js.page:27 C/weatherAppMain.js.page:24
msgid "<link xref=\"#imports\">Libraries to import</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.js.page:27 C/weatherAppMain.js.page:24
+#: C/guitar-tuner.js.page:28 C/weatherAppMain.js.page:25
msgid ""
"<link xref=\"#mainwindow\">Creating the main window for the application</"
"link>"
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.js.page:28
+#: C/guitar-tuner.js.page:29
+#, fuzzy
msgid "<link xref=\"#buttons\">Buttons for the tunes</link>"
msgstr ""
+"Fornece botões apropriados para matemática avançada como <link xref="
+"\"trigonometry\"/>"
#. (itstool) path: item/p
-#: C/guitar-tuner.js.page:29
+#: C/guitar-tuner.js.page:30
msgid "<link xref=\"#playSound\">Making the sounds with GStreamer</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.js.page:30
+#: C/guitar-tuner.js.page:31
msgid "<link xref=\"#connecting\">Connecting buttons to playSound</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.js.page:31
+#: C/guitar-tuner.js.page:32
msgid "<link xref=\"#guitarjs\">The whole program</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.js.page:32
+#: C/guitar-tuner.js.page:33
msgid "<link xref=\"#terminal\">Running the application form Terminal</link>"
msgstr ""
#. (itstool) path: page/p
-#: C/guitar-tuner.js.page:35 C/weatherApp.js.page:39
+#: C/guitar-tuner.js.page:36 C/weatherApp.js.page:40
msgid "After reading this tutorial, you should see this in your screen:"
msgstr ""
#. (itstool) path: section/title
-#: C/guitar-tuner.js.page:47 C/hello-world.js.page:45
-#: C/weatherAppMain.js.page:32
+#: C/guitar-tuner.js.page:48 C/hello-world.js.page:46
+#: C/weatherAppMain.js.page:33
+#, fuzzy
msgid "Script for running the application"
-msgstr ""
+msgstr "Finalize o aplicativo e execute o script."
#. (itstool) path: section/code
-#: C/guitar-tuner.js.page:48 C/weatherAppMain.js.page:33
-#, no-wrap
+#: C/guitar-tuner.js.page:49 C/weatherAppMain.js.page:34
+#, fuzzy, no-wrap
msgid ""
"\n"
" #!/usr/bin/gjs"
msgstr ""
+"\n"
+"#!/usr/bin/gjs\n"
#. (itstool) path: section/p
-#: C/guitar-tuner.js.page:50
+#: C/guitar-tuner.js.page:51
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 "
@@ -12298,7 +14430,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.js.page:55
+#: C/guitar-tuner.js.page:56
#, no-wrap
msgid ""
"\n"
@@ -12309,7 +14441,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.js.page:60
+#: C/guitar-tuner.js.page:61
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 "
@@ -12319,14 +14451,14 @@ msgid ""
msgstr ""
#. (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
+#: C/guitar-tuner.js.page:64 C/hello-world.js.page:59 C/hello-world.py.page:52
+#: C/hello-world.vala.page:44 C/weatherAppMain.js.page:49
+#, fuzzy
msgid "Creating the main window for the application"
-msgstr ""
+msgstr "A janela principal para seu aplicativo"
#. (itstool) path: section/code
-#: C/guitar-tuner.js.page:64
+#: C/guitar-tuner.js.page:65
#, no-wrap
msgid ""
"\n"
@@ -12342,7 +14474,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.js.page:74
+#: C/guitar-tuner.js.page:75
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 "
@@ -12352,12 +14484,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/guitar-tuner.js.page:77
+#: C/guitar-tuner.js.page:78
+#, fuzzy
msgid "Buttons for the tunes"
-msgstr ""
+msgstr "Os botões"
#. (itstool) path: section/code
-#: C/guitar-tuner.js.page:78
+#: C/guitar-tuner.js.page:79
#, no-wrap
msgid ""
"\n"
@@ -12383,7 +14516,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.js.page:98
+#: C/guitar-tuner.js.page:99
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 "
@@ -12394,7 +14527,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.js.page:99
+#: C/guitar-tuner.js.page:100
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 "
@@ -12403,12 +14536,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/guitar-tuner.js.page:102
+#: C/guitar-tuner.js.page:103
+#, fuzzy
msgid "Making the sounds with GStreamer"
-msgstr ""
+msgstr "gstreamer"
#. (itstool) path: section/code
-#: C/guitar-tuner.js.page:103
+#: C/guitar-tuner.js.page:104
#, no-wrap
msgid ""
"\n"
@@ -12416,8 +14550,8 @@ msgid ""
"\n"
"function playSound(frequency){\n"
" var pipeline = new Gst.Pipeline({name: \"note\"});\n"
-" var source = new Gst.ElementFactory.make(\"audiotestsrc\",\"source\");\n"
-" var sink = new Gst.ElementFactory.make(\"autoaudiosink\",\"output\");\n"
+" var source = Gst.ElementFactory.make(\"audiotestsrc\",\"source\");\n"
+" var sink = Gst.ElementFactory.make(\"autoaudiosink\",\"output\");\n"
"\n"
" source.set_property('freq', frequency);\n"
" pipeline.add(source);\n"
@@ -12433,7 +14567,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.js.page:122
+#: C/guitar-tuner.js.page:123
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 "
@@ -12447,20 +14581,21 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.js.page:123
+#: C/guitar-tuner.js.page:124
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 "
+"make the connections between pushing a button and playing the correct sound "
"from that button."
msgstr ""
#. (itstool) path: section/title
-#: C/guitar-tuner.js.page:126
+#: C/guitar-tuner.js.page:127
+#, fuzzy
msgid "Connecting buttons to playSound"
-msgstr ""
+msgstr "Botões"
#. (itstool) path: section/code
-#: C/guitar-tuner.js.page:127
+#: C/guitar-tuner.js.page:128
#, no-wrap
msgid ""
"\n"
@@ -12485,32 +14620,39 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.js.page:146
+#: C/guitar-tuner.js.page:147
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."
+"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 ""
#. (itstool) path: section/title
-#: C/guitar-tuner.js.page:156
+#: C/guitar-tuner.js.page:157
+#, fuzzy
msgid "The whole program"
msgstr ""
+"A descrição deve ser longa o suficiente para que as pessoas possam entender "
+"todo o programa, mas não longa ao ponto deles ficarem entediados lendo-a. Se "
+"um pacote consiste em vários programas menores, é melhor escrever uma "
+"descrição de quais tipos de programas pertencem ao pacote e, então, escrever "
+"descrições para cada programa."
#. (itstool) path: section/p
-#: C/guitar-tuner.js.page:157
+#: C/guitar-tuner.js.page:158
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 "
+"you should be able to tune your guitar (if you have correctly calibrated "
"speakers)."
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.js.page:158
+#: C/guitar-tuner.js.page:159
#, no-wrap
msgid ""
"\n"
@@ -12542,8 +14684,8 @@ msgid ""
"function playSound(frequency){\n"
" var pipeline = new Gst.Pipeline({name: \"note\"});\n"
"\n"
-" var source = new Gst.ElementFactory.make(\"audiotestsrc\",\"source\");\n"
-" var sink = new Gst.ElementFactory.make(\"autoaudiosink\",\"output\");\n"
+" var source = Gst.ElementFactory.make(\"audiotestsrc\",\"source\");\n"
+" var sink = Gst.ElementFactory.make(\"autoaudiosink\",\"output\");\n"
"\n"
" source.set_property('freq', frequency);\n"
" pipeline.add(source);\n"
@@ -12591,43 +14733,46 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/guitar-tuner.js.page:236
+#: C/guitar-tuner.js.page:237
+#, fuzzy
msgid "Running the application form Terminal"
-msgstr ""
+msgstr "Aplicativo no terminal"
#. (itstool) path: section/p
-#: C/guitar-tuner.js.page:237
+#: C/guitar-tuner.js.page:238
msgid ""
"To run this application open Terminal, go to the folder where your "
"application is stored and then run"
msgstr ""
#. (itstool) path: section/screen
-#: C/guitar-tuner.js.page:237
+#: C/guitar-tuner.js.page:238
#, no-wrap
msgid " <output style=\"prompt\">$ </output><input> GJS_PATH=`pwd` gjs guitarTuner.js</input> "
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.js.page:242
+#: C/guitar-tuner.js.page:243
msgid ""
"If you run into problems with the tutorial, compare your code with this "
"<link href=\"guitar-tuner/guitar-tuner.js\">reference code</link>."
msgstr ""
#. (itstool) path: info/title
-#: C/guitar-tuner.py.page:7
+#: C/guitar-tuner.py.page:8
+#, fuzzy
msgctxt "text"
msgid "Guitar tuner (Python)"
-msgstr ""
+msgstr "Guitar tuner (Python)"
#. (itstool) path: item/p
-#: C/guitar-tuner.py.page:45
+#: C/guitar-tuner.py.page:46
+#, fuzzy
msgid "Basic knowledge of the Python programming language"
-msgstr ""
+msgstr "Linguagem de programação Python"
#. (itstool) path: item/p
-#: C/guitar-tuner.py.page:59
+#: C/guitar-tuner.py.page:60
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 "
@@ -12635,7 +14780,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.py.page:62
+#: C/guitar-tuner.py.page:63
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</"
@@ -12643,7 +14788,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/code
-#: C/guitar-tuner.py.page:63
+#: C/guitar-tuner.py.page:64
#, no-wrap
msgid ""
"\n"
@@ -12652,12 +14797,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/guitar-tuner.py.page:71
+#: C/guitar-tuner.py.page:72
+#, fuzzy
msgid "Run the code for the first time"
-msgstr ""
+msgstr "Instrui o usuário na primeira vez que ele executar sudo"
#. (itstool) path: section/p
-#: C/guitar-tuner.py.page:72
+#: C/guitar-tuner.py.page:73
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 "
@@ -12665,14 +14811,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.py.page:76
+#: C/guitar-tuner.py.page:77
msgid ""
"The <code>import</code> lines at the top include the tell Python to load the "
"user interface and system libraries needed."
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.py.page:80
+#: C/guitar-tuner.py.page:81
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 "
@@ -12680,7 +14826,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.py.page:83
+#: C/guitar-tuner.py.page:84
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 "
@@ -12688,7 +14834,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.py.page:86
+#: C/guitar-tuner.py.page:87
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 "
@@ -12696,14 +14842,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.py.page:91
+#: C/guitar-tuner.py.page:92
msgid ""
"This code is ready to be used, so you can run it by clicking "
"<guiseq><gui>Run</gui><gui>Execute</gui></guiseq>."
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.py.page:96
+#: C/guitar-tuner.py.page:97
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>. "
@@ -12713,12 +14859,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/guitar-tuner.py.page:126
+#: C/guitar-tuner.py.page:127
+#, fuzzy
msgid "Write the signal handler"
-msgstr ""
+msgstr "O manipulador para este sinal"
#. (itstool) path: section/p
-#: C/guitar-tuner.py.page:128
+#: C/guitar-tuner.py.page:129
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 "
@@ -12728,35 +14875,35 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.py.page:130
-#, no-wrap
+#: C/guitar-tuner.py.page:131
+#, fuzzy, no-wrap
msgid ""
"\n"
"def on_button_clicked (self, button):\n"
-msgstr ""
+msgstr "Aguarde até o botão de finalizar ser clicado."
#. (itstool) path: section/p
-#: C/guitar-tuner.py.page:134
+#: C/guitar-tuner.py.page:135
msgid ""
"This signal handler has two arguments: the usual Python class pointer, and "
"the <code>Gtk.Button</code> that called the function."
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.py.page:152
+#: C/guitar-tuner.py.page:153
msgid ""
"Change the import line in <file>guitar_tuner.py</file>, just at the "
"beginning to :"
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.py.page:153
+#: C/guitar-tuner.py.page:154
#, no-wrap
msgid "from gi.repository import Gtk, Gst, GObject "
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.py.page:154
+#: C/guitar-tuner.py.page:155
msgid ""
"The <code>Gst</code> includes the GStreamer library. You also need to "
"initialise GStreamer properly which is done in the <code>main()</code> "
@@ -12764,20 +14911,20 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.py.page:157
-#, no-wrap
+#: C/guitar-tuner.py.page:158
+#, fuzzy, no-wrap
msgid "Gst.init_check(sys.argv)"
-msgstr ""
+msgstr "caixa de seleção"
#. (itstool) path: section/p
-#: C/guitar-tuner.py.page:158
+#: C/guitar-tuner.py.page:159
msgid ""
"Then, copy the following function into the class in <file>guitar_tuner.py</"
"file> somewhere:"
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.py.page:159
+#: C/guitar-tuner.py.page:160
#, no-wrap
msgid ""
"\n"
@@ -12796,7 +14943,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.py.page:174
+#: C/guitar-tuner.py.page:175
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 "
@@ -12807,7 +14954,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.py.page:177
+#: C/guitar-tuner.py.page:178
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 "
@@ -12817,7 +14964,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.py.page:180
+#: C/guitar-tuner.py.page:181
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 "
@@ -12826,14 +14973,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.py.page:183
+#: C/guitar-tuner.py.page:184
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 ""
#. (itstool) path: section/p
-#: C/guitar-tuner.py.page:191
+#: C/guitar-tuner.py.page:192
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>. "
@@ -12844,7 +14991,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.py.page:192
+#: C/guitar-tuner.py.page:193
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> "
@@ -12852,7 +14999,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.py.page:193
+#: C/guitar-tuner.py.page:194
#, no-wrap
msgid ""
"\n"
@@ -12862,29 +15009,29 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.py.page:198
+#: C/guitar-tuner.py.page:199
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 ""
#. (itstool) path: section/code
-#: C/guitar-tuner.py.page:200
-#, no-wrap
+#: C/guitar-tuner.py.page:201
+#, fuzzy, no-wrap
msgid ""
"\n"
"LENGTH = 500\n"
-msgstr ""
+msgstr "500 MB de RAM."
#. (itstool) path: section/p
-#: C/guitar-tuner.py.page:203
+#: C/guitar-tuner.py.page:204
msgid ""
"The call to <code>pipeline.set_state</code> stops the playback of the "
"pipeline."
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.py.page:208
+#: C/guitar-tuner.py.page:209
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 "
@@ -12893,7 +15040,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.py.page:210
+#: C/guitar-tuner.py.page:211
#, no-wrap
msgid ""
"\n"
@@ -12909,7 +15056,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.py.page:222
+#: C/guitar-tuner.py.page:223
#, no-wrap
msgid ""
"\n"
@@ -12921,7 +15068,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.py.page:229
+#: C/guitar-tuner.py.page:230
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 "
@@ -12930,7 +15077,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.py.page:230
+#: C/guitar-tuner.py.page:231
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 "
@@ -12938,27 +15085,28 @@ msgid ""
msgstr ""
#. (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
+#: C/guitar-tuner.py.page:235 C/image-viewer.js.page:311
+#: C/image-viewer.py.page:225 C/record-collection.js.page:292
+#, fuzzy
msgid "Run the application"
-msgstr ""
+msgstr "Execute o aplicativo:"
#. (itstool) path: section/p
-#: C/guitar-tuner.py.page:235
+#: C/guitar-tuner.py.page:236
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 ""
#. (itstool) path: section/p
-#: C/guitar-tuner.py.page:240
+#: C/guitar-tuner.py.page:241
msgid ""
"If you run into problems with the tutorial, compare your code with this "
"<link href=\"guitar-tuner/guitar-tuner.py\">reference code</link>."
msgstr ""
#. (itstool) path: info/desc
-#: C/guitar-tuner.vala.page:9
+#: C/guitar-tuner.vala.page:10
msgid ""
"Use <link href=\"http://developer.gnome.org/platform-overview/stable/gtk"
"\">GTK+</link> and <link href=\"http://developer.gnome.org/platform-overview/"
@@ -12967,50 +15115,52 @@ msgid ""
msgstr ""
#. (itstool) path: synopsis/p
-#: C/guitar-tuner.vala.page:34
+#: C/guitar-tuner.vala.page:35
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 ""
#. (itstool) path: item/p
-#: C/guitar-tuner.vala.page:36
+#: C/guitar-tuner.vala.page:37
msgid ""
"Set up a basic project using the <link xref=\"getting-ready\">Anjuta IDE</"
"link>."
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.vala.page:37
+#: C/guitar-tuner.vala.page:38
msgid "Create a simple GUI with <app>Anjuta</app>'s UI designer."
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.vala.page:38
+#: C/guitar-tuner.vala.page:39
msgid ""
"Use the <link href=\"http://developer.gnome.org/platform-overview/stable/"
"gstreamer\">GStreamer</link> library to play sounds."
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.vala.page:42 C/image-viewer.vala.page:47
+#: C/guitar-tuner.vala.page:43 C/image-viewer.vala.page:48
msgid ""
"Basic knowledge of the <link href=\"https://live.gnome.org/Vala/Tutorial"
"\">Vala</link> programming language."
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.vala.page:43 C/image-viewer.vala.page:48
+#: C/guitar-tuner.vala.page:44 C/image-viewer.vala.page:49
+#, fuzzy
msgid "An installed copy of <app>Anjuta</app>."
-msgstr ""
+msgstr "Importe um projeto para o <app>Anjuta</app>."
#. (itstool) path: section/title
-#: C/guitar-tuner.vala.page:50
+#: C/guitar-tuner.vala.page:51
+#, fuzzy
msgid "Create a project in <app>Anjuta</app>"
-msgstr ""
+msgstr "Importe um projeto para o <app>Anjuta</app>."
#. (itstool) path: item/p
-#: C/guitar-tuner.vala.page:54 C/image-viewer.vala.page:62
+#: C/guitar-tuner.vala.page:55 C/image-viewer.vala.page:63
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 "
@@ -13018,7 +15168,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.vala.page:57
+#: C/guitar-tuner.vala.page:58
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 "
@@ -13026,7 +15176,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.vala.page:60
+#: C/guitar-tuner.vala.page:61
msgid ""
"Make sure that <gui>Configure external packages</gui> is switched <gui>ON</"
"gui>. On the next page, select <link href=\"http://valadoc.org/"
@@ -13035,7 +15185,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.vala.page:64
+#: C/guitar-tuner.vala.page:65
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."
@@ -13044,16 +15194,16 @@ msgid ""
msgstr ""
#. (itstool) path: item/code
-#: C/guitar-tuner.vala.page:65 C/magic-mirror.vala.page:69
-#, no-wrap
+#: C/guitar-tuner.vala.page:66 C/magic-mirror.vala.page:70
+#, fuzzy, no-wrap
msgid ""
"\n"
"using GLib;\n"
"using Gtk;"
-msgstr ""
+msgstr "usando GTK+-%d.%d.%d.\n"
#. (itstool) path: section/p
-#: C/guitar-tuner.vala.page:74
+#: C/guitar-tuner.vala.page:75
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 "
@@ -13061,14 +15211,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.vala.page:78 C/magic-mirror.vala.page:81
+#: C/guitar-tuner.vala.page:79 C/magic-mirror.vala.page:82
msgid ""
"The two <code>using</code> lines import namespaces so we don't have to name "
"them explicitly."
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.vala.page:81
+#: C/guitar-tuner.vala.page:82
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 "
@@ -13079,7 +15229,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/guitar-tuner.vala.page:83
+#: C/guitar-tuner.vala.page:84
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 "
@@ -13087,7 +15237,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.vala.page:87
+#: C/guitar-tuner.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 "
@@ -13097,7 +15247,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.vala.page:91
+#: C/guitar-tuner.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 "
@@ -13108,7 +15258,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.vala.page:96
+#: C/guitar-tuner.vala.page:97
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 "
@@ -13120,7 +15270,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.vala.page:98
+#: C/guitar-tuner.vala.page:99
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 "
@@ -13128,7 +15278,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.vala.page:104
+#: C/guitar-tuner.vala.page:105
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 "
@@ -13138,14 +15288,14 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/guitar-tuner.vala.page:105
+#: C/guitar-tuner.vala.page:106
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 ""
#. (itstool) path: item/p
-#: C/guitar-tuner.vala.page:109
+#: C/guitar-tuner.vala.page:110
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 "
@@ -13153,7 +15303,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.vala.page:112
+#: C/guitar-tuner.vala.page:113
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</"
@@ -13161,14 +15311,14 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/guitar-tuner.vala.page:113
+#: C/guitar-tuner.vala.page:114
msgid ""
"The <gui>General</gui> tab is located in the <gui>Widgets</gui> section on "
"the right."
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.vala.page:118
+#: C/guitar-tuner.vala.page:119
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 "
@@ -13179,7 +15329,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.vala.page:131
+#: C/guitar-tuner.vala.page:132
msgid ""
"This section will show you how to create the code to produce sounds. <link "
"href=\"http://developer.gnome.org/platform-overview/stable/gstreamer"
@@ -13189,7 +15339,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.vala.page:132
+#: C/guitar-tuner.vala.page:133
msgid ""
"Conceptually, GStreamer works as follows: You create a <link href=\"http://"
"gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-intro-"
@@ -13200,7 +15350,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.vala.page:141
+#: C/guitar-tuner.vala.page:142
msgid ""
"In this example we will use a tone generator source called "
"<code>audiotestsrc</code> and send the output to the default system sound "
@@ -13210,27 +15360,27 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.vala.page:143
+#: C/guitar-tuner.vala.page:144
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 ""
#. (itstool) path: section/code
-#: C/guitar-tuner.vala.page:144
-#, no-wrap
+#: C/guitar-tuner.vala.page:145
+#, fuzzy, no-wrap
msgid "Gst.init (ref args);"
-msgstr ""
+msgstr "[~]NOME [ARGS] [+ [~]NOME [ARGS]…]"
#. (itstool) path: section/p
-#: C/guitar-tuner.vala.page:145
+#: C/guitar-tuner.vala.page:146
msgid ""
"Then, copy the following function into <file>guitar_tuner.vala</file> inside "
"our <code>Main</code> class:"
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.vala.page:146
+#: C/guitar-tuner.vala.page:147
#, no-wrap
msgid ""
"\n"
@@ -13267,7 +15417,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.vala.page:180
+#: C/guitar-tuner.vala.page:181
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</"
@@ -13281,7 +15431,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.vala.page:183
+#: C/guitar-tuner.vala.page:184
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 "
@@ -13291,7 +15441,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.vala.page:186
+#: C/guitar-tuner.vala.page:187
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 "
@@ -13303,7 +15453,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.vala.page:189
+#: C/guitar-tuner.vala.page:190
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, "
@@ -13316,7 +15466,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/guitar-tuner.vala.page:192
+#: C/guitar-tuner.vala.page:193
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/"
@@ -13328,7 +15478,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.vala.page:203
+#: C/guitar-tuner.vala.page:204
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 "
@@ -13338,7 +15488,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.vala.page:204
+#: C/guitar-tuner.vala.page:205
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 "
@@ -13350,7 +15500,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.vala.page:206
+#: C/guitar-tuner.vala.page:207
#, no-wrap
msgid ""
"\n"
@@ -13360,14 +15510,14 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/guitar-tuner.vala.page:211
+#: C/guitar-tuner.vala.page:212
msgid ""
"You can also just type the code at the beginning of the class instead of "
"using the drag and drop."
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.vala.page:212
+#: C/guitar-tuner.vala.page:213
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 "
@@ -13376,12 +15526,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/guitar-tuner.vala.page:218
+#: C/guitar-tuner.vala.page:219
+#, fuzzy
msgid "Define the signal handler"
-msgstr ""
+msgstr "O manipulador para este sinal"
#. (itstool) path: section/p
-#: C/guitar-tuner.vala.page:219
+#: C/guitar-tuner.vala.page:220
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, "
@@ -13392,7 +15543,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/guitar-tuner.vala.page:220
+#: C/guitar-tuner.vala.page:221
#, no-wrap
msgid ""
"\n"
@@ -13424,7 +15575,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.vala.page:247
+#: C/guitar-tuner.vala.page:248
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 "
@@ -13433,7 +15584,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.vala.page:248
+#: C/guitar-tuner.vala.page:249
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 "
@@ -13441,19 +15592,20 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/guitar-tuner.vala.page:259
+#: C/guitar-tuner.vala.page:260
msgid ""
"If you run into problems with the tutorial, compare your code with this "
"<link href=\"guitar-tuner/guitar-tuner.vala\">reference code</link>."
msgstr ""
#. (itstool) path: section/title
-#: C/guitar-tuner.vala.page:263 C/magic-mirror.vala.page:156
+#: C/guitar-tuner.vala.page:264 C/magic-mirror.vala.page:157
+#, fuzzy
msgid "Further reading"
-msgstr ""
+msgstr "Para demais leituras, por favor selecione uma seção no menu acima."
#. (itstool) path: section/p
-#: C/guitar-tuner.vala.page:264
+#: C/guitar-tuner.vala.page:265
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</"
@@ -13461,30 +15613,18 @@ msgid ""
"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
-msgctxt "_"
-msgid ""
-"external ref='media/hellognomewebapp.png' "
-"md5='948efb6148ede3bc6b47b4b0bbe4a74f'"
-msgstr ""
-
#. (itstool) path: info/desc
-#: C/hellognome.js.page:16
+#: C/hellognome.js.page:17
msgid "Your first GNOME application!"
msgstr "Seu primeiro aplicativo do GNOME!"
#. (itstool) path: page/title
-#: C/hellognome.js.page:19
+#: C/hellognome.js.page:20
msgid "1. Hello, GNOME!"
msgstr "1. Olá, GNOME!"
#. (itstool) path: synopsis/p
-#: C/hellognome.js.page:21
+#: C/hellognome.js.page:22
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 "
@@ -13494,11 +15634,11 @@ msgstr ""
"Este tutorial vai mostrar como escrever o seu primeiro aplicativo do GNOME "
"em JavaScript. Você vai usar o JavaScript para escrever para o GNOME da "
"mesma forma que você faria para a web. Em seguida, você aprenderá como usar "
-"widgets \"nativos\", para escrever aplicativos que parecem com outros "
+"widgets “nativos”, para escrever aplicativos que parecem com outros "
"aplicativos do GNOME."
#. (itstool) path: note/p
-#: C/hellognome.js.page:22
+#: C/hellognome.js.page:23
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 "
@@ -13509,12 +15649,12 @@ msgstr ""
"essas coisas primeiro."
#. (itstool) path: section/title
-#: C/hellognome.js.page:28
+#: C/hellognome.js.page:29
msgid "Let's start with a web page"
msgstr "Vamos começar com uma página web"
#. (itstool) path: section/p
-#: C/hellognome.js.page:30
+#: C/hellognome.js.page:31
msgid ""
"Here's some basic HTML, CSS, and JavaScript code. Does this look familiar?"
msgstr ""
@@ -13522,13 +15662,44 @@ msgstr ""
"familiar?"
#. (itstool) path: section/code
-#: C/hellognome.js.page:31
-#, no-wrap
+#: C/hellognome.js.page:32
+#, fuzzy, no-wrap
+#| msgid ""
+#| "\n"
+#| "<!DOCTYPE html>\n"
+#| "<html>\n"
+#| " <head>\n"
+#| " <title>Hello, GNOME!</title>\n"
+#| "\n"
+#| " <!-- Use JavaScript to show a greeting when someone clicks the button -->\n"
+#| " <script type=\"application/javascript\">\n"
+#| " function greeting () {\n"
+#| " document.getElementById (\"greeting\").innerHTML = (\"O hai!\");\n"
+#| " }\n"
+#| " </script>\n"
+#| "\n"
+#| " <!-- Very basic CSS style using the GNOME font -->\n"
+#| " <style type=\"text/css\">\n"
+#| " body {\n"
+#| " font-face: Cantarell, sans-serif;\n"
+#| " text-align: center; }\n"
+#| " </style>\n"
+#| "\n"
+#| " </head>\n"
+#| " <body>\n"
+#| " <br /> <br />\n"
+#| " <button type=\"button\" onclick=\"greeting()\">Hello, GNOME!</button>\n"
+#| "\n"
+#| " <!-- Empty H1 element gets filled in when the button is clicked -->\n"
+#| " <h1 id=\"greeting\"></h1>\n"
+#| " </body>\n"
+#| "</html>\n"
msgid ""
"\n"
"<!DOCTYPE html>\n"
"<html>\n"
" <head>\n"
+" <meta charset=\"utf-8\">\n"
" <title>Hello, GNOME!</title>\n"
"\n"
" <!-- Use JavaScript to show a greeting when someone clicks the button -->\n"
@@ -13586,7 +15757,7 @@ msgstr ""
"</html>\n"
#. (itstool) path: section/p
-#: C/hellognome.js.page:62
+#: C/hellognome.js.page:64
msgid ""
"Let's save this as <file>hellognome.html</file>, and see what it looks like "
"when we run it!"
@@ -13594,8 +15765,22 @@ msgstr ""
"Vamos salvar isso como <file>hellognome.html</file> e vejamos com o que ele "
"se parece quando nós executamo-o!"
-#. (itstool) path: section/p
+#. (itstool) path: section/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:66
+msgctxt "_"
+msgid ""
+"external ref='media/hellognomewebapp.png' "
+"md5='948efb6148ede3bc6b47b4b0bbe4a74f'"
+msgstr ""
+"external ref='media/hellognomewebapp.png' "
+"md5='948efb6148ede3bc6b47b4b0bbe4a74f'"
+
+#. (itstool) path: section/p
+#: C/hellognome.js.page:68
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 "
@@ -13613,7 +15798,7 @@ msgstr ""
"dentro dele."
#. (itstool) path: section/p
-#: C/hellognome.js.page:67
+#: C/hellognome.js.page:69
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 "
@@ -13624,12 +15809,12 @@ msgstr ""
"código e ver como isso é feito!"
#. (itstool) path: section/title
-#: C/hellognome.js.page:71
+#: C/hellognome.js.page:73
msgid "Creating a GNOME window to frame our web app"
msgstr "Criando uma janela do GNOME para enquadrar nosso aplicativo web"
#. (itstool) path: section/p
-#: C/hellognome.js.page:73
+#: C/hellognome.js.page:75
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 "
@@ -13642,7 +15827,7 @@ msgstr ""
"ir no começo dos aplicativos."
#. (itstool) path: section/code
-#: C/hellognome.js.page:74
+#: C/hellognome.js.page:76
#, no-wrap
msgid ""
"\n"
@@ -13652,21 +15837,43 @@ msgstr ""
"#!/usr/bin/gjs\n"
#. (itstool) path: section/p
-#: C/hellognome.js.page:77
+#: C/hellognome.js.page:79
+msgid "Then we should set the versions of the libraries we'll be using."
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/hellognome.js.page:80
+#, fuzzy, no-wrap
+msgid ""
+"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"imports.gi.versions.WebKit2 = '4.0';\n"
+msgstr ""
+"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"const Gtk = imports.gi.Gtk;\n"
+
+#. (itstool) path: section/p
+#: C/hellognome.js.page:84
msgid "After that, we need to tell GNOME which libraries we want to import."
msgstr ""
"Depois disso, nós precisamos informar o GNOME quais bibliotecas nós queremos "
"importar."
#. (itstool) path: section/code
-#: C/hellognome.js.page:78
-#, no-wrap
+#: C/hellognome.js.page:85
+#, fuzzy, no-wrap
+#| msgid ""
+#| "\n"
+#| "const GLib = imports.gi.GLib;\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "const Webkit = imports.gi.WebKit;\n"
msgid ""
"\n"
"const GLib = imports.gi.GLib;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
-"const Webkit = imports.gi.WebKit;\n"
+"const Webkit = imports.gi.WebKit2;\n"
msgstr ""
"\n"
"const GLib = imports.gi.GLib;\n"
@@ -13675,7 +15882,7 @@ msgstr ""
"const Webkit = imports.gi.WebKit;\n"
#. (itstool) path: section/p
-#: C/hellognome.js.page:84
+#: C/hellognome.js.page:90
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 "
@@ -13686,17 +15893,22 @@ msgstr ""
"capacidades para nossos aplicativos do GNOME:"
#. (itstool) path: item/p
-#: C/hellognome.js.page:86
+#: C/hellognome.js.page:92
+#, fuzzy
+#| 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."
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."
+"<file>Gtk</file> is the basic part of any GNOME application, which lets you "
+"create windows and widgets and tie them together."
msgstr ""
"O <file>Gtk</file> e <file>Lang</file> são partes básicas de qualquer "
"aplicativo do GNOME o que permite que você cria janelas e widgets e vincula-"
"as."
#. (itstool) path: item/p
-#: C/hellognome.js.page:87
+#: C/hellognome.js.page:93
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."
@@ -13706,7 +15918,7 @@ msgstr ""
"criado."
#. (itstool) path: item/p
-#: C/hellognome.js.page:88
+#: C/hellognome.js.page:94
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."
@@ -13716,29 +15928,31 @@ msgstr ""
"HTML."
#. (itstool) path: section/p
-#: C/hellognome.js.page:91
+#: C/hellognome.js.page:97
msgid "Now we create the application itself:"
msgstr "Nós vamos criar o aplicativo em si:"
#. (itstool) path: section/code
-#: C/hellognome.js.page:92
-#, no-wrap
+#: C/hellognome.js.page:98
+#, fuzzy, no-wrap
+#| msgid "1. Hello, GNOME!"
msgid ""
"\n"
-"const HelloGNOME = new Lang.Class ({\n"
-" Name: 'Hello GNOME',\n"
-msgstr ""
-"\n"
-"const HelloGNOME = new Lang.Class ({\n"
-" Name: 'Olá, GNOME',\n"
+"class HelloGNOME {\n"
+msgstr "1. Olá, GNOME!"
#. (itstool) path: section/p
-#: C/hellognome.js.page:96
+#: C/hellognome.js.page:101
+#, fuzzy
+#| 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 "
+#| "HelloGNOME. And as you can see, we've given it a property that says what "
+#| "its name is."
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 "
-"HelloGNOME. And as you can see, we've given it a property that says what its "
-"name is."
+"HelloGNOME."
msgstr ""
"Isso vai parecer familiar para você se você trabalhou antes com JavaScript "
"orientado a objeto. É isso mesmo; todo o seu aplicativo é uma classe chamada "
@@ -13746,28 +15960,48 @@ msgstr ""
"informa qual o nome e do aplicativo."
#. (itstool) path: section/code
-#: C/hellognome.js.page:98
-#, no-wrap
+#: C/hellognome.js.page:103
+#, fuzzy, no-wrap
+#| msgid ""
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function () {\n"
+#| " this.application = new Gtk.Application ();\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"
msgid ""
"\n"
" // Create the application itself\n"
-" _init: function () {\n"
-" this.application = new Gtk.Application ();\n"
+" constructor() {\n"
+" this.application = new Gtk.Application();\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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function () {\n"
-" this._window.present ();\n"
-" },\n"
+" _onActivate() {\n"
+" this._window.present();\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function () {\n"
-" this._buildUI ();\n"
-" },\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
msgstr ""
"\n"
" // Cria o aplicativo em si\n"
@@ -13790,7 +16024,7 @@ msgstr ""
" },\n"
#. (itstool) path: section/p
-#: C/hellognome.js.page:118
+#: C/hellognome.js.page:123
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 "
@@ -13803,16 +16037,25 @@ msgstr ""
"mostrar e construir sua interface gráfica, respectivamente."
#. (itstool) path: section/p
-#: C/hellognome.js.page:119
+#: C/hellognome.js.page:124
+#, fuzzy
+#| 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."
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 bound function, which we "
+"have to use to tell connect which function we want to have handle the signal."
msgstr ""
"O que isso significa? Bom, tudo em um aplicativo do GNOME envia um sinal "
"quando alguma coisa de importante acontece. Um botão pode enviar o sinal de "
@@ -13824,7 +16067,7 @@ msgstr ""
"lide com o sinal."
#. (itstool) path: section/p
-#: C/hellognome.js.page:120
+#: C/hellognome.js.page:125
msgid ""
"In this case, we want _onActivate to handle the activate signal, and "
"_onStartup to handle the startup signal. _onActivate just tells the window "
@@ -13841,21 +16084,25 @@ msgstr ""
"que cria nossa interface gráfica e é a próxima parte que vamos olhar."
#. (itstool) path: note/p
-#: C/hellognome.js.page:121
+#: C/hellognome.js.page:126
+#, fuzzy
+#| 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."
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."
+"change the class name to a unique one each time."
msgstr ""
"Quando você copiar e colar o código acima para nossos aplicativos, "
"certifique-se de alterar o nome para um único a cada vez."
#. (itstool) path: section/title
-#: C/hellognome.js.page:125
+#: C/hellognome.js.page:130
msgid "Designing our window's UI"
msgstr "Desenhando a interface gráfica da nossa janela"
#. (itstool) path: section/p
-#: C/hellognome.js.page:126
+#: C/hellognome.js.page:131
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 "
@@ -13866,12 +16113,24 @@ msgstr ""
"tudo e colocar na exibição."
#. (itstool) path: section/code
-#: C/hellognome.js.page:128
-#, no-wrap
+#: C/hellognome.js.page:133
+#, fuzzy, no-wrap
+#| msgid ""
+#| "\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"
+#| " title: \"Welcome to GNOME\",\n"
+#| " default_height: 200,\n"
+#| " default_width: 400,\n"
+#| " window_position: Gtk.WindowPosition.CENTER });\n"
msgid ""
"\n"
" // Build the application's UI\n"
-" _buildUI: function () {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow ({\n"
@@ -13894,7 +16153,7 @@ msgstr ""
" window_position: Gtk.WindowPosition.CENTER });\n"
#. (itstool) path: section/p
-#: C/hellognome.js.page:141
+#: C/hellognome.js.page:146
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 "
@@ -13915,7 +16174,7 @@ msgstr ""
"apareça no centro da janela."
#. (itstool) path: section/code
-#: C/hellognome.js.page:142
+#: C/hellognome.js.page:147
#, no-wrap
msgid ""
"\n"
@@ -13935,7 +16194,7 @@ msgstr ""
" \"/hellognome.html\", null));\n"
#. (itstool) path: section/p
-#: C/hellognome.js.page:150
+#: C/hellognome.js.page:155
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 "
@@ -13949,7 +16208,7 @@ msgstr ""
"que nós queremos carregar quando o aplicativo inicia."
#. (itstool) path: section/p
-#: C/hellognome.js.page:151
+#: C/hellognome.js.page:156
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 "
@@ -13971,7 +16230,7 @@ msgstr ""
"para alterá-lo.)"
#. (itstool) path: section/code
-#: C/hellognome.js.page:152
+#: C/hellognome.js.page:157
#, no-wrap
msgid ""
"\n"
@@ -13995,7 +16254,7 @@ msgstr ""
"});\n"
#. (itstool) path: section/p
-#: C/hellognome.js.page:162
+#: C/hellognome.js.page:167
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 "
@@ -14013,7 +16272,7 @@ msgstr ""
"janela para se mostrar e também mostrar o seu conteúdo."
#. (itstool) path: section/code
-#: C/hellognome.js.page:163
+#: C/hellognome.js.page:168
#, no-wrap
msgid ""
"\n"
@@ -14027,7 +16286,7 @@ msgstr ""
"app.application.run (ARGV);\n"
#. (itstool) path: section/p
-#: C/hellognome.js.page:168
+#: C/hellognome.js.page:173
msgid ""
"Finally, we create a new instance of our HelloGNOME class, and tell GNOME to "
"run it."
@@ -14036,12 +16295,12 @@ msgstr ""
"informamos ao GNOME para executá-la."
#. (itstool) path: section/title
-#: C/hellognome.js.page:172
+#: C/hellognome.js.page:177
msgid "Running your GNOME application"
msgstr "Executando seu aplicativo do GNOME"
#. (itstool) path: section/p
-#: C/hellognome.js.page:174
+#: C/hellognome.js.page:179
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 "
@@ -14060,13 +16319,13 @@ msgstr ""
"mesmo nome do seu usuário.) Depois disso, abra um terminal e digite:"
#. (itstool) path: section/screen
-#: C/hellognome.js.page:175
+#: C/hellognome.js.page:180
#, no-wrap
msgid " <output style=\"prompt\">$ </output>gjs hellognome.js "
msgstr " <output style=\"prompt\">$ </output>gjs hellognome.js "
#. (itstool) path: section/p
-#: C/hellognome.js.page:176
+#: C/hellognome.js.page:181
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."
@@ -14075,19 +16334,19 @@ msgstr ""
"botão que você possa clicar para fazer uma curta mensagem aparecer."
#. (itstool) path: note/p
-#: C/hellognome.js.page:179
+#: C/hellognome.js.page:184
msgid "You can use the terminal command"
msgstr "Você pode usar comando de terminal"
#. (itstool) path: note/screen
-#: C/hellognome.js.page:180
+#: C/hellognome.js.page:185
#, no-wrap
msgid " <output style=\"prompt\">$ </output>cd <var>(directory name)</var> "
msgstr " <output style=\"prompt\">$ </output>cd <var>(nome do diretório)</var> "
# Referência às ferramentas de instalação do Windows XP e do Ubuntu, respectivamente? Traduzi segundo essa
linha, mantendo como se encontra a tradução hoje (inclusive no que tange aos caracteres maiúsculos)
#. (itstool) path: note/p
-#: C/hellognome.js.page:181
+#: C/hellognome.js.page:186
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 "
@@ -14103,7 +16362,7 @@ msgstr ""
"Remover Programas ou Central de Programas) pela extensão."
#. (itstool) path: section/p
-#: C/hellognome.js.page:188
+#: C/hellognome.js.page:193
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 "
@@ -14112,13 +16371,13 @@ msgid ""
"like to see example code for each Gtk widget."
msgstr ""
"<link xref=\"02_welcome_to_the_grid.js\">Continue com o próximo tutorial</"
-"link> para aprender a criar aplicativos \"nativos\" do GNOME que se parecem "
+"link> para aprender a criar aplicativos “nativos” do GNOME que se parecem "
"com os outros, em vez de um webview com código HTML inserido. Ou veja "
"algumas <link xref=\"beginner.js#samples\">amostras de código</link>, se "
"você gostaria de ver um código exemplo para widget Gtk."
#. (itstool) path: section/p
-#: C/hellognome.js.page:189
+#: C/hellognome.js.page:194
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! "
@@ -14135,40 +16394,101 @@ msgstr ""
"do seu computador com todos os seus outros aplicativos."
#. (itstool) path: section/code
-#: C/hellognome.js.page:194
-#, no-wrap
+#: C/hellognome.js.page:199
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const GLib = imports.gi.GLib;\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "const Webkit = imports.gi.WebKit;\n"
+#| "\n"
+#| "const HelloGNOME = new Lang.Class ({\n"
+#| " Name: 'Hello GNOME',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function () {\n"
+#| " this.application = new Gtk.Application ();\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 ({\n"
+#| " application: this.application,\n"
+#| " title: \"Welcome to GNOME\",\n"
+#| " default_height: 200,\n"
+#| " default_width: 400,\n"
+#| " window_position: Gtk.WindowPosition.CENTER });\n"
+#| "\n"
+#| " // Create a webview to show the web app\n"
+#| " this._webView = new Webkit.WebView ();\n"
+#| "\n"
+#| " // Put the web app into the webview\n"
+#| " this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+#| " \"/hellognome.html\", null));\n"
+#| "\n"
+#| " // Put the webview into the window\n"
+#| " this._window.add (this._webView);\n"
+#| "\n"
+#| " // Show the window and all child widgets\n"
+#| " this._window.show_all();\n"
+#| " },\n"
+#| "\n"
+#| "});\n"
+#| "\n"
+#| "// Run the application\n"
+#| "let app = new HelloGNOME ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"imports.gi.versions.WebKit2 = '4.0';\n"
+"\n"
"const GLib = imports.gi.GLib;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
-"const Webkit = imports.gi.WebKit;\n"
+"const Webkit = imports.gi.WebKit2;\n"
"\n"
-"const HelloGNOME = new Lang.Class ({\n"
-" Name: 'Hello GNOME',\n"
+"class HelloGNOME {\n"
"\n"
" // Create the application itself\n"
-" _init: function () {\n"
+" constructor() {\n"
" this.application = new Gtk.Application ();\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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function () {\n"
-" this._window.present ();\n"
-" },\n"
+" _onActivate() {\n"
+" this._window.present();\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function () {\n"
-" this._buildUI ();\n"
-" },\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function () {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow ({\n"
@@ -14190,9 +16510,9 @@ msgid ""
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
+" }\n"
"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new HelloGNOME ();\n"
@@ -14258,185 +16578,50 @@ msgstr ""
"let app = new HelloGNOME ();\n"
"app.application.run (ARGV);\n"
-#. (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/hello-world.c.page:27 C/hello-world.js.page:27 C/hello-world.py.page:27
-#: C/hello-world.vala.page:27
-msgctxt "_"
-msgid ""
-"external ref='media/hello-world.png' md5='4c88a27211dfd1b33e504c9f78602f2d'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/hello-world.c.page:8
-msgctxt "text"
+#: C/hello-world.c.page:10
+#, fuzzy
+msgctxt "link"
msgid "Hello World (C)"
+msgstr "Olá, mundo!"
+
+#. (itstool) path: credit/name
+#: C/hello-world.c.page:24
+msgid "Bastian Ilsø"
msgstr ""
#. (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"
+#: C/hello-world.c.page:28
+msgid "Creating a small \"Hello, World\" application using GTK+."
msgstr ""
#. (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 ""
-
-#. (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 ""
-
-#. (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 ""
-
-#. (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 ""
-
-#. (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 ""
-
-#. (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
-msgid "Create the program"
-msgstr ""
-
-#. (itstool) path: section/code
-#: C/hello-world.c.page:44
-#, no-wrap
-msgid "#include <gtk/gtk.h>\n"
-msgstr ""
+#: C/hello-world.c.page:31
+#, fuzzy
+msgid "Hello world"
+msgstr "Olá mundo!"
-#. (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 ""
-
-#. (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
+#. (itstool) path: note/p
+#: C/hello-world.c.page:34
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."
+"For a detailed walk-through of creating a GTK+ dialog in C, see <link href="
+"\"https://developer.gnome.org/gtk3/stable/gtk-getting-started.html\">Getting "
+"Started with GTK+</link>"
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
-msgid "Label for the window"
-msgstr ""
-
-#. (itstool) path: section/code
-#: C/hello-world.c.page:69
-#, no-wrap
+#. (itstool) path: page/p
+#: C/hello-world.c.page:38
msgid ""
-"GtkWidget *label;\n"
-"\n"
-" label = gtk_label_new (\"Hello World!\");\n"
-" gtk_container_add (GTK_CONTAINER (window), label);\n"
+"Writing a hello world GTK+ dialog in C can be done as seen in the code "
+"sample below:"
msgstr ""
-#. (itstool) path: section/p
-#: C/hello-world.c.page:75 C/hello-world.vala.page:64
-msgid "Finally, we create and run the application:"
-msgstr ""
-
-#. (itstool) path: section/code
-#: C/hello-world.c.page:77
+#. (itstool) path: page/code
+#: C/hello-world.c.page:39
#, 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 ""
-
-#. (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 ""
-
-#. (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"
+" #include <gtk/gtk.h>\n"
"\n"
"static void\n"
"activate (GtkApplication* app,\n"
@@ -14467,388 +16652,106 @@ msgid ""
"\n"
" return status;\n"
"}\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 ""
-
-#. (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 ""
-
-#. (itstool) path: section/p
-#: C/hello-world.c.page:105 C/hello-world.vala.page:83
-msgid "Run the program:"
-msgstr ""
-
-#. (itstool) path: section/screen
-#: C/hello-world.c.page:106 C/hello-world.vala.page:84
-#, no-wrap
-msgid "./<var>hello-world</var>"
-msgstr ""
-
-#. (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 ""
-
-#. (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 ""
-
-#. (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 ""
-
-#. (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 ""
-
-#. (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 ""
-
-#. (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
+#. (itstool) path: page/p
+#: C/hello-world.c.page:43
msgid ""
-"Specifies whether the command in the Exec key runs in a terminal window."
+"GtkApplication initializes GTK+. It also connects the <gui>x</gui> button "
+"that's automatically generated along with the window to the \"destroy\" "
+"signal. 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. 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. The "
+"code above will create a dialog window similar to what can be seen below:"
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
+#. (itstool) path: page/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/hello-world.c.page:51 C/hello-world.js.page:28 C/hello-world.py.page:28
+#: C/hello-world.vala.page:28
+msgctxt "_"
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>."
+"external ref='media/hello-world.png' md5='4c88a27211dfd1b33e504c9f78602f2d'"
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: info/title
+#: C/hello-world.js.page:9
+#, fuzzy
+msgctxt "text"
+msgid "Hello World (JavaScript)"
+msgstr "Hello World (JavaScript)"
-#. (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: info/desc
+#: C/hello-world.js.page:24 C/hello-world.py.page:24 C/hello-world.vala.page:24
+#, fuzzy
+msgid "A basic \"hello, world\" application"
+msgstr "Olá mundo em <application>gtkmm</application>"
-#. (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
+#. (itstool) path: page/title
+#: C/hello-world.js.page:27 C/hello-world.py.page:27 C/hello-world.vala.page:27
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."
+"How to build, install and create a <file>tar.xz</file> of a Hello World "
+"program"
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: synopsis/p
+#: C/hello-world.js.page:30 C/hello-world.py.page:30 C/hello-world.vala.page:30
+#, fuzzy
+msgid "This tutorial will demonstrate how to:"
+msgstr "Tutorial: como desenhar linhas retas"
-#. (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 ""
-
-#. (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>"
+#: C/hello-world.js.page:32
+msgid "create a small \"Hello, World\" application using JavaScript and GTK+"
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 ""
-
-#. (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 ""
+#: C/hello-world.js.page:33 C/hello-world.py.page:33 C/hello-world.vala.page:33
+#, fuzzy
+msgid "make the <file>.desktop</file> file"
+msgstr "Seu diretório de <file>Área de trabalho</file>"
-#. (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 ""
-
-#. (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 ""
+#: C/hello-world.js.page:34 C/hello-world.py.page:34 C/hello-world.vala.page:34
+#, fuzzy
+msgid "how to set up the build system"
+msgstr "Configurando seu sistema de compilação"
#. (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 ""
-
-#. (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 ""
-
-#. (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 ""
+#: C/hello-world.js.page:42 C/hello-world.py.page:42 C/hello-world.vala.page:40
+#, fuzzy
+msgid "Create the program"
+msgstr "Cria a aba de um novo programa"
#. (itstool) path: section/p
-#: C/hello-world.js.page:46
+#: C/hello-world.js.page:47
+#, fuzzy
msgid "This needs to be the first line of your script:"
-msgstr ""
+msgstr "Seu primeiro Script de Script-Fu"
#. (itstool) path: section/code
-#: C/hello-world.js.page:47
-#, no-wrap
+#: C/hello-world.js.page:48
+#, fuzzy, no-wrap
msgid "#!/usr/bin/gjs"
msgstr ""
+"\n"
+"#!/usr/bin/gjs\n"
#. (itstool) path: section/p
-#: C/hello-world.js.page:48
+#: C/hello-world.js.page:49
msgid ""
"It tells the script to use <link href=\"https://live.gnome.org/Gjs/\">Gjs</"
"link>. Gjs is a JavaScript binding for GNOME."
msgstr ""
#. (itstool) path: section/code
-#: C/hello-world.js.page:53
+#: C/hello-world.js.page:54
#, no-wrap
msgid ""
"const Lang = imports.lang;\n"
@@ -14856,7 +16759,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/hello-world.js.page:55 C/hello-world.py.page:48
+#: C/hello-world.js.page:56 C/hello-world.py.page:49
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 "
@@ -14865,7 +16768,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/hello-world.js.page:59
+#: C/hello-world.js.page:60
#, no-wrap
msgid ""
"const Application = new Lang.Class({\n"
@@ -14903,20 +16806,41 @@ msgstr ""
#. (itstool) path: section/p
#: C/hello-world.js.page:92
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.js.page:93
+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.js.page:93 C/hello-world.py.page:72
+#: C/hello-world.js.page:94 C/hello-world.py.page:73
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 ""
+#. (itstool) path: section/p
+#: C/hello-world.js.page:95 C/hello-world.py.page:74 C/hello-world.vala.page:57
+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.js.page:98 C/hello-world.py.page:77 C/hello-world.vala.page:60
+#, fuzzy
+msgid "Label for the window"
+msgstr " rótulo: ~a~%"
+
#. (itstool) path: section/code
-#: C/hello-world.js.page:98
+#: C/hello-world.js.page:99
#, no-wrap
msgid ""
"// Add a label widget to your window\n"
@@ -14926,7 +16850,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/hello-world.js.page:103
+#: C/hello-world.js.page:104
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, "
@@ -14936,17 +16860,21 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/hello-world.js.page:105
-#, no-wrap
+#: C/hello-world.js.page:106
+#, fuzzy, no-wrap
msgid ""
"//run the application\n"
"let app = new Application();\n"
"app.application.run(ARGV);"
msgstr ""
+"\n"
+"// Executa o aplicativo\n"
+"let app = new HelloGNOME ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: section/p
-#: C/hello-world.js.page:109 C/hello-world.py.page:96
-#: C/hello-world.vala.page:70
+#: C/hello-world.js.page:110 C/hello-world.py.page:97
+#: C/hello-world.vala.page:71
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 "
@@ -14954,86 +16882,417 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/hello-world.js.page:113
+#: C/hello-world.js.page:114
+#, fuzzy
msgid "hello-world.js"
+msgstr "Olá,"
+
+#. (itstool) path: section/p
+#: C/hello-world.js.page:115 C/hello-world.py.page:102
+#: C/hello-world.vala.page:76
+#, fuzzy
+msgid "The complete file:"
msgstr ""
+"Avalia expressão condicional.\n"
+" \n"
+" Sai com um status de 0 (verdadeiro) ou 1 (falso) dependendo da "
+"avaliação\n"
+" de EXPR. As expressões podem ser unárias ou binárias. Expressões "
+"unárias\n"
+" são normalmente usadas para examinar o status de um arquivo. Há\n"
+" operadores de strings e também há operadores de comparação numérica.\n"
+" \n"
+" O comportamento do teste depende do número de argumentos. Leia a página\n"
+" de manual do `bash' para a especificação completa.\n"
+" \n"
+" Operadores de arquivos:\n"
+" \n"
+" -a ARQUIVO Verdadeiro, se arquivo existir.\n"
+" -b ARQUIVO Verdadeiro, se arquivo for um bloco especial.\n"
+" -c ARQUIVO Verdadeiro, se arquivo for um caractere especial.\n"
+" -d ARQUIVO Verdadeiro, se arquivo for um diretório.\n"
+" -e ARQUIVO Verdadeiro, se arquivo existir.\n"
+" -f ARQUIVO Verdadeiro, se arquivo existir e for um arquivo "
+"normal.\n"
+" -g ARQUIVO Verdadeiro, se arquivo for set-group-id.\n"
+" -h ARQUIVO Verdadeiro, se arquivo for um link simbólico.\n"
+" -L ARQUIVO Verdadeiro, se arquivo for um link simbólico.\n"
+" -k ARQUIVO Verdadeiro, se arquivo tiver o bit `sticky' definido.\n"
+" -p ARQUIVO Verdadeiro, se arquivo for um `pipe' dado.\n"
+" -r ARQUIVO Verdadeiro, se arquivo for um legível por você.\n"
+" -s ARQUIVO Verdadeiro, se arquivo existir e não estiver vazio.\n"
+" -S ARQUIVO Verdadeiro, se arquivo for um socket.\n"
+" -t FD Verdadeiro, se FD estiver aberto em um terminal.\n"
+" -u ARQUIVO Verdadeiro, se arquivo estiver com set-user-id.\n"
+" -w ARQUIVO Verdadeiro, se arquivo puder ser escrito por você.\n"
+" -x ARQUIVO Verdadeiro, se arquivo puder ser executado por você.\n"
+" -O ARQUIVO Verdadeiro, se arquivo efetivamente for seu (owned).\n"
+" -G ARQUIVO Verdadeiro, se arquivo efetivamente for do seu grupo.\n"
+" -N ARQUIVO Verdadeiro, se arquivo foi modificado desde a última\n"
+" leitura.\n"
+" \n"
+" ARQ1 -nt ARQ2 Verdadeiro se ARQ1 for mais novo que ARQ2, conforme\n"
+" última data de modificação.\n"
+" \n"
+" ARQ1 -ot ARQ2 Verdadeiro, se ARQ1 for mais velho que ARQ2.\n"
+" \n"
+" ARQ1 -ef ARQ2 Verdadeiro, se ARQ1 for um link rígido para ARQ2.\n"
+" \n"
+" Operadores de string:\n"
+" \n"
+" -z STRING Verdadeiro, se string estiver vazia.\n"
+" \n"
+" -n STRING\n"
+" STRING Verdadeiro, se string não estiver vazia.\n"
+" \n"
+" STRING1 = STRING2\n"
+" Verdadeiro, se strings forem iguais.\n"
+" STRING1 != STRING2\n"
+" Verdadeiro, se strings não forem iguais.\n"
+" STRING1 < STRING2\n"
+" Verdadeiro, se STRING1 estiver antes de STRING2, de\n"
+" acordo com a ordem alfabética.\n"
+" STRING1 > STRING2\n"
+" Verdadeiro, se STRING1 estiver depois de STRING2, de\n"
+" acordo com a ordem alfabética.\n"
+" \n"
+" Outros operadores:\n"
+" \n"
+" -o OPÇÃO Verdadeiro, se a opção shell OPÇÃO estiver habilitada.\n"
+" -v VAR Verdadeiro, se a variável shell VAR estiver definida.\n"
+" -R VAR Verdadeiro, se a variável shell VAR estiver definida\n"
+" e for uma referência de nome.\n"
+" ! EXPR Verdadeiro, se a expressão EXPR for falsa.\n"
+" EXPR1 -a EXPR2 Verdadeiro, se ambas EXPR1 e EXPR2 forem verdadeiras.\n"
+" EXPR1 -o EXPR2 Verdadeiro, se ao menos uma das expressões for "
+"verdadeira.\n"
+" \n"
+" arg1 OP arg2 Testes aritméticos. OP é um dentre -eq, -ne, -lt, -"
+"le,\n"
+" -gt, or -ge.\n"
+" \n"
+" Operadores binários de aritmética retornam verdadeiro se ARG1 for "
+"igual,\n"
+" não-igual, menor-que, menor-ou-igual-a ou maior-ou-igual-a ARG2.\n"
+" \n"
+" Status de saída:\n"
+" Retorna sucesso, se EXPR for avaliada como verdadeira; falha, se EXPR "
+"for\n"
+" avaliada como falsa ou um argumento inválido for informado."
#. (itstool) path: section/code
-#: C/hello-world.js.page:115
+#: C/hello-world.js.page:116
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
"\n"
-"const Lang = imports.lang;\n"
+"imports.gi.versions.Gtk = '3.0'\n"
"const Gtk = imports.gi.Gtk;\n"
"\n"
-"const Application = new Lang.Class({\n"
-" //A Class requires an explicit Name parameter. This is the Class Name.\n"
-" Name: 'Application',\n"
+"class Application {\n"
"\n"
" //create the application\n"
-" _init: function() {\n"
+" constructor() {\n"
" this.application = new Gtk.Application();\n"
"\n"
" //connect to 'activate' and 'startup' signals to handlers.\n"
-" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-" },\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" //create the UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
" this._window = new Gtk.ApplicationWindow({ application: this.application,\n"
" title: \"Hello World!\" });\n"
" this._window.set_default_size(200, 200);\n"
" this.label = new Gtk.Label({ label: \"Hello World\" });\n"
" this._window.add(this.label);\n"
-" },\n"
+" }\n"
"\n"
" //handler for 'activate' signal\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" //show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
+" }\n"
"\n"
" //handler for 'startup' signal\n"
-" _onStartup: function() {\n"
+" _onStartup() {\n"
" this._buildUI();\n"
" }\n"
-"});\n"
+"};\n"
"\n"
"//run the application\n"
"let app = new Application();\n"
"app.application.run(ARGV);\n"
msgstr ""
+#. (itstool) path: section/title
+#: C/hello-world.js.page:119 C/hello-world.py.page:106
+#: C/hello-world.vala.page:80
+#, fuzzy
+msgid "Running the application from terminal"
+msgstr "Aplicativo no terminal"
+
#. (itstool) path: section/p
-#: C/hello-world.js.page:119
+#: C/hello-world.js.page:120
msgid ""
"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 ""
#. (itstool) path: section/screen
-#: C/hello-world.js.page:120
+#: C/hello-world.js.page:121
#, no-wrap
msgid "<output style=\"prompt\">$ </output><input>gjs hello-world.js</input>"
msgstr ""
+#. (itstool) path: section/title
+#: C/hello-world.js.page:127 C/hello-world.py.page:112
+#: C/hello-world.vala.page:89
+msgid "The <file>.desktop.in</file> file"
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/hello-world.js.page:128 C/hello-world.py.page:113
+#: C/hello-world.vala.page:90
+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: note/p
-#: C/hello-world.js.page:130
+#: C/hello-world.js.page:131
msgid ""
"Before continuing, resave <file>hello-world.js</file> as <file>hello-world</"
"file>. Then run this in the command line:"
msgstr ""
#. (itstool) path: note/screen
-#: C/hello-world.js.page:131
+#: C/hello-world.js.page:132
#, no-wrap
msgid "<output style=\"prompt\">$ </output><input>chmod +x hello-world</input>"
msgstr ""
+#. (itstool) path: section/p
+#: C/hello-world.js.page:135 C/hello-world.py.page:115
+#: C/hello-world.vala.page:92
+msgid ""
+"The example shows you the minimum requirements for a <code>.desktop.in</"
+"code> file."
+msgstr ""
+
#. (itstool) path: section/code
-#: C/hello-world.js.page:163
+#: C/hello-world.js.page:136 C/hello-world.py.page:116
+#: C/hello-world.vala.page:93
+#, 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.js.page:138 C/hello-world.py.page:118
+#: C/hello-world.vala.page:95
+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.js.page:140 C/hello-world.py.page:120
+#: C/hello-world.vala.page:97 C/toolbar_builder.py.page:95
+#: C/toolbar_builder.vala.page:78
+#, fuzzy
+msgid "Name"
+msgstr "nome"
+
+#. (itstool) path: item/p
+#: C/hello-world.js.page:140 C/hello-world.py.page:120
+#: C/hello-world.vala.page:97
+#, fuzzy
+msgid "The application name."
+msgstr "nome do aplicativo"
+
+#. (itstool) path: item/title
+#: C/hello-world.js.page:141 C/hello-world.py.page:121
+#: C/hello-world.vala.page:98
+#, fuzzy
+msgid "Comment"
+msgstr "Comentário"
+
+#. (itstool) path: item/p
+#: C/hello-world.js.page:141 C/hello-world.py.page:121
+#: C/hello-world.vala.page:98
+#, fuzzy
+msgid "A short description of the application."
+msgstr ""
+"\n"
+"/**\n"
+" * SECTION:meepapp\n"
+" * @short_description: A classe do aplicativo\n"
+" * @title: Aplicativo Meep\n"
+" * @section_id:\n"
+" * @see_also: #MeepSettings\n"
+" * @stability: Estável\n"
+" * @include: meep/app.h\n"
+" * @image: aplicativo.png\n"
+" *\n"
+" * A classe do aplicativo cuida de ...\n"
+" */\n"
+
+#. (itstool) path: item/title
+#: C/hello-world.js.page:142 C/hello-world.py.page:122
+#: C/hello-world.vala.page:99
+msgid "Exec"
+msgstr "Exec"
+
+#. (itstool) path: item/p
+#: C/hello-world.js.page:142 C/hello-world.py.page:122
+#: C/hello-world.vala.page:99
+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.js.page:143 C/hello-world.py.page:123
+#: C/hello-world.vala.page:100
+#, fuzzy
+msgid "Terminal"
+msgstr "Terminal"
+
+#. (itstool) path: item/p
+#: C/hello-world.js.page:143 C/hello-world.py.page:123
+#: C/hello-world.vala.page:100
+msgid ""
+"Specifies whether the command in the Exec key runs in a terminal window."
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/hello-world.js.page:146 C/hello-world.py.page:126
+#: C/hello-world.vala.page:103
+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.js.page:147 C/hello-world.py.page:127
+#: C/hello-world.vala.page:104
+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.js.page:150 C/hello-world.py.page:130
+#: C/hello-world.vala.page:107
+#, fuzzy
+msgid "The build system"
+msgstr "Sistema de compilação"
+
+#. (itstool) path: section/p
+#: C/hello-world.js.page:151 C/hello-world.py.page:131
+#: C/hello-world.vala.page:108
+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.js.page:152 C/hello-world.py.page:132
+#: C/hello-world.vala.page:109
+#, fuzzy
+msgid "For this you need to have the following files:"
+msgstr "Você precisará das seguintes informações:"
+
+#. (itstool) path: section/title
+#. (itstool) path: item/p
+#. (itstool) path: section/p
+#: C/hello-world.js.page:155 C/hello-world.py.page:135
+#: C/hello-world.vala.page:112 C/weatherAutotools.js.page:40
+#: C/weatherAutotools.js.page:138
+#, fuzzy
+msgid "autogen.sh"
+msgstr ""
+"\n"
+"./autogen.sh --enable-gtk-doc\n"
+"make\n"
+
+#. (itstool) path: section/code
+#: C/hello-world.js.page:156 C/hello-world.py.page:136
+#: C/hello-world.vala.page:113
+#, 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.js.page:158 C/hello-world.py.page:138
+#: C/hello-world.vala.page:115
+msgid "After the <file>autogen.sh</file> file is ready and saved, run:"
+msgstr ""
+
+#. (itstool) path: section/screen
+#: C/hello-world.js.page:159 C/hello-world.py.page:139
+#: C/hello-world.vala.page:116
+#, 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.js.page:163 C/hello-world.py.page:143
+#: C/hello-world.vala.page:120 C/weatherAutotools.js.page:38
+#: C/weatherAutotools.js.page:64
+#, fuzzy
+msgid "Makefile.am"
+msgstr "Arquivos Makefile.am"
+
+#. (itstool) path: section/code
+#: C/hello-world.js.page:164
#, no-wrap
msgid ""
"# The actual runnable program is set to the SCRIPTS primitive.\n"
@@ -15049,8 +17308,18 @@ msgid ""
"\thello-world.desktop\n"
msgstr ""
-#. (itstool) path: section/code
+#. (itstool) path: section/title
+#. (itstool) path: item/p
+#. (itstool) path: section/p
#: C/hello-world.js.page:168 C/hello-world.py.page:148
+#: C/hello-world.vala.page:125 C/weatherAutotools.js.page:39
+#: C/weatherAutotools.js.page:131
+#, fuzzy
+msgid "configure.ac"
+msgstr "configure.ac"
+
+#. (itstool) path: section/code
+#: C/hello-world.js.page:169 C/hello-world.py.page:149
#, no-wrap
msgid ""
"# This file is processed by autoconf to create a configure script\n"
@@ -15060,8 +17329,21 @@ msgid ""
"AC_OUTPUT\n"
msgstr ""
+#. (itstool) path: section/title
+#: C/hello-world.js.page:173 C/hello-world.py.page:153
+#: C/hello-world.vala.page:130
+#, fuzzy
+msgid "README"
+msgstr "Documento README"
+
#. (itstool) path: section/p
-#: C/hello-world.js.page:175 C/hello-world.py.page:155
+#: C/hello-world.js.page:174 C/hello-world.py.page:154
+#: C/hello-world.vala.page:131
+msgid "Information users should read first. This file can be blank."
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/hello-world.js.page:176 C/hello-world.py.page:156
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."
@@ -15070,7 +17352,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/hello-world.js.page:176 C/hello-world.py.page:156
+#: C/hello-world.js.page:177 C/hello-world.py.page:157
#, no-wrap
msgid ""
"To build and install this program:\n"
@@ -15111,18 +17393,19 @@ msgid ""
msgstr ""
#. (itstool) path: info/title
-#: C/hello-world.py.page:8
+#: C/hello-world.py.page:9
+#, fuzzy
msgctxt "text"
msgid "Hello World (Python)"
-msgstr ""
+msgstr "Olá, mundo!"
#. (itstool) path: item/p
-#: C/hello-world.py.page:31
+#: C/hello-world.py.page:32
msgid "create a small \"Hello, World\" application using Python and GTK+"
msgstr ""
#. (itstool) path: section/code
-#: C/hello-world.py.page:46
+#: C/hello-world.py.page:47
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -15130,7 +17413,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/hello-world.py.page:52
+#: C/hello-world.py.page:53
#, no-wrap
msgid ""
"class MyWindow(Gtk.ApplicationWindow):\n"
@@ -15153,7 +17436,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/hello-world.py.page:70 C/hello-world.vala.page:53
+#: C/hello-world.py.page:71 C/hello-world.vala.page:54
msgid ""
"Gtk.Application initializes GTK+. It also connects the <gui>x</gui> button "
"that's automatically generated along with the window to the \"destroy\" "
@@ -15161,14 +17444,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/hello-world.py.page:71
+#: C/hello-world.py.page:72
msgid ""
"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 ""
#. (itstool) path: section/code
-#: C/hello-world.py.page:77
+#: C/hello-world.py.page:78
#, no-wrap
msgid ""
"# Add a label widget to your window\n"
@@ -15184,7 +17467,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/hello-world.py.page:88
+#: C/hello-world.py.page:89
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 "
@@ -15193,7 +17476,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/hello-world.py.page:90
+#: C/hello-world.py.page:91
#, no-wrap
msgid ""
"#run the application\n"
@@ -15204,19 +17487,22 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/hello-world.py.page:100
+#: C/hello-world.py.page:101
+#, fuzzy
msgid "hello-world.py"
-msgstr ""
+msgstr "Olá,"
#. (itstool) path: section/code
-#: C/hello-world.py.page:102 C/label.py.page:37
+#: C/hello-world.py.page:103 C/label.py.page:39
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
"\n"
+"\n"
"class MyWindow(Gtk.ApplicationWindow):\n"
" # constructor for a 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, 100)\n"
@@ -15228,7 +17514,9 @@ msgid ""
" # 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"
@@ -15245,20 +17533,20 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/hello-world.py.page:106
+#: C/hello-world.py.page:107
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 ""
#. (itstool) path: section/screen
-#: C/hello-world.py.page:107
+#: C/hello-world.py.page:108
#, no-wrap
msgid "<output style=\"prompt\">$ </output><input>python hello-world.py</input>"
msgstr ""
#. (itstool) path: section/code
-#: C/hello-world.py.page:143
+#: C/hello-world.py.page:144
#, no-wrap
msgid ""
"# The actual runnable program is set to the SCRIPTS primitive.\n"
@@ -15275,13 +17563,19 @@ msgid ""
msgstr ""
#. (itstool) path: info/title
-#: C/hello-world.vala.page:8
+#: C/hello-world.vala.page:9
+#, fuzzy
msgctxt "text"
msgid "Hello World (Vala)"
+msgstr "Olá, mundo!"
+
+#. (itstool) path: item/p
+#: C/hello-world.vala.page:32
+msgid "create a small \"Hello, World\" application using GTK+"
msgstr ""
#. (itstool) path: section/code
-#: C/hello-world.vala.page:44
+#: C/hello-world.vala.page:45
#, no-wrap
msgid ""
"class MyApplication : Gtk.Application {\n"
@@ -15295,14 +17589,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/hello-world.vala.page:54
+#: C/hello-world.vala.page:55
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
+#: C/hello-world.vala.page:56
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 "
@@ -15310,15 +17604,21 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/hello-world.vala.page:60
+#: C/hello-world.vala.page:61
#, no-wrap
msgid ""
"var label = new Gtk.Label (\"Hello GNOME!\");\n"
" window.add (label);\n"
msgstr ""
+#. (itstool) path: section/p
+#: C/hello-world.vala.page:65
+#, fuzzy
+msgid "Finally, we create and run the application:"
+msgstr "Nós vamos criar o aplicativo em si:"
+
#. (itstool) path: section/code
-#: C/hello-world.vala.page:66
+#: C/hello-world.vala.page:67
#, no-wrap
msgid ""
"int main (string[] args) {\n"
@@ -15327,12 +17627,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/hello-world.vala.page:74
+#: C/hello-world.vala.page:75
+#, fuzzy
msgid "hello-world.vala"
-msgstr ""
+msgstr "<a href=\"/software/hello/\">Hello</a>"
#. (itstool) path: section/code
-#: C/hello-world.vala.page:76
+#: C/hello-world.vala.page:77
#, no-wrap
msgid ""
"public class MyApplication : Gtk.Application {\n"
@@ -15352,20 +17653,44 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/hello-world.vala.page:80
+#: C/hello-world.vala.page:81
msgid ""
"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
+#. (itstool) path: section/p
#: C/hello-world.vala.page:82
+#, fuzzy
+msgid "Compile the program:"
+msgstr ""
+"Quando você usa o GCC para compilar um programa, o GCC pode combinar porções "
+"de certos arquivos de cabeçalho GCC e bibliotecas de tempo de execução com o "
+"programa compilado. O objetivo desta Exceção é permitir a compilação de "
+"programas que estejam cobertos pela GPL (incluindo proprietários) para usar, "
+"desta forma, os arquivos de cabeçalho e as bibliotecas de tempo de execução "
+"cobertas por esta Exceção."
+
+#. (itstool) path: section/screen
+#: C/hello-world.vala.page:83
#, no-wrap
msgid "valac --pkg gtk+-3.0 <file>hello-world.vala</file>"
msgstr ""
+#. (itstool) path: section/p
+#: C/hello-world.vala.page:84
+#, fuzzy
+msgid "Run the program:"
+msgstr "Executa um programa"
+
+#. (itstool) path: section/screen
+#: C/hello-world.vala.page:85
+#, fuzzy, no-wrap
+msgid "./<var>hello-world</var>"
+msgstr "olá, mundo"
+
#. (itstool) path: section/code
-#: C/hello-world.vala.page:120
+#: C/hello-world.vala.page:121
#, no-wrap
msgid ""
"# The actual runnable program is set to the SCRIPTS primitive.\n"
@@ -15382,7 +17707,31 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
+#: C/hello-world.vala.page:126
+#, 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/p
#: C/hello-world.vala.page:133
+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.vala.page:134
#, no-wrap
msgid ""
"To build and install this program:\n"
@@ -15430,43 +17779,42 @@ msgid ""
"This will create hello-world-1.0.tar.xz\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/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 ""
-
#. (itstool) path: info/title
-#: C/image.c.page:7
+#: C/image.c.page:8
+#, fuzzy
msgctxt "text"
msgid "Image (C)"
-msgstr ""
+msgstr "Escol_her imagem"
#. (itstool) path: info/desc
-#: C/image.c.page:17 C/image.js.page:16 C/image.py.page:19
-#: C/image.vala.page:17
+#: C/image.c.page:18 C/image.js.page:17 C/image.py.page:25 C/image.vala.page:18
+#, fuzzy
msgid "A widget displaying an image"
-msgstr ""
+msgstr "Widget:"
#. (itstool) path: page/title
-#: C/image.c.page:20 C/image.js.page:19 C/image.py.page:22
-#: C/image.vala.page:20
+#: C/image.c.page:21 C/image.js.page:20 C/image.py.page:28 C/image.vala.page:21
+#, fuzzy
msgid "Image"
-msgstr ""
+msgstr "@image"
+
+#. (itstool) path: page/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/image.c.page:22 C/image.js.page:21 C/image.py.page:29 C/image.vala.page:22
+msgctxt "_"
+msgid "external ref='media/image.png' md5='9416aa74d9d6a857783f7a36338e7a02'"
+msgstr "external ref='media/image.png' md5='9416aa74d9d6a857783f7a36338e7a02'"
#. (itstool) path: page/p
-#: C/image.c.page:22 C/image.js.page:21 C/image.py.page:24
-#: C/image.vala.page:22
+#: C/image.c.page:23 C/image.js.page:22 C/image.py.page:30 C/image.vala.page:23
msgid "This GtkApplication displays an image file from the current directory."
msgstr ""
#. (itstool) path: note/p
-#: C/image.c.page:23 C/image.js.page:22 C/image.vala.page:23
+#: C/image.c.page:24 C/image.js.page:23 C/image.vala.page:24
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 "
@@ -15474,7 +17822,7 @@ msgid ""
msgstr ""
#. (itstool) path: page/code
-#: C/image.c.page:27
+#: C/image.c.page:28
#, no-wrap
msgid ""
"#include <gtk/gtk.h>\n"
@@ -15517,114 +17865,249 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image.c.page:34
+#: C/image.c.page:35
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkImage.html"
"\">GtkImage</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkImage.html"
+"\">GtkImage</link>"
#. (itstool) path: info/title
-#: C/image.js.page:6
+#: C/image.js.page:7
+#, fuzzy
msgctxt "text"
msgid "Image (JavaScript)"
-msgstr ""
+msgstr "_JavaScript"
#. (itstool) path: page/code
-#: C/image.js.page:26
-#, no-wrap
+#: C/image.js.page:27
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const GLib = imports.gi.GLib;\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "const Webkit = imports.gi.WebKit;\n"
+#| "\n"
+#| "const HelloGNOME = new Lang.Class ({\n"
+#| " Name: 'Hello GNOME',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function () {\n"
+#| " this.application = new Gtk.Application ();\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 ({\n"
+#| " application: this.application,\n"
+#| " title: \"Welcome to GNOME\",\n"
+#| " default_height: 200,\n"
+#| " default_width: 400,\n"
+#| " window_position: Gtk.WindowPosition.CENTER });\n"
+#| "\n"
+#| " // Create a webview to show the web app\n"
+#| " this._webView = new Webkit.WebView ();\n"
+#| "\n"
+#| " // Put the web app into the webview\n"
+#| " this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+#| " \"/hellognome.html\", null));\n"
+#| "\n"
+#| " // Put the webview into the window\n"
+#| " this._window.add (this._webView);\n"
+#| "\n"
+#| " // Show the window and all child widgets\n"
+#| " this._window.show_all();\n"
+#| " },\n"
+#| "\n"
+#| "});\n"
+#| "\n"
+#| "// Run the application\n"
+#| "let app = new HelloGNOME ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const Gio = imports.gi.Gio;\n"
"const GLib = imports.gi.GLib;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const ImageExample = new Lang.Class ({\n"
-"\tName: 'Image Example',\n"
+"class ImageExample {\n"
"\n"
-"\t/* Create the application itself\n"
-"\t This boilerplate code is needed to build any GTK+ application. */\n"
-" _init: function () {\n"
-" \t this.application = new Gtk.Application ({\n"
-" \t application_id: 'org.example.jsimage',\n"
-" \t flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-" \t });\n"
+" /* Create the application itself\n"
+" This boilerplate code is needed to build any GTK+ application. */\n"
+" constructor() {\n"
+" this.application = new Gtk.Application ({\n"
+" application_id: 'org.example.jsimage',\n"
+" flags: Gio.ApplicationFlags.FLAGS_NONE\n"
+" });\n"
"\n"
-"\t// Connect 'activate' and 'startup' signals to the callback functions\n"
-"\tthis.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-"\tthis.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-"\t},\n"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
-"\t// Callback function for 'activate' signal presents windows when active\n"
-"\t_onActivate: function () {\n"
-"\t\tthis._window.present ();\n"
-"\t},\n"
+" // Callback function for 'activate' signal presents windows when active\n"
+" _onActivate() {\n"
+" this._window.present();\n"
+" }\n"
"\n"
-"\t// Callback function for 'startup' signal initializes menus and builds the UI\n"
-"\t_onStartup: function () {\n"
-"\t\tthis._buildUI ();\n"
-"\t},\n"
+" // Callback function for 'startup' signal initializes menus and builds the UI\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
+" // Build the application's UI\n"
+" _buildUI() {\n"
"\n"
+" // Create the application window\n"
+" this._window = new Gtk.ApplicationWindow({\n"
+" application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" title: \"Welcome to GNOME\",\n"
+" default_height: 300,\n"
+" default_width: 300\n"
+" });\n"
"\n"
+" // Create the label\n"
+" this.jsimage = new Gtk.Image ({file: \"gnome-image.png\"});\n"
+" this._window.add (this.jsimage);\n"
"\n"
-"\t// Build the application's UI\n"
-"\t_buildUI: function () {\n"
+" // Show the window and all child widgets\n"
+" this._window.show_all();\n"
+" }\n"
+"};\n"
"\n"
-"\t\t// Create the application window\n"
-" \tthis._window = new Gtk.ApplicationWindow ({ application: this.application,\n"
-" \t window_position: Gtk.WindowPosition.CENTER,\n"
-" \t title: \"Welcome to GNOME\",\n"
-" \t default_height: 300,\n"
-" \t default_width: 300 });\n"
+"// Run the application\n"
+"let app = new ImageExample ();\n"
+"app.application.run (ARGV);\n"
+msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const GLib = imports.gi.GLib;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"const Webkit = imports.gi.WebKit;\n"
"\n"
-"\t\t// Create the label\n"
-"\t\tthis.jsimage = new Gtk.Image ({file: \"gnome-image.png\"});\n"
-"\t\tthis._window.add (this.jsimage);\n"
+"const HelloGNOME = new Lang.Class ({\n"
+" Name: 'Olá, GNOME',\n"
"\n"
-" \t \t// Show the window and all child widgets\n"
-" \t \tthis._window.show_all();\n"
-"\t}\n"
+" // Cria o aplicativo em si\n"
+" _init: function () {\n"
+" this.application = new Gtk.Application ();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativa\n"
+" _onActivate: function () {\n"
+" this._window.present ();\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup: function () {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function () {\n"
"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow ({\n"
+" application: this.application,\n"
+" title: \"Bem-vindo ao GNOME\",\n"
+" default_height: 200,\n"
+" default_width: 400,\n"
+" window_position: Gtk.WindowPosition.CENTER });\n"
+"\n"
+" // Cria um webview para mostrar o aplicativo web\n"
+" this._webView = new Webkit.WebView ();\n"
+"\n"
+" // Coloca o aplicativo web no webview\n"
+" this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+" \"/hellognome.html\", null));\n"
+"\n"
+" // Coloca o webview na janela\n"
+" this._window.add (this._webView);\n"
+"\n"
+" // Mostra a janela e todos seus widgets filhos\n"
+" this._window.show_all();\n"
+" },\n"
"\n"
"});\n"
"\n"
-"// Run the application\n"
-"let app = new ImageExample ();\n"
+"// Executa o aplicativo\n"
+"let app = new HelloGNOME ();\n"
"app.application.run (ARGV);\n"
-msgstr ""
#. (itstool) path: item/p
-#: C/image.js.page:33
+#: C/image.js.page:34
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Image.html"
"\">Gtk.Image</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/image.py.page:7
+#: C/image.py.page:8
+#, fuzzy
msgctxt "text"
msgid "Image (Python)"
-msgstr ""
+msgstr "_Python"
+
+#. (itstool) path: credit/name
+#: C/image.py.page:20
+#, fuzzy
+msgid "Sindhu S"
+msgstr "Sindhu S"
+
+#. (itstool) path: credit/years
+#: C/image.py.page:22
+#, fuzzy
+msgid "2014"
+msgstr "2014"
#. (itstool) path: note/p
-#: C/image.py.page:26
+#: C/image.py.page:32
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."
+"\"broken image\" icon. <file>filename.png</file> needs to be in the current "
+"directory for this code to work."
msgstr ""
#. (itstool) path: section/code
-#: C/image.py.page:35
+#: C/image.py.page:43
#, no-wrap
msgid ""
-"from gi.repository import Gtk\n"
+"\n"
+" 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"
@@ -15636,7 +18119,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"
@@ -15650,10 +18135,12 @@ msgid ""
"app = MyApplication()\n"
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
+"\n"
+" "
msgstr ""
#. (itstool) path: section/p
-#: C/image.py.page:37
+#: C/image.py.page:47
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</"
@@ -15661,23 +18148,23 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/image.py.page:38
+#: C/image.py.page:51
#, no-wrap
msgid ""
"\n"
-"# a class to create a window\n"
-"class MyWindow(Gtk.ApplicationWindow):\n"
+" # a class to create a window\n"
+" class MyWindow(Gtk.ApplicationWindow):\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
" self.set_default_size(300, 300)\n"
"\n"
-"# a class to create an image\n"
-"class MyImage(Gtk.Image):\n"
+" # a class to create an image\n"
+" class MyImage(Gtk.Image):\n"
" def __init__(self):\n"
" Gtk.Image.__init__(self)\n"
" self.set_from_file(\"gnome-image.png\")\n"
"\n"
-"class MyApplication(Gtk.Application):\n"
+" class MyApplication(Gtk.Application):\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -15687,72 +18174,62 @@ msgid ""
" # create an instance of MyImage and add it to the window\n"
" win.add(MyImage())\n"
" # show the window and everything on it\n"
-" win.show_all()"
-msgstr ""
-
-#. (itstool) path: section/title
-#: C/image.py.page:65
-msgid "Useful methods for an Image widget"
+" win.show_all()\n"
+" "
msgstr ""
-#. (itstool) path: item/p
-#: C/image.py.page:68
+#. (itstool) path: note/p
+#: C/image.py.page:78
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."
-"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>."
+"To use this code snippet, you will need to add the code that imports "
+"<code>Gtk</code> and <code>GdkPixbuf</code> from <code>gi.repository</code> "
+"and lines that instantiate the <code>MyApplication</code> window."
msgstr ""
-#. (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 ""
+#. (itstool) path: section/title
+#: C/image.py.page:85
+#, fuzzy
+msgid "Useful methods for an Image widget"
+msgstr "Métodos úteis"
#. (itstool) path: item/p
-#: C/image.py.page:70
+#: C/image.py.page:89
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>."
+"where <code>pixbuf</code> is a <link href=\"https://developer.gnome.org/gdk-"
+"pixbuf/unstable/index.html\"> GdkPixbuf</link>."
msgstr ""
#. (itstool) path: item/code
-#: C/image.py.page:71
+#: C/image.py.page:93
#, no-wrap
msgid ""
"\n"
-"from gi.repository import Gtk\n"
-"from gi.repository import GdkPixbuf\n"
-"import sys\n"
+" from gi.repository import Gtk\n"
+" from gi.repository import GdkPixbuf\n"
+" import sys\n"
"\n"
-"class MyWindow(Gtk.ApplicationWindow):\n"
-" # create a window\n"
-" def __init__(self, app):\n"
-" Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
-" self.set_default_size(300, 300)\n"
+" class MyWindow(Gtk.ApplicationWindow):\n"
+" # create a window\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
+" self.set_default_size(300, 300)\n"
"\n"
-" # create a pixbuf from file filename=\"gnome-image.png\", with width=32\n"
-" # and height=64 amd boolean preserve_aspect_ratio=False.\n"
-" pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(\"gnome-image.png\", 64, 128, False)\n"
+" # create a pixbuf from file filename=\"gnome-image.png\", with width=32\n"
+" # and height=64 amd boolean preserve_aspect_ratio=False.\n"
+" pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(\"gnome-image.png\", 64, 128, False)\n"
"\n"
-" # create an image\n"
-" image = Gtk.Image()\n"
-" # set the content of the image as the pixbuf\n"
-" image.set_from_pixbuf(pixbuf)\n"
-" # add the image to the window\n"
-" self.add(image)"
+" # create an image\n"
+" image = Gtk.Image()\n"
+" # set the content of the image as the pixbuf\n"
+" image.set_from_pixbuf(pixbuf)\n"
+" # add the image to the window\n"
+" self.add(image)\n"
+" "
msgstr ""
#. (itstool) path: item/p
-#: C/image.py.page:92
+#: C/image.py.page:115
msgid ""
"If <code>preserve_aspect_ratio=True</code> we can use "
"<code>new_from_file_at_size(filename, width, height)</code>. If <code>width</"
@@ -15760,20 +18237,39 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image.py.page:93
+#: C/image.py.page:119
msgid ""
"For loading from an input stream, see <code>new_from_stream()</code> and "
-"<code>new_from_stream_at_scale()</code> in the documentation"
+"<code>new_from_stream_at_scale()</code> in the documentation."
msgstr ""
+#. (itstool) path: item/p
+#: C/image.py.page:131
+msgid ""
+"<link href=\"https://developer.gnome.org/gtk3/unstable/GtkImage.html\"> "
+"GtkImage</link>"
+msgstr ""
+"<link href=\"https://developer.gnome.org/gtk3/unstable/GtkImage.html\"> "
+"GtkImage</link>"
+
+#. (itstool) path: item/p
+#: C/image.py.page:135
+msgid ""
+"<link href=\"https://developer.gnome.org/gtk3/unstable/GtkWindow.html\"> "
+"GtkWindow</link>"
+msgstr ""
+"<link href=\"https://developer.gnome.org/gtk3/unstable/GtkWindow.html\"> "
+"GtkWindow</link>"
+
#. (itstool) path: info/title
-#: C/image.vala.page:7
+#: C/image.vala.page:8
+#, fuzzy
msgctxt "text"
msgid "Image (Vala)"
-msgstr ""
+msgstr "_Vala"
#. (itstool) path: page/code
-#: C/image.vala.page:26
+#: C/image.vala.page:27
#, no-wrap
msgid ""
"public class MyWindow : Gtk.ApplicationWindow {\n"
@@ -15803,74 +18299,74 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image.vala.page:31 C/separator.vala.page:39
+#: C/image.vala.page:32 C/separator.vala.page:40
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Application.html"
"\">GtkApplication</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/image.vala.page:32
+#: C/image.vala.page:33
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ApplicationWindow.html"
"\">GtkApplicationWindow</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/image.vala.page:33 C/paned.vala.page:37
+#: C/image.vala.page:34 C/paned.vala.page:38
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.
-#: 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 ""
-
#. (itstool) path: info/title
-#: C/image-viewer.c.page:7
+#: C/image-viewer.c.page:8
msgctxt "text"
msgid "Image viewer (C)"
-msgstr ""
+msgstr "Visualizador de imagens (C)"
#. (itstool) path: info/desc
-#: C/image-viewer.c.page:10
+#: C/image-viewer.c.page:11
msgid "A little bit more than a simple \"Hello world\" Gtk application."
-msgstr ""
+msgstr "Um pouco mais do que um simples aplicativo Gtk “Hello world”."
#. (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
+#: C/image-viewer.c.page:29 C/image-viewer.cpp.page:27
+#: C/image-viewer.js.page:29 C/image-viewer.py.page:29
+#: C/image-viewer.vala.page:37
msgid "Image viewer"
-msgstr ""
+msgstr "Visualizador de imagens"
#. (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
+#: C/image-viewer.c.page:32 C/image-viewer.cpp.page:30
+#: C/message-board.c.page:29 C/record-collection.js.page:32
msgid "In this tutorial, you will learn:"
-msgstr ""
+msgstr "Neste tutorial, você aprenderá:"
#. (itstool) path: item/p
-#: C/image-viewer.c.page:33
+#: C/image-viewer.c.page:34
msgid "Some basic concepts of C/GObject programming"
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.c.page:34
+#: C/image-viewer.c.page:35
msgid "How to write a Gtk application in C"
msgstr ""
+#. (itstool) path: page/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/image-viewer.c.page:39 C/image-viewer.cpp.page:37
+#: C/image-viewer.js.page:47 C/image-viewer.py.page:46
+#: C/image-viewer.vala.page:54
+msgctxt "_"
+msgid ""
+"external ref='media/image-viewer.png' md5='7720360611243b14283b83527be968c2'"
+msgstr ""
+
#. (itstool) path: item/p
-#: C/image-viewer.c.page:48
+#: C/image-viewer.c.page:49
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 "
@@ -15878,7 +18374,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.c.page:51
+#: C/image-viewer.c.page:52
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="
@@ -15887,7 +18383,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.c.page:66
+#: C/image-viewer.c.page:67
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 "
@@ -15896,20 +18392,21 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.c.page:73
+#: C/image-viewer.c.page:74
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 ""
#. (itstool) path: section/title
-#: C/image-viewer.c.page:89 C/image-viewer.cpp.page:86
-#: C/image-viewer.vala.page:138
+#: C/image-viewer.c.page:90 C/image-viewer.cpp.page:87
+#: C/image-viewer.vala.page:139
+#, fuzzy
msgid "Creating the user interface"
-msgstr ""
+msgstr "A interface gráfica"
#. (itstool) path: section/p
-#: C/image-viewer.c.page:90
+#: C/image-viewer.c.page:91
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 "
@@ -15918,7 +18415,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.c.page:93
+#: C/image-viewer.c.page:94
#, no-wrap
msgid ""
"\n"
@@ -15956,7 +18453,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.c.page:128
+#: C/image-viewer.c.page:129
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 "
@@ -15966,7 +18463,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.c.page:133
+#: C/image-viewer.c.page:134
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 "
@@ -15977,7 +18474,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.c.page:139
+#: C/image-viewer.c.page:140
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 "
@@ -15989,14 +18486,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.c.page:144
+#: C/image-viewer.c.page:145
msgid ""
"The last <code>g_signal_connect()</code> makes sure that the application "
"exits when the window is closed."
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.c.page:147
+#: C/image-viewer.c.page:148
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 "
@@ -16004,13 +18501,20 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/image-viewer.c.page:154 C/image-viewer.cpp.page:141
-#: C/image-viewer.vala.page:209
+#: C/image-viewer.c.page:155 C/image-viewer.cpp.page:142
+#: C/image-viewer.vala.page:210
+#, fuzzy
msgid "Showing the image"
msgstr ""
+"<emphasis>Exibição da imagem:</emphasis> A parte mais importante da janela "
+"de imagem, é claro, a visualização da imagem ou <quote>tela de pintura</"
+"quote>. Ocupa a área central da janela, rodeada por uma linha pontilhada "
+"amarela mostrando o limite da imagem, de encontro a um fundo cinzento "
+"neutro. Você pode mudar o nível de zoom de exibição da imagem de várias "
+"formas, incluindo o controle de de Zoom descrito abaixo."
#. (itstool) path: section/p
-#: C/image-viewer.c.page:155
+#: C/image-viewer.c.page:156
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()</"
@@ -16018,7 +18522,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.c.page:158
+#: C/image-viewer.c.page:159
#, no-wrap
msgid ""
"\n"
@@ -16056,15 +18560,15 @@ msgid ""
msgstr ""
#. (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
+#: C/image-viewer.c.page:192 C/image-viewer.cpp.page:178
+#: C/image-viewer.js.page:283 C/image-viewer.py.page:197
msgid ""
"This is a bit more complicated than anything we've attempted so far, so "
"let's break it down:"
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.c.page:193
+#: C/image-viewer.c.page:194
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 "
@@ -16074,7 +18578,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.c.page:199
+#: C/image-viewer.c.page:200
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 "
@@ -16083,8 +18587,8 @@ msgid ""
msgstr ""
#. (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
+#: C/image-viewer.c.page:204 C/image-viewer.cpp.page:186
+#: C/image-viewer.js.page:290 C/image-viewer.py.page:204
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 "
@@ -16093,7 +18597,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.c.page:206
+#: C/image-viewer.c.page:207
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 "
@@ -16103,7 +18607,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.c.page:209
+#: C/image-viewer.c.page:210
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, "
@@ -16113,7 +18617,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.c.page:211
+#: C/image-viewer.c.page:212
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 "
@@ -16122,14 +18626,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.c.page:214
+#: C/image-viewer.c.page:215
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 ""
#. (itstool) path: section/p
-#: C/image-viewer.c.page:223 C/image-viewer.cpp.page:211
+#: C/image-viewer.c.page:224 C/image-viewer.cpp.page:212
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> "
@@ -16137,76 +18641,76 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.c.page:228
+#: C/image-viewer.c.page:229
msgid ""
"If you run into problems with the tutorial, compare your code with this "
"<link href=\"image-viewer/image-viewer.c\">reference code</link>."
msgstr ""
#. (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
+#: C/image-viewer.c.page:237 C/image-viewer.cpp.page:225
+#: C/image-viewer.js.page:325 C/image-viewer.py.page:239
+#: C/image-viewer.vala.page:298
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 ""
#. (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
+#: 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 ""
"Apply random filters and effects to the image when it is loaded and allow "
"the user to save the modified image."
msgstr ""
#. (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
+#: C/image-viewer.c.page:241 C/image-viewer.cpp.page:229
+#: C/image-viewer.js.page:329 C/image-viewer.py.page:243
+#: C/image-viewer.vala.page:302
msgid ""
"<link href=\"http://www.gegl.org/api.html\">GEGL</link> provides powerful "
"image manipulation capabilities."
msgstr ""
#. (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
+#: 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 ""
"Allow the user to load images from network shares, scanners, and other more "
"complicated sources."
msgstr ""
#. (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
+#: C/image-viewer.c.page:245 C/image-viewer.cpp.page:233
+#: C/image-viewer.js.page:333 C/image-viewer.py.page:247
+#: C/image-viewer.vala.page:306
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://"
+"link> to handle network file transfers and the like, and <link href=\"http://"
"library.gnome.org/devel/gnome-scan/unstable/\">GNOME Scan</link> to handle "
"scanning."
msgstr ""
#. (itstool) path: info/desc
-#: C/image-viewer.cpp.page:8
+#: C/image-viewer.cpp.page:9
msgid "A little bit more than a simple \"Hello world\" GTKmm application."
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.cpp.page:31
+#: C/image-viewer.cpp.page:32
msgid "Some basic concepts of C++/GObject programming"
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.cpp.page:32
+#: C/image-viewer.cpp.page:33
msgid "How to write a Gtk application in C++"
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.cpp.page:46
+#: C/image-viewer.cpp.page:47
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 "
@@ -16214,7 +18718,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.cpp.page:49
+#: C/image-viewer.cpp.page:50
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="
@@ -16223,7 +18727,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.cpp.page:54
+#: C/image-viewer.cpp.page:55
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> "
@@ -16231,7 +18735,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/code
-#: C/image-viewer.cpp.page:55
+#: C/image-viewer.cpp.page:56
#, no-wrap
msgid ""
"\n"
@@ -16242,7 +18746,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.cpp.page:69
+#: C/image-viewer.cpp.page:70
msgid ""
"The three <code>#include</code> lines at the top include the <code>config</"
"code> (useful autoconf build defines), <code>gtkmm</code> (user interface) "
@@ -16251,14 +18755,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.cpp.page:72
+#: C/image-viewer.cpp.page:73
msgid ""
"The <code>main</code> function creates a new (empty) window and sets the "
"window title."
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.cpp.page:75
+#: C/image-viewer.cpp.page:76
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 "
@@ -16267,7 +18771,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.cpp.page:87
+#: C/image-viewer.cpp.page:88
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 "
@@ -16276,7 +18780,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.cpp.page:90
+#: C/image-viewer.cpp.page:91
#, no-wrap
msgid ""
"\n"
@@ -16309,7 +18813,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.cpp.page:120
+#: C/image-viewer.cpp.page:121
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 "
@@ -16317,7 +18821,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.cpp.page:123
+#: C/image-viewer.cpp.page:124
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 "
@@ -16328,7 +18832,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.cpp.page:129
+#: C/image-viewer.cpp.page:130
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 "
@@ -16339,15 +18843,15 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.cpp.page:133
+#: C/image-viewer.cpp.page:134
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 ""
#. (itstool) path: section/p
-#: C/image-viewer.cpp.page:142
+#: C/image-viewer.cpp.page:143
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> "
@@ -16355,7 +18859,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.cpp.page:145
+#: C/image-viewer.cpp.page:146
#, no-wrap
msgid ""
"\n"
@@ -16392,7 +18896,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.cpp.page:180
+#: C/image-viewer.cpp.page:181
msgid ""
"The dialog for choosing the file is created using the <code>Gtk::"
"FileChooserDialog</code> constructor. This takes the title and type of the "
@@ -16400,14 +18904,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.cpp.page:184
+#: C/image-viewer.cpp.page:185
msgid ""
"The next two lines add an <em>Open</em> and a <em>Close</em> button to the "
"dialog."
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.cpp.page:186
+#: C/image-viewer.cpp.page:187
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 "
@@ -16415,7 +18919,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.cpp.page:191
+#: C/image-viewer.cpp.page:192
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 "
@@ -16425,14 +18929,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.cpp.page:192
+#: C/image-viewer.cpp.page:193
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 ""
#. (itstool) path: item/p
-#: C/image-viewer.cpp.page:196
+#: C/image-viewer.cpp.page:197
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> "
@@ -16442,7 +18946,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.cpp.page:199
+#: C/image-viewer.cpp.page:200
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 "
@@ -16450,76 +18954,78 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.cpp.page:202
+#: C/image-viewer.cpp.page:203
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 ""
#. (itstool) path: section/p
-#: C/image-viewer.cpp.page:216
+#: C/image-viewer.cpp.page:217
msgid ""
"If you run into problems with the tutorial, compare your code with this "
"<link href=\"image-viewer/image-viewer.cc\">reference code</link>."
msgstr ""
#. (itstool) path: info/title
-#: C/image-viewer.js.page:7
+#: C/image-viewer.js.page:8
+#, fuzzy
msgctxt "text"
msgid "Image viewer (JavaScript)"
-msgstr ""
+msgstr "Visualizador de imagens gThumb"
#. (itstool) path: info/desc
-#: C/image-viewer.js.page:10
+#: C/image-viewer.js.page:11
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 ""
#. (itstool) path: credit/name
-#: C/image-viewer.js.page:14 C/image-viewer.py.page:14
+#: C/image-viewer.js.page:15 C/image-viewer.py.page:15
msgid "Jonh Wendell"
msgstr ""
#. (itstool) path: synopsis/p
-#: C/image-viewer.js.page:31 C/image-viewer.py.page:31
+#: C/image-viewer.js.page:32 C/image-viewer.py.page:32
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 ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:33
+#: C/image-viewer.js.page:34
msgid "Write a basic GTK user interface in JavaScript"
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:34 C/image-viewer.py.page:34
+#: C/image-viewer.js.page:35 C/image-viewer.py.page:35
msgid "Deal with events by connecting signals to signal handlers"
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:35 C/image-viewer.py.page:35
+#: C/image-viewer.js.page:36 C/image-viewer.py.page:36
msgid "Lay out GTK user interfaces using containers"
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:36 C/image-viewer.py.page:36
+#: C/image-viewer.js.page:37 C/image-viewer.py.page:37
+#, fuzzy
msgid "Load and display image files"
-msgstr ""
+msgstr "Nome de arquivo a ser carregado e exibido"
#. (itstool) path: item/p
-#: C/image-viewer.js.page:41
+#: C/image-viewer.js.page:42
msgid "An installed copy of the <em>gjs</em> interpreter"
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:42
+#: C/image-viewer.js.page:43
msgid "Basic knowledge of any object-orientated programming language"
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:56
+#: C/image-viewer.js.page:57
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 "
@@ -16527,7 +19033,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:59
+#: C/image-viewer.js.page:60
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> "
@@ -16535,12 +19041,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/image-viewer.js.page:66
+#: C/image-viewer.js.page:67
+#, fuzzy
msgid "JavaScript basics: Hello World"
-msgstr ""
+msgstr "Olá mundo exemplo"
#. (itstool) path: section/p
-#: C/image-viewer.js.page:67
+#: C/image-viewer.js.page:68
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 "
@@ -16549,13 +19056,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.js.page:68
-#, no-wrap
+#: C/image-viewer.js.page:69
+#, fuzzy, no-wrap
msgid "print (\"Hello world!\");"
-msgstr ""
+msgstr "Olá mundo exemplo"
#. (itstool) path: section/p
-#: C/image-viewer.js.page:69
+#: C/image-viewer.js.page:70
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 "
@@ -16564,17 +19071,18 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/image-viewer.js.page:73
+#: C/image-viewer.js.page:74
+#, fuzzy
msgid "Classes in JavaScript"
-msgstr ""
+msgstr "JavaScript"
#. (itstool) path: section/p
-#: C/image-viewer.js.page:74
+#: C/image-viewer.js.page:75
msgid "This is the standard way to define a class in JavaScript:"
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.js.page:75
+#: C/image-viewer.js.page:76
#, no-wrap
msgid ""
"\n"
@@ -16602,14 +19110,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:97
+#: C/image-viewer.js.page:98
msgid ""
"This defines a class called <code>MyClass</code>. Let's go through each part "
"of the class definition:"
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:100
+#: C/image-viewer.js.page:101
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 "
@@ -16618,7 +19126,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:103
+#: C/image-viewer.js.page:104
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 "
@@ -16627,20 +19135,20 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:106
+#: C/image-viewer.js.page:107
msgid ""
"The first method defined here is called <code>_init</code>, and we specify "
"that it is a function with no arguments:"
msgstr ""
#. (itstool) path: item/code
-#: C/image-viewer.js.page:107
-#, no-wrap
+#: C/image-viewer.js.page:108
+#, fuzzy, no-wrap
msgid "_init: function ()"
-msgstr ""
+msgstr "Uma função <function>init()</function> personalizada"
#. (itstool) path: item/p
-#: C/image-viewer.js.page:108
+#: C/image-viewer.js.page:109
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 "
@@ -16649,7 +19157,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:111
+#: C/image-viewer.js.page:112
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</"
@@ -16658,19 +19166,19 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:114
+#: C/image-viewer.js.page:115
msgid ""
"Note how the class definition (prototype) is arranged; each function "
"definition is separated by a comma."
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:118
+#: C/image-viewer.js.page:119
msgid "Now that MyClass has been defined, we can play with it:"
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.js.page:119
+#: C/image-viewer.js.page:120
#, no-wrap
msgid ""
"\n"
@@ -16681,7 +19189,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:124
+#: C/image-viewer.js.page:125
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, "
@@ -16689,7 +19197,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:125
+#: C/image-viewer.js.page:126
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 "
@@ -16697,17 +19205,18 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/image-viewer.js.page:130 C/image-viewer.py.page:69
+#: C/image-viewer.js.page:131 C/image-viewer.py.page:70
+#, fuzzy
msgid "A first Gtk application"
-msgstr ""
+msgstr "GTK+ (Aplicativo)"
#. (itstool) path: section/p
-#: C/image-viewer.js.page:131
+#: C/image-viewer.js.page:132
msgid "Let's see what a very basic Gtk application looks like in JavaScript:"
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.js.page:132
+#: C/image-viewer.js.page:133
#, no-wrap
msgid ""
"\n"
@@ -16722,12 +19231,12 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:141 C/image-viewer.py.page:94
+#: C/image-viewer.js.page:142 C/image-viewer.py.page:95
msgid "Let's take a look at what's happening:"
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:144 C/image-viewer.py.page:97
+#: C/image-viewer.js.page:145 C/image-viewer.py.page:98
msgid ""
"The first line imports the Gtk namespace (that is, it includes the Gtk "
"library). The libraries are provided by GObject Introspection (gi), which "
@@ -16735,14 +19244,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:147
+#: C/image-viewer.js.page:148
msgid ""
"<code>Gtk.init</code> initializes the Gtk library; this statement is "
"mandatory for all Gtk programs."
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:150
+#: C/image-viewer.js.page:151
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 "
@@ -16751,14 +19260,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:151
+#: C/image-viewer.js.page:152
msgid ""
"The next line explicitly shows the window. In Gtk, every widget is hidden by "
"default."
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:152
+#: C/image-viewer.js.page:153
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 "
@@ -16767,7 +19276,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:155
+#: C/image-viewer.js.page:156
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 "
@@ -16778,19 +19287,20 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/image-viewer.js.page:160
+#: C/image-viewer.js.page:161
+#, fuzzy
msgid "Adding classes"
-msgstr ""
+msgstr "CLASSES"
#. (itstool) path: section/p
-#: C/image-viewer.js.page:161
+#: C/image-viewer.js.page:162
msgid ""
"The proper way of doing Gtk programming is by using classes. Let's rewrite "
"the simple code you just wrote using classes:"
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.js.page:162
+#: C/image-viewer.js.page:163
#, no-wrap
msgid ""
"\n"
@@ -16807,13 +19317,13 @@ msgid ""
" }\n"
"}\n"
"\n"
-"Gtk.init (0, null);\n"
+"Gtk.init (null, null);\n"
"var iv = new ImageViewer ();\n"
"Gtk.main ();"
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:180
+#: C/image-viewer.js.page:181
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 "
@@ -16823,19 +19333,20 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:181
+#: C/image-viewer.js.page:182
msgid ""
"This code is modular and can be split into multiple files easily. This makes "
"it cleaner and easier to read."
msgstr ""
#. (itstool) path: section/title
-#: C/image-viewer.js.page:185 C/image-viewer.py.page:118
+#: C/image-viewer.js.page:186 C/image-viewer.py.page:119
+#, fuzzy
msgid "Signals"
-msgstr ""
+msgstr "Sinais"
#. (itstool) path: section/p
-#: C/image-viewer.js.page:186 C/image-viewer.py.page:119
+#: C/image-viewer.js.page:187 C/image-viewer.py.page:120
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 "
@@ -16845,7 +19356,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.js.page:187
+#: C/image-viewer.js.page:188
#, no-wrap
msgid ""
"\n"
@@ -16857,7 +19368,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:193 C/image-viewer.py.page:126
+#: C/image-viewer.js.page:194 C/image-viewer.py.page:127
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</"
@@ -16867,12 +19378,12 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:194
+#: C/image-viewer.js.page:195
msgid "The syntax for connecting any signal to a function is:"
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.js.page:195
+#: C/image-viewer.js.page:196
#, no-wrap
msgid ""
"\n"
@@ -16880,20 +19391,20 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:197
+#: C/image-viewer.js.page:198
msgid ""
"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 ""
#. (itstool) path: note/p
-#: C/image-viewer.js.page:200
+#: C/image-viewer.js.page:201
msgid ""
"You can simplify the code by making use of an inline function definition:"
msgstr ""
#. (itstool) path: note/code
-#: C/image-viewer.js.page:201
+#: C/image-viewer.js.page:202
#, no-wrap
msgid ""
"\n"
@@ -16901,12 +19412,15 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/image-viewer.js.page:208
+#: C/image-viewer.js.page:209
+#, fuzzy
msgid "Closing the window"
msgstr ""
+"Ainda existem processos em execução em algumas abas.\n"
+"Ao fechar esta janela eles serão eliminados."
#. (itstool) path: section/p
-#: C/image-viewer.js.page:209
+#: C/image-viewer.js.page:210
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 "
@@ -16914,7 +19428,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:210
+#: C/image-viewer.js.page:211
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 "
@@ -16924,13 +19438,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.js.page:211
+#: C/image-viewer.js.page:212
#, no-wrap
msgid "this.window.connect (\"hide\", Gtk.main_quit);"
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:212
+#: C/image-viewer.js.page:213
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 "
@@ -16941,12 +19455,12 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/image-viewer.js.page:216 C/image-viewer.py.page:130
+#: C/image-viewer.js.page:217 C/image-viewer.py.page:131
msgid "Containers: Laying-out the user interface"
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:217 C/image-viewer.py.page:131
+#: C/image-viewer.js.page:218 C/image-viewer.py.page:132
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 "
@@ -16954,7 +19468,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:218 C/image-viewer.py.page:132
+#: C/image-viewer.js.page:219 C/image-viewer.py.page:133
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 "
@@ -16968,7 +19482,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/image-viewer.js.page:220 C/image-viewer.py.page:134
+#: C/image-viewer.js.page:221 C/image-viewer.py.page:135
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 "
@@ -16976,7 +19490,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:222
+#: C/image-viewer.js.page:223
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</"
@@ -16984,7 +19498,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.js.page:223
+#: C/image-viewer.js.page:224
#, no-wrap
msgid ""
"\n"
@@ -16993,7 +19507,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:226
+#: C/image-viewer.js.page:227
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 "
@@ -17003,7 +19517,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:227 C/image-viewer.py.page:145
+#: C/image-viewer.js.page:228 C/image-viewer.py.page:146
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> "
@@ -17011,19 +19525,20 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/image-viewer.js.page:231 C/image-viewer.py.page:149
+#: C/image-viewer.js.page:232 C/image-viewer.py.page:150
+#, fuzzy
msgid "Packing: Adding widgets to the container"
-msgstr ""
+msgstr "Opções de empacotamento por recipiente"
#. (itstool) path: section/p
-#: C/image-viewer.js.page:232
+#: C/image-viewer.js.page:233
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 ""
#. (itstool) path: section/code
-#: C/image-viewer.js.page:233
+#: C/image-viewer.js.page:234
#, no-wrap
msgid ""
"\n"
@@ -17032,7 +19547,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:236
+#: C/image-viewer.js.page:237
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 "
@@ -17043,7 +19558,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:237
+#: C/image-viewer.js.page:238
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</"
@@ -17055,7 +19570,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:238 C/image-viewer.py.page:157
+#: C/image-viewer.js.page:239 C/image-viewer.py.page:158
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-"
@@ -17065,7 +19580,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:239 C/image-viewer.py.page:158
+#: C/image-viewer.js.page:240 C/image-viewer.py.page:159
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</"
@@ -17075,12 +19590,12 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:240 C/image-viewer.py.page:159
+#: C/image-viewer.js.page:241 C/image-viewer.py.page:160
msgid "Now insert these two lines, below the two you just added:"
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.js.page:241
+#: C/image-viewer.js.page:242
#, no-wrap
msgid ""
"\n"
@@ -17089,7 +19604,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:244
+#: C/image-viewer.js.page:245
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 "
@@ -17102,19 +19617,19 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:245
+#: C/image-viewer.js.page:246
msgid ""
"Finally, we must change the <code>this.window.show ();</code> line to read:"
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.js.page:246
-#, no-wrap
+#: C/image-viewer.js.page:247
+#, fuzzy, no-wrap
msgid "this.window.show_all ();"
-msgstr ""
+msgstr "De _modo algum"
#. (itstool) path: section/p
-#: C/image-viewer.js.page:247
+#: C/image-viewer.js.page:248
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 "
@@ -17122,13 +19637,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/image-viewer.js.page:251 C/image-viewer.py.page:168
+#: C/image-viewer.js.page:252 C/image-viewer.py.page:169
msgid ""
"Loading the image: Connecting to the button's <code>clicked</code> signal"
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:252
+#: C/image-viewer.js.page:253
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 "
@@ -17136,7 +19651,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:253
+#: C/image-viewer.js.page:254
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 "
@@ -17145,7 +19660,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.js.page:254
+#: C/image-viewer.js.page:255
#, no-wrap
msgid ""
"\n"
@@ -17153,7 +19668,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:256
+#: C/image-viewer.js.page:257
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 "
@@ -17164,18 +19679,23 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.js.page:257
-#, no-wrap
+#: C/image-viewer.js.page:258
+#, fuzzy, no-wrap
msgid "const Lang = imports.lang;"
msgstr ""
+"\n"
+"#!/usr/bin/gjs\n"
+"\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
#. (itstool) path: section/title
-#: C/image-viewer.js.page:261 C/image-viewer.py.page:179
+#: C/image-viewer.js.page:262 C/image-viewer.py.page:180
msgid "Loading the image: Writing the signal's callback"
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:262
+#: C/image-viewer.js.page:263
msgid ""
"Now we can create the <code>_openClicked()</code> method. Insert the "
"following into the <code>ImageViewer.prototype</code> code block, after the "
@@ -17183,7 +19703,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.js.page:263
+#: C/image-viewer.js.page:264
#, no-wrap
msgid ""
"\n"
@@ -17208,7 +19728,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:285
+#: C/image-viewer.js.page:286
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 "
@@ -17221,7 +19741,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:288 C/image-viewer.py.page:202
+#: C/image-viewer.js.page:289 C/image-viewer.py.page:203
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 "
@@ -17230,7 +19750,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:292 C/image-viewer.py.page:206
+#: C/image-viewer.js.page:293 C/image-viewer.py.page:207
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 "
@@ -17239,7 +19759,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:295 C/image-viewer.py.page:209
+#: C/image-viewer.js.page:296 C/image-viewer.py.page:210
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 "
@@ -17249,7 +19769,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:298
+#: C/image-viewer.js.page:299
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</"
@@ -17259,7 +19779,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:300 C/image-viewer.py.page:214
+#: C/image-viewer.js.page:301 C/image-viewer.py.page:215
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 "
@@ -17268,15 +19788,15 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.js.page:303 C/image-viewer.py.page:217
-#: C/image-viewer.vala.page:272
+#: C/image-viewer.js.page:304 C/image-viewer.py.page:218
+#: C/image-viewer.vala.page:273
msgid ""
"In the final line of this method, we destroy the <gui>Open</gui> dialog "
"because we don't need it any more."
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:311
+#: C/image-viewer.js.page:312
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 "
@@ -17284,37 +19804,39 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.js.page:316
+#: C/image-viewer.js.page:317
msgid ""
"If you run into problems with the tutorial, compare your code with this "
"<link href=\"image-viewer/image-viewer.js\">reference code</link>."
msgstr ""
#. (itstool) path: info/title
-#: C/image-viewer.py.page:7
+#: C/image-viewer.py.page:8
+#, fuzzy
msgctxt "text"
msgid "Image viewer (Python)"
-msgstr ""
+msgstr "Visualizador de imagens gThumb"
#. (itstool) path: info/desc
-#: C/image-viewer.py.page:10
+#: C/image-viewer.py.page:11
msgid ""
"A little bit more than a simple \"Hello world\" application - write an image "
"viewer in GTK."
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.py.page:33
+#: C/image-viewer.py.page:34
msgid "Write a basic GTK user interface in Python"
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.py.page:41
+#: C/image-viewer.py.page:42
+#, fuzzy
msgid "Basic knowledge of the python programming language"
-msgstr ""
+msgstr "Linguagem de programação Python"
#. (itstool) path: item/p
-#: C/image-viewer.py.page:55
+#: C/image-viewer.py.page:56
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 "
@@ -17322,7 +19844,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.py.page:58
+#: C/image-viewer.py.page:59
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 "
@@ -17331,7 +19853,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.py.page:63
+#: C/image-viewer.py.page:64
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</"
@@ -17339,12 +19861,12 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.py.page:70
+#: C/image-viewer.py.page:71
msgid "Let's see what a very basic Gtk application looks like in Python:"
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.py.page:71
+#: C/image-viewer.py.page:72
#, no-wrap
msgid ""
"\n"
@@ -17373,7 +19895,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.py.page:100
+#: C/image-viewer.py.page:101
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 "
@@ -17382,26 +19904,26 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.py.page:105
+#: C/image-viewer.py.page:106
msgid ""
"Next, <code>destroy</code> is defined which just quits the application. It "
"is called by the <code>destroy</code> signal connected above."
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.py.page:109
+#: C/image-viewer.py.page:110
msgid "The rest of the file does initialisation for Gtk and displays the GUI."
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.py.page:113
+#: C/image-viewer.py.page:114
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 ""
#. (itstool) path: section/code
-#: C/image-viewer.py.page:120
+#: C/image-viewer.py.page:121
#, no-wrap
msgid ""
"\n"
@@ -17413,7 +19935,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.py.page:136
+#: C/image-viewer.py.page:137
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."
@@ -17421,7 +19943,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.py.page:137
+#: C/image-viewer.py.page:138
#, no-wrap
msgid ""
"\n"
@@ -17433,7 +19955,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.py.page:144
+#: C/image-viewer.py.page:145
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> "
@@ -17443,14 +19965,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.py.page:150
+#: C/image-viewer.py.page:151
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 ""
#. (itstool) path: section/code
-#: C/image-viewer.py.page:151
+#: C/image-viewer.py.page:152
#, no-wrap
msgid ""
"\n"
@@ -17459,7 +19981,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.py.page:154
+#: C/image-viewer.py.page:155
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 "
@@ -17472,7 +19994,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.py.page:156
+#: C/image-viewer.py.page:157
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 "
@@ -17484,7 +20006,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.py.page:160
+#: C/image-viewer.py.page:161
#, no-wrap
msgid ""
"\n"
@@ -17493,7 +20015,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.py.page:164
+#: C/image-viewer.py.page:165
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 "
@@ -17506,7 +20028,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.py.page:169
+#: C/image-viewer.py.page:170
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 "
@@ -17514,7 +20036,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.py.page:170
+#: C/image-viewer.py.page:171
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>. "
@@ -17523,7 +20045,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.py.page:171
+#: C/image-viewer.py.page:172
#, no-wrap
msgid ""
"\n"
@@ -17531,14 +20053,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.py.page:174
+#: C/image-viewer.py.page:175
msgid ""
"This will connect the <code>clicked</code> signal to <code>on_open_clicked</"
"code> method that we will define below."
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.py.page:180
+#: C/image-viewer.py.page:181
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 "
@@ -17546,7 +20068,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.py.page:181
+#: C/image-viewer.py.page:182
#, no-wrap
msgid ""
"\n"
@@ -17567,7 +20089,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.py.page:199
+#: C/image-viewer.py.page:200
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 "
@@ -17578,7 +20100,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.py.page:212
+#: C/image-viewer.py.page:213
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> "
@@ -17588,7 +20110,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.py.page:225
+#: C/image-viewer.py.page:226
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 "
@@ -17596,65 +20118,66 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.py.page:230
+#: C/image-viewer.py.page:231
msgid ""
"If you run into problems with the tutorial, compare your code with this "
"<link href=\"image-viewer/image-viewer.py\">reference code</link>."
msgstr ""
#. (itstool) path: info/title
-#: C/image-viewer.vala.page:7
+#: C/image-viewer.vala.page:8
+#, fuzzy
msgctxt "text"
msgid "Image viewer (Vala)"
-msgstr ""
+msgstr "Vala"
#. (itstool) path: info/desc
-#: C/image-viewer.vala.page:10
+#: C/image-viewer.vala.page:11
msgid "A little bit more than a simple \"Hello world\" GTK+ application."
msgstr ""
#. (itstool) path: credit/name
-#: C/image-viewer.vala.page:22
+#: C/image-viewer.vala.page:23
msgid "Philip Chimento"
-msgstr ""
+msgstr "Philip Chimento"
#. (itstool) path: synopsis/p
-#: C/image-viewer.vala.page:38
+#: C/image-viewer.vala.page:39
msgid ""
"In this tutorial you will create an application which opens and displays an "
"image file. You will learn:"
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:40
+#: C/image-viewer.vala.page:41
msgid ""
"How to set up a basic project using the <link xref=\"getting-ready\">Anjuta "
"IDE</link>."
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:41
+#: C/image-viewer.vala.page:42
msgid ""
"How to write a <link href=\"http://developer.gnome.org/platform-overview/"
"stable/gtk\">Gtk application</link> in Vala"
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:42
+#: C/image-viewer.vala.page:43
msgid ""
"Some basic concepts of <link href=\"http://developer.gnome.org/gobject/"
"stable/\">GObject</link> programming"
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:49
+#: C/image-viewer.vala.page:50
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 ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:65
+#: C/image-viewer.vala.page:66
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 "
@@ -17662,21 +20185,21 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:69
+#: C/image-viewer.vala.page:70
msgid ""
"Make sure that <gui>Use GtkBuilder for user interface</gui> is unchecked as "
"we will create the UI manually in this tutorial."
msgstr ""
#. (itstool) path: note/p
-#: C/image-viewer.vala.page:70
+#: C/image-viewer.vala.page:71
msgid ""
"You will learn how to use the interface builder in the <link xref=\"guitar-"
"tuner.vala\">Guitar-Tuner</link> tutorial."
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:74
+#: C/image-viewer.vala.page:75
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 "
@@ -17684,7 +20207,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/code
-#: C/image-viewer.vala.page:77
+#: C/image-viewer.vala.page:78
#, no-wrap
msgid ""
"\n"
@@ -17720,7 +20243,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.vala.page:113
+#: C/image-viewer.vala.page:114
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 "
@@ -17728,14 +20251,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:118
+#: C/image-viewer.vala.page:119
msgid ""
"The two <code>using</code> lines at the top import namespaces so we don't "
"have to name them explicitly."
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:121
+#: C/image-viewer.vala.page:122
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"
@@ -17743,7 +20266,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:126
+#: C/image-viewer.vala.page:127
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</"
@@ -17755,7 +20278,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.vala.page:133 C/magic-mirror.vala.page:93
+#: C/image-viewer.vala.page:134 C/magic-mirror.vala.page:94
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 "
@@ -17763,7 +20286,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.vala.page:139
+#: C/image-viewer.vala.page:140
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."
@@ -17774,26 +20297,27 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.vala.page:143
+#: C/image-viewer.vala.page:144
+#, fuzzy
msgid "Add the following lines to the top of the <code>Main</code> class:"
-msgstr ""
+msgstr "Então, adicione as seguintes linhas à sua função <code>main()</code>:"
#. (itstool) path: section/code
-#: C/image-viewer.vala.page:144
-#, no-wrap
+#: C/image-viewer.vala.page:145
+#, fuzzy, no-wrap
msgid ""
"\n"
"private Window window;\n"
"private Image image;\n"
-msgstr ""
+msgstr "Abre uma nova janela de navegação privada (anônima)"
#. (itstool) path: section/p
-#: C/image-viewer.vala.page:149
+#: C/image-viewer.vala.page:150
msgid "Now replace the current constructor with the one below:"
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.vala.page:150
+#: C/image-viewer.vala.page:151
#, no-wrap
msgid ""
"\n"
@@ -17821,7 +20345,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:175
+#: C/image-viewer.vala.page:176
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 "
@@ -17830,7 +20354,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:179
+#: C/image-viewer.vala.page:180
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 "
@@ -17838,7 +20362,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:183
+#: C/image-viewer.vala.page:184
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 "
@@ -17850,14 +20374,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:190
+#: C/image-viewer.vala.page:191
msgid ""
"We need to define what happens when the user clicks on the button. GTK uses "
"the concept of <em>signals</em>."
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:191
+#: C/image-viewer.vala.page:192
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."
@@ -17867,7 +20391,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:194
+#: C/image-viewer.vala.page:195
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 "
@@ -17876,7 +20400,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:198
+#: C/image-viewer.vala.page:199
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 "
@@ -17884,7 +20408,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:202
+#: C/image-viewer.vala.page:203
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 "
@@ -17895,14 +20419,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.vala.page:210
+#: C/image-viewer.vala.page:211
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:"
msgstr ""
#. (itstool) path: section/code
-#: C/image-viewer.vala.page:213
+#: C/image-viewer.vala.page:214
#, no-wrap
msgid ""
"\n"
@@ -17930,19 +20454,19 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.vala.page:236
+#: C/image-viewer.vala.page:237
msgid "This is a bit complicated, so let's break it down:"
msgstr ""
#. (itstool) path: note/p
-#: C/image-viewer.vala.page:237
+#: C/image-viewer.vala.page:238
msgid ""
"A signal handler is a type of callback method that is called when a signal "
"is emitted. Here the terms are used interchangeably."
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:240
+#: C/image-viewer.vala.page:241
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 "
@@ -17950,29 +20474,29 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:242
+#: C/image-viewer.vala.page:243
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 ""
#. (itstool) path: item/code
-#: C/image-viewer.vala.page:243
-#, no-wrap
+#: C/image-viewer.vala.page:244
+#, fuzzy, no-wrap
msgid ""
"\n"
" button.clicked.connect (on_open_image);\n"
-msgstr ""
+msgstr "Abrir imagem como uma nova camada"
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:247
+#: C/image-viewer.vala.page:248
msgid ""
"The <code>on_open_image</code> method takes the button that emitted the "
"signal as an argument:"
msgstr ""
#. (itstool) path: item/code
-#: C/image-viewer.vala.page:248
+#: C/image-viewer.vala.page:249
#, no-wrap
msgid ""
"\n"
@@ -17980,7 +20504,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:253
+#: C/image-viewer.vala.page:254
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."
@@ -17990,7 +20514,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:255
+#: C/image-viewer.vala.page:256
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 "
@@ -18000,7 +20524,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:259
+#: C/image-viewer.vala.page:260
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 "
@@ -18012,7 +20536,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:264
+#: C/image-viewer.vala.page:265
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 "
@@ -18024,7 +20548,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:269
+#: C/image-viewer.vala.page:270
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</"
@@ -18032,12 +20556,12 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:273
+#: C/image-viewer.vala.page:274
msgid "Destroying automatically hides the dialog."
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.vala.page:282
+#: C/image-viewer.vala.page:283
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 "
@@ -18045,79 +20569,134 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/image-viewer.vala.page:288
+#: C/image-viewer.vala.page:289
msgid ""
"If you run into problems with the tutorial, compare your code with this "
"<link href=\"image-viewer/image-viewer.vala\">reference code</link>."
msgstr ""
#. (itstool) path: item/p
-#: C/image-viewer.vala.page:295
+#: C/image-viewer.vala.page:296
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."
msgstr ""
+#. (itstool) path: credit/name
+#: C/index.page:8
+msgid "GNOME Documentation Team"
+msgstr "Equipe de documentação GNOME"
+
+#. (itstool) path: credit/years
+#: C/index.page:10
+msgid "2010, 2011"
+msgstr "2010, 2011"
+
+#. (itstool) path: credit/name
+#: C/index.page:13 C/message-board.c.page:15
+msgid "Shaun McCance"
+msgstr "Shaun McCance"
+
+#. (itstool) path: credit/years
+#: C/index.page:15 C/message-board.c.page:17
+msgid "2010"
+msgstr "2010"
+
+#. (itstool) path: page/title
+#: C/index.page:28
+msgid "GNOME Developer Platform Demos"
+msgstr "Demonstrações da plataforma de desenvolvimento do GNOME"
+
+#. (itstool) path: page/p
+#: C/index.page:30
+msgid ""
+"This guide includes a variety of coding examples, such writing an image "
+"viewer or weather application. Each demo comes with code that you can try, "
+"and explains how each example works. They are a great way to get started "
+"with the GNOME developer platform."
+msgstr ""
+"Este guia inclui uma variedade de exemplos de codificação, como escrever um "
+"visualizador de imagens ou aplicativo de meteorologia. Cada demonstração vem "
+"com código que você pode tentar e explica como cada exemplo funciona. Eles "
+"são uma ótima maneira de começar a usar a plataforma de desenvolvedores do "
+"GNOME."
+
+#. (itstool) path: section/title
+#: C/index.page:36
+msgid "Pick a Language"
+msgstr "Selecione uma linguagem"
+
+#. (itstool) path: section/p
+#: C/index.page:37
+msgid ""
+"These developer demos are available in a range of programming languages. "
+"Pick one to get started:"
+msgstr ""
+"Essas demonstrações de desenvolvimento estão disponíveis em várias "
+"linguagens de programação. Escolha uma para começar:"
+
#. (itstool) path: info/title
-#: C/js.page:7
+#: C/js.page:8
msgctxt "link"
msgid "JavaScript"
msgstr "JavaScript"
#. (itstool) path: credit/name
-#: C/js.page:20
+#: C/js.page:21
msgid "Ekaterina Gerasimova"
msgstr "Ekaterina Gerasimova"
#. (itstool) path: page/title
-#: C/js.page:25
+#: C/js.page:26
msgid "Tutorials, code samples and platform demos in JavaScript"
msgstr ""
"Tutoriais, amostras de código e demonstrações da plataforma em JavaScript"
#. (itstool) path: section/title
-#: C/js.page:30
+#: C/js.page:31
msgid "Code samples and tutorials"
msgstr "Amostras de códigos e tutoriais"
-#. (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/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 ""
-
#. (itstool) path: info/title
-#: C/label.c.page:7
+#: C/label.c.page:8
+#, fuzzy
msgctxt "text"
msgid "Label (C)"
-msgstr ""
+msgstr "Rótulo para"
#. (itstool) path: info/desc
-#: C/label.c.page:18 C/label.vala.page:17
+#: C/label.c.page:19 C/label.vala.page:18
+#, fuzzy
msgid "A widget which displays text"
-msgstr ""
+msgstr "Exibe o texto resumido de ajuda."
#. (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
+#: C/label.c.page:22 C/label.js.page:21 C/label.py.page:30 C/label.vala.page:21
+#: C/toolbar_builder.py.page:98 C/toolbar_builder.vala.page:81
+#, fuzzy
msgid "Label"
-msgstr ""
+msgstr "Rótulo"
+
+#. (itstool) path: td/media
+#. (itstool) path: page/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/label.c.page:26 C/label.js.page:22 C/label.py.page:31 C/label.vala.page:22
+msgctxt "_"
+msgid "external ref='media/label.png' md5='734975c18653d88379f983e4501c3fc0'"
+msgstr "external ref='media/label.png' md5='734975c18653d88379f983e4501c3fc0'"
#. (itstool) path: td/p
#. (itstool) path: page/p
-#: C/label.c.page:26 C/label.py.page:30 C/label.vala.page:22
+#: C/label.c.page:27 C/label.py.page:32 C/label.vala.page:23
msgid "A simple label"
-msgstr ""
+msgstr "Um rótulo simples"
#. (itstool) path: page/code
-#: C/label.c.page:31
+#: C/label.c.page:32
#, no-wrap
msgid ""
"#include <gtk/gtk.h>\n"
@@ -18166,122 +20745,251 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/label.c.page:38
+#: C/label.c.page:39
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/3.4/GtkLabel.html\">GtkLabel</"
"link>"
msgstr ""
#. (itstool) path: info/title
-#: C/label.js.page:7
+#: C/label.js.page:8
+#, fuzzy
msgctxt "text"
msgid "Label (JavaScript)"
-msgstr ""
+msgstr "_JavaScript"
#. (itstool) path: info/desc
-#: C/label.js.page:17
+#: C/label.js.page:18
+#, fuzzy
msgid "A label which can contain text"
-msgstr ""
+msgstr "Se o texto do rótulo pode ser selecionado com o mouse"
#. (itstool) path: page/p
-#: C/label.js.page:22
+#: C/label.js.page:23
+#, fuzzy
msgid "A label displaying a friendly message."
-msgstr ""
+msgstr "Não foi possível analisar a mensagem MIME. Exibindo como a origem."
#. (itstool) path: page/code
-#: C/label.js.page:24
-#, no-wrap
+#: C/label.js.page:25
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const GLib = imports.gi.GLib;\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "const Webkit = imports.gi.WebKit;\n"
+#| "\n"
+#| "const HelloGNOME = new Lang.Class ({\n"
+#| " Name: 'Hello GNOME',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function () {\n"
+#| " this.application = new Gtk.Application ();\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 ({\n"
+#| " application: this.application,\n"
+#| " title: \"Welcome to GNOME\",\n"
+#| " default_height: 200,\n"
+#| " default_width: 400,\n"
+#| " window_position: Gtk.WindowPosition.CENTER });\n"
+#| "\n"
+#| " // Create a webview to show the web app\n"
+#| " this._webView = new Webkit.WebView ();\n"
+#| "\n"
+#| " // Put the web app into the webview\n"
+#| " this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+#| " \"/hellognome.html\", null));\n"
+#| "\n"
+#| " // Put the webview into the window\n"
+#| " this._window.add (this._webView);\n"
+#| "\n"
+#| " // Show the window and all child widgets\n"
+#| " this._window.show_all();\n"
+#| " },\n"
+#| "\n"
+#| "});\n"
+#| "\n"
+#| "// Run the application\n"
+#| "let app = new HelloGNOME ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const Gio = imports.gi.Gio;\n"
"const GLib = imports.gi.GLib;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const LabelExample = new Lang.Class ({\n"
-" Name: 'Label Example',\n"
+"class LabelExample {\n"
"\n"
" /* Create the application itself\n"
" This boilerplate code is needed to build any GTK+ application. */\n"
-" _init: function () {\n"
-" this.application = new Gtk.Application ({\n"
-" application_id: 'org.example.jslabel',\n"
-" flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-" });\n"
+" constructor() {\n"
+" this.application = new Gtk.Application ({\n"
+" application_id: 'org.example.jslabel',\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"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function () {\n"
-" this._window.present ();\n"
-" },\n"
+" _onActivate() {\n"
+" this._window.present();\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal initializes menus and builds the UI\n"
-" _onStartup: function () {\n"
-" this._buildUI ();\n"
-" },\n"
-"\n"
-"\n"
-"\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function () {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
-" this._window = new Gtk.ApplicationWindow ({ application: this.application,\n"
-" window_position: Gtk.WindowPosition.CENTER,\n"
-" title: \"Welcome to GNOME\",\n"
-" default_height: 100,\n"
-" default_width: 200 });\n"
+" this._window = new Gtk.ApplicationWindow({\n"
+" application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" title: \"Welcome to GNOME\",\n"
+" default_height: 100,\n"
+" default_width: 200\n"
+" });\n"
"\n"
" // Create the label\n"
-" this.label = new Gtk.Label ({label: \"Hello GNOME!\"});\n"
-" this._window.add (this.label);\n"
+" this.label = new Gtk.Label({ label: \"Hello GNOME!\" });\n"
+" this._window.add(this.label);\n"
"\n"
-" // Show the window and all child widgets\n"
-" this._window.show_all();\n"
+" // Show the window and all child widgets\n"
+" this._window.show_all();\n"
" }\n"
"\n"
"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new LabelExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const GLib = imports.gi.GLib;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"const Webkit = imports.gi.WebKit;\n"
+"\n"
+"const HelloGNOME = new Lang.Class ({\n"
+" Name: 'Olá, GNOME',\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function () {\n"
+" this.application = new Gtk.Application ();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativa\n"
+" _onActivate: function () {\n"
+" this._window.present ();\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup: function () {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function () {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow ({\n"
+" application: this.application,\n"
+" title: \"Bem-vindo ao GNOME\",\n"
+" default_height: 200,\n"
+" default_width: 400,\n"
+" window_position: Gtk.WindowPosition.CENTER });\n"
+"\n"
+" // Cria um webview para mostrar o aplicativo web\n"
+" this._webView = new Webkit.WebView ();\n"
+"\n"
+" // Coloca o aplicativo web no webview\n"
+" this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+" \"/hellognome.html\", null));\n"
+"\n"
+" // Coloca o webview na janela\n"
+" this._window.add (this._webView);\n"
+"\n"
+" // Mostra a janela e todos seus widgets filhos\n"
+" this._window.show_all();\n"
+" },\n"
+"\n"
+"});\n"
+"\n"
+"// Executa o aplicativo\n"
+"let app = new HelloGNOME ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: item/p
-#: C/label.js.page:31
+#: C/label.js.page:32
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Label.html"
"\">Gtk.Label</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/label.py.page:7
+#: C/label.py.page:9
+#, fuzzy
msgctxt "text"
msgid "Label (Python)"
-msgstr ""
+msgstr "Rótulo"
#. (itstool) path: info/desc
-#: C/label.py.page:25
+#: C/label.py.page:27
msgid "A widget that displays a small to medium amount of text"
msgstr ""
#. (itstool) path: section/p
-#: C/label.py.page:39
+#: C/label.py.page:41
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 ""
+#. (itstool) path: note/p
+#: C/label.py.page:43
+msgid ""
+"The highlighted lines indicate code that is different from the previous "
+"snippet."
+msgstr ""
+
#. (itstool) path: section/code
-#: C/label.py.page:40
+#: C/label.py.page:45
#, no-wrap
msgid ""
"\n"
@@ -18292,10 +21000,12 @@ msgid ""
" self.set_default_size(200, 100)\n"
"\n"
"# a class to define a label\n"
+"<e:hi>\n"
"class MyLabel(Gtk.Label):\n"
" def __init__(self):\n"
" Gtk.Label.__init__(self)\n"
" self.set_text(\"Hello GNOME!\")\n"
+"</e:hi>\n"
"\n"
"class MyApplication(Gtk.Application):\n"
" def __init__(self):\n"
@@ -18304,35 +21014,41 @@ msgid ""
" def do_activate(self):\n"
" # create an instance of MyWindow\n"
" win = MyWindow(self)\n"
+"\n"
" # create an instance of MyLabel\n"
+"<e:hi>\n"
" label = MyLabel()\n"
+"</e:hi>\n"
" # and add it to the window\n"
+"<e:hi>\n"
" win.add(label)\n"
+"</e:hi>\n"
" # show the window and everything on it\n"
" win.show_all()"
msgstr ""
#. (itstool) path: section/title
-#: C/label.py.page:70
+#: C/label.py.page:82
+#, fuzzy
msgid "Useful methods for a Label widget"
-msgstr ""
+msgstr "Componente do rótulo"
-#. (itstool) path: section/p
-#: C/label.py.page:71
+#. (itstool) path: note/p
+#: C/label.py.page:85
msgid ""
-"An explanation of how to deal with strings in GTK+ can be found in <link "
+"An explanation of how to work with strings in GTK+ can be found in <link "
"xref=\"strings.py\"/>."
msgstr ""
#. (itstool) path: item/p
-#: C/label.py.page:73
+#: C/label.py.page:89
msgid ""
"<code>set_line_wrap(True)</code> breaks lines if the text of the label "
"exceeds the size of the widget."
msgstr ""
#. (itstool) path: item/p
-#: C/label.py.page:74
+#: C/label.py.page:90
msgid ""
"<code>set_justify(Gtk.Justification.LEFT)</code> (or <code>Gtk.Justification."
"RIGHT, Gtk.Justification.CENTER, Gtk.Justification.FILL</code>) sets the "
@@ -18341,7 +21057,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/label.py.page:75
+#: C/label.py.page:91
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/"
@@ -18350,24 +21066,25 @@ msgid ""
msgstr ""
#. (itstool) path: item/code
-#: C/label.py.page:76
+#: C/label.py.page:92
#, no-wrap
msgid ""
"\n"
"label.set_markup(\"Text can be <small>small</small>, <big>big</big>, \"\n"
" \"<b>bold</b>, <i>italic</i> and even point to somewhere \"\n"
-" \"in the <a href=\\\"http://www.gtk.org\\\" \"\n"
-" \"title=\\\"Click to find out more\\\">internets</a>.\")"
+" \"on the <a href=\\\"http://www.gtk.org\\\" \"\n"
+" \"title=\\\"Click to find out more\\\">internet</a>.\")"
msgstr ""
#. (itstool) path: info/title
-#: C/label.vala.page:7
+#: C/label.vala.page:8
+#, fuzzy
msgctxt "text"
msgid "Label (Vala)"
-msgstr ""
+msgstr "_Vala"
#. (itstool) path: page/code
-#: C/label.vala.page:24
+#: C/label.vala.page:25
#, no-wrap
msgid ""
"\n"
@@ -18398,6 +21115,36 @@ msgid ""
"}\n"
msgstr ""
+#. (itstool) path: p/link
+#: C/legal.xml:3
+#, fuzzy
+#| msgid ""
+#| "This work is distributed under a CreativeCommons Attribution-Share Alike "
+#| "3.0 Unported license."
+msgid "Creative Commons Attribution-ShareAlike 3.0 Unported License"
+msgstr ""
+"Este trabalho está licenciado sob a Licença Creative Commons Atribuição-"
+"Compartilhada Igual 3.0 Não Adaptada. Para ver uma cópia desta licença, "
+"visite <_:link-1/> ou envie uma carta para Creative Commons, 444 Castro "
+"Street, Suite 900, Mountain View, California, 94041, USA."
+
+#. (itstool) path: license/p
+#: C/legal.xml:3
+#, fuzzy
+#| 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."
+msgid ""
+"This work is licensed under a <_:link-1/>. 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."
+msgstr ""
+"Como uma exceção especial, os mantenedores do copyright dão a você permissão "
+"para copiar, modificar e distribuir o código exemplo contido nesta "
+"documentação sob os termos de sua escolha, sem restrição."
+
#. (itstool) path: info/desc
#: C/license.page:8
msgid "Legal information."
@@ -18503,42 +21250,44 @@ msgstr ""
"para copiar, modificar e distribuir o código exemplo contido nesta "
"documentação sob os termos de sua escolha, sem restrição."
-#. (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/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 ""
-
#. (itstool) path: info/title
-#: C/linkbutton.c.page:7
+#: C/linkbutton.c.page:8
msgctxt "text"
msgid "LinkButton (C)"
-msgstr ""
+msgstr "LinkButton (C)"
#. (itstool) path: info/desc
-#: C/linkbutton.c.page:17 C/linkbutton.vala.page:17
+#: C/linkbutton.c.page:18 C/linkbutton.vala.page:18
+#, fuzzy
msgid "Create buttons bound to a URL"
-msgstr ""
+msgstr "não foi possível criar URL para %s: %s"
#. (itstool) path: page/title
-#: C/linkbutton.c.page:20 C/linkbutton.js.page:20 C/linkbutton.py.page:21
-#: C/linkbutton.vala.page:20
+#: C/linkbutton.c.page:21 C/linkbutton.js.page:21 C/linkbutton.py.page:22
+#: C/linkbutton.vala.page:21
msgid "LinkButton"
msgstr ""
+#. (itstool) path: page/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/linkbutton.c.page:23 C/linkbutton.js.page:22 C/linkbutton.py.page:24
+#: C/linkbutton.vala.page:22
+msgctxt "_"
+msgid ""
+"external ref='media/linkbutton.png' md5='3712eae8953e87c65a6aa74503b8e32b'"
+msgstr ""
+"external ref='media/linkbutton.png' md5='3712eae8953e87c65a6aa74503b8e32b'"
+
#. (itstool) path: page/p
-#: C/linkbutton.c.page:23
+#: C/linkbutton.c.page:24
msgid "This button links to the GNOME live webpage."
msgstr ""
#. (itstool) path: page/code
-#: C/linkbutton.c.page:25
+#: C/linkbutton.c.page:26
#, no-wrap
msgid ""
"\n"
@@ -18580,66 +21329,131 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/linkbutton.c.page:33
+#: C/linkbutton.c.page:34
+#, fuzzy
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkLinkButton.html"
"\">GtkLinkButton</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/\">Manual de referência</"
+"link>"
#. (itstool) path: info/title
-#: C/linkbutton.js.page:7
+#: C/linkbutton.js.page:8
msgctxt "text"
msgid "LinkButton (JavaScript)"
-msgstr ""
+msgstr "LinkButton (JavaScript)"
#. (itstool) path: info/desc
-#: C/linkbutton.js.page:17
+#: C/linkbutton.js.page:18
+#, fuzzy
msgid "A button that links to a web page"
-msgstr ""
+msgstr "Página de ligações visitadas"
#. (itstool) path: page/p
-#: C/linkbutton.js.page:22
+#: C/linkbutton.js.page:23
+#, fuzzy
msgid "A button that links to live.gnome.org."
-msgstr ""
+msgstr "Ligações simbólicas"
#. (itstool) path: page/code
-#: C/linkbutton.js.page:24
-#, no-wrap
+#: C/linkbutton.js.page:25
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const GLib = imports.gi.GLib;\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "const Webkit = imports.gi.WebKit;\n"
+#| "\n"
+#| "const HelloGNOME = new Lang.Class ({\n"
+#| " Name: 'Hello GNOME',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function () {\n"
+#| " this.application = new Gtk.Application ();\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 ({\n"
+#| " application: this.application,\n"
+#| " title: \"Welcome to GNOME\",\n"
+#| " default_height: 200,\n"
+#| " default_width: 400,\n"
+#| " window_position: Gtk.WindowPosition.CENTER });\n"
+#| "\n"
+#| " // Create a webview to show the web app\n"
+#| " this._webView = new Webkit.WebView ();\n"
+#| "\n"
+#| " // Put the web app into the webview\n"
+#| " this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+#| " \"/hellognome.html\", null));\n"
+#| "\n"
+#| " // Put the webview into the window\n"
+#| " this._window.add (this._webView);\n"
+#| "\n"
+#| " // Show the window and all child widgets\n"
+#| " this._window.show_all();\n"
+#| " },\n"
+#| "\n"
+#| "});\n"
+#| "\n"
+#| "// Run the application\n"
+#| "let app = new HelloGNOME ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const Gio = imports.gi.Gio;\n"
"const GLib = imports.gi.GLib;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const LinkButtonExample = new Lang.Class ({\n"
-" Name: 'LinkButton Example',\n"
+"class LinkButtonExample {\n"
"\n"
" // Create the application itself\n"
-" _init: function () {\n"
-" this.application = new Gtk.Application ({\n"
-" application_id: 'org.example.jslinkbutton',\n"
-" flags: Gio.ApplicationFlags.FLAGS_NONE\n"
+" constructor() {\n"
+" this.application = new Gtk.Application({\n"
+" application_id: 'org.example.jslinkbutton',\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"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents window when active\n"
-" _onActivate: function () {\n"
-" this._window.present ();\n"
-" },\n"
+" _onActivate() {\n"
+" this._window.present();\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal initializes menus and builds the UI\n"
-" _onStartup: function () {\n"
-" this._buildUI ();\n"
-" },\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function () {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow ({ application: this.application,\n"
@@ -18655,46 +21469,109 @@ msgid ""
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
-"});\n"
+" }\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new LinkButtonExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const GLib = imports.gi.GLib;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"const Webkit = imports.gi.WebKit;\n"
+"\n"
+"const HelloGNOME = new Lang.Class ({\n"
+" Name: 'Olá, GNOME',\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function () {\n"
+" this.application = new Gtk.Application ();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativa\n"
+" _onActivate: function () {\n"
+" this._window.present ();\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup: function () {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function () {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow ({\n"
+" application: this.application,\n"
+" title: \"Bem-vindo ao GNOME\",\n"
+" default_height: 200,\n"
+" default_width: 400,\n"
+" window_position: Gtk.WindowPosition.CENTER });\n"
+"\n"
+" // Cria um webview para mostrar o aplicativo web\n"
+" this._webView = new Webkit.WebView ();\n"
+"\n"
+" // Coloca o aplicativo web no webview\n"
+" this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+" \"/hellognome.html\", null));\n"
+"\n"
+" // Coloca o webview na janela\n"
+" this._window.add (this._webView);\n"
+"\n"
+" // Mostra a janela e todos seus widgets filhos\n"
+" this._window.show_all();\n"
+" },\n"
+"\n"
+"});\n"
+"\n"
+"// Executa o aplicativo\n"
+"let app = new HelloGNOME ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: item/p
-#: C/linkbutton.js.page:31
+#: C/linkbutton.js.page:32
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.LinkButton."
"html\">Gtk.LinkButton</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/linkbutton.py.page:7
+#: C/linkbutton.py.page:8
msgctxt "text"
msgid "LinkButton (Python)"
-msgstr ""
+msgstr "LinkButton (Python)"
#. (itstool) path: info/desc
-#: C/linkbutton.py.page:18
+#: C/linkbutton.py.page:19
+#, fuzzy
msgid "A button bound to an URL"
-msgstr ""
+msgstr "O URI ligado a botão"
#. (itstool) path: page/p
-#: C/linkbutton.py.page:24
+#: C/linkbutton.py.page:25
+#, fuzzy
msgid "A button that links to a web page."
-msgstr ""
+msgstr "Página de ligações visitadas"
#. (itstool) path: section/code
-#: C/linkbutton.py.page:31
+#: C/linkbutton.py.page:32
#, no-wrap
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"
@@ -18707,7 +21584,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"
@@ -18715,8 +21594,8 @@ 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"
@@ -18724,12 +21603,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/linkbutton.py.page:35
+#: C/linkbutton.py.page:36
+#, fuzzy
msgid "Useful methods for a LinkButton widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: item/p
-#: C/linkbutton.py.page:37
+#: C/linkbutton.py.page:38
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 "
@@ -18737,14 +21617,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/linkbutton.py.page:38
+#: C/linkbutton.py.page:39
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 ""
#. (itstool) path: item/p
-#: C/linkbutton.py.page:39
+#: C/linkbutton.py.page:40
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 "
@@ -18752,25 +21632,25 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/linkbutton.py.page:47
+#: C/linkbutton.py.page:48
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkLinkButton.html"
"\">GtkLinkButton</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/linkbutton.vala.page:7
+#: C/linkbutton.vala.page:8
msgctxt "text"
msgid "LinkButton (Vala)"
-msgstr ""
+msgstr "LinkButton (Vala)"
#. (itstool) path: page/p
-#: C/linkbutton.vala.page:22
+#: C/linkbutton.vala.page:23
msgid "This button links to GNOME live."
msgstr ""
#. (itstool) path: page/code
-#: C/linkbutton.vala.page:24
+#: C/linkbutton.vala.page:25
#, no-wrap
msgid ""
"/* This is the application. */\n"
@@ -18797,46 +21677,37 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/linkbutton.vala.page:29
+#: C/linkbutton.vala.page:30
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.LinkButton.html\">Gtk."
"LinkButton</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/magic-mirror.vala.page:46
-msgctxt "_"
-msgid ""
-"external ref='media/magic-mirror.png' md5='8171faea6ed3b6ddac0da084c29e4e22'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/magic-mirror.vala.page:7
+#: C/magic-mirror.vala.page:8
+#, fuzzy
msgctxt "text"
msgid "Magic mirror (Vala)"
-msgstr ""
+msgstr "_Espelhar"
#. (itstool) path: info/desc
-#: C/magic-mirror.vala.page:10
+#: C/magic-mirror.vala.page:11
msgid "Use your webcam as a mirror using the GStreamer framework and GTK+"
msgstr ""
#. (itstool) path: credit/name
-#: C/magic-mirror.vala.page:14
+#: C/magic-mirror.vala.page:15
msgid "Daniel G. Siegel"
-msgstr ""
+msgstr "Daniel G. Siegel"
#. (itstool) path: page/title
-#: C/magic-mirror.vala.page:28
+#: C/magic-mirror.vala.page:29
+#, fuzzy
msgid "Magic mirror"
-msgstr ""
+msgstr "_Espelhar"
#. (itstool) path: synopsis/p
-#: C/magic-mirror.vala.page:31
+#: C/magic-mirror.vala.page:32
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 "
@@ -18845,47 +21716,60 @@ msgid ""
msgstr ""
#. (itstool) path: synopsis/p
-#: C/magic-mirror.vala.page:32
+#: C/magic-mirror.vala.page:33
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 ""
#. (itstool) path: item/p
-#: C/magic-mirror.vala.page:34
+#: C/magic-mirror.vala.page:35
+#, fuzzy
msgid "Create a GTK+ application"
-msgstr ""
+msgstr "GTK+ (Aplicativo)"
#. (itstool) path: item/p
-#: C/magic-mirror.vala.page:35
+#: C/magic-mirror.vala.page:36
msgid "Access your webcam using GStreamer and embed the result into a window"
msgstr ""
#. (itstool) path: item/p
-#: C/magic-mirror.vala.page:36
+#: C/magic-mirror.vala.page:37
+#, fuzzy
msgid "Grab photos off your webcam"
-msgstr ""
+msgstr "Usando a sua webcam para tirar fotos em vez de gravar vídeos."
#. (itstool) path: item/p
-#: C/magic-mirror.vala.page:41
+#: C/magic-mirror.vala.page:42
msgid "Installed copies of GTK, GStreamer, and a Vala compiler"
msgstr ""
#. (itstool) path: item/p
-#: C/magic-mirror.vala.page:42
+#: C/magic-mirror.vala.page:43
msgid "Basic knowledge of an object-oriented programming language"
msgstr ""
+#. (itstool) path: page/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:47
+msgctxt "_"
+msgid ""
+"external ref='media/magic-mirror.png' md5='8171faea6ed3b6ddac0da084c29e4e22'"
+msgstr ""
+
#. (itstool) path: item/p
-#: C/magic-mirror.vala.page:56
+#: C/magic-mirror.vala.page:57
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."
+"<file>magic-mirror</file> as project name and directory."
msgstr ""
#. (itstool) path: item/p
-#: C/magic-mirror.vala.page:59
+#: C/magic-mirror.vala.page:60
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"
@@ -18893,7 +21777,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/magic-mirror.vala.page:64
+#: C/magic-mirror.vala.page:65
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 "
@@ -18901,7 +21785,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/magic-mirror.vala.page:68
+#: C/magic-mirror.vala.page:69
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</"
@@ -18909,14 +21793,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/magic-mirror.vala.page:78
+#: C/magic-mirror.vala.page:79
msgid ""
"The code loads an (empty) window and shows it. More details are given below; "
"skip this list if you understand the basics:"
msgstr ""
#. (itstool) path: item/p
-#: C/magic-mirror.vala.page:84
+#: C/magic-mirror.vala.page:85
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 "
@@ -18924,7 +21808,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/magic-mirror.vala.page:88
+#: C/magic-mirror.vala.page:89
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 "
@@ -18934,19 +21818,19 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/magic-mirror.vala.page:97
+#: C/magic-mirror.vala.page:98
msgid "Access the webcam video stream with GStreamer"
msgstr ""
#. (itstool) path: section/p
-#: C/magic-mirror.vala.page:98
+#: C/magic-mirror.vala.page:99
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 ""
#. (itstool) path: section/code
-#: C/magic-mirror.vala.page:100
+#: C/magic-mirror.vala.page:101
#, no-wrap
msgid ""
"\n"
@@ -18975,14 +21859,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/magic-mirror.vala.page:125
+#: C/magic-mirror.vala.page:126
msgid ""
"First we remove the window we created before because GStreamer will take "
"care of showing the picture on screen."
msgstr ""
#. (itstool) path: item/p
-#: C/magic-mirror.vala.page:129
+#: C/magic-mirror.vala.page:130
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 "
@@ -18993,22 +21877,22 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/magic-mirror.vala.page:136
+#: C/magic-mirror.vala.page:137
msgid ""
-"Of course it is also possible to integrate the video more tighly into other "
+"Of course it is also possible to integrate the video more tightly into other "
"windows but that is an advanced topic that includes some details of the X "
"Window System we will omit here."
msgstr ""
#. (itstool) path: item/p
-#: C/magic-mirror.vala.page:140
+#: C/magic-mirror.vala.page:141
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 ""
#. (itstool) path: section/p
-#: C/magic-mirror.vala.page:150
+#: C/magic-mirror.vala.page:151
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 "
@@ -19019,7 +21903,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/magic-mirror.vala.page:157
+#: C/magic-mirror.vala.page:158
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</"
@@ -19027,12 +21911,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/magic-mirror.vala.page:162
+#: C/magic-mirror.vala.page:163
+#, fuzzy
msgid "Conclusion"
-msgstr ""
+msgstr "Conclusão"
#. (itstool) path: section/p
-#: C/magic-mirror.vala.page:163
+#: C/magic-mirror.vala.page:164
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 "
@@ -19041,39 +21926,40 @@ 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.
-#: 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 ""
-
#. (itstool) path: info/title
-#: C/menubar.c.page:7
+#: C/menubar.c.page:8
msgctxt "text"
msgid "MenuBar (C)"
-msgstr ""
+msgstr "MenuBar (C)"
#. (itstool) path: info/desc
-#: C/menubar.c.page:19 C/menubar.py.page:24 C/menubar.vala.page:19
+#: C/menubar.c.page:20 C/menubar.py.page:25 C/menubar.vala.page:20
msgid "A widget which holds GtkMenuItem widgets"
msgstr ""
#. (itstool) path: page/title
-#: C/menubar.c.page:22 C/menubar.vala.page:22
+#: C/menubar.c.page:23 C/menubar.vala.page:23
msgid "MenuBar"
+msgstr "MenuBar"
+
+#. (itstool) path: page/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/menubar.c.page:25 C/menubar.py.page:29 C/menubar.vala.page:24
+msgctxt "_"
+msgid "external ref='media/menubar.png' md5='7b642aaa1628d5e43ab85ac230ac1c78'"
msgstr ""
+"external ref='media/menubar.png' md5='7b642aaa1628d5e43ab85ac230ac1c78'"
#. (itstool) path: page/p
-#: C/menubar.c.page:25 C/menubar.py.page:29 C/menubar.vala.page:24
+#: C/menubar.c.page:26 C/menubar.py.page:30 C/menubar.vala.page:25
msgid "A MenuBar created using XML and GtkBuilder."
msgstr ""
#. (itstool) path: note/p
-#: C/menubar.c.page:26
+#: C/menubar.c.page:27
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="
@@ -19081,7 +21967,7 @@ msgid ""
msgstr ""
#. (itstool) path: page/code
-#: C/menubar.c.page:30
+#: C/menubar.c.page:31
#, no-wrap
msgid ""
"\n"
@@ -19275,7 +22161,7 @@ msgid ""
" GVariant *parameter,\n"
" gpointer user_data)\n"
"{\n"
-" /* The two possibilies in this case for the \"answer\" variable are either\n"
+" /* The two possibilities in this case for the \"answer\" variable are either\n"
" * \"on\" or \"off\".\n"
" */\n"
" const gchar *answer = g_variant_get_string (parameter, NULL);\n"
@@ -19322,7 +22208,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"
@@ -19363,12 +22249,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"
@@ -19400,79 +22287,78 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/menubar.c.page:36 C/scrolledwindow.c.page:33
+#: C/menubar.c.page:37 C/scrolledwindow.c.page:34
+#, fuzzy
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkApplication.html"
"\">GtkApplication</link>"
msgstr ""
+"<link href=\"https://developer.gnome.org/gtk3/stable/GtkApplication.html"
+"\">GtkApplication</link>"
#. (itstool) path: item/p
-#: C/menubar.c.page:39
+#: C/menubar.c.page:40
msgid ""
"<link href=\"http://developer.gnome.org/gtk/stable/GtkAboutDialog.html"
"\">GtkAboutDialog</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/menubar.c.page:40
+#: C/menubar.c.page:41
+#, fuzzy
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.
-#: C/menubar.py.page:131 C/menubar.vala.page:133
-msgctxt "_"
-msgid ""
-"external ref='media/menubar_choices.png' "
-"md5='47cdfa12caf85ba20dd3e835bd7f893f'"
-msgstr ""
+"<link href=\"http://developer.gnome.org/glib/stable/\">Manual de referência "
+"do GLib</link>"
#. (itstool) path: info/title
-#: C/menubar.py.page:7
+#: C/menubar.py.page:8
msgctxt "text"
msgid "MenuBar (Python)"
-msgstr ""
+msgstr "MenuBar (Python)"
#. (itstool) path: page/title
-#: C/menubar.py.page:27
+#: C/menubar.py.page:28
msgid "MenuBar created using XML and GtkBuilder"
msgstr ""
#. (itstool) path: section/title
-#: C/menubar.py.page:33 C/menubar.vala.page:28
+#: C/menubar.py.page:34 C/menubar.vala.page:29
+#, fuzzy
msgid "Create a MenuBar using XML"
-msgstr ""
+msgstr "Usando as descrições em XML em %s\n"
#. (itstool) path: section/p
-#: C/menubar.py.page:34 C/menubar.vala.page:29
+#: C/menubar.py.page:35 C/menubar.vala.page:30
+#, fuzzy
msgid "To create the menubar using XML:"
-msgstr ""
+msgstr "Usando as descrições em XML em %s\n"
#. (itstool) path: item/p
-#: C/menubar.py.page:36 C/menubar.vala.page:31
+#: C/menubar.py.page:37 C/menubar.vala.page:32
msgid "Create <file>menubar.ui</file> using your favorite text editor."
msgstr ""
#. (itstool) path: item/p
-#: C/menubar.py.page:37 C/menubar.vala.page:32
+#: C/menubar.py.page:38 C/menubar.vala.page:33
+#, fuzzy
msgid "Enter the following line at the top of the file:"
-msgstr ""
+msgstr "Adicione a seguinte linha no <file>Makefile.am</file>:"
#. (itstool) path: item/code
-#: C/menubar.py.page:38 C/menubar.vala.page:33
+#: C/menubar.py.page:39 C/menubar.vala.page:34
#, no-wrap
msgid ""
"\n"
"<?xml version=\"1.0\"? encoding=\"UTF-8\"?>"
msgstr ""
+"\n"
+"<?xml version=\"1.0\"? encoding=\"UTF-8\"?>"
#. (itstool) path: item/p
-#: C/menubar.py.page:41 C/menubar.vala.page:36
+#: C/menubar.py.page:42 C/menubar.vala.page:37
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>, "
@@ -19481,7 +22367,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/code
-#: C/menubar.py.page:42 C/menubar.vala.page:37
+#: C/menubar.py.page:43 C/menubar.vala.page:38
#, no-wrap
msgid ""
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
@@ -19504,30 +22390,34 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/menubar.py.page:44
+#: C/menubar.py.page:45
msgid ""
"Now we will create the .py file and use GtkBuilder to import the "
"<file>menubar.ui</file> we just created."
msgstr ""
#. (itstool) path: section/title
-#: C/menubar.py.page:48 C/menubar.vala.page:42
+#: C/menubar.py.page:49 C/menubar.vala.page:43
msgid "Add the MenuBar to the window using GtkBuilder"
msgstr ""
#. (itstool) path: section/code
-#: C/menubar.py.page:49
+#: C/menubar.py.page:50
#, 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"
@@ -19544,7 +22434,7 @@ msgid ""
" try:\n"
" builder.add_from_file(\"menubar_basis.ui\")\n"
" except:\n"
-" print \"file not found\"\n"
+" print(\"file not found\")\n"
" sys.exit()\n"
"\n"
" # we use the method Gtk.Application.set_menubar(menubar) to add the menubar\n"
@@ -19557,19 +22447,20 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/menubar.py.page:50
+#: C/menubar.py.page:51
msgid ""
"Now run the python application. It should look like the picture at the top "
"of this page."
msgstr ""
#. (itstool) path: section/title
-#: C/menubar.py.page:54 C/menubar.vala.page:50
+#: C/menubar.py.page:55 C/menubar.vala.page:51
+#, fuzzy
msgid "Add items to the menus"
-msgstr ""
+msgstr "Adicionar _novos itens…"
#. (itstool) path: section/p
-#: C/menubar.py.page:55 C/menubar.vala.page:51
+#: C/menubar.py.page:56 C/menubar.vala.page:52
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 "
@@ -19579,13 +22470,13 @@ msgid ""
msgstr ""
#. (itstool) path: listing/title
-#: C/menubar.py.page:58
+#: C/menubar.py.page:59
msgid "menubar.ui"
msgstr ""
#. (itstool) path: listing/code
#. (itstool) path: section/code
-#: C/menubar.py.page:59 C/menubar.vala.page:52
+#: C/menubar.py.page:60 C/menubar.vala.page:53
#, no-wrap
msgid ""
"\n"
@@ -19617,7 +22508,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/menubar.py.page:87
+#: C/menubar.py.page:88
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 "
@@ -19625,19 +22516,22 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/menubar.py.page:92 C/menubar.vala.page:86
+#: C/menubar.py.page:93 C/menubar.vala.page:87
+#, fuzzy
msgid "Setup actions"
msgstr ""
+"Ajustar ações personalizadas que aparecerão nos menus de contexto do "
+"gerenciador de arquivos"
#. (itstool) path: section/p
-#: C/menubar.py.page:94
+#: C/menubar.py.page:95
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 ""
#. (itstool) path: section/code
-#: C/menubar.py.page:95
+#: C/menubar.py.page:96
#, no-wrap
msgid ""
"\n"
@@ -19646,12 +22540,12 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/menubar.py.page:99
+#: C/menubar.py.page:100
msgid "And we create the callback function of \"new\" as"
msgstr ""
#. (itstool) path: section/code
-#: C/menubar.py.page:100
+#: C/menubar.py.page:101
#, no-wrap
msgid ""
"\n"
@@ -19660,14 +22554,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/menubar.py.page:104
+#: C/menubar.py.page:105
msgid ""
"Now, in the XML file, we connect the menu items to the actions in the XML "
"file by adding the \"action\" attribute:"
msgstr ""
#. (itstool) path: section/code
-#: C/menubar.py.page:105
+#: C/menubar.py.page:106
#, no-wrap
msgid ""
"\n"
@@ -19678,7 +22572,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/menubar.py.page:111
+#: C/menubar.py.page:112
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 "
@@ -19686,7 +22580,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/menubar.py.page:113
+#: C/menubar.py.page:114
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 "
@@ -19694,27 +22588,28 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/menubar.py.page:114
-#, no-wrap
+#: C/menubar.py.page:115
+#, fuzzy, no-wrap
msgid ""
"\n"
"self.add_action(new_action)"
-msgstr ""
+msgstr "Nova _ação"
#. (itstool) path: section/p
-#: C/menubar.py.page:117
+#: C/menubar.py.page:118
msgid ""
"See <link xref=\"signals-callbacks.py\"/> for a more detailed explanation of "
"signals and callbacks."
msgstr ""
#. (itstool) path: section/title
-#: C/menubar.py.page:121 C/menubar.vala.page:138
+#: C/menubar.py.page:122 C/menubar.vala.page:139
+#, fuzzy
msgid "Actions: Application or Window?"
-msgstr ""
+msgstr "_Ações de janelas"
#. (itstool) path: section/p
-#: C/menubar.py.page:122 C/menubar.vala.page:139
+#: C/menubar.py.page:123 C/menubar.vala.page:140
msgid ""
"Above, we created the \"new\" and \"open\" actions as part of the "
"MyApplication class. Actions which control the application itself, such as "
@@ -19722,19 +22617,19 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/menubar.py.page:124 C/menubar.vala.page:142
+#: C/menubar.py.page:125 C/menubar.vala.page:143
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 ""
#. (itstool) path: section/p
-#: C/menubar.py.page:126
+#: C/menubar.py.page:127
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, "
+"include window actions in the application 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 "
@@ -19742,19 +22637,31 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/menubar.py.page:130 C/menubar.vala.page:132
+#: C/menubar.py.page:131 C/menubar.vala.page:133
msgid "Choices submenu and items with state"
msgstr ""
+#. (itstool) path: section/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/menubar.py.page:132 C/menubar.vala.page:134
+msgctxt "_"
+msgid ""
+"external ref='media/menubar_choices.png' "
+"md5='47cdfa12caf85ba20dd3e835bd7f893f'"
+msgstr ""
+
#. (itstool) path: section/p
-#: C/menubar.py.page:132
+#: C/menubar.py.page:133
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 ""
#. (itstool) path: section/p
-#: C/menubar.py.page:134
+#: C/menubar.py.page:135
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 "
@@ -19763,7 +22670,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/menubar.py.page:135
+#: C/menubar.py.page:136
#, no-wrap
msgid ""
"\n"
@@ -19771,7 +22678,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/menubar.py.page:138
+#: C/menubar.py.page:139
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-"
@@ -19783,7 +22690,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/menubar.py.page:140
+#: C/menubar.py.page:141
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 "
@@ -19791,7 +22698,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/menubar.py.page:142
+#: C/menubar.py.page:143
#, no-wrap
msgid ""
"\n"
@@ -19800,12 +22707,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/menubar.py.page:149 C/menubar.vala.page:153
+#: C/menubar.py.page:150 C/menubar.vala.page:154
+#, fuzzy
msgid "Complete XML UI file for this example"
-msgstr ""
+msgstr "Não foi possível mesclar o arquivo xml de interface: %s"
#. (itstool) path: section/code
-#: C/menubar.py.page:150 C/menubar.vala.page:154
+#: C/menubar.py.page:151 C/menubar.vala.page:155
#, no-wrap
msgid ""
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
@@ -19914,12 +22822,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/menubar.py.page:154
+#: C/menubar.py.page:155
+#, fuzzy
msgid "Complete Python file for this example"
-msgstr ""
+msgstr "Arquivo %s concluiu"
#. (itstool) path: section/code
-#: C/menubar.py.page:155
+#: C/menubar.py.page:156
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -19927,7 +22836,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"
@@ -19947,7 +22858,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"
@@ -19962,17 +22874,17 @@ msgid ""
"\n"
" # callback function for copy_action\n"
" def copy_callback(self, action, parameter):\n"
-" print \"\\\"Copy\\\" activated\"\n"
+" print(\"\\\"Copy\\\" activated\")\n"
"\n"
" # callback function for paste_action\n"
" def paste_callback(self, action, parameter):\n"
-" print \"\\\"Paste\\\" activated\"\n"
+" print(\"\\\"Paste\\\" activated\")\n"
"\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"
@@ -19985,7 +22897,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"
@@ -20001,7 +22914,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"
@@ -20028,14 +22943,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"
@@ -20047,7 +22964,7 @@ msgid ""
" try:\n"
" builder.add_from_file(\"menubar.ui\")\n"
" except:\n"
-" print \"file not found\"\n"
+" print(\"file not found\")\n"
" sys.exit()\n"
"\n"
" # we use the method Gtk.Application.set_menubar(menubar) to add the menubar\n"
@@ -20057,25 +22974,25 @@ msgid ""
"\n"
" # callback function for new\n"
" def new_callback(self, action, parameter):\n"
-" print \"You clicked \\\"New\\\"\"\n"
+" print(\"You clicked \\\"New\\\"\")\n"
"\n"
" # callback function for quit\n"
" def quit_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Quit\\\"\"\n"
+" print(\"You clicked \\\"Quit\\\"\")\n"
" sys.exit()\n"
"\n"
" # callback function for state\n"
" def state_callback(self, action, parameter):\n"
-" print \"State is set to\", parameter.get_string()\n"
+" print(\"State is set to\", parameter.get_string())\n"
" action.set_state(parameter)\n"
"\n"
" # callback function for awesome\n"
" def awesome_callback(self, action, parameter):\n"
" action.set_state(GLib.Variant.new_boolean(not action.get_state()))\n"
" if action.get_state().get_boolean() is True:\n"
-" print \"You checked \\\"Awesome\\\"\"\n"
+" print(\"You checked \\\"Awesome\\\"\")\n"
" else:\n"
-" print \"You unchecked \\\"Awesome\\\"\"\n"
+" print(\"You unchecked \\\"Awesome\\\"\")\n"
"\n"
"\n"
"app = MyApplication()\n"
@@ -20084,12 +23001,17 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/menubar.py.page:158
+#: C/menubar.py.page:159
+#, fuzzy
msgid "Mnemonics and Accelerators"
msgstr ""
+"A maioria das funcionalidades deve ser fácil de tornar acessível usando "
+"aceleradores e mnemônicos de teclado e usando os recursos de navegação "
+"embarcados do kit de ferramentas. Porém, as operações que dependem de "
+"arrastar e soltar, por exemplo, podem exigir mais esforço."
#. (itstool) path: section/p
-#: C/menubar.py.page:159 C/menubar.vala.page:161
+#: C/menubar.py.page:160 C/menubar.vala.page:162
msgid ""
"Labels may contain mnemonics. Mnemonics are underlined characters in the "
"label, used for keyboard navigation. Mnemonics are created by placing an "
@@ -20098,7 +23020,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/menubar.py.page:160 C/menubar.vala.page:162
+#: C/menubar.py.page:161 C/menubar.vala.page:163
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> "
@@ -20106,7 +23028,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/menubar.py.page:162 C/menubar.vala.page:167
+#: C/menubar.py.page:163 C/menubar.vala.page:168
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</"
@@ -20116,7 +23038,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/menubar.py.page:163 C/menubar.vala.page:168
+#: C/menubar.py.page:164 C/menubar.vala.page:169
msgid ""
"<code mime=\"application/xml\"><attribute name=\"accel\">&lt;"
"Primary&gt;q</attribute></code> will create the <keyseq><key>Ctrl</"
@@ -20126,7 +23048,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/menubar.py.page:165 C/menubar.vala.page:170
+#: C/menubar.py.page:166 C/menubar.vala.page:171
#, no-wrap
msgid ""
"\n"
@@ -20138,54 +23060,55 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/menubar.py.page:173 C/menubar.vala.page:178
+#: C/menubar.py.page:174 C/menubar.vala.page:179
+#, fuzzy
msgid "Translatable strings"
-msgstr ""
+msgstr "Extrai strings traduzíveis dos arquivos de entrada passados.\n"
#. (itstool) path: section/p
-#: C/menubar.py.page:174 C/menubar.vala.page:179
+#: C/menubar.py.page:175 C/menubar.vala.page:180
msgid ""
"Since GNOME applications are being translated into <link href=\"http://l10n."
"gnome.org/languages/\">many languages</link>, it is important that the "
-"strings in your application are translable. To make a label translatable, "
+"strings in your application are translatable. To make a label translatable, "
"simple set <code>translatable=\"yes\"</code>:"
msgstr ""
#. (itstool) path: section/code
-#: C/menubar.py.page:178
+#: C/menubar.py.page:179
#, no-wrap
msgid "<attribute name=\"label\" translatable=\"yes\">Quit</attribute>"
msgstr ""
#. (itstool) path: item/p
-#: C/menubar.py.page:185
+#: C/menubar.py.page:186
msgid ""
"<link href=\"http://developer.gnome.org/gio/unstable/GSimpleAction.html"
"\">GSimpleAction</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/menubar.py.page:186 C/toolbar_builder.py.page:196
+#: C/menubar.py.page:187 C/toolbar_builder.py.page:197
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkBuilder.html"
"\">GtkBuilder</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/menubar.vala.page:7
+#: C/menubar.vala.page:8
msgctxt "text"
msgid "MenuBar (Vala)"
-msgstr ""
+msgstr "MenuBar (Vala)"
#. (itstool) path: item/p
-#: C/menubar.vala.page:39
+#: C/menubar.vala.page:40
msgid ""
"Now we will create the .vala file and use GtkBuilder to import the "
"<file>menubar.ui</file> we just created."
msgstr ""
#. (itstool) path: section/code
-#: C/menubar.vala.page:43
+#: C/menubar.vala.page:44
#, no-wrap
msgid ""
"public class MyWindow : Gtk.ApplicationWindow {\n"
@@ -20224,14 +23147,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/menubar.vala.page:44
+#: C/menubar.vala.page:45
msgid ""
"Now, compile the vala file, and run it. The application should look like the "
"picture at the top of this page."
msgstr ""
#. (itstool) path: section/p
-#: C/menubar.vala.page:79
+#: C/menubar.vala.page:80
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 "
@@ -20241,7 +23164,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/menubar.vala.page:81
+#: C/menubar.vala.page:82
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 "
@@ -20249,48 +23172,51 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/menubar.vala.page:87
+#: C/menubar.vala.page:88
+#, fuzzy
msgid "This is a three step process."
-msgstr ""
+msgstr "três"
#. (itstool) path: item/p
-#: C/menubar.vala.page:89
+#: C/menubar.vala.page:90
msgid ""
"First we create the ActionEntry array in the MyApplication class. An "
"ActionEntry consists of:"
msgstr ""
#. (itstool) path: item/p
-#: C/menubar.vala.page:92
+#: C/menubar.vala.page:93
+#, fuzzy
msgid "the \"action name\" (mandatory)"
-msgstr ""
+msgstr "Erro: id de uma ação é obrigatória.\n"
#. (itstool) path: item/p
-#: C/menubar.vala.page:93
+#: C/menubar.vala.page:94
msgid ""
"the callback function to connect to the \"activate\" signal of the action "
"(if applicable)"
msgstr ""
#. (itstool) path: item/p
-#: C/menubar.vala.page:94
+#: C/menubar.vala.page:95
msgid ""
"the type of the parameter that must be passed to the activate function for "
"the action (if applicable)"
msgstr ""
#. (itstool) path: item/p
-#: C/menubar.vala.page:95
+#: C/menubar.vala.page:96
+#, fuzzy
msgid "the initial state for this action (if applicable)"
-msgstr ""
+msgstr "Estado inicial da janela:"
#. (itstool) path: item/p
-#: C/menubar.vala.page:96
+#: C/menubar.vala.page:97
msgid "the callback to connect to \"change-state\" signal (if applicable)"
msgstr ""
#. (itstool) path: item/code
-#: C/menubar.vala.page:98
+#: C/menubar.vala.page:99
#, no-wrap
msgid ""
"\n"
@@ -20301,12 +23227,12 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/menubar.vala.page:105
+#: C/menubar.vala.page:106
msgid "Second, we create the callback functions the actions are connected to."
msgstr ""
#. (itstool) path: item/code
-#: C/menubar.vala.page:106
+#: C/menubar.vala.page:107
#, no-wrap
msgid ""
"\n"
@@ -20317,19 +23243,19 @@ msgid ""
"\n"
"void quit_cb (SimpleAction action, Variant? parameter) {\n"
" print (\"You clicked \\\"Quit\\\"\\n\");\n"
-" //this.quit (); **Bug #674090**\n"
+" this.quit ();\n"
"}"
msgstr ""
#. (itstool) path: item/p
-#: C/menubar.vala.page:117
+#: C/menubar.vala.page:118
msgid ""
"And lastly, we connect the menu items to the actions in the XML file by "
"adding the \"action\" attribute:"
msgstr ""
#. (itstool) path: item/code
-#: C/menubar.vala.page:118
+#: C/menubar.vala.page:119
#, no-wrap
msgid ""
"\n"
@@ -20344,19 +23270,19 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/menubar.vala.page:134
+#: C/menubar.vala.page:135
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 ""
#. (itstool) path: section/p
-#: C/menubar.vala.page:145
+#: C/menubar.vala.page:146
msgid ""
"The complete example files contain both application actions and window "
"applications. The window actions are the ones usually included in the <link "
"xref=\"gmenu.vala\">application menu</link> also. It is not good practice to "
-"include window actions in the applcation menu. For demonstration purposes, "
+"include window actions in the application 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 "
@@ -20364,12 +23290,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/menubar.vala.page:156
+#: C/menubar.vala.page:157
+#, fuzzy
msgid "Complete Vala file for this example"
-msgstr ""
+msgstr "Arquivos de código fonte em Vala"
#. (itstool) path: section/code
-#: C/menubar.vala.page:157
+#: C/menubar.vala.page:158
#, no-wrap
msgid ""
"public class MyWindow : Gtk.ApplicationWindow {\n"
@@ -20419,7 +23346,7 @@ msgid ""
"\n"
"\tvoid quit_cb (SimpleAction action, Variant? parameter) {\n"
"\t\tprint (\"You clicked \\\"Quit\\\"\\n\");\n"
-"\t\t//this.quit (); **Bug #674090**\n"
+"\t\tthis.quit ();\n"
"\t}\n"
"\n"
"\tvoid awesome_cb (SimpleAction action, Variant? parameter) {\n"
@@ -20474,68 +23401,71 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/menubar.vala.page:160
+#: C/menubar.vala.page:161
+#, fuzzy
msgid "Mnemonics"
-msgstr ""
+msgstr "Mnemônicos (teclas de acesso)"
#. (itstool) path: section/title
-#: C/menubar.vala.page:166
+#: C/menubar.vala.page:167
+#, fuzzy
msgid "Accelerators"
-msgstr ""
+msgstr "Aceleradores"
#. (itstool) path: section/p
-#: C/menubar.vala.page:182
+#: C/menubar.vala.page:183
msgid ""
"<code mime=\"application/xml\"><attribute name=\"label\" translatable="
"\"yes\">Quit</attribute></code>"
msgstr ""
#. (itstool) path: item/p
-#: C/menubar.vala.page:191
+#: C/menubar.vala.page:192
msgid ""
"<link href=\"http://valadoc.org/gio-2.0/GLib.ActionEntry.html\">Glib."
"ActionEntry</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/menubar.vala.page:192
+#: C/menubar.vala.page:193
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.
-#: C/menubutton.c.page:21 C/menubutton.js.page:21 C/menubutton.py.page:28
-#: C/menubutton.vala.page:21
-msgctxt "_"
-msgid ""
-"external ref='media/menubutton.png' md5='99eedc5ef2d6c56d32ca9ae7f3f3320f'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/menubutton.c.page:7 C/menubutton.py.page:7
+#: C/menubutton.c.page:8 C/menubutton.py.page:8
msgctxt "text"
msgid "MenuButton"
msgstr ""
#. (itstool) path: info/desc
-#: C/menubutton.c.page:17 C/menubutton.js.page:17 C/menubutton.py.page:24
-#: C/menubutton.vala.page:17
+#: C/menubutton.c.page:18 C/menubutton.js.page:18 C/menubutton.py.page:25
+#: C/menubutton.vala.page:18
msgid "A widget that shows a menu when clicked on"
msgstr ""
#. (itstool) path: page/title
-#: C/menubutton.c.page:20 C/menubutton.js.page:20 C/menubutton.py.page:27
-#: C/menubutton.vala.page:20
+#: C/menubutton.c.page:21 C/menubutton.js.page:21 C/menubutton.py.page:28
+#: C/menubutton.vala.page:21
msgid "MenuButton"
msgstr ""
-#. (itstool) path: page/p
+#. (itstool) path: page/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/menubutton.c.page:22 C/menubutton.js.page:22 C/menubutton.py.page:29
#: C/menubutton.vala.page:22
+msgctxt "_"
+msgid ""
+"external ref='media/menubutton.png' md5='99eedc5ef2d6c56d32ca9ae7f3f3320f'"
+msgstr ""
+"external ref='media/menubutton.png' md5='99eedc5ef2d6c56d32ca9ae7f3f3320f'"
+
+#. (itstool) path: page/p
+#: C/menubutton.c.page:23 C/menubutton.js.page:23 C/menubutton.py.page:30
+#: C/menubutton.vala.page:23
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 "
@@ -20545,12 +23475,12 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/menubutton.c.page:24 C/menubutton.js.page:26
+#: C/menubutton.c.page:25 C/menubutton.js.page:27
msgid "You need to be running GNOME 3.6 or later for the MenuButton to work."
msgstr ""
#. (itstool) path: section/code
-#: C/menubutton.c.page:30
+#: C/menubutton.c.page:31
#, no-wrap
msgid ""
"#include <gtk/gtk.h>\n"
@@ -20656,70 +23586,78 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/menubutton.c.page:37
+#: C/menubutton.c.page:38
+#, fuzzy
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkMenuButton.html"
"\">GtkMenuButton</link>"
msgstr ""
+"<link href=\"https://developer.gnome.org/gtk3/stable/GtkMenuButton.html"
+"\">GtkMenuButton</link>"
#. (itstool) path: item/p
-#: C/menubutton.c.page:38
+#: C/menubutton.c.page:39
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
+#: C/menubutton.c.page:40
msgid ""
"<link href=\"https://developer.gnome.org/gio/unstable/GMenuModel.html"
"\">GMenuModel</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/menubutton.c.page:40
+#: C/menubutton.c.page:41
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkArrow.html"
"\">GtkArrow</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/menubutton.js.page:7
+#: C/menubutton.js.page:8
msgctxt "text"
msgid "MenuButton (JavaScript)"
-msgstr ""
+msgstr "MenuButton (JavaScript)"
#. (itstool) path: credit/name
-#: C/menubutton.js.page:12
+#: C/menubutton.js.page:13
+#, fuzzy
msgid "Anna Zacchi"
-msgstr ""
+msgstr "Anna Philips"
#. (itstool) path: page/code
-#: C/menubutton.js.page:27
+#: C/menubutton.js.page:28
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const Gio = imports.gi.Gio;\n"
"const GLib = imports.gi.GLib;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const Application = new Lang.Class ({\n"
-" Name: 'Application',\n"
+"class Application {\n"
"\n"
" //create the application\n"
-" _init: function() {\n"
-" this.application = new Gtk.Application ({ application_id: 'org.example.myapp',\n"
-" flags: Gio.ApplicationFlags.FLAGS_NONE });\n"
+" constructor() {\n"
+" this.application = new Gtk.Application({\n"
+" application_id: 'org.example.myapp',\n"
+" flags: Gio.ApplicationFlags.FLAGS_NONE\n"
+" });\n"
"\n"
-" //connect to '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"
+" //connect to 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" //create the UI (in this case it's just the ApplicationWindow)\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
" this._window = new Gtk.ApplicationWindow({ application: this.application,\n"
" window_position: Gtk.WindowPosition.CENTER,\n"
" title: \"MenuButton Example\" });\n"
@@ -20730,7 +23668,7 @@ msgid ""
"\n"
" this._menuButton = new Gtk.MenuButton();\n"
" this.grid.attach(this._menuButton, 0, 0, 1, 1 );\n"
-" this.menu = new Gtk.Menu.new_from_model(this.menuModel);\n"
+" this.menu = Gtk.Menu.new_from_model(this.menuModel);\n"
"\n"
" this.menu.show();\n"
" this._menuButton.set_menu_model (this.menuModel);\n"
@@ -20738,37 +23676,28 @@ msgid ""
" this._menuButton.show();\n"
"\n"
" this._window.show_all();\n"
-" },\n"
+" }\n"
"\n"
-" _showNew: function() {\n"
-" print(\"You clicked \\\"New\\\"\");\n"
-" },\n"
+" _showNew() {\n"
+" print(\"You clicked \\\"New\\\"\");\n"
+" }\n"
"\n"
-" _showAbout: function() {\n"
+" _showAbout() {\n"
" print(\"You clicked \\\"About\\\"\");\n"
-" },\n"
+" }\n"
"\n"
" //create the menu items and connect the signals to the callback functions.\n"
-" _initMenus: function() {\n"
+" _initMenus() {\n"
" let newAction = new Gio.SimpleAction({ name: 'new' });\n"
-" newAction.connect('activate', Lang.bind(this,\n"
-" function() {\n"
-" this._showNew();\n"
-" }));\n"
+" newAction.connect('activate', () => { this._showNew(); });\n"
" this.application.add_action(newAction);\n"
"\n"
" let aboutAction = new Gio.SimpleAction({ name: 'about' });\n"
-" aboutAction.connect('activate', Lang.bind(this,\n"
-" function() {\n"
-" this._showAbout();\n"
-" }));\n"
+" aboutAction.connect('activate', () => { this._showAbout(); });\n"
" this.application.add_action(aboutAction);\n"
"\n"
" let quitAction = new Gio.SimpleAction({ name: 'quit' });\n"
-" quitAction.connect('activate', Lang.bind(this,\n"
-" function() {\n"
-" this._window.destroy();\n"
-" }));\n"
+" quitAction.connect('activate', () => { this._window.destroy(); });\n"
" this.application.add_action(quitAction);\n"
"\n"
" this.menuModel = new Gio.Menu();\n"
@@ -20786,20 +23715,20 @@ msgid ""
" this.menuItemQuit = Gio.MenuItem.new(\"Quit\", 'app.quit');\n"
" this.subMenu.append_item(this.menuItemQuit);\n"
" this.menuModel.append_item(this.fileMenuItem);\n"
-" },\n"
+" }\n"
"\n"
" //callback function for 'activate' signal\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" //callback function for 'startup' signal\n"
-" _onStartup: function() {\n"
+" _onStartup() {\n"
" //You must call _initMenus() before calling _buildUI().\n"
" this._initMenus();\n"
" this._buildUI();\n"
" }\n"
-"});\n"
+"};\n"
"\n"
"//run the application\n"
"let app = new Application();\n"
@@ -20807,38 +23736,40 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/menubutton.js.page:32 C/menubutton.vala.page:32
+#: C/menubutton.js.page:33 C/menubutton.vala.page:33
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/3.5/gtk3-GtkMenuButton.html"
"\">MenuButton</link>"
msgstr ""
#. (itstool) path: note/p
-#: C/menubutton.py.page:31 C/menubutton.vala.page:26
+#: C/menubutton.py.page:32 C/menubutton.vala.page:27
msgid "You need to be running GNOME 3.6 for the MenuButton to work."
msgstr ""
#. (itstool) path: section/code
-#: C/menubutton.py.page:37
+#: C/menubutton.py.page:38
#, 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"
@@ -20856,14 +23787,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"
+" print(\"You clicked \\\"About\\\"\")\n"
+"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -20878,17 +23811,17 @@ 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"
+" print(\"You clicked \\\"New\\\"\")\n"
"\n"
" def quit_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Quit\\\"\"\n"
+" print(\"You clicked \\\"Quit\\\"\")\n"
" self.quit()\n"
"\n"
"app = MyApplication()\n"
@@ -20897,22 +23830,23 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/menubutton.py.page:41
+#: C/menubutton.py.page:42
+#, fuzzy
msgid "Useful methods for a MenuButton widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: section/p
-#: C/menubutton.py.page:42
+#: C/menubutton.py.page:43
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 ""
#. (itstool) path: section/p
-#: C/menubutton.py.page:44
+#: C/menubutton.py.page:45
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 "
@@ -20927,7 +23861,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/menubutton.py.page:46
+#: C/menubutton.py.page:47
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 "
@@ -20935,27 +23869,27 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/menubutton.py.page:48
+#: C/menubutton.py.page:49
msgid ""
"<code>set_align_widget(alignment)</code> and <code>set_direction(direction)</"
"code> can be used to set these properties."
msgstr ""
#. (itstool) path: item/p
-#: C/menubutton.py.page:55
+#: C/menubutton.py.page:56
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkMenuButton.html"
"\">MenuButton</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/menubutton.vala.page:7
+#: C/menubutton.vala.page:8
msgctxt "text"
msgid "MenuButton (Vala)"
-msgstr ""
+msgstr "MenuButton (Vala)"
#. (itstool) path: page/code
-#: C/menubutton.vala.page:27
+#: C/menubutton.vala.page:28
#, no-wrap
msgid ""
"public class MyWindow : Gtk.ApplicationWindow {\n"
@@ -21025,46 +23959,37 @@ 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
-msgctxt "_"
-msgid ""
-"external ref='media/message-board.ogv' md5='beb80c4538776dc2cdd26c95abea5027'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/message-board.c.page:7
+#: C/message-board.c.page:8
+#, fuzzy
msgctxt "text"
msgid "Message board (C)"
-msgstr ""
+msgstr " board – exibe o tabuleiro atual"
#. (itstool) path: info/desc
-#: C/message-board.c.page:10
+#: C/message-board.c.page:11
msgid "A simple program using WebKitGTK+ and the DOM."
msgstr ""
#. (itstool) path: page/title
-#: C/message-board.c.page:25
+#: C/message-board.c.page:26
+#, fuzzy
msgid "Message board"
-msgstr ""
+msgstr " board – exibe o tabuleiro atual"
#. (itstool) path: item/p
-#: C/message-board.c.page:30
+#: C/message-board.c.page:31
msgid "How to display a web page with WebKit."
msgstr ""
#. (itstool) path: item/p
-#: C/message-board.c.page:31
+#: C/message-board.c.page:32
msgid ""
"How to manipulate the contents of a web page using WebKit's DOM functions."
msgstr ""
#. (itstool) path: synopsis/p
-#: C/message-board.c.page:34
+#: C/message-board.c.page:35
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 "
@@ -21072,8 +23997,19 @@ msgid ""
"\"image-viewer.c\"/> to learn the basics of GTK+."
msgstr ""
+#. (itstool) path: page/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:41
+msgctxt "_"
+msgid ""
+"external ref='media/message-board.ogv' md5='beb80c4538776dc2cdd26c95abea5027'"
+msgstr ""
+
#. (itstool) path: section/p
-#: C/message-board.c.page:47
+#: C/message-board.c.page:48
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 "
@@ -21082,7 +24018,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:52
+#: C/message-board.c.page:53
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 "
@@ -21091,35 +24027,35 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/message-board.c.page:58
+#: C/message-board.c.page:59
msgid ""
"In Anjuta, click <guiseq><gui>File</gui><gui>New</gui> <gui>Project</gui></"
"guiseq> to open the new project assistant."
msgstr ""
#. (itstool) path: item/p
-#: C/message-board.c.page:60
+#: C/message-board.c.page:61
msgid ""
"Select <gui>GTK+ (simple)</gui> on the <gui>C</gui> tab, and click "
"<gui>Continue</gui>."
msgstr ""
#. (itstool) path: item/p
-#: C/message-board.c.page:62
+#: C/message-board.c.page:63
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 ""
#. (itstool) path: item/p
-#: C/message-board.c.page:65
+#: C/message-board.c.page:66
msgid ""
"Disable the <gui>Use GtkBuilder for user interface</gui> option as this "
"tutorial builds the user-interface manually."
msgstr ""
#. (itstool) path: item/p
-#: C/message-board.c.page:68
+#: C/message-board.c.page:69
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</"
@@ -21128,7 +24064,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:74
+#: C/message-board.c.page:75
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 "
@@ -21139,13 +24075,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/message-board.c.page:81
-#, no-wrap
+#: C/message-board.c.page:82
+#, fuzzy, no-wrap
msgid "#include <webkit/webkit.h>"
-msgstr ""
+msgstr "#include <gtkmm.h>"
#. (itstool) path: section/p
-#: C/message-board.c.page:83
+#: C/message-board.c.page:84
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 "
@@ -21155,7 +24091,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:89
+#: C/message-board.c.page:90
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 "
@@ -21163,12 +24099,12 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/message-board.c.page:95
+#: C/message-board.c.page:96
msgid "Lay out your window and web view"
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:97
+#: C/message-board.c.page:98
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 "
@@ -21177,7 +24113,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/message-board.c.page:102
+#: C/message-board.c.page:103
#, no-wrap
msgid ""
"\n"
@@ -21216,7 +24152,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:137
+#: C/message-board.c.page:138
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 "
@@ -21226,7 +24162,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:143
+#: C/message-board.c.page:144
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 "
@@ -21236,7 +24172,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:149
+#: C/message-board.c.page:150
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 "
@@ -21247,7 +24183,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:156
+#: C/message-board.c.page:157
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 "
@@ -21258,7 +24194,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:163
+#: C/message-board.c.page:164
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 "
@@ -21266,12 +24202,13 @@ msgid ""
msgstr ""
#. (itstool) path: item/title
-#: C/message-board.c.page:169
+#: C/message-board.c.page:170
+#, fuzzy
msgid "<code>WEBKIT_WEB_VIEW (view)</code>"
-msgstr ""
+msgstr "<em>Visualização de código fonte</em>"
#. (itstool) path: item/p
-#: C/message-board.c.page:170
+#: C/message-board.c.page:171
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 "
@@ -21279,34 +24216,41 @@ msgid ""
msgstr ""
#. (itstool) path: item/title
-#: C/message-board.c.page:175
+#: C/message-board.c.page:176
msgid "<code>\"<html><body></body></html>\"</code>"
msgstr ""
#. (itstool) path: item/p
-#: C/message-board.c.page:176
+#: C/message-board.c.page:177
msgid "The simplest HTML file you could possibly write."
msgstr ""
#. (itstool) path: item/title
-#: C/message-board.c.page:179
+#: C/message-board.c.page:180
+#, fuzzy
msgid "<code>\"text/html\"</code>"
msgstr ""
+"Consulte o arquivo <file>/usr/share/applications/defaults.list</file> para "
+"determinar os tipos MIME para os quais você deseja alterar o aplicativo "
+"registrado padrão. Por exemplo, o exemplo a seguir de arquivo <file>defaults."
+"list</file> especifica o aplicativo registrado padrão para os tipos MIME "
+"<code>text/html</code> e <code>application/xhtml+xml</code>:"
#. (itstool) path: item/p
-#: C/message-board.c.page:180
+#: C/message-board.c.page:181
msgid ""
"The MIME type of the content you provided. In this case, you're using plain "
"HTML."
msgstr ""
#. (itstool) path: item/title
-#: C/message-board.c.page:184
+#: C/message-board.c.page:185
+#, fuzzy
msgid "<code>\"UTF-8\"</code>"
-msgstr ""
+msgstr "CÓDIGO[:…]"
#. (itstool) path: item/p
-#: C/message-board.c.page:185
+#: C/message-board.c.page:186
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 "
@@ -21314,12 +24258,17 @@ msgid ""
msgstr ""
#. (itstool) path: item/title
-#: C/message-board.c.page:190
+#: C/message-board.c.page:191
+#, fuzzy
msgid "<code>NULL</code>"
msgstr ""
+"Em comentários de gtk-doc, anotações devem ser preferidos a equivalentes "
+"legíveis por humanos, Por exemplo, ao documentar o parâmetro de uma função "
+"que pode ser <code>NULL</code>, use a anotação <code>(nullable)</code> e, "
+"vez de algum texto:"
#. (itstool) path: item/p
-#: C/message-board.c.page:191
+#: C/message-board.c.page:192
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 "
@@ -21327,7 +24276,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/message-board.c.page:198
+#: C/message-board.c.page:199
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 "
@@ -21338,7 +24287,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:206
+#: C/message-board.c.page:207
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 "
@@ -21346,7 +24295,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:210
+#: C/message-board.c.page:211
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 "
@@ -21354,12 +24303,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/message-board.c.page:216
+#: C/message-board.c.page:217
+#, fuzzy
msgid "Hook up signals"
-msgstr ""
+msgstr "sinais"
#. (itstool) path: section/p
-#: C/message-board.c.page:218
+#: C/message-board.c.page:219
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 "
@@ -21370,7 +24320,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/message-board.c.page:225
+#: C/message-board.c.page:226
#, no-wrap
msgid ""
"\n"
@@ -21378,14 +24328,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:229
+#: C/message-board.c.page:230
msgid ""
"You then have to actually define <code>entry_activate_cb</code>. Define it "
"as follows, anywhere above <code>create_window</code>:"
msgstr ""
#. (itstool) path: section/code
-#: C/message-board.c.page:232
+#: C/message-board.c.page:233
#, no-wrap
msgid ""
"\n"
@@ -21409,7 +24359,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:252
+#: C/message-board.c.page:253
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 "
@@ -21419,7 +24369,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:258
+#: C/message-board.c.page:259
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 "
@@ -21429,7 +24379,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:269
+#: C/message-board.c.page:270
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 "
@@ -21440,7 +24390,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:282
+#: C/message-board.c.page:283
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 "
@@ -21448,12 +24398,12 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/message-board.c.page:289
+#: C/message-board.c.page:290
msgid "Make it look better with CSS"
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:291
+#: C/message-board.c.page:292
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 "
@@ -21464,7 +24414,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:298
+#: C/message-board.c.page:299
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 "
@@ -21478,7 +24428,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/message-board.c.page:307
+#: C/message-board.c.page:308
#, no-wrap
msgid ""
"\n"
@@ -21495,7 +24445,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:320
+#: C/message-board.c.page:321
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 "
@@ -21504,7 +24454,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:325
+#: C/message-board.c.page:326
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 "
@@ -21512,7 +24462,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/message-board.c.page:331
+#: C/message-board.c.page:332
#, no-wrap
msgid ""
"\n"
@@ -21526,22 +24476,22 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:341
+#: C/message-board.c.page:342
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 ""
#. (itstool) path: section/code
-#: C/message-board.c.page:344
-#, no-wrap
+#: C/message-board.c.page:345
+#, fuzzy, no-wrap
msgid ""
"\n"
"gchar *tmp, *css;\n"
-msgstr ""
+msgstr "gchar*"
#. (itstool) path: section/p
-#: C/message-board.c.page:348
+#: C/message-board.c.page:349
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 "
@@ -21552,7 +24502,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:355
+#: C/message-board.c.page:356
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> "
@@ -21563,7 +24513,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/message-board.c.page:362
+#: C/message-board.c.page:363
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 "
@@ -21571,12 +24521,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/message-board.c.page:368
+#: C/message-board.c.page:369
+#, fuzzy
msgid "Learn more"
-msgstr ""
+msgstr "A_prenda mais"
#. (itstool) path: section/p
-#: C/message-board.c.page:370
+#: C/message-board.c.page:371
msgid ""
"This tutorial showed you how to create a basic application using GTK+ and "
"WebKit, including showing a document and manipulating its contents. To "
@@ -21585,7 +24536,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/message-board.c.page:376
+#: C/message-board.c.page:377
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. "
@@ -21594,7 +24545,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/message-board.c.page:382
+#: C/message-board.c.page:383
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 "
@@ -21602,7 +24553,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/message-board.c.page:390
+#: C/message-board.c.page:391
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. "
@@ -21611,7 +24562,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/message-board.c.page:397
+#: C/message-board.c.page:398
msgid ""
"This program keeps messages around forever. Think about ways you could allow "
"the user to delete messages. Perhaps you want messages to disappear "
@@ -21621,50 +24572,52 @@ 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.
-#: 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 ""
-
#. (itstool) path: info/title
-#: C/messagedialog.c.page:7
+#: C/messagedialog.c.page:8
msgctxt "text"
msgid "MessageDialog (C)"
-msgstr ""
+msgstr "MessageDialog (C)"
#. (itstool) path: info/desc
-#: C/messagedialog.c.page:18 C/messagedialog.py.page:18
-#: C/messagedialog.vala.page:17
+#: C/messagedialog.c.page:19 C/messagedialog.py.page:19
+#: C/messagedialog.vala.page:18
+#, fuzzy
msgid "A message window"
-msgstr ""
+msgstr "Janela de mensagem"
#. (itstool) path: page/title
-#: C/messagedialog.c.page:21 C/messagedialog.js.page:23
-#: C/messagedialog.py.page:21 C/messagedialog.vala.page:20
+#: C/messagedialog.c.page:22 C/messagedialog.js.page:24
+#: C/messagedialog.py.page:22 C/messagedialog.vala.page:21
msgid "MessageDialog"
msgstr ""
+#. (itstool) path: page/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/messagedialog.c.page:24 C/messagedialog.js.page:25
+#: C/messagedialog.py.page:23 C/messagedialog.vala.page:22
+msgctxt "_"
+msgid ""
+"external ref='media/messagedialog.png' md5='1956288274018e2386d9cba96a2101de'"
+msgstr ""
+"external ref='media/messagedialog.png' md5='1956288274018e2386d9cba96a2101de'"
+
#. (itstool) path: page/p
-#: C/messagedialog.c.page:24 C/messagedialog.vala.page:22
+#: C/messagedialog.c.page:25 C/messagedialog.vala.page:23
msgid "A modal message dialog which can cause the world to explode."
msgstr ""
#. (itstool) path: note/p
-#: C/messagedialog.c.page:25
+#: C/messagedialog.c.page:26
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."
msgstr ""
#. (itstool) path: page/code
-#: C/messagedialog.c.page:29
+#: C/messagedialog.c.page:30
#, no-wrap
msgid ""
"\n"
@@ -21841,39 +24794,44 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/messagedialog.c.page:36
+#: C/messagedialog.c.page:37
msgid ""
"<link href=\"http://developer.gnome.org/gio/stable/GApplication.html"
"\">GApplication</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gio/stable/GApplication.html"
+"\">GApplication</link>"
#. (itstool) path: item/p
-#: C/messagedialog.c.page:38
+#: C/messagedialog.c.page:39
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkMessageDialog.html"
"\">GtkMessageDialog</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkMessageDialog.html"
+"\">GtkMessageDialog</link>"
#. (itstool) path: item/p
-#: C/messagedialog.c.page:39
+#: C/messagedialog.c.page:40
msgid ""
"<link href=\"http://developer.gnome.org/gio/stable/GSimpleAction.html#g-"
"simple-action-new\">GSimpleAction</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/messagedialog.js.page:7
+#: C/messagedialog.js.page:8
msgctxt "text"
msgid "MessageDialog (JavaScript)"
-msgstr ""
+msgstr "MessageDialog (JavaScript)"
#. (itstool) path: info/desc
-#: C/messagedialog.js.page:20
+#: C/messagedialog.js.page:21
+#, fuzzy
msgid "A popup message attached to a window"
-msgstr ""
+msgstr "Mensagem instantânea junto com ícone."
#. (itstool) path: page/p
-#: C/messagedialog.js.page:25
+#: C/messagedialog.js.page:26
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 "
@@ -21885,7 +24843,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/messagedialog.js.page:26
+#: C/messagedialog.js.page:27
msgid ""
"The difference between a MessageDialog and a <link xref=\"dialog.js"
"\">Dialog</link> is that a Dialog can contain whatever widgets and content "
@@ -21894,7 +24852,21 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/messagedialog.js.page:43
+#: C/messagedialog.js.page:32 C/radiobutton.js.page:29 C/scale.js.page:29
+#: C/spinbutton.js.page:32 C/statusbar.js.page:29 C/switch.js.page:36
+#: C/togglebutton.js.page:29
+#, no-wrap
+msgid ""
+"\n"
+"#!/usr/bin/gjs\n"
+"\n"
+"const Gio = imports.gi.Gio;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/messagedialog.js.page:44
#, no-wrap
msgid ""
"\n"
@@ -21925,7 +24897,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/messagedialog.js.page:70 C/switch.js.page:75
+#: C/messagedialog.js.page:71 C/switch.js.page:76
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 "
@@ -21935,7 +24907,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/messagedialog.js.page:71
+#: C/messagedialog.js.page:72
#, no-wrap
msgid ""
"\n"
@@ -21952,7 +24924,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/messagedialog.js.page:85
+#: C/messagedialog.js.page:86
#, no-wrap
msgid ""
"\n"
@@ -21963,19 +24935,20 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/messagedialog.js.page:91
+#: C/messagedialog.js.page:92
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 ""
#. (itstool) path: section/title
-#: C/messagedialog.js.page:95
+#: C/messagedialog.js.page:96
+#, fuzzy
msgid "Creating the application's menu"
-msgstr ""
+msgstr "Criando janela de aplicativo"
#. (itstool) path: section/code
-#: C/messagedialog.js.page:96
+#: C/messagedialog.js.page:97
#, no-wrap
msgid ""
"\n"
@@ -22005,7 +24978,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/messagedialog.js.page:121
+#: C/messagedialog.js.page:122
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 "
@@ -22015,12 +24988,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/messagedialog.js.page:125
+#: C/messagedialog.js.page:126
+#, fuzzy
msgid "Creating the MessageDialog"
-msgstr ""
+msgstr "sem tabelas, criando …"
#. (itstool) path: section/code
-#: C/messagedialog.js.page:126
+#: C/messagedialog.js.page:127
#, no-wrap
msgid ""
"\n"
@@ -22040,7 +25014,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/messagedialog.js.page:141
+#: C/messagedialog.js.page:142
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 "
@@ -22051,26 +25025,26 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/messagedialog.js.page:142
+#: C/messagedialog.js.page:143
msgid "Here are some resources for making your own MessageDialogs:"
msgstr ""
#. (itstool) path: item/p
-#: C/messagedialog.js.page:144
+#: C/messagedialog.js.page:145
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkMessageDialog."
"html#GtkButtonsType\">List of button types</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/messagedialog.js.page:145
+#: C/messagedialog.js.page:146
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkMessageDialog."
"html#GtkMessageType\">List of message types</link>"
msgstr ""
#. (itstool) path: section/code
-#: C/messagedialog.js.page:149
+#: C/messagedialog.js.page:150
#, no-wrap
msgid ""
"\n"
@@ -22098,7 +25072,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/messagedialog.js.page:172
+#: C/messagedialog.js.page:173
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 "
@@ -22110,83 +25084,86 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/messagedialog.js.page:174
-#, no-wrap
+#: C/messagedialog.js.page:175
+#, fuzzy, no-wrap
msgid ""
"\n"
"// Run the application\n"
"let app = new MessageDialogExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"\n"
+"// Executa o aplicativo\n"
+"let app = new GettingTheSignal ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: section/p
-#: C/messagedialog.js.page:179
+#: C/messagedialog.js.page:180
msgid ""
"Finally, we create a new instance of the finished MessageDialogExample "
"class, and set the application running."
msgstr ""
#. (itstool) path: section/code
-#: C/messagedialog.js.page:184
+#: C/messagedialog.js.page:185
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const Gio = imports.gi.Gio;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const MessageDialogExample = new Lang.Class ({\n"
-" Name: 'MessageDialog Example',\n"
+"class MessageDialogExample {\n"
"\n"
" // Create the application itself\n"
-" _init: function () {\n"
-" this.application = new Gtk.Application ({\n"
+" constructor() {\n"
+" this.application = new Gtk.Application({\n"
" application_id: 'org.example.jsmessagedialog',\n"
-" flags: Gio.ApplicationFlags.FLAGS_NONE });\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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function () {\n"
-" this._window.present ();\n"
-" },\n"
+" _onActivate() {\n"
+" this._window.present();\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal initializes menus and builds the UI\n"
-" _onStartup: function () {\n"
+" _onStartup() {\n"
" this._initMenus();\n"
" this._buildUI ();\n"
-" },\n"
-"\n"
-"\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function () {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
-" this._window = new Gtk.ApplicationWindow ({\n"
+" this._window = new Gtk.ApplicationWindow({\n"
" application: this.application,\n"
" window_position: Gtk.WindowPosition.CENTER,\n"
" title: \"Gtk.MessageDialog Example\",\n"
" default_height: 200,\n"
-" default_width: 400 });\n"
+" default_width: 400\n"
+" });\n"
"\n"
" // Create a silly warning message and add it to the window\n"
-" this.warningLabel = new Gtk.Label ({\n"
-" label: \"This application goes boom! (Not really.)\"});\n"
+" this.warningLabel = new Gtk.Label({\n"
+" label: \"This application goes boom! (Not really.)\"\n"
+" });\n"
" this._window.add (this.warningLabel);\n"
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
-"\n"
-"\n"
+" }\n"
"\n"
" // Build the application menu, including the button that calls the dialog\n"
-" _initMenus: function() {\n"
+" _initMenus() {\n"
" let menu = new Gio.Menu();\n"
" menu.append(\"Message\",'app.message');\n"
" menu.append(\"Quit\",'app.quit');\n"
@@ -22194,24 +25171,16 @@ msgid ""
"\n"
" // This pops up a MessageDialog when \"Message\" is clicked in the menu\n"
" let messageAction = new Gio.SimpleAction ({ name: 'message' });\n"
-" messageAction.connect('activate', Lang.bind(this,\n"
-" function() {\n"
-" this._showMessageDialog();\n"
-" }));\n"
+" messageAction.connect('activate', () => { this._showMessageDialog(); });\n"
" this.application.add_action(messageAction);\n"
"\n"
" // This closes the window when \"Quit\" is clicked in the menu\n"
" let quitAction = new Gio.SimpleAction ({ name: 'quit' });\n"
-" quitAction.connect('activate', Lang.bind(this,\n"
-" function() {\n"
-" this._window.destroy();\n"
-" }));\n"
+" quitAction.connect('activate', () => { this._window.destroy(); });\n"
" this.application.add_action(quitAction);\n"
-" },\n"
-"\n"
-"\n"
+" }\n"
"\n"
-" _showMessageDialog: function () {\n"
+" _showMessageDialog() {\n"
"\n"
" // Create a modal MessageDialog whose parent is the window\n"
" this._messageDialog = new Gtk.MessageDialog ({\n"
@@ -22221,14 +25190,12 @@ msgid ""
" message_type: Gtk.MessageType.WARNING,\n"
" text: \"This action will cause the universe to stop existing.\" });\n"
"\n"
-" this._messageDialog.connect ('response', Lang.bind(this, this._response_cb));\n"
+" this._messageDialog.connect ('response', this._response_cb.bind(this));\n"
" this._messageDialog.show();\n"
-" },\n"
-"\n"
-"\n"
+" }\n"
"\n"
" // Callback function (aka signal handler) for the response signal\n"
-" _response_cb: function (messagedialog, response_id) {\n"
+" _response_cb(messagedialog, response_id) {\n"
"\n"
" // A simple switch that changes the main window's label\n"
" switch (response_id) {\n"
@@ -22246,8 +25213,7 @@ msgid ""
" this._messageDialog.destroy();\n"
"\n"
" }\n"
-"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new MessageDialogExample ();\n"
@@ -22255,29 +25221,30 @@ msgid ""
msgstr ""
#. (itstool) path: info/title
-#: C/messagedialog.py.page:7
+#: C/messagedialog.py.page:8
msgctxt "text"
msgid "MessageDialog (Python)"
-msgstr ""
+msgstr "MessageDialog (Python)"
#. (itstool) path: page/p
-#: C/messagedialog.py.page:23
+#: C/messagedialog.py.page:24
msgid ""
"A message dialog which prints messages on the terminal, depending on your "
"choices."
msgstr ""
#. (itstool) path: section/code
-#: C/messagedialog.py.page:30
+#: C/messagedialog.py.page:31
#, 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"
@@ -22310,17 +25277,19 @@ 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"
+" print(\"good choice\")\n"
" # if the messagedialog is destroyed (by pressing ESC)\n"
" elif response_id == Gtk.ResponseType.DELETE_EVENT:\n"
-" print \"dialog closed or cancelled\"\n"
+" print(\"dialog closed or cancelled\")\n"
" # 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"
@@ -22331,7 +25300,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"
@@ -22346,7 +25315,7 @@ 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"
@@ -22354,21 +25323,22 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/messagedialog.py.page:35
+#: C/messagedialog.py.page:36
+#, fuzzy
msgid "Useful methods for a MessageDialog widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: section/p
-#: C/messagedialog.py.page:36
+#: C/messagedialog.py.page:37
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 ""
#. (itstool) path: item/p
-#: C/messagedialog.py.page:38
+#: C/messagedialog.py.page:39
msgid ""
"In the constructor of MessageDialog we could set flags as <code>Gtk."
"DialogFlags.DESTROY_WITH_PARENT</code> (to destroy the messagedialog window "
@@ -22377,7 +25347,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/messagedialog.py.page:39
+#: C/messagedialog.py.page:40
msgid ""
"In the constructor of MessageDialog we could set type as any of <code>Gtk."
"MessageType.INFO, Gtk.MessageType.WARNING, Gtk.MessageType.QUESTION, Gtk."
@@ -22386,7 +25356,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/messagedialog.py.page:40
+#: C/messagedialog.py.page:41
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."
@@ -22395,14 +25365,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/messagedialog.py.page:41
+#: C/messagedialog.py.page:42
msgid ""
"We could substitute the default image of the MessageDialog with another "
"image using"
msgstr ""
#. (itstool) path: item/code
-#: C/messagedialog.py.page:42
+#: C/messagedialog.py.page:43
#, no-wrap
msgid ""
"\n"
@@ -22413,7 +25383,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/messagedialog.py.page:47
+#: C/messagedialog.py.page:48
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 "
@@ -22422,34 +25392,36 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/messagedialog.py.page:48
+#: C/messagedialog.py.page:49
msgid ""
"<code>format_secondary_text(\"some secondary message\")</code> sets a "
"secondary message. The primary text becomes bold."
msgstr ""
#. (itstool) path: item/p
-#: C/messagedialog.py.page:58
+#: C/messagedialog.py.page:59
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>"
#. (itstool) path: item/p
-#: C/messagedialog.py.page:62
+#: C/messagedialog.py.page:63
msgid ""
"<link href=\"http://developer.gnome.org/gio/unstable/GActionMap.html"
"\">GActionMap</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/messagedialog.vala.page:7
+#: C/messagedialog.vala.page:8
msgctxt "text"
msgid "MessageDialog (Vala)"
-msgstr ""
+msgstr "MessageDialog (Vala)"
#. (itstool) path: page/code
-#: C/messagedialog.vala.page:24
+#: C/messagedialog.vala.page:25
#, no-wrap
msgid ""
"\n"
@@ -22527,60 +25499,62 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/messagedialog.vala.page:30
+#: C/messagedialog.vala.page:31
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ResponseType.html\">Gtk."
"ResponseType</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/messagedialog.vala.page:31
+#: C/messagedialog.vala.page:32
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.MessageDialog.html\">Gtk."
"MessageDialog</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/messagedialog.vala.page:32
+#: C/messagedialog.vala.page:33
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.DialogFlags.html\">Gtk."
"DialogFlags</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/messagedialog.vala.page:33
+#: C/messagedialog.vala.page:34
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.MessageType.html\">Gtk."
"MessageType</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/messagedialog.vala.page:34
+#: C/messagedialog.vala.page:35
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ButtonsType.html\">Gtk."
"ButtonsType</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/model-view-controller.py.page:8
+#: C/model-view-controller.py.page:9
msgctxt "text"
msgid "The Model/View/Controller design (Python)"
msgstr ""
#. (itstool) path: info/desc
#. (itstool) path: page/title
-#: C/model-view-controller.py.page:13 C/model-view-controller.py.page:26
+#: C/model-view-controller.py.page:14 C/model-view-controller.py.page:27
+#, fuzzy
msgid "The Model/View/Controller design"
-msgstr ""
+msgstr "O modelo para a visão em árvore"
#. (itstool) path: section/title
-#: C/model-view-controller.py.page:31 C/properties.py.page:31
-#: C/signals-callbacks.py.page:31
+#: C/model-view-controller.py.page:32 C/properties.py.page:32
+#: C/signals-callbacks.py.page:32
+#, fuzzy
msgid "Overview"
-msgstr ""
+msgstr "Visão geral"
#. (itstool) path: section/p
-#: C/model-view-controller.py.page:33
+#: C/model-view-controller.py.page:34
msgid ""
"Both the <link xref=\"treeview_simple_liststore.py\">TreeView</link> and the "
"<link xref=\"combobox.py\">ComboBox</link> widgets are built on the "
@@ -22596,12 +25570,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/model-view-controller.py.page:38
+#: C/model-view-controller.py.page:39
+#, fuzzy
msgid "The Model"
-msgstr ""
+msgstr "Modelo"
#. (itstool) path: section/p
-#: C/model-view-controller.py.page:40
+#: C/model-view-controller.py.page:41
msgid ""
"The main difference between the two main implementations of <code>Gtk."
"TreeModel</code> is that <code>Gtk.ListStore</code> contains simple rows of "
@@ -22611,14 +25586,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/model-view-controller.py.page:42
+#: C/model-view-controller.py.page:43
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 ""
#. (itstool) path: section/p
-#: C/model-view-controller.py.page:44
+#: C/model-view-controller.py.page:45
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 "
@@ -22628,7 +25603,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/model-view-controller.py.page:46
+#: C/model-view-controller.py.page:47
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 "
@@ -22640,12 +25615,12 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/model-view-controller.py.page:48
+#: C/model-view-controller.py.page:49
msgid "Useful methods for a <code>Gtk.TreeModel</code>:"
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:50
+#: C/model-view-controller.py.page:51
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 "
@@ -22656,7 +25631,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:51
+#: C/model-view-controller.py.page:52
msgid ""
"<code>iter_next(treeiter)</code> returns a <code>Gtk.TreeIter</code> "
"instance pointing the node following treeiter at the current level or "
@@ -22664,14 +25639,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:52
+#: C/model-view-controller.py.page:53
msgid ""
"<code>iter_has_child(treeiter)</code> returns <code>True</code> if "
"<code>treeiter</code> has children, <code>False</code> otherwise."
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:53
+#: C/model-view-controller.py.page:54
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</"
@@ -22679,7 +25654,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:54
+#: C/model-view-controller.py.page:55
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\"</"
@@ -22687,12 +25662,12 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/model-view-controller.py.page:57
+#: C/model-view-controller.py.page:58
msgid "Useful methods for a <code>Gtk.ListStore</code>:"
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:59
+#: C/model-view-controller.py.page:60
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> "
@@ -22702,7 +25677,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:60 C/model-view-controller.py.page:66
+#: C/model-view-controller.py.page:61 C/model-view-controller.py.page:67
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 "
@@ -22711,12 +25686,12 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/model-view-controller.py.page:63
+#: C/model-view-controller.py.page:64
msgid "Useful methods for a <code>Gtk.TreeStore</code>:"
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:65
+#: C/model-view-controller.py.page:66
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 "
@@ -22728,30 +25703,31 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/model-view-controller.py.page:72
+#: C/model-view-controller.py.page:73
+#, fuzzy
msgid "The View: the TreeView case"
-msgstr ""
+msgstr "TreeView – TreeStore"
#. (itstool) path: section/p
-#: C/model-view-controller.py.page:74
+#: C/model-view-controller.py.page:75
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 ""
#. (itstool) path: section/p
-#: C/model-view-controller.py.page:76
+#: C/model-view-controller.py.page:77
msgid ""
"The <code>Gtk.TreeViewColumn</code> is used to organize the vertical columns."
msgstr ""
#. (itstool) path: section/p
-#: C/model-view-controller.py.page:78
+#: C/model-view-controller.py.page:79
msgid "Useful methods for a <code>Gtk.TreeView</code>:"
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:80
+#: C/model-view-controller.py.page:81
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 "
@@ -22759,33 +25735,33 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:81
+#: C/model-view-controller.py.page:82
msgid ""
"<code>get_model()</code> returns the model this tree view is based on, "
"<code>None</code> if the model is unset."
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:82
+#: C/model-view-controller.py.page:83
msgid ""
"<code>append_column(column)</code> appends <code>column</code> to the list "
"of columns."
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:83
+#: C/model-view-controller.py.page:84
msgid ""
"<code>get_selection()</code> gets the <code>Gtk.TreeSelection</code> "
"associated with this tree view."
msgstr ""
#. (itstool) path: section/p
-#: C/model-view-controller.py.page:86
+#: C/model-view-controller.py.page:87
msgid "Useful methods for a <code>Gtk.TreeViewColumn</code>:"
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:88
+#: C/model-view-controller.py.page:89
msgid ""
"<code>add_attribute(renderer, attribute, value)</code> adds an attribute "
"mapping to this column. <code>attribute</code> is the parameter on "
@@ -22793,7 +25769,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:89
+#: C/model-view-controller.py.page:90
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>, "
@@ -22803,7 +25779,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:90
+#: C/model-view-controller.py.page:91
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 "
@@ -22813,7 +25789,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:91
+#: C/model-view-controller.py.page:92
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 "
@@ -22821,7 +25797,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:92
+#: C/model-view-controller.py.page:93
msgid ""
"<code>set_sort_indicator(setting)</code> sets whether a little arrow is "
"displayed in the column header; <code>setting</code> can either be "
@@ -22829,7 +25805,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:93
+#: C/model-view-controller.py.page:94
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> "
@@ -22837,12 +25813,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/model-view-controller.py.page:99
+#: C/model-view-controller.py.page:100
+#, fuzzy
msgid "The View: the ComboBox case"
-msgstr ""
+msgstr "Caixa de combinação"
#. (itstool) path: section/p
-#: C/model-view-controller.py.page:101
+#: C/model-view-controller.py.page:102
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</"
@@ -22852,12 +25829,12 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/model-view-controller.py.page:103
+#: C/model-view-controller.py.page:104
msgid "Useful methods for a <code>Gtk.ComboBox</code>:"
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:105
+#: C/model-view-controller.py.page:106
msgid ""
"The static method <code>new_with_entry()</code> creates a new empty "
"<code>Gtk.ComboBox</code> with an entry; the static method "
@@ -22867,7 +25844,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:106
+#: C/model-view-controller.py.page:107
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 "
@@ -22875,7 +25852,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:107
+#: C/model-view-controller.py.page:108
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 "
@@ -22884,7 +25861,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:108
+#: C/model-view-controller.py.page:109
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</"
@@ -22894,34 +25871,34 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:109
+#: C/model-view-controller.py.page:110
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."
+"columns when you want the popup to be laid out in a grid."
msgstr ""
#. (itstool) path: section/p
-#: C/model-view-controller.py.page:112
+#: C/model-view-controller.py.page:113
msgid "Useful methods for a <code>Gtk.ComboBoxText</code>:"
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:114
+#: C/model-view-controller.py.page:115
msgid ""
"The static method <code>new_with_entry()</code> creates a new empty "
"<code>Gtk.ComboBoxText</code> with an entry."
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:115
+#: C/model-view-controller.py.page:116
msgid ""
"<code>append_text(text)</code> appends <code>text</code> to the list of "
"strings stored in this combo box."
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:116
+#: C/model-view-controller.py.page:117
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 "
@@ -22930,47 +25907,48 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/model-view-controller.py.page:122
+#: C/model-view-controller.py.page:123
+#, fuzzy
msgid "The View: the Cellrenderers"
-msgstr ""
+msgstr "/_Ver com…"
#. (itstool) path: section/p
-#: C/model-view-controller.py.page:124
+#: C/model-view-controller.py.page:125
msgid ""
"The View makes use of <code>Gtk.CellRenderer</code>s of various types to "
"draw the data."
msgstr ""
#. (itstool) path: section/p
-#: C/model-view-controller.py.page:126
+#: C/model-view-controller.py.page:127
msgid "Implementations of <code>Gtk.CellRenderer</code> and useful methods:"
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:128
+#: C/model-view-controller.py.page:129
msgid "<code>Gtk.CellRendererText</code> - renders text in a cell"
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:129
+#: C/model-view-controller.py.page:130
msgid ""
"<code>Gtk.CellRendererToggle</code> - renders a toggle or radio button in a "
"cell. Useful methods:"
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:131
+#: C/model-view-controller.py.page:132
msgid ""
"<code>set_active(setting)</code> - activates or deactivates a cell renderer"
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:132
+#: C/model-view-controller.py.page:133
msgid "<code>get_active()</code> - returns whether the cell renderer is active"
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:133
+#: C/model-view-controller.py.page:134
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-"
@@ -22979,19 +25957,19 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:134
+#: C/model-view-controller.py.page:135
msgid ""
"<code>get_radio()</code> - returns whether we are rendering radio toggles "
"rather than checkboxes."
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:137
+#: C/model-view-controller.py.page:138
msgid "<code>Gtk.CellRendererPixbuf</code> - renders an image in a cell"
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:138
+#: C/model-view-controller.py.page:139
msgid ""
"<code>Gtk.CellRendererCombo</code> - renders text in a cell; but while "
"<code>Gtk.CellRendererText</code> offers a simple entry to edit the text, "
@@ -23001,36 +25979,37 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:139
+#: C/model-view-controller.py.page:140
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"
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:140
+#: C/model-view-controller.py.page:141
msgid ""
"<code>Gtk.CellRendererSpinner</code> - renders a spinning animation in a cell"
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:141
+#: C/model-view-controller.py.page:142
msgid "<code>Gtk.CellRendererSpin</code> - renders a spin button in a cell"
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:142
+#: C/model-view-controller.py.page:143
msgid ""
"<code>Gtk.CellRendererAccel</code> - renders a keyboard accelerator in a cell"
msgstr ""
#. (itstool) path: section/title
-#: C/model-view-controller.py.page:148
+#: C/model-view-controller.py.page:149
+#, fuzzy
msgid "The Controller: the Selection"
-msgstr ""
+msgstr "Controlador para"
#. (itstool) path: section/p
-#: C/model-view-controller.py.page:150
+#: C/model-view-controller.py.page:151
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 "
@@ -23038,7 +26017,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/model-view-controller.py.page:152
+#: C/model-view-controller.py.page:153
#, no-wrap
msgid ""
"\n"
@@ -23047,12 +26026,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/model-view-controller.py.page:157
+#: C/model-view-controller.py.page:158
+#, fuzzy
msgid "Then to retrieve data for the row selected:"
-msgstr ""
+msgstr "Não foi capaz de obter os dados após as modificações"
#. (itstool) path: section/code
-#: C/model-view-controller.py.page:159
+#: C/model-view-controller.py.page:160
#, no-wrap
msgid ""
"\n"
@@ -23063,29 +26043,29 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/model-view-controller.py.page:166
+#: C/model-view-controller.py.page:167
msgid "Useful methods for a <code>Gtk.TreeSelection</code>:"
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:169
+#: C/model-view-controller.py.page:170
msgid ""
"<code>set_mode(type)</code> sets the type of selection, where type is one of"
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:171
+#: C/model-view-controller.py.page:172
msgid "<code>Gtk.SelectionMode.NONE</code> - no selection is possible"
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:172
+#: C/model-view-controller.py.page:173
msgid ""
"<code>Gtk.SelectionMode.SINGLE</code> - zero or one element may be selected"
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:173
+#: C/model-view-controller.py.page:174
msgid ""
"<code>Gtk.SelectionMode.BROWSE</code> - exactly one element is selected. In "
"some circumstances, such as initially or during a search operation, it’s "
@@ -23095,7 +26075,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:174
+#: C/model-view-controller.py.page:175
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 "
@@ -23105,7 +26085,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:177
+#: C/model-view-controller.py.page:178
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 "
@@ -23117,85 +26097,83 @@ msgid ""
msgstr ""
#. (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
+#: C/model-view-controller.py.page:184 C/properties.py.page:57
+#: C/signals-callbacks.py.page:46 C/strings.py.page:112
+#, fuzzy
msgid "References"
-msgstr ""
+msgstr "Referências"
#. (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
+#: C/model-view-controller.py.page:187 C/treeview_advanced_liststore.py.page:45
+#: C/treeview_cellrenderertoggle.py.page:45
+#: C/treeview_simple_liststore.py.page:46 C/treeview_treestore.py.page:45
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkTreeModel.html"
"\">GtkTreeModel</link>"
msgstr ""
#. (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
+#: C/model-view-controller.py.page:188 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/GtkTreeView.html"
"\">GtkTreeView</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkTreeView.html"
+"\">GtkTreeView</link>"
#. (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
+#: C/model-view-controller.py.page:189 C/treeview_advanced_liststore.py.page:48
+#: C/treeview_cellrenderertoggle.py.page:49
+#: C/treeview_simple_liststore.py.page:49 C/treeview_treestore.py.page:48
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkTreeViewColumn.html"
"\">GtkTreeViewColumn</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/model-view-controller.py.page:190
+#: C/model-view-controller.py.page:191
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkCellRenderer.html"
"\">GtkCellRenderer</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/paned.c.page:21 C/paned.js.page:21 C/paned.py.page:22
-#: C/paned.vala.page:21
-msgctxt "_"
-msgid "external ref='media/paned.png' md5='8c7e1df065395c9aafcd65036a293d8a'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/paned.c.page:7
+#: C/paned.c.page:8
+#, fuzzy
msgctxt "text"
msgid "Paned (C)"
-msgstr ""
+msgstr "Um gerenciador de arquivos com dois painéis"
#. (itstool) path: info/desc
-#: C/paned.c.page:17 C/paned.js.page:17 C/paned.py.page:18
-#: C/paned.vala.page:17
+#: C/paned.c.page:18 C/paned.js.page:18 C/paned.py.page:19 C/paned.vala.page:18
msgid "A widget with two adjustable panes"
msgstr ""
#. (itstool) path: page/title
-#: C/paned.c.page:20 C/paned.js.page:20 C/paned.py.page:21
-#: C/paned.vala.page:20
+#: C/paned.c.page:21 C/paned.js.page:21 C/paned.py.page:22 C/paned.vala.page:21
+#, fuzzy
msgid "Paned"
-msgstr ""
+msgstr "Posição do grabber do Paned da lista de pastas."
+
+#. (itstool) path: page/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.c.page:22 C/paned.js.page:22 C/paned.py.page:23 C/paned.vala.page:22
+msgctxt "_"
+msgid "external ref='media/paned.png' md5='8c7e1df065395c9aafcd65036a293d8a'"
+msgstr "external ref='media/paned.png' md5='8c7e1df065395c9aafcd65036a293d8a'"
#. (itstool) path: page/p
-#: C/paned.c.page:22 C/paned.js.page:22 C/paned.py.page:23
-#: C/paned.vala.page:22
+#: C/paned.c.page:23 C/paned.js.page:23 C/paned.py.page:24 C/paned.vala.page:23
msgid "Two images in two adjustable panes, horizontally aligned."
msgstr ""
#. (itstool) path: section/code
-#: C/paned.c.page:28
+#: C/paned.c.page:29
#, no-wrap
msgid ""
"#include <gtk/gtk.h>\n"
@@ -23240,59 +26218,120 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/paned.c.page:35 C/paned.py.page:41
+#: C/paned.c.page:36 C/paned.py.page:42
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
+#: C/paned.c.page:37 C/paned.js.page:37 C/paned.py.page:43 C/paned.vala.page:37
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
+#: C/paned.js.page:8
+#, fuzzy
msgctxt "text"
msgid "Paned (JavaScript)"
-msgstr ""
-
-#. (itstool) path: section/code
-#: C/paned.js.page:28
-#, no-wrap
+msgstr "_JavaScript"
+
+#. (itstool) path: section/code
+#: C/paned.js.page:29
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const GLib = imports.gi.GLib;\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "const Webkit = imports.gi.WebKit;\n"
+#| "\n"
+#| "const HelloGNOME = new Lang.Class ({\n"
+#| " Name: 'Hello GNOME',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function () {\n"
+#| " this.application = new Gtk.Application ();\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 ({\n"
+#| " application: this.application,\n"
+#| " title: \"Welcome to GNOME\",\n"
+#| " default_height: 200,\n"
+#| " default_width: 400,\n"
+#| " window_position: Gtk.WindowPosition.CENTER });\n"
+#| "\n"
+#| " // Create a webview to show the web app\n"
+#| " this._webView = new Webkit.WebView ();\n"
+#| "\n"
+#| " // Put the web app into the webview\n"
+#| " this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+#| " \"/hellognome.html\", null));\n"
+#| "\n"
+#| " // Put the webview into the window\n"
+#| " this._window.add (this._webView);\n"
+#| "\n"
+#| " // Show the window and all child widgets\n"
+#| " this._window.show_all();\n"
+#| " },\n"
+#| "\n"
+#| "});\n"
+#| "\n"
+#| "// Run the application\n"
+#| "let app = new HelloGNOME ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const PanedExample = new Lang.Class ({\n"
-" Name: 'Paned Example',\n"
+"class PanedExample {\n"
"\n"
" // Create the application itself\n"
-" _init: function () {\n"
+" constructor() {\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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this.window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function () {\n"
-" this._buildUI ();\n"
-" },\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
" // Create the application window\n"
" this.window = new Gtk.ApplicationWindow ({ application: this.application,\n"
" window_position: Gtk.WindowPosition.CENTER,\n"
@@ -23320,41 +26359,103 @@ msgid ""
" this.window.add(this.paned)\n"
" this.window.show_all();\n"
" }\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new PanedExample();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const GLib = imports.gi.GLib;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"const Webkit = imports.gi.WebKit;\n"
+"\n"
+"const HelloGNOME = new Lang.Class ({\n"
+" Name: 'Olá, GNOME',\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function () {\n"
+" this.application = new Gtk.Application ();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativa\n"
+" _onActivate: function () {\n"
+" this._window.present ();\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup: function () {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function () {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow ({\n"
+" application: this.application,\n"
+" title: \"Bem-vindo ao GNOME\",\n"
+" default_height: 200,\n"
+" default_width: 400,\n"
+" window_position: Gtk.WindowPosition.CENTER });\n"
+"\n"
+" // Cria um webview para mostrar o aplicativo web\n"
+" this._webView = new Webkit.WebView ();\n"
+"\n"
+" // Coloca o aplicativo web no webview\n"
+" this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+" \"/hellognome.html\", null));\n"
+"\n"
+" // Coloca o webview na janela\n"
+" this._window.add (this._webView);\n"
+"\n"
+" // Mostra a janela e todos seus widgets filhos\n"
+" this._window.show_all();\n"
+" },\n"
+"\n"
+"});\n"
+"\n"
+"// Executa o aplicativo\n"
+"let app = new HelloGNOME ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: item/p
-#: C/paned.js.page:35
+#: C/paned.js.page:36
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Paned.html"
"\">GtkPaned</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/paned.js.page:37 C/scrolledwindow.js.page:37
+#: C/paned.js.page:38 C/scrolledwindow.js.page:38
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Image.html"
"\">GtkImage</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/paned.py.page:7
+#: C/paned.py.page:8
+#, fuzzy
msgctxt "text"
msgid "Paned (Python)"
-msgstr ""
+msgstr "Um gerenciador de arquivos com dois painéis"
#. (itstool) path: section/code
-#: C/paned.py.page:29
+#: C/paned.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=\"Paned Example\", application=app)\n"
" self.set_default_size(450, 350)\n"
@@ -23377,7 +26478,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"
@@ -23394,12 +26497,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/paned.py.page:33
+#: C/paned.py.page:34
+#, fuzzy
msgid "Useful methods for a Paned widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: section/p
-#: C/paned.py.page:34
+#: C/paned.py.page:35
msgid ""
"To have two vertically aligned panes, use <code>Gtk.Orientation.VERTICAL</"
"code> instead of <code>Gtk.Orientation.HORIZONTAL</code>. The method "
@@ -23409,13 +26513,14 @@ msgid ""
msgstr ""
#. (itstool) path: info/title
-#: C/paned.vala.page:7
+#: C/paned.vala.page:8
+#, fuzzy
msgctxt "text"
msgid "Paned (Vala)"
-msgstr ""
+msgstr "_Vala"
#. (itstool) path: section/code
-#: C/paned.vala.page:28
+#: C/paned.vala.page:29
#, no-wrap
msgid ""
"/* This is the application. */\n"
@@ -23456,103 +26561,86 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/paned.vala.page:35
+#: C/paned.vala.page:36
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Paned.html\">GtkPaned</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/photo-wall.c.page:83
-msgctxt "_"
-msgid ""
-"external ref='media/photo-wall.png' md5='f19590d97e8ec029cda3c44b769c11cd'"
-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/photo-wall.c.page:86
-msgctxt "_"
-msgid ""
-"external ref='media/photo-wall-focused.png' "
-"md5='9f1ceecf3a28c1e468597b093a10cbae'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/photo-wall.c.page:6
+#: C/photo-wall.c.page:7
+#, fuzzy
msgctxt "text"
msgid "Photo wall (C)"
-msgstr ""
+msgstr "Wall"
#. (itstool) path: info/desc
-#: C/photo-wall.c.page:9
+#: C/photo-wall.c.page:10
+#, fuzzy
msgid "A Clutter image viewer"
-msgstr ""
+msgstr "Clutter"
#. (itstool) path: credit/name
-#: C/photo-wall.c.page:13
+#: C/photo-wall.c.page:14
+#, fuzzy
msgid "Chris Kühl"
-msgstr ""
+msgstr "Chris"
#. (itstool) path: page/title
-#: C/photo-wall.c.page:27
+#: C/photo-wall.c.page:28
+#, fuzzy
msgid "Photo wall"
-msgstr ""
+msgstr "Wall"
#. (itstool) path: synopsis/p
-#: C/photo-wall.c.page:30
+#: C/photo-wall.c.page:31
msgid ""
"For this example we will build a simple image viewer using Clutter. You will "
"learn:"
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:32
+#: C/photo-wall.c.page:33
msgid "How to size and position <code>ClutterActor</code>s"
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:33
+#: C/photo-wall.c.page:34
msgid "How to place an image in a <code>ClutterActor</code>"
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:34
+#: C/photo-wall.c.page:35
msgid "How to do simple transitions using Clutter's animation framework"
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:35
+#: C/photo-wall.c.page:36
msgid "How to make <code>ClutterActor</code>s respond to mouse events"
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:36
+#: C/photo-wall.c.page:37
+#, fuzzy
msgid "How to get file names from a directory"
-msgstr ""
+msgstr "obtém nomes para extrair ou criar a partir de ARQUIVO"
#. (itstool) path: section/title
-#: C/photo-wall.c.page:41 C/record-collection.js.page:39
+#: C/photo-wall.c.page:42 C/record-collection.js.page:40
+#, fuzzy
msgid "Introduction"
-msgstr ""
+msgstr "Introdução"
#. (itstool) path: section/p
-#: C/photo-wall.c.page:42
+#: C/photo-wall.c.page:43
msgid ""
"Clutter is a library for creating dynamic user interfaces using OpenGL for "
-"hardware acceleration. This example demonstates a small, but central, part "
+"hardware acceleration. This example demonstrates a small, but central, part "
"of the Clutter library to create a simple but attractive image viewing "
"program."
msgstr ""
#. (itstool) path: section/p
-#: C/photo-wall.c.page:45
+#: C/photo-wall.c.page:46
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 "
@@ -23562,7 +26650,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:58
+#: C/photo-wall.c.page:59
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 "
@@ -23570,7 +26658,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:61
+#: C/photo-wall.c.page:62
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="
@@ -23578,7 +26666,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:66
+#: C/photo-wall.c.page:67
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 "
@@ -23586,30 +26674,55 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/photo-wall.c.page:79
+#: C/photo-wall.c.page:80
+#, fuzzy
msgid "A look at Photo Wall"
-msgstr ""
+msgstr "Tenta procurar por foto do usuário"
#. (itstool) path: section/p
-#: C/photo-wall.c.page:80
+#: C/photo-wall.c.page:81
msgid "Our image viewer presents the user with a wall of images."
msgstr ""
-#. (itstool) path: section/p
+#. (itstool) path: section/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:84
+msgctxt "_"
+msgid ""
+"external ref='media/photo-wall.png' md5='f19590d97e8ec029cda3c44b769c11cd'"
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/photo-wall.c.page:85
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 ""
+#. (itstool) path: section/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:87
+msgctxt "_"
+msgid ""
+"external ref='media/photo-wall-focused.png' "
+"md5='9f1ceecf3a28c1e468597b093a10cbae'"
+msgstr ""
+
#. (itstool) path: section/title
-#: C/photo-wall.c.page:90
+#: C/photo-wall.c.page:91
+#, fuzzy
msgid "Initial setup"
-msgstr ""
+msgstr "— definições iniciais do GNOME"
#. (itstool) path: section/p
-#: C/photo-wall.c.page:91
+#: C/photo-wall.c.page:92
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 "
@@ -23617,7 +26730,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/photo-wall.c.page:94
+#: C/photo-wall.c.page:95
#, no-wrap
msgid ""
"\n"
@@ -23643,12 +26756,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/photo-wall.c.page:118
+#: C/photo-wall.c.page:119
+#, fuzzy
msgid "Jumping into the code"
-msgstr ""
+msgstr "saltando"
#. (itstool) path: section/p
-#: C/photo-wall.c.page:119
+#: C/photo-wall.c.page:120
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 "
@@ -23658,7 +26772,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/photo-wall.c.page:122
+#: C/photo-wall.c.page:123
#, no-wrap
msgid ""
"\n"
@@ -23725,7 +26839,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:184
+#: C/photo-wall.c.page:185
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 "
@@ -23733,14 +26847,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:185
+#: C/photo-wall.c.page:186
msgid ""
"Line 7: You must initialize Clutter. If you forget to do this, you will get "
"very strange errors. Be warned."
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:186
+#: C/photo-wall.c.page:187
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 "
@@ -23748,21 +26862,21 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/photo-wall.c.page:187
+#: C/photo-wall.c.page:188
msgid ""
"A <code>ClutterStage</code> is the top-level <code>ClutterActor</code> onto "
"which other <code>ClutterActor</code>s are placed."
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:189
+#: C/photo-wall.c.page:190
msgid ""
"Line 16: Here we call our function for getting the image file paths. We'll "
"look at this in a bit."
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:190
+#: C/photo-wall.c.page:191
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 "
@@ -23770,37 +26884,38 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:191
+#: C/photo-wall.c.page:192
msgid ""
"Line 52: Show the stage and <em>all its children</em>, meaning our images."
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:192
+#: C/photo-wall.c.page:193
msgid "Line 55: Start the Clutter main loop."
msgstr ""
#. (itstool) path: section/title
-#: C/photo-wall.c.page:197
+#: C/photo-wall.c.page:198
+#, fuzzy
msgid "Setting up our image actors"
-msgstr ""
+msgstr "Configurando seu aplicativo"
#. (itstool) path: note/p
-#: C/photo-wall.c.page:198
+#: C/photo-wall.c.page:199
msgid ""
"In Clutter, an actor is the most basic visual element. Basically, everything "
"you see is an actor."
msgstr ""
#. (itstool) path: section/p
-#: C/photo-wall.c.page:199
+#: C/photo-wall.c.page:200
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 ""
#. (itstool) path: section/code
-#: C/photo-wall.c.page:202
+#: C/photo-wall.c.page:203
#, no-wrap
msgid ""
"\n"
@@ -23840,7 +26955,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:238
+#: C/photo-wall.c.page:239
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</"
@@ -23848,7 +26963,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:240
+#: C/photo-wall.c.page:241
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 "
@@ -23857,7 +26972,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:242
+#: C/photo-wall.c.page:243
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 "
@@ -23868,19 +26983,20 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/photo-wall.c.page:248
+#: C/photo-wall.c.page:249
+#, fuzzy
msgid "Loading the images"
-msgstr ""
+msgstr "Adicionado plug-in para abrir imagens JPEG2000"
#. (itstool) path: section/p
-#: C/photo-wall.c.page:249
+#: C/photo-wall.c.page:250
msgid ""
"Let's take a short break from Clutter to see how we can get the file names "
"from our image directory."
msgstr ""
#. (itstool) path: section/code
-#: C/photo-wall.c.page:250
+#: C/photo-wall.c.page:251
#, no-wrap
msgid ""
"\n"
@@ -23913,14 +27029,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:278
+#: C/photo-wall.c.page:279
msgid ""
-"Lines 5 and 12: This opens our directory or, if an error occured, returns "
+"Lines 5 and 12: This opens our directory or, if an error occurred, returns "
"after printing an error message."
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:279
+#: C/photo-wall.c.page:280
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 "
@@ -23931,19 +27047,20 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/photo-wall.c.page:284
+#: C/photo-wall.c.page:285
+#, fuzzy
msgid "Set up the actors"
-msgstr ""
+msgstr "Clique para configurar"
#. (itstool) path: section/p
-#: C/photo-wall.c.page:285
+#: C/photo-wall.c.page:286
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 ""
#. (itstool) path: section/code
-#: C/photo-wall.c.page:288
+#: C/photo-wall.c.page:289
#, no-wrap
msgid ""
"\n"
@@ -23963,7 +27080,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:304
+#: C/photo-wall.c.page:305
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 "
@@ -23971,24 +27088,25 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:307
+#: C/photo-wall.c.page:308
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 ""
#. (itstool) path: section/p
-#: C/photo-wall.c.page:310
+#: C/photo-wall.c.page:311
msgid "At this point we've got a wall of images that are ready to be viewed."
msgstr ""
#. (itstool) path: section/title
-#: C/photo-wall.c.page:314
+#: C/photo-wall.c.page:315
+#, fuzzy
msgid "Reacting to the clicks"
-msgstr ""
+msgstr "Clica no item de menu"
#. (itstool) path: section/code
-#: C/photo-wall.c.page:318
+#: C/photo-wall.c.page:319
#, no-wrap
msgid ""
"\n"
@@ -24040,7 +27158,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:365
+#: C/photo-wall.c.page:366
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, "
@@ -24049,7 +27167,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/photo-wall.c.page:367
+#: C/photo-wall.c.page:368
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 "
@@ -24061,7 +27179,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/photo-wall.c.page:368
+#: C/photo-wall.c.page:369
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 "
@@ -24070,7 +27188,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:372
+#: C/photo-wall.c.page:373
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 "
@@ -24078,19 +27196,19 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:373
+#: C/photo-wall.c.page:374
msgid ""
"Line 12‒14: These set the image actors to receive events if they are focused."
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:374
+#: C/photo-wall.c.page:375
msgid ""
"Line 16‒17: Here we set the animation duration and save the current state."
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:375
+#: C/photo-wall.c.page:376
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</"
@@ -24098,7 +27216,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:377
+#: C/photo-wall.c.page:378
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 "
@@ -24106,7 +27224,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:378
+#: C/photo-wall.c.page:379
msgid ""
"Line 25: Setting the <code>ClutterActor</code>'s <code>reactive</code> "
"property to <code>TRUE</code> makes this <code>ClutterActor</code> react to "
@@ -24117,7 +27235,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:379
+#: C/photo-wall.c.page:380
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 "
@@ -24125,21 +27243,21 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:380
+#: C/photo-wall.c.page:381
msgid ""
"Line 39: Here we restore the easing state to what was set before we changed "
"it in line 16."
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:381
+#: C/photo-wall.c.page:382
msgid ""
"Line 42: Here we toggle the <code>is_focused</code> flag to the current "
"state."
msgstr ""
#. (itstool) path: item/p
-#: C/photo-wall.c.page:382
+#: C/photo-wall.c.page:383
msgid ""
"As mentioned previously, the <code>ClutterActor</code>s with higher "
"<code>depth</code> values receive events but can allow <code>ClutterActor</"
@@ -24149,14 +27267,14 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/photo-wall.c.page:384
+#: C/photo-wall.c.page:385
msgid ""
"Remember, however, that to receive events the <code>ClutterActor</code>s "
"must be set <code>reactive</code>."
msgstr ""
#. (itstool) path: section/p
-#: C/photo-wall.c.page:392
+#: C/photo-wall.c.page:393
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</"
@@ -24170,7 +27288,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/photo-wall.c.page:394
+#: C/photo-wall.c.page:395
msgid ""
"When you have done that, click <guiseq><gui>Build</gui><gui>Build Project</"
"gui></guiseq> to build everything again, then <guiseq><gui>Run</"
@@ -24178,7 +27296,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/photo-wall.c.page:395
+#: C/photo-wall.c.page:396
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 "
@@ -24186,49 +27304,51 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/photo-wall.c.page:400
+#: C/photo-wall.c.page:401
msgid ""
"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.
-#: C/progressbar.c.page:23 C/progressbar.vala.page:21
-msgctxt "_"
-msgid ""
-"external ref='media/progressbar_fill.ogv' "
-"md5='287763d1d3f4a328212ea2243910f5e4'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/progressbar.c.page:7
+#: C/progressbar.c.page:8
+#, fuzzy
msgctxt "text"
msgid "ProgressBar (C)"
-msgstr ""
+msgstr "Esta barra de progresso não mostra um texto"
#. (itstool) path: info/desc
-#: C/progressbar.c.page:18 C/progressbar.vala.page:17
+#: C/progressbar.c.page:19 C/progressbar.vala.page:18
msgid "A widget which indicates progress visually"
msgstr ""
#. (itstool) path: page/title
-#: C/progressbar.c.page:21 C/progressbar.js.page:19 C/progressbar.py.page:21
-#: C/progressbar.vala.page:20
+#: C/progressbar.c.page:22 C/progressbar.js.page:20 C/progressbar.py.page:22
+#: C/progressbar.vala.page:21
+#, fuzzy
msgid "ProgressBar"
+msgstr "Esta barra de progresso não mostra um texto"
+
+#. (itstool) path: page/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/progressbar.c.page:24 C/progressbar.vala.page:22
+msgctxt "_"
+msgid ""
+"external ref='media/progressbar_fill.ogv' "
+"md5='287763d1d3f4a328212ea2243910f5e4'"
msgstr ""
#. (itstool) path: page/p
-#: C/progressbar.c.page:24 C/progressbar.vala.page:22
+#: C/progressbar.c.page:25 C/progressbar.vala.page:23
msgid ""
"This ProgressBar \"fills in\" by a fraction of the bar until it is full."
msgstr ""
#. (itstool) path: page/code
-#: C/progressbar.c.page:26
+#: C/progressbar.c.page:27
#, no-wrap
msgid ""
"\n"
@@ -24304,84 +27424,172 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/progressbar.c.page:35
+#: C/progressbar.c.page:36
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
+#. (itstool) path: info/title
+#: C/progressbar.js.page:7
+#, fuzzy
+msgctxt "text"
+msgid "ProgressBar (JavaScript)"
+msgstr "Esta barra de progresso não mostra um texto"
+
+#. (itstool) path: info/desc
+#: C/progressbar.js.page:17
+#, fuzzy
+msgid "A bar which animates to indicate progress"
+msgstr "Inverter a direção de crescimento da barra de progresso"
+
+#. (itstool) path: page/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/progressbar.js.page:20 C/progressbar.py.page:22
+#: C/progressbar.js.page:21 C/progressbar.py.page:23
msgctxt "_"
msgid ""
"external ref='media/progressbar.ogv' md5='36deab3dd4b5be968828fa2ef416d612'"
msgstr ""
-
-#. (itstool) path: info/title
-#: C/progressbar.js.page:6
-msgctxt "text"
-msgid "ProgressBar (JavaScript)"
-msgstr ""
-
-#. (itstool) path: info/desc
-#: C/progressbar.js.page:16
-msgid "A bar which animates to indicate progress"
-msgstr ""
+"external ref='media/progressbar.ogv' md5='36deab3dd4b5be968828fa2ef416d612'"
#. (itstool) path: div/p
-#: C/progressbar.js.page:24 C/progressbar.py.page:26
+#: C/progressbar.js.page:25 C/progressbar.py.page:27
msgid "Pressing any key stops and starts this ProgressBar."
msgstr ""
#. (itstool) path: page/p
-#: C/progressbar.js.page:31 C/progressbar.py.page:33
+#: C/progressbar.js.page:32 C/progressbar.py.page:34
msgid "This ProgressBar is stopped and started by pressing any key."
msgstr ""
#. (itstool) path: page/code
-#: C/progressbar.js.page:33
-#, no-wrap
+#: C/progressbar.js.page:34
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "\n"
+#| "const WelcomeToTheGrid = new Lang.Class({\n"
+#| " Name: 'Welcome to the Grid',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function() {\n"
+#| " this.application = new Gtk.Application();\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"
+#| "\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: 10,\n"
+#| " title: \"Welcome to the Grid\"});\n"
+#| "\n"
+#| " // Create the Grid\n"
+#| " this._grid = new Gtk.Grid ({\n"
+#| " // column_homogeneous: true,\n"
+#| " // column_spacing: 20,\n"
+#| " row_spacing: 20 });\n"
+#| "\n"
+#| " // Create an image\n"
+#| " this._image = new Gtk.Image ({ file: \"gnome-image.png\" });\n"
+#| "\n"
+#| " // Create a second image using a stock icon\n"
+#| " this._icon = new Gtk.Image ({ stock: 'gtk-about' });\n"
+#| "\n"
+#| " // Create a label\n"
+#| " this._label = new Gtk.Label ({\n"
+#| " label: \"Welcome to GNOME, too!\",\n"
+#| " /* margin_top: 20 */ });\n"
+#| "\n"
+#| " /* Create a second label\n"
+#| " this._labelTwo = new Gtk.Label ({\n"
+#| " label: \"The cake is a pie.\" }); */\n"
+#| "\n"
+#| " /* Create a button\n"
+#| " this._button = new Gtk.Button ({\n"
+#| " label: \"Welcome to GNOME, too!\"}); */\n"
+#| "\n"
+#| " // Attach the images and button to the grid\n"
+#| " this._grid.attach (this._image, 0, 0, 2, 1);\n"
+#| " this._grid.attach (this._icon, 0, 1, 1, 1);\n"
+#| " this._grid.attach (this._label, 1, 1, 1, 1);\n"
+#| "\n"
+#| " // this._grid.attach (this._label, 0, 1, 1, 1);\n"
+#| " // this._grid.attach (this._labelTwo, 1, 1, 1, 1);\n"
+#| "\n"
+#| " // this._grid.attach (this._button, 1, 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"
+#| "// Run the application\n"
+#| "let app = new WelcomeToTheGrid ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const Gio = imports.gi.Gio;\n"
"const GLib = imports.gi.GLib;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const ProgressBarExample = new Lang.Class({\n"
-" Name: 'ProgressBar Example',\n"
+"class ProgressBarExample {\n"
"\n"
" // Create the application itself\n"
-" _init: function() {\n"
+" constructor() {\n"
" this.application = new Gtk.Application({\n"
" application_id: 'org.example.jsprogressbar',\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"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function() {\n"
-" this._buildUI ();\n"
-" },\n"
-"\n"
-"\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow({ application: this.application,\n"
@@ -24395,68 +27603,157 @@ msgid ""
" this._window.add(this.progressBar);\n"
"\n"
" // Start the function that pulses the bar every 100 milliseconds\n"
-" this.sourceID = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 100, Lang.bind(this, this._barPulse));\n"
+" this.sourceID = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 100,\n"
+" this._barPulse.bind(this));\n"
"\n"
" // Connect a keypress event to the function that toggles the bar to start or stop pulsing\n"
-" this._window.connect(\"key-press-event\", Lang.bind(this, this._onKeyPress));\n"
+" this._window.connect(\"key-press-event\", this._onKeyPress.bind(this));\n"
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
-"\n"
-"\n"
+" }\n"
"\n"
" // Pulse the progressbar (unless it has been disabled by a keypress)\n"
-" _barPulse: function() {\n"
+" _barPulse() {\n"
" this.progressBar.pulse();\n"
" return true;\n"
-" },\n"
+" }\n"
"\n"
" // Start or stop the progressbar when a key is pressed\n"
-" _onKeyPress: function() {\n"
+" _onKeyPress() {\n"
" if (this.sourceID == 0)\n"
-" this.sourceID = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 100, Lang.bind(this,
this._barPulse));\n"
+" this.sourceID = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 100,\n"
+" this._barPulse.bind(this));\n"
" else {\n"
" GLib.source_remove(this.sourceID);\n"
" this.sourceID = 0;\n"
" }\n"
" }\n"
"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new ProgressBarExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"\n"
+"const WelcomeToTheGrid = new Lang.Class({\n"
+" Name: 'Bem-vindo à Grid',\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function() {\n"
+" this.application = new Gtk.Application();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativo\n"
+" _onActivate: function() {\n"
+" this._window.present();\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup: function() {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+"\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function() {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow({\n"
+" application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" border_width: 10,\n"
+" title: \"Bem-vindo à Grid\"});\n"
+"\n"
+" // Cria a Grid\n"
+" this._grid = new Gtk.Grid ({\n"
+" // column_homogeneous: true,\n"
+" // column_spacing: 20,\n"
+" row_spacing: 20 });\n"
+"\n"
+" // Cria uma imagem\n"
+" this._image = new Gtk.Image ({ file: \"gnome-image.png\" });\n"
+"\n"
+" // Cria uma segunda imagem usando um ícone padrão\n"
+" this._icon = new Gtk.Image ({ stock: 'gtk-about' });\n"
+"\n"
+" // Cria um rótulo\n"
+" this._label = new Gtk.Label ({\n"
+" label: \"Bem-vindo ao GNOME, também!\",\n"
+" /* margin_top: 20 */ });\n"
+"\n"
+" /* Cria um segundo rótulo\n"
+" this._labelTwo = new Gtk.Label ({\n"
+" label: \"O bolo é uma torta.\" }); */\n"
+"\n"
+" /* Cria um botão\n"
+" this._button = new Gtk.Button ({\n"
+" label: \"Bem-vindo ao GNOME, também!\"}); */\n"
+"\n"
+" // Anexa as imagens e botão à grade\n"
+" this._grid.attach (this._image, 0, 0, 2, 1);\n"
+" this._grid.attach (this._icon, 0, 1, 1, 1);\n"
+" this._grid.attach (this._label, 1, 1, 1, 1);\n"
+"\n"
+" // this._grid.attach (this._label, 0, 1, 1, 1);\n"
+" // this._grid.attach (this._labelTwo, 1, 1, 1, 1);\n"
+"\n"
+" // this._grid.attach (this._button, 1, 1, 1, 1);\n"
+"\n"
+" // Adiciona a grade à janela\n"
+" this._window.add (this._grid);\n"
+"\n"
+" // Mostra a janela e todos os widgets filhos\n"
+" this._window.show_all();\n"
+" }\n"
+"\n"
+"});\n"
+"\n"
+"// Executa o aplicativo\n"
+"let app = new WelcomeToTheGrid ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: item/p
-#: C/progressbar.js.page:38
+#: C/progressbar.js.page:39
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/GLib.html\">GLib</"
"link>"
msgstr ""
#. (itstool) path: info/title
-#: C/progressbar.py.page:7
+#: C/progressbar.py.page:8
+#, fuzzy
msgctxt "text"
msgid "ProgressBar (Python)"
-msgstr ""
+msgstr "_Python"
#. (itstool) path: info/desc
-#: C/progressbar.py.page:18
+#: C/progressbar.py.page:19
msgid "A widget which indicates progress visually."
msgstr ""
#. (itstool) path: section/code
-#: C/progressbar.py.page:40
+#: C/progressbar.py.page:41
#, 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"
@@ -24493,7 +27790,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"
@@ -24510,12 +27809,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/progressbar.py.page:45
+#: C/progressbar.py.page:46
+#, fuzzy
msgid "Useful methods for a ProgressBar widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: item/p
-#: C/progressbar.py.page:47
+#: C/progressbar.py.page:48
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 "
@@ -24524,43 +27824,44 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/progressbar.py.page:48
+#: C/progressbar.py.page:49
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 ""
#. (itstool) path: item/p
-#: C/progressbar.py.page:56
+#: C/progressbar.py.page:57
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkProgressBar.html"
"\">GtkProgressBar</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/progressbar.py.page:57
+#: C/progressbar.py.page:58
msgid ""
"<link href=\"http://developer.gnome.org/glib/stable/glib-The-Main-Event-Loop."
"html\">GLib - The Main Event Loop</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/progressbar.py.page:58
+#: C/progressbar.py.page:59
msgid ""
"<link href=\"http://developer.gnome.org/gdk/stable/gdk-Keyboard-Handling"
"\">Gdk - Key Values</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/progressbar.vala.page:7
+#: C/progressbar.vala.page:8
+#, fuzzy
msgctxt "text"
msgid "ProgressBar (Vala)"
-msgstr ""
+msgstr "Esta barra de progresso não mostra um texto"
#. (itstool) path: page/code
-#: C/progressbar.vala.page:24
+#: C/progressbar.vala.page:25
#, no-wrap
msgid ""
"public class MyApplication : Gtk.Application {\n"
@@ -24602,49 +27903,51 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/progressbar.vala.page:29
+#: C/progressbar.vala.page:30
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ProgressBar.html\">Gtk."
"ProgressBar</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/progressbar.vala.page:30
+#: C/progressbar.vala.page:31
msgid ""
"<link href=\"http://www.valadoc.org/glib-2.0/GLib.Timeout.html\">GLib."
"Timeout</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/properties.py.page:8
+#: C/properties.py.page:9
+#, fuzzy
msgctxt "text"
msgid "Properties (Python)"
-msgstr ""
+msgstr "propriedades"
#. (itstool) path: info/desc
-#: C/properties.py.page:13
+#: C/properties.py.page:14
msgid "An explanation of properties, getters and setters."
msgstr ""
#. (itstool) path: page/title
-#: C/properties.py.page:26
+#: C/properties.py.page:27
+#, fuzzy
msgid "Properties"
-msgstr ""
+msgstr "Propriedades"
#. (itstool) path: section/p
-#: C/properties.py.page:33
+#: C/properties.py.page:34
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. Each "
+"widget has its own particular set of properties. For example, a widget such "
+"as a button 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 ""
#. (itstool) path: section/code
-#: C/properties.py.page:34
+#: C/properties.py.page:41
#, no-wrap
msgid ""
"\n"
@@ -24652,12 +27955,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/properties.py.page:37
-msgid "which is equivalent to using:"
+#: C/properties.py.page:44
+msgid ""
+"Alternatively, you can define these properties separately by using the "
+"method associated with it."
msgstr ""
#. (itstool) path: section/code
-#: C/properties.py.page:38
+#: C/properties.py.page:45
#, no-wrap
msgid ""
"\n"
@@ -24668,14 +27973,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/properties.py.page:44
+#: C/properties.py.page:51
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 ""
#. (itstool) path: section/p
-#: C/properties.py.page:46
+#: C/properties.py.page:53
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 "
@@ -24684,64 +27989,66 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/properties.py.page:52
+#: C/properties.py.page:59
msgid ""
"<link href=\"http://python-gtk-3-tutorial.readthedocs.org/en/latest/basics."
"html\">Basics - Properties</link> in Python GTK+ 3 Tutorial"
msgstr ""
#. (itstool) path: info/title
-#: C/py.page:6
+#: C/py.page:7
msgctxt "link"
msgid "Python"
-msgstr ""
+msgstr "Python"
#. (itstool) path: page/title
-#: C/py.page:20
+#: C/py.page:21
msgid "Tutorials, code samples and platform demos in Python"
-msgstr ""
+msgstr "Tutoriais, amostras de código e demonstrações da plataforma em Python"
#. (itstool) path: section/title
#. (itstool) path: page/title
-#: C/py.page:25 C/tutorial.py.page:30
+#: C/py.page:26 C/tutorial.py.page:31
msgid "Tutorial for beginners"
-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.c.page:24 C/radiobutton.py.page:23 C/radiobutton.vala.page:24
-msgctxt "_"
-msgid ""
-"external ref='media/radiobutton.png' md5='d115460280d8e41493dd98054b5822a5'"
-msgstr ""
+msgstr "Tutorial para iniciantes"
#. (itstool) path: info/title
-#: C/radiobutton.c.page:7
+#: C/radiobutton.c.page:8
msgctxt "text"
msgid "RadioButton (C)"
-msgstr ""
+msgstr "RadioButton (C)"
#. (itstool) path: info/desc
-#: C/radiobutton.c.page:19
+#: C/radiobutton.c.page:20
msgid "A choice from multiple checkbuttons"
-msgstr ""
+msgstr "Uma escolha de vários botões de verificação"
#. (itstool) path: page/title
-#: C/radiobutton.c.page:22 C/radiobutton.js.page:20 C/radiobutton.py.page:22
-#: C/radiobutton.vala.page:23
+#: C/radiobutton.c.page:23 C/radiobutton.js.page:21 C/radiobutton.py.page:23
+#: C/radiobutton.vala.page:24
msgid "RadioButton"
+msgstr "RadioButton"
+
+#. (itstool) path: page/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.c.page:25 C/radiobutton.py.page:24 C/radiobutton.vala.page:25
+msgctxt "_"
+msgid ""
+"external ref='media/radiobutton.png' md5='d115460280d8e41493dd98054b5822a5'"
msgstr ""
+"external ref='media/radiobutton.png' md5='d115460280d8e41493dd98054b5822a5'"
#. (itstool) path: page/p
-#: C/radiobutton.c.page:25
+#: C/radiobutton.c.page:26
+#, fuzzy
msgid "These radiobuttons report their activity in the terminal."
-msgstr ""
+msgstr " -u USUÁRIO Relatório de atividades somente para o usuário"
#. (itstool) path: page/code
-#: C/radiobutton.c.page:27
+#: C/radiobutton.c.page:28
#, no-wrap
msgid ""
"\n"
@@ -24845,37 +28152,42 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/radiobutton.c.page:37 C/switch.c.page:35
+#: C/radiobutton.c.page:38 C/switch.c.page:36
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkSwitch.html"
"\">GtkSwitch</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkSwitch.html"
+"\">GtkSwitch</link>"
+
+#. (itstool) path: info/title
+#: C/radiobutton.js.page:8
+msgctxt "text"
+msgid "RadioButton (JavaScript)"
+msgstr "RadioButton (JavaScript)"
-#. (itstool) path: media
+#. (itstool) path: info/desc
+#: C/radiobutton.js.page:18
+#, fuzzy
+msgid "Only one can be selected at a time"
+msgstr "Apenas uma opção pode ser fornecida por vez"
+
+#. (itstool) path: page/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
+#: C/radiobutton.js.page:22
msgctxt "_"
msgid ""
"external ref='media/radiobuttontravel.png' "
"md5='0c5f01ee160bb42716ccf5dccbd080c0'"
msgstr ""
-
-#. (itstool) path: info/title
-#: C/radiobutton.js.page:7
-msgctxt "text"
-msgid "RadioButton (JavaScript)"
-msgstr ""
-
-#. (itstool) path: info/desc
-#: C/radiobutton.js.page:17
-msgid "Only one can be selected at a time"
-msgstr ""
+"external ref='media/radiobuttontravel.png' "
+"md5='0c5f01ee160bb42716ccf5dccbd080c0'"
#. (itstool) path: page/p
-#: C/radiobutton.js.page:22
+#: C/radiobutton.js.page:23
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 "
@@ -24885,7 +28197,7 @@ msgid ""
msgstr ""
#. (itstool) path: page/p
-#: C/radiobutton.js.page:23
+#: C/radiobutton.js.page:24
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 "
@@ -24895,7 +28207,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/radiobutton.js.page:40
+#: C/radiobutton.js.page:41
#, no-wrap
msgid ""
"\n"
@@ -24926,7 +28238,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/radiobutton.js.page:66 C/togglebutton.js.page:66
+#: C/radiobutton.js.page:67 C/togglebutton.js.page:67
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/"
@@ -24935,7 +28247,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/radiobutton.js.page:67
+#: C/radiobutton.js.page:68
#, no-wrap
msgid ""
"\n"
@@ -24951,12 +28263,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/radiobutton.js.page:82
+#: C/radiobutton.js.page:83
+#, fuzzy
msgid "Creating the radiobuttons"
-msgstr ""
+msgstr "Criando um evento"
#. (itstool) path: section/code
-#: C/radiobutton.js.page:83
+#: C/radiobutton.js.page:84
#, no-wrap
msgid ""
"\n"
@@ -24965,7 +28278,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/radiobutton.js.page:88
+#: C/radiobutton.js.page:89
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 "
@@ -24974,7 +28287,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/radiobutton.js.page:90
+#: C/radiobutton.js.page:91
#, no-wrap
msgid ""
"\n"
@@ -24989,7 +28302,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/radiobutton.js.page:101
+#: C/radiobutton.js.page:102
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 "
@@ -25001,7 +28314,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/radiobutton.js.page:102
+#: C/radiobutton.js.page:103
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 "
@@ -25009,7 +28322,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/radiobutton.js.page:104
+#: C/radiobutton.js.page:105
#, no-wrap
msgid ""
"\n"
@@ -25023,19 +28336,20 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/radiobutton.js.page:113
+#: C/radiobutton.js.page:114
msgid ""
"Here we create the label for the second group of buttons, and then create "
"them all the same way."
msgstr ""
#. (itstool) path: section/title
-#: C/radiobutton.js.page:117 C/textview.js.page:131
+#: C/radiobutton.js.page:118 C/textview.js.page:132
+#, fuzzy
msgid "Creating the rest of the user interface"
-msgstr ""
+msgstr "Mostra as opções para a interface do usuário"
#. (itstool) path: section/code
-#: C/radiobutton.js.page:119
+#: C/radiobutton.js.page:120
#, no-wrap
msgid ""
"\n"
@@ -25050,7 +28364,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/radiobutton.js.page:129
+#: C/radiobutton.js.page:130
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, "
@@ -25058,7 +28372,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/radiobutton.js.page:130
+#: C/radiobutton.js.page:131
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="
@@ -25067,7 +28381,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/radiobutton.js.page:132
+#: C/radiobutton.js.page:133
#, no-wrap
msgid ""
"\n"
@@ -25106,7 +28420,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/radiobutton.js.page:166
+#: C/radiobutton.js.page:167
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 "
@@ -25115,21 +28429,40 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/radiobutton.js.page:167
+#: C/radiobutton.js.page:168
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."
msgstr ""
+#. (itstool) path: section/code
+#: C/radiobutton.js.page:170
+#, fuzzy, no-wrap
+msgid ""
+"\n"
+" // Show the window and all child widgets\n"
+" this._window.show_all();\n"
+" },\n"
+msgstr ""
+"\n"
+" // Coloca o webview na janela\n"
+" this._window.add (this._webView);\n"
+"\n"
+" // Mostra a janela e todos seus widgets filhos\n"
+" this._window.show_all();\n"
+" },\n"
+"\n"
+"});\n"
+
#. (itstool) path: section/p
-#: C/radiobutton.js.page:175
+#: C/radiobutton.js.page:176
msgid ""
"Finally, we tell the window and everything inside it to become visible when "
"the application is run."
msgstr ""
#. (itstool) path: section/code
-#: C/radiobutton.js.page:181
+#: C/radiobutton.js.page:182
#, no-wrap
msgid ""
"\n"
@@ -25153,7 +28486,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/radiobutton.js.page:200
+#: C/radiobutton.js.page:201
msgid ""
"When you click OK, a <link xref=\"messagedialog.js\">Gtk.MessageDialog</"
"link> appears. This function creates and displays the popup window, then "
@@ -25163,7 +28496,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/radiobutton.js.page:202
+#: C/radiobutton.js.page:203
#, no-wrap
msgid ""
"\n"
@@ -25212,7 +28545,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/radiobutton.js.page:246
+#: C/radiobutton.js.page:247
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 "
@@ -25221,8 +28554,8 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/radiobutton.js.page:248
-#, no-wrap
+#: C/radiobutton.js.page:249
+#, fuzzy, no-wrap
msgid ""
"\n"
" _clearTravelPopUp: function () {\n"
@@ -25232,71 +28565,73 @@ msgid ""
" }\n"
"\n"
"});\n"
-msgstr ""
+msgstr "A função <function>car</function> "
#. (itstool) path: section/p
-#: C/radiobutton.js.page:257
+#: C/radiobutton.js.page:258
msgid ""
"This function is called when the MessageDialog's OK button is pressed. It "
"simply makes the popup go away."
msgstr ""
#. (itstool) path: section/code
-#: C/radiobutton.js.page:259
-#, no-wrap
+#: C/radiobutton.js.page:260
+#, fuzzy, no-wrap
msgid ""
"\n"
"// Run the application\n"
"let app = new RadioButtonExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"\n"
+"// Executa o aplicativo\n"
+"let app = new GettingTheSignal ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: section/p
-#: C/radiobutton.js.page:264 C/togglebutton.js.page:143
+#: C/radiobutton.js.page:265 C/togglebutton.js.page:144
msgid ""
"Finally, we create a new instance of the finished RadioButtonExample class, "
"and set the application running."
msgstr ""
#. (itstool) path: section/code
-#: C/radiobutton.js.page:269
+#: C/radiobutton.js.page:270
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const Gio = imports.gi.Gio;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const RadioButtonExample = new Lang.Class({\n"
-" Name: 'RadioButton Example',\n"
+"class RadioButtonExample {\n"
"\n"
" // Create the application itself\n"
-" _init: function() {\n"
+" constructor() {\n"
" this.application = new Gtk.Application({\n"
" application_id: 'org.example.jsradiobutton',\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"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents window when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function() {\n"
-" this._buildUI ();\n"
-" },\n"
-"\n"
-"\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow({\n"
@@ -25332,7 +28667,7 @@ msgid ""
" halign: Gtk.Align.END });\n"
"\n"
" // Connect the button to the function which handles clicking it\n"
-" this._okButton.connect ('clicked', Lang.bind (this, this._okClicked));\n"
+" this._okButton.connect ('clicked', this._okClicked.bind(this));\n"
"\n"
" // Create a grid to put the \"place\" items in\n"
" this._places = new Gtk.Grid ();\n"
@@ -25369,11 +28704,9 @@ msgid ""
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
-"\n"
-"\n"
+" }\n"
"\n"
-" _okClicked: function () {\n"
+" _okClicked() {\n"
"\n"
" // Create a popup that shows a silly message\n"
" this._travel = new Gtk.MessageDialog ({\n"
@@ -25387,13 +28720,11 @@ msgid ""
" this._travel.show();\n"
"\n"
" // Bind the OK button to the function that closes the popup\n"
-" this._travel.connect (\"response\", Lang.bind (this, this._clearTravelPopUp));\n"
-"\n"
-" },\n"
+" this._travel.connect (\"response\", this._clearTravelPopUp.bind(this));\n"
"\n"
+" }\n"
"\n"
-"\n"
-" _messageText: function() {\n"
+" _messageText() {\n"
"\n"
" // Create a silly message for the popup depending on what you selected\n"
" var stringMessage = \"\";\n"
@@ -25434,18 +28765,12 @@ msgid ""
"\n"
" return stringMessage;\n"
"\n"
-" },\n"
-"\n"
-"\n"
-"\n"
-"\n"
-" _clearTravelPopUp: function () {\n"
+" }\n"
"\n"
+" _clearTravelPopUp() {\n"
" this._travel.destroy();\n"
-"\n"
" }\n"
-"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new RadioButtonExample ();\n"
@@ -25453,60 +28778,63 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/radiobutton.js.page:277 C/statusbar.js.page:224 C/textview.js.page:251
+#: C/radiobutton.js.page:278 C/statusbar.js.page:225 C/textview.js.page:252
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Button.html"
"\">Gtk.Button</link>"
msgstr ""
#. (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
+#: C/radiobutton.js.page:279 C/scale.js.page:213 C/spinbutton.js.page:204
+#: C/switch.js.page:270 C/textview.js.page:253 C/togglebutton.js.page:157
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Grid.html"
"\">Gtk.Grid</link>"
msgstr ""
#. (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
+#: C/radiobutton.js.page:280 C/scale.js.page:214 C/spinbutton.js.page:205
+#: C/switch.js.page:272 C/textview.js.page:254
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Label.html"
"\">Gtk.Label</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/radiobutton.js.page:280 C/textview.js.page:254
+#: C/radiobutton.js.page:281 C/textview.js.page:255
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.RadioButton."
"html\">Gtk.RadioButton</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/radiobutton.py.page:7
+#: C/radiobutton.py.page:8
msgctxt "text"
msgid "RadioButton (Python)"
-msgstr ""
+msgstr "RadioButton (Python)"
#. (itstool) path: info/desc
-#: C/radiobutton.py.page:19
+#: C/radiobutton.py.page:20
+#, fuzzy
msgid "Mutually exclusive buttons."
-msgstr ""
+msgstr "%s: argumentos mutuamente exclusivos:"
#. (itstool) path: page/p
-#: C/radiobutton.py.page:24
+#: C/radiobutton.py.page:25
msgid ""
"Three RadioButtons. You can see in the terminal if they are turned off or on."
msgstr ""
#. (itstool) path: section/code
-#: C/radiobutton.py.page:30
+#: C/radiobutton.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=\"RadioButton Example\", application=app)\n"
" self.set_default_size(250, 100)\n"
@@ -25530,7 +28858,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"
@@ -25539,9 +28868,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"
@@ -25557,9 +28886,11 @@ msgid ""
" state = \"off\"\n"
" # whenever the function is called (a button is turned on or off)\n"
" # print on the terminal which button was turned on/off\n"
-" print button.get_label() + \" was turned \" + state\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"
@@ -25576,21 +28907,22 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/radiobutton.py.page:34
+#: C/radiobutton.py.page:35
+#, fuzzy
msgid "Useful methods for a RadioButton widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: section/p
-#: C/radiobutton.py.page:35
+#: C/radiobutton.py.page:36
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 ""
#. (itstool) path: section/p
-#: C/radiobutton.py.page:37
+#: C/radiobutton.py.page:38
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 "
@@ -25598,7 +28930,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/radiobutton.py.page:38
+#: C/radiobutton.py.page:39
#, no-wrap
msgid ""
"\n"
@@ -25607,39 +28939,41 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/radiobutton.py.page:41
+#: C/radiobutton.py.page:42
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 "
-"arguement is the group of the radiobuttons, which we can get with "
+"argument is the group of the radiobuttons, which we can get with "
"<code>get_group()</code>, the second argument is the label)."
msgstr ""
#. (itstool) path: item/p
-#: C/radiobutton.py.page:50
+#: C/radiobutton.py.page:51
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkRadioButton.html"
"\">GtkRadioButton</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/radiobutton.vala.page:7
+#: C/radiobutton.vala.page:8
msgctxt "text"
msgid "RadioButton (Vala)"
-msgstr ""
+msgstr "RadioButton (Vala)"
#. (itstool) path: info/desc
-#: C/radiobutton.vala.page:20
+#: C/radiobutton.vala.page:21
+#, fuzzy
msgid "A choice from multiple CheckButtons."
-msgstr ""
+msgstr "Respostas de múltiplas escolhas para músicas"
#. (itstool) path: page/p
-#: C/radiobutton.vala.page:25
+#: C/radiobutton.vala.page:26
+#, fuzzy
msgid "These RadioButtons report their activity in the terminal."
-msgstr ""
+msgstr " -u USUÁRIO Relatório de atividades somente para o usuário"
#. (itstool) path: page/code
-#: C/radiobutton.vala.page:27
+#: C/radiobutton.vala.page:28
#, no-wrap
msgid ""
"public class MyWindow : Gtk.ApplicationWindow {\n"
@@ -25708,52 +29042,42 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/radiobutton.vala.page:32
+#: C/radiobutton.vala.page:33
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
-msgctxt "_"
-msgid ""
-"external ref='media/record-collection.png' "
-"md5='2d645997687ed5aacd36aafafc16e072'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/record-collection.js.page:7
+#: C/record-collection.js.page:8
+#, fuzzy
msgctxt "text"
msgid "Record collection (JavaScript)"
-msgstr ""
+msgstr "Coleção:"
#. (itstool) path: info/desc
-#: C/record-collection.js.page:10
+#: C/record-collection.js.page:11
msgid "Create a small database application for ordering your music collection"
msgstr ""
#. (itstool) path: page/title
-#: C/record-collection.js.page:28
+#: C/record-collection.js.page:29
+#, fuzzy
msgid "Record collection"
-msgstr ""
+msgstr "_Gravar"
#. (itstool) path: item/p
-#: C/record-collection.js.page:33
+#: C/record-collection.js.page:34
msgid "How to connect to a database using libgda"
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:34
+#: C/record-collection.js.page:35
msgid "How to insert and browse records in a database table"
msgstr ""
#. (itstool) path: section/p
-#: C/record-collection.js.page:40
+#: C/record-collection.js.page:41
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 "
@@ -25761,7 +29085,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/record-collection.js.page:43
+#: C/record-collection.js.page:44
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 "
@@ -25772,7 +29096,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/record-collection.js.page:46
+#: C/record-collection.js.page:47
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 "
@@ -25782,7 +29106,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:59
+#: C/record-collection.js.page:60
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 "
@@ -25790,7 +29114,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:62
+#: C/record-collection.js.page:63
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> "
@@ -25798,12 +29122,25 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/record-collection.js.page:68
+#: C/record-collection.js.page:69
+#, fuzzy
msgid "Program Structure"
+msgstr "Estrutura"
+
+#. (itstool) path: section/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:70
+msgctxt "_"
+msgid ""
+"external ref='media/record-collection.png' "
+"md5='2d645997687ed5aacd36aafafc16e072'"
msgstr ""
#. (itstool) path: section/p
-#: C/record-collection.js.page:70
+#: C/record-collection.js.page:71
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 "
@@ -25815,17 +29152,18 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/record-collection.js.page:75
+#: C/record-collection.js.page:76
+#, fuzzy
msgid "Starting the fun"
-msgstr ""
+msgstr "Diversão"
#. (itstool) path: section/p
-#: C/record-collection.js.page:76
+#: C/record-collection.js.page:77
msgid "Let's start by examining the skeleton of the program:"
msgstr ""
#. (itstool) path: section/code
-#: C/record-collection.js.page:77
+#: C/record-collection.js.page:78
#, no-wrap
msgid ""
"\n"
@@ -25847,7 +29185,7 @@ msgid ""
" }\n"
"}\n"
"\n"
-"Gtk.init (0, null);\n"
+"Gtk.init (null, null);\n"
"\n"
"var demo = new Demo ();\n"
"\n"
@@ -25855,14 +29193,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:102
+#: C/record-collection.js.page:103
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 ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:103
+#: C/record-collection.js.page:104
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 "
@@ -25870,17 +29208,20 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:104
+#: C/record-collection.js.page:105
msgid "Lines 19‒23: Start the application."
msgstr ""
#. (itstool) path: section/title
-#: C/record-collection.js.page:109
+#: C/record-collection.js.page:110
+#, fuzzy
msgid "Designing the application"
msgstr ""
+"Mais informações sobre como criar um ícone de aplicativo podem ser "
+"encontradas abaixo, na seção personalizada de ícones de cores."
#. (itstool) path: section/p
-#: C/record-collection.js.page:110
+#: C/record-collection.js.page:111
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 "
@@ -25888,7 +29229,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/record-collection.js.page:111
+#: C/record-collection.js.page:112
#, no-wrap
msgid ""
"\n"
@@ -25943,14 +29284,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:161
+#: C/record-collection.js.page:162
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 ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:162
+#: C/record-collection.js.page:163
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 "
@@ -25958,33 +29299,34 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:163
+#: C/record-collection.js.page:164
msgid ""
"Line 39: Create the widget (<code>TextView</code>) where we will show the "
"contents of the table."
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:164
+#: C/record-collection.js.page:165
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 ""
#. (itstool) path: section/title
-#: C/record-collection.js.page:169
+#: C/record-collection.js.page:170
+#, fuzzy
msgid "Connecting to and initializing the database"
-msgstr ""
+msgstr "Erro ao iniciar o banco de dados com senha"
#. (itstool) path: section/p
-#: C/record-collection.js.page:170
+#: C/record-collection.js.page:171
msgid ""
"The code which makes the connection to the database is in the "
"<code>setupDatabase</code> method below:"
msgstr ""
#. (itstool) path: section/code
-#: C/record-collection.js.page:173
+#: C/record-collection.js.page:174
#, no-wrap
msgid ""
"\n"
@@ -25994,22 +29336,22 @@ msgid ""
" this.connection.open ();\n"
"\n"
" try {\n"
-" var dm = Gda.execute_select_command (this.connection, \"select * from demo\");\n"
+" var dm = this.connection.execute_select_command (\"select * from demo\");\n"
" } catch (e) {\n"
-" Gda.execute_non_select_command (this.connection, \"create table demo (id integer, name
varchar(100))\");\n"
+" this.connection.execute_non_select_command (\"create table demo (id integer, name varchar(100))\");\n"
" }\n"
" },"
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:187
+#: C/record-collection.js.page:188
msgid ""
"Lines 2‒3: Create the GDA's <code>Connection</code> object. We must supply "
"to its constructor some properties:"
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:190
+#: C/record-collection.js.page:191
msgid ""
"<code>provider</code>: One of GDA's supported providers. GDA supports "
"SQLite, MySQL, PostgreSQL, Oracle and many others. For demo purposes we will "
@@ -26018,7 +29360,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:193
+#: C/record-collection.js.page:194
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>;"
@@ -26028,7 +29370,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/record-collection.js.page:197
+#: C/record-collection.js.page:198
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 "
@@ -26037,14 +29379,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:201
+#: C/record-collection.js.page:202
msgid ""
"Line 4: Open the connection. In the SQLite provider, if the database does "
"not exist, it will be created in this step."
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:203
+#: C/record-collection.js.page:204
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 "
@@ -26054,26 +29396,28 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:204
+#: C/record-collection.js.page:205
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</"
-"code>. They are simple to use, and just require two arguments: The "
-"<code>Connection</code> object and the SQL command to be parsed."
+"In order to run the SQL commands above we are using the GDA connection "
+"methods <code>execute_select_command</code> and "
+"<code>execute_non_select_command</code>. They are simple to use, and just "
+"require two arguments: The <code>Connection</code> object and the SQL "
+"command to be parsed."
msgstr ""
#. (itstool) path: section/p
-#: C/record-collection.js.page:208
+#: C/record-collection.js.page:209
msgid "At this point we have the database set up, and are ready to use it."
msgstr ""
#. (itstool) path: section/title
-#: C/record-collection.js.page:212
+#: C/record-collection.js.page:213
+#, fuzzy
msgid "Selecting"
-msgstr ""
+msgstr "Selecionando e copiando texto"
#. (itstool) path: section/p
-#: C/record-collection.js.page:213
+#: C/record-collection.js.page:214
msgid ""
"After connecting to the database, our demo's constructor calls the "
"<code>selectData</code> method. It is responsible for getting all the "
@@ -26082,12 +29426,12 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/record-collection.js.page:216
+#: C/record-collection.js.page:217
#, no-wrap
msgid ""
"\n"
" selectData: function () {\n"
-" var dm = Gda.execute_select_command (this.connection, \"select * from demo order by 1, 2\");\n"
+" var dm = this.connection.execute_select_command (\"select * from demo order by 1, 2\");\n"
" var iter = dm.create_iter ();\n"
"\n"
" var text = \"\";\n"
@@ -26105,22 +29449,22 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:234
+#: C/record-collection.js.page:235
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 "
+"Line 2: The <code>SELECT</code> command. We are using the GDA connection's "
+"<code>execute_select_command</code> method for that. It returns a "
"<code>DataModel</code> object, which is later used to retrieve the rows."
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:235
+#: C/record-collection.js.page:236
msgid ""
"Line 3: Create an <code>Iter</code> object, which is used to iterate over "
"the <code>DataModel</code>'s records."
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:236
+#: C/record-collection.js.page:237
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 "
@@ -26129,12 +29473,12 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:238
+#: C/record-collection.js.page:239
msgid "Lines 8‒9: We do two things in each line:"
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:240
+#: C/record-collection.js.page:241
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 "
@@ -26143,7 +29487,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:241
+#: C/record-collection.js.page:242
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 "
@@ -26153,14 +29497,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:244
+#: C/record-collection.js.page:245
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."
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:245
+#: C/record-collection.js.page:246
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 "
@@ -26168,19 +29512,20 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:246
+#: C/record-collection.js.page:247
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 ""
#. (itstool) path: section/title
-#: C/record-collection.js.page:251
+#: C/record-collection.js.page:252
+#, fuzzy
msgid "Inserting"
-msgstr ""
+msgstr "erro ao inserir na área de pesquisa"
#. (itstool) path: section/p
-#: C/record-collection.js.page:252
+#: C/record-collection.js.page:253
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 "
@@ -26190,7 +29535,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/record-collection.js.page:255
+#: C/record-collection.js.page:256
#, no-wrap
msgid ""
"\n"
@@ -26214,9 +29559,9 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/record-collection.js.page:273
+#: C/record-collection.js.page:274
msgid ""
-"We have learned how to use GDA's convenience functions "
+"We have learned how to use the GDA connection's methods "
"<code>execute_select_command</code> and <code>execute_non_select_command</"
"code> to quickly execute SQL commands on the database. GDA allows one to "
"build a SQL statement indirectly, by using its <code>SqlBuilder</code> "
@@ -26226,7 +29571,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:277
+#: C/record-collection.js.page:278
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 "
@@ -26234,7 +29579,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:278
+#: C/record-collection.js.page:279
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 "
@@ -26242,7 +29587,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:279
+#: C/record-collection.js.page:280
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>, "
@@ -26250,14 +29595,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:280
+#: C/record-collection.js.page:281
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 ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:281
+#: C/record-collection.js.page:282
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 "
@@ -26265,19 +29610,19 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:282
+#: C/record-collection.js.page:283
msgid ""
"Line 11: Get the dynamically generated <code>Statement</code> object, which "
"represents a SQL statement."
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:283
+#: C/record-collection.js.page:284
msgid "Line 12: Finally, execute the SQL statement (<code>INSERT</code>)."
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:284
+#: C/record-collection.js.page:285
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 "
@@ -26285,13 +29630,13 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/record-collection.js.page:285
+#: C/record-collection.js.page:286
msgid ""
"Line 15: Refresh the view on the screen by doing another <code>SELECT</code>."
msgstr ""
#. (itstool) path: note/p
-#: C/record-collection.js.page:287
+#: C/record-collection.js.page:288
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 "
@@ -26301,165 +29646,179 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/record-collection.js.page:292
+#: C/record-collection.js.page:293
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!"
msgstr ""
#. (itstool) path: section/p
-#: C/record-collection.js.page:297
+#: C/record-collection.js.page:298
msgid ""
"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
+#: C/response-type.page:17
+#, fuzzy
msgid "enum ResponseType"
-msgstr ""
+msgstr "Enum"
#. (itstool) path: item/title
-#: C/response-type.page:20
+#: C/response-type.page:21
msgid "ResponseType.NONE = -1"
-msgstr ""
+msgstr "ResponseType.NONE = -1"
#. (itstool) path: item/p
-#: C/response-type.page:21
+#: C/response-type.page:22
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
+#: C/response-type.page:25
msgid "ResponseType.REJECT = -2"
-msgstr ""
+msgstr "ResponseType.REJECT = -2"
#. (itstool) path: item/p
-#: C/response-type.page:25 C/response-type.page:29
+#: C/response-type.page:26 C/response-type.page:30
msgid "Generic response id, not used by GTK+ dialogs"
msgstr ""
#. (itstool) path: item/title
-#: C/response-type.page:28
+#: C/response-type.page:29
msgid "ResponseType.ACCEPT = -3"
-msgstr ""
+msgstr "ResponseType.ACCEPT = -3"
#. (itstool) path: item/title
-#: C/response-type.page:32
+#: C/response-type.page:33
msgid "ResponseType.DELETE_EVENT = -4"
-msgstr ""
+msgstr "ResponseType.DELETE_EVENT = -4"
#. (itstool) path: item/p
-#: C/response-type.page:33
+#: C/response-type.page:34
msgid "Returned if the dialog is deleted"
msgstr ""
#. (itstool) path: item/title
-#: C/response-type.page:36
+#: C/response-type.page:37
msgid "ResponseType.OK = -5"
-msgstr ""
+msgstr "ResponseType.OK = -5"
#. (itstool) path: item/p
-#: C/response-type.page:37
+#: C/response-type.page:38
msgid "Returned by OK buttons in GTK+ dialogs"
msgstr ""
#. (itstool) path: item/title
-#: C/response-type.page:40
+#: C/response-type.page:41
msgid "ResponseType.CANCEL = -6"
-msgstr ""
+msgstr "ResponseType.CANCEL = -6"
#. (itstool) path: item/p
-#: C/response-type.page:41
+#: C/response-type.page:42
msgid "Returned by Cancel buttons in GTK+ dialogs"
msgstr ""
#. (itstool) path: item/title
-#: C/response-type.page:44
+#: C/response-type.page:45
msgid "ResponseType.CLOSE = -7"
-msgstr ""
+msgstr "ResponseType.CLOSE = -7"
#. (itstool) path: item/p
-#: C/response-type.page:45
+#: C/response-type.page:46
msgid "Returned by Close buttons in GTK+ dialogs"
msgstr ""
#. (itstool) path: item/title
-#: C/response-type.page:48
+#: C/response-type.page:49
msgid "ResponseType.YES = -8"
-msgstr ""
+msgstr "ResponseType.YES = -8"
#. (itstool) path: item/p
-#: C/response-type.page:49
+#: C/response-type.page:50
msgid "Returned by Yes buttons in GTK+ dialogs"
msgstr ""
#. (itstool) path: item/title
-#: C/response-type.page:52
+#: C/response-type.page:53
msgid "ResponseType.NO = -9"
-msgstr ""
+msgstr "ResponseType.NO = -9"
#. (itstool) path: item/p
-#: C/response-type.page:53
+#: C/response-type.page:54
msgid "Returned by No buttons in GTK+ dialogs"
msgstr ""
#. (itstool) path: item/title
-#: C/response-type.page:56
+#: C/response-type.page:57
msgid "ResponseType.APPLY = -10"
-msgstr ""
+msgstr "ResponseType.APPLY = -10"
#. (itstool) path: item/p
-#: C/response-type.page:57
+#: C/response-type.page:58
msgid "Returned by Apply buttons in GTK+ dialogs"
msgstr ""
#. (itstool) path: item/title
-#: C/response-type.page:60
+#: C/response-type.page:61
msgid "ResponseType.HELP = -11"
-msgstr ""
+msgstr "ResponseType.HELP = -11"
#. (itstool) path: item/p
-#: C/response-type.page:61
+#: C/response-type.page:62
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
-msgctxt "_"
-msgid "external ref='media/scale2.png' md5='ae2ba0a6675f3d9cdcd961cdf32f1a5c'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/scale.c.page:7
+#: C/scale.c.page:8
+#, fuzzy
msgctxt "text"
msgid "Scale (C)"
msgstr ""
+"Chamado assim após o astrônomo Anders Celsius, que foi quem inventou a "
+"escala original em 1742, a escala Celsius é uma unidade padrão internacional "
+"e hoje em dia é definida usando a escala Kelvin. 0 °C é equivalente a 273,15 "
+"K e 1 °C de diferença na temperatura é exatamente a mesma diferença em 1 K. "
+"É definido com o ponto de derretimento do gelo sendo por volta de 0 °C e "
+"ponto de ebulição em 100 °C em uma atmosfera padrão (1 atm = 1013,5 hPa). "
+"Até 1948, a unidade era conhecida como <i>centígrado</i> (de Latim "
+"<i>centum</i> (100) e <i>gradus</i> (passo).\n"
+"Na meteorologia e dia-a-dia, a escala Celsius é muito conveniente para "
+"expressar temperaturas porque seus números podem um indicador fácil para a "
+"formação de gelo preto e neve."
#. (itstool) path: info/desc
-#: C/scale.c.page:19 C/scale.py.page:19 C/scale.vala.page:19
+#: C/scale.c.page:20 C/scale.py.page:20 C/scale.vala.page:20
msgid "A slider widget for selecting a value from a range"
msgstr ""
#. (itstool) path: page/title
-#: C/scale.c.page:22 C/scale.js.page:20 C/scale.py.page:22
-#: C/scale.vala.page:22
+#: C/scale.c.page:23 C/scale.js.page:21 C/scale.py.page:23 C/scale.vala.page:23
+#, fuzzy
msgid "Scale"
-msgstr ""
+msgstr "Escalar"
+
+#. (itstool) path: page/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:25
+msgctxt "_"
+msgid "external ref='media/scale2.png' md5='ae2ba0a6675f3d9cdcd961cdf32f1a5c'"
+msgstr "external ref='media/scale2.png' md5='ae2ba0a6675f3d9cdcd961cdf32f1a5c'"
#. (itstool) path: page/p
-#: C/scale.c.page:25 C/scale.py.page:24 C/scale.vala.page:24
+#: C/scale.c.page:26 C/scale.py.page:25 C/scale.vala.page:25
+#, fuzzy
msgid "Slide the scales!"
-msgstr ""
+msgstr "Escalas"
#. (itstool) path: page/code
-#: C/scale.c.page:27
+#: C/scale.c.page:28
#, no-wrap
msgid ""
"\n"
@@ -26622,57 +29981,65 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/scale.c.page:35
+#: C/scale.c.page:36
msgid ""
"<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>"
#. (itstool) path: item/p
-#: C/scale.c.page:36
+#: C/scale.c.page:37
msgid ""
"<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>"
#. (itstool) path: item/p
-#: C/scale.c.page:37 C/spinbutton.c.page:38
+#: C/scale.c.page:38 C/spinbutton.c.page:39
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkAdjustment.html"
"\">GtkAdjustment</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/GtkAdjustment.html"
+"\">GtkAdjustment</link>"
#. (itstool) path: item/p
-#: C/scale.c.page:38
+#: C/scale.c.page:39
msgid ""
"<link href=\"http://developer.gnome.org/glib/stable/glib-String-Utility-"
"Functions.html#g-strdup-printf\">String Utility Functions</link>"
msgstr ""
-#. (itstool) path: media
+#. (itstool) path: info/title
+#: C/scale.js.page:8
+#, fuzzy
+msgctxt "text"
+msgid "Scale (JavaScript)"
+msgstr "_JavaScript"
+
+#. (itstool) path: info/desc
+#: C/scale.js.page:18
+msgid "A slider which corresponds to a numerical value"
+msgstr ""
+
+#. (itstool) path: page/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
+#: C/scale.js.page:22
msgctxt "_"
msgid ""
"external ref='media/scalepenguins.png' md5='2dbe6a833fec86fde71a5ddb421e2cd5'"
msgstr ""
-
-#. (itstool) path: info/title
-#: C/scale.js.page:7
-msgctxt "text"
-msgid "Scale (JavaScript)"
-msgstr ""
-
-#. (itstool) path: info/desc
-#: C/scale.js.page:17
-msgid "A slider which corresponds to a numerical value"
-msgstr ""
+"external ref='media/scalepenguins.png' md5='2dbe6a833fec86fde71a5ddb421e2cd5'"
#. (itstool) path: page/p
-#: C/scale.js.page:22
+#: C/scale.js.page:23
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 "
@@ -26684,7 +30051,7 @@ msgid ""
msgstr ""
#. (itstool) path: page/p
-#: C/scale.js.page:23
+#: C/scale.js.page:24
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 "
@@ -26693,7 +30060,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/scale.js.page:40
+#: C/scale.js.page:41
#, no-wrap
msgid ""
"\n"
@@ -26723,7 +30090,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/scale.js.page:65
+#: C/scale.js.page:66
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."
@@ -26732,7 +30099,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/scale.js.page:66
+#: C/scale.js.page:67
#, no-wrap
msgid ""
"\n"
@@ -26748,12 +30115,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/scale.js.page:81
+#: C/scale.js.page:82
+#, fuzzy
msgid "Creating the scales"
-msgstr ""
+msgstr "Escalas:"
#. (itstool) path: section/code
-#: C/scale.js.page:82
+#: C/scale.js.page:83
#, no-wrap
msgid ""
"\n"
@@ -26766,7 +30134,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/scale.js.page:91
+#: C/scale.js.page:92
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-"
@@ -26778,14 +30146,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/scale.js.page:92
+#: C/scale.js.page:93
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 ""
#. (itstool) path: section/code
-#: C/scale.js.page:94
+#: C/scale.js.page:95
#, no-wrap
msgid ""
"\n"
@@ -26799,7 +30167,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/scale.js.page:104
+#: C/scale.js.page:105
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 "
@@ -26809,7 +30177,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/scale.js.page:106
+#: C/scale.js.page:107
#, no-wrap
msgid ""
"\n"
@@ -26823,7 +30191,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/scale.js.page:116
+#: C/scale.js.page:117
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 "
@@ -26833,7 +30201,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/scale.js.page:118
+#: C/scale.js.page:119
#, no-wrap
msgid ""
"\n"
@@ -26851,7 +30219,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/scale.js.page:132
+#: C/scale.js.page:133
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 "
@@ -26861,7 +30229,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/scale.js.page:133
+#: C/scale.js.page:134
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 "
@@ -26869,7 +30237,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/scale.js.page:135
+#: C/scale.js.page:136
#, no-wrap
msgid ""
"\n"
@@ -26887,7 +30255,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/scale.js.page:148
+#: C/scale.js.page:149
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 "
@@ -26895,7 +30263,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/scale.js.page:149
+#: C/scale.js.page:150
#, no-wrap
msgid ""
"\n"
@@ -26908,19 +30276,19 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/scale.js.page:157
+#: C/scale.js.page:158
msgid ""
"Finally, we add the Grid to the window, then tell the window to show itself "
"and all the widgets inside of it."
msgstr ""
#. (itstool) path: section/title
-#: C/scale.js.page:161
+#: C/scale.js.page:162
msgid "Function which handles the scales' values changing"
msgstr ""
#. (itstool) path: section/code
-#: C/scale.js.page:163
+#: C/scale.js.page:164
#, no-wrap
msgid ""
"\n"
@@ -26953,7 +30321,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/scale.js.page:191
+#: C/scale.js.page:192
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 "
@@ -26962,60 +30330,149 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/scale.js.page:193
-#, no-wrap
+#: C/scale.js.page:194
+#, fuzzy, no-wrap
msgid ""
"\n"
"// Run the application\n"
"let app = new ScaleExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"\n"
+"// Executa o aplicativo\n"
+"let app = new HelloGNOME ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: section/p
-#: C/scale.js.page:198
+#: C/scale.js.page:199
msgid ""
"Finally, we create a new instance of the finished ScaleExample class, and "
"set the application running."
msgstr ""
#. (itstool) path: section/code
-#: C/scale.js.page:203
-#, no-wrap
+#: C/scale.js.page:204
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "\n"
+#| "const WelcomeToTheGrid = new Lang.Class({\n"
+#| " Name: 'Welcome to the Grid',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function() {\n"
+#| " this.application = new Gtk.Application();\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"
+#| "\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: 10,\n"
+#| " title: \"Welcome to the Grid\"});\n"
+#| "\n"
+#| " // Create the Grid\n"
+#| " this._grid = new Gtk.Grid ({\n"
+#| " // column_homogeneous: true,\n"
+#| " // column_spacing: 20,\n"
+#| " row_spacing: 20 });\n"
+#| "\n"
+#| " // Create an image\n"
+#| " this._image = new Gtk.Image ({ file: \"gnome-image.png\" });\n"
+#| "\n"
+#| " // Create a second image using a stock icon\n"
+#| " this._icon = new Gtk.Image ({ stock: 'gtk-about' });\n"
+#| "\n"
+#| " // Create a label\n"
+#| " this._label = new Gtk.Label ({\n"
+#| " label: \"Welcome to GNOME, too!\",\n"
+#| " /* margin_top: 20 */ });\n"
+#| "\n"
+#| " /* Create a second label\n"
+#| " this._labelTwo = new Gtk.Label ({\n"
+#| " label: \"The cake is a pie.\" }); */\n"
+#| "\n"
+#| " /* Create a button\n"
+#| " this._button = new Gtk.Button ({\n"
+#| " label: \"Welcome to GNOME, too!\"}); */\n"
+#| "\n"
+#| " // Attach the images and button to the grid\n"
+#| " this._grid.attach (this._image, 0, 0, 2, 1);\n"
+#| " this._grid.attach (this._icon, 0, 1, 1, 1);\n"
+#| " this._grid.attach (this._label, 1, 1, 1, 1);\n"
+#| "\n"
+#| " // this._grid.attach (this._label, 0, 1, 1, 1);\n"
+#| " // this._grid.attach (this._labelTwo, 1, 1, 1, 1);\n"
+#| "\n"
+#| " // this._grid.attach (this._button, 1, 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"
+#| "// Run the application\n"
+#| "let app = new WelcomeToTheGrid ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const Gio = imports.gi.Gio;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const ScaleExample = new Lang.Class({\n"
-" Name: 'Scale Example',\n"
+"class ScaleExample {\n"
"\n"
" // Create the application itself\n"
-" _init: function() {\n"
+" constructor() {\n"
" this.application = new Gtk.Application({\n"
" application_id: 'org.example.jsscale'\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"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents window when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function() {\n"
-" this._buildUI ();\n"
-" },\n"
-"\n"
-"\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow({\n"
@@ -27056,8 +30513,8 @@ msgid ""
" wrap: true});\n"
"\n"
" // Connect the two scales to functions which recalculate the label\n"
-" this._hScale.connect (\"value-changed\", Lang.bind (this, this._recalc));\n"
-" this._vScale.connect (\"value-changed\", Lang.bind (this, this._recalc));\n"
+" this._hScale.connect (\"value-changed\", this._recalc.bind(this));\n"
+" this._vScale.connect (\"value-changed\", this._recalc.bind(this));\n"
"\n"
" // Create a grid to arrange things in\n"
" this._UIGrid = new Gtk.Grid ({\n"
@@ -27076,11 +30533,9 @@ msgid ""
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
-"\n"
-"\n"
+" }\n"
"\n"
-" _recalc: function() {\n"
+" _recalc() {\n"
"\n"
" // Figure out what the product of the two scales' values is\n"
" var product = (this._hScale.get_value() * this._vScale.get_value());\n"
@@ -27102,54 +30557,141 @@ msgid ""
"\n"
" // Set ._label's new text\n"
" this._label.set_label (String (product) + \" penguins on the iceberg. \" + comment);\n"
-"\n"
" }\n"
-"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new ScaleExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"\n"
+"const WelcomeToTheGrid = new Lang.Class({\n"
+" Name: 'Bem-vindo à Grid',\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function() {\n"
+" this.application = new Gtk.Application();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativo\n"
+" _onActivate: function() {\n"
+" this._window.present();\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup: function() {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+"\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function() {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow({\n"
+" application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" border_width: 10,\n"
+" title: \"Bem-vindo à Grid\"});\n"
+"\n"
+" // Cria a Grid\n"
+" this._grid = new Gtk.Grid ({\n"
+" // column_homogeneous: true,\n"
+" // column_spacing: 20,\n"
+" row_spacing: 20 });\n"
+"\n"
+" // Cria uma imagem\n"
+" this._image = new Gtk.Image ({ file: \"gnome-image.png\" });\n"
+"\n"
+" // Cria uma segunda imagem usando um ícone padrão\n"
+" this._icon = new Gtk.Image ({ stock: 'gtk-about' });\n"
+"\n"
+" // Cria um rótulo\n"
+" this._label = new Gtk.Label ({\n"
+" label: \"Bem-vindo ao GNOME, também!\",\n"
+" /* margin_top: 20 */ });\n"
+"\n"
+" /* Cria um segundo rótulo\n"
+" this._labelTwo = new Gtk.Label ({\n"
+" label: \"O bolo é uma torta.\" }); */\n"
+"\n"
+" /* Cria um botão\n"
+" this._button = new Gtk.Button ({\n"
+" label: \"Bem-vindo ao GNOME, também!\"}); */\n"
+"\n"
+" // Anexa as imagens e botão à grade\n"
+" this._grid.attach (this._image, 0, 0, 2, 1);\n"
+" this._grid.attach (this._icon, 0, 1, 1, 1);\n"
+" this._grid.attach (this._label, 1, 1, 1, 1);\n"
+"\n"
+" // this._grid.attach (this._label, 0, 1, 1, 1);\n"
+" // this._grid.attach (this._labelTwo, 1, 1, 1, 1);\n"
+"\n"
+" // this._grid.attach (this._button, 1, 1, 1, 1);\n"
+"\n"
+" // Adiciona a grade à janela\n"
+" this._window.add (this._grid);\n"
+"\n"
+" // Mostra a janela e todos os widgets filhos\n"
+" this._window.show_all();\n"
+" }\n"
+"\n"
+"});\n"
+"\n"
+"// Executa o aplicativo\n"
+"let app = new WelcomeToTheGrid ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: item/p
-#: C/scale.js.page:209 C/spinbutton.js.page:200
+#: C/scale.js.page:210 C/spinbutton.js.page:201
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Adjustment."
"html\">Gtk.Adjustment</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/scale.js.page:214
+#: C/scale.js.page:215
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Scale.html"
"\">Gtk.Scale</link>"
msgstr ""
-#. (itstool) path: media
+#. (itstool) path: info/title
+#: C/scale.py.page:8
+#, fuzzy
+msgctxt "text"
+msgid "Scale (Python)"
+msgstr "escala"
+
+#. (itstool) path: page/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.py.page:23 C/scale.vala.page:23
+#: C/scale.py.page:24 C/scale.vala.page:24
msgctxt "_"
msgid "external ref='media/scale.png' md5='462c52a53b773cb9e8c62c646bf88452'"
-msgstr ""
-
-#. (itstool) path: info/title
-#: C/scale.py.page:7
-msgctxt "text"
-msgid "Scale (Python)"
-msgstr ""
+msgstr "external ref='media/scale.png' md5='462c52a53b773cb9e8c62c646bf88452'"
#. (itstool) path: section/code
-#: C/scale.py.page:30
+#: C/scale.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=\"Scale Example\", application=app)\n"
" self.set_default_size(400, 300)\n"
@@ -27163,12 +30705,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"
@@ -27176,7 +30721,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"
@@ -27193,17 +30739,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"
@@ -27220,12 +30770,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/scale.py.page:34
+#: C/scale.py.page:35
+#, fuzzy
msgid "Useful methods for a Scale widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: section/p
-#: C/scale.py.page:35
+#: C/scale.py.page:36
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 "
@@ -27239,7 +30790,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/scale.py.page:36
+#: C/scale.py.page:37
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>."
@@ -27248,7 +30799,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/scale.py.page:38
+#: C/scale.py.page:39
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 "
@@ -27257,20 +30808,20 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/scale.py.page:39
+#: C/scale.py.page:40
msgid ""
"Use <code>set_draw_value(False)</code> to avoid displaying the current value "
"as a string next to the slider."
msgstr ""
#. (itstool) path: item/p
-#: C/scale.py.page:40
+#: C/scale.py.page:41
msgid ""
"To highlight the part of the scale between the origin and the current value:"
msgstr ""
#. (itstool) path: item/code
-#: C/scale.py.page:41
+#: C/scale.py.page:42
#, no-wrap
msgid ""
"\n"
@@ -27280,7 +30831,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/scale.py.page:45
+#: C/scale.py.page:46
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."
@@ -27288,7 +30839,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/scale.py.page:47
+#: C/scale.py.page:48
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 "
@@ -27299,42 +30850,43 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/scale.py.page:48
+#: C/scale.py.page:49
msgid ""
"<code>set_digits(digits)</code> sets the precision of the scale at "
"<code>digits</code> digits."
msgstr ""
#. (itstool) path: item/p
-#: C/scale.py.page:56
+#: C/scale.py.page:57
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkScale.html"
"\">GtkScale</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/scale.py.page:57 C/spinbutton.py.page:49
+#: C/scale.py.page:58 C/spinbutton.py.page:50
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkAdjustment.html"
"\">GtkAdjustment</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/scale.py.page:58 C/scrolledwindow.js.page:36 C/scrolledwindow.py.page:45
-#: C/textview.py.page:99
+#: C/scale.py.page:59 C/scrolledwindow.js.page:37 C/scrolledwindow.py.page:46
+#: C/textview.py.page:100
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/gtk3-Standard-"
"Enumerations.html\">Standard Enumerations</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/scale.vala.page:7
+#: C/scale.vala.page:8
+#, fuzzy
msgctxt "text"
msgid "Scale (Vala)"
-msgstr ""
+msgstr "_Vala"
#. (itstool) path: page/code
-#: C/scale.vala.page:26
+#: C/scale.vala.page:27
#, no-wrap
msgid ""
"/* This is the application. */\n"
@@ -27375,7 +30927,7 @@ msgid ""
"\t}\n"
"\n"
"\t/* Callback function for \"value-changed\" signal.\n"
-"\t * The paramter refers to the scale which emitted the signal.\n"
+"\t * The parameter refers to the scale which emitted the signal.\n"
"\t * Since we are accessing the values of not one, but two scales,\n"
"\t * we made the ranges instance variables, and ignore the\n"
"\t * parameter.\n"
@@ -27392,72 +30944,75 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/scale.vala.page:31
+#: C/scale.vala.page:32
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Scale.html\">Gtk.Scale</"
"link>"
msgstr ""
#. (itstool) path: item/p
-#: C/scale.vala.page:32
+#: C/scale.vala.page:33
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Adjustment.html\">Gtk."
"Adjustment</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/scale.vala.page:33
+#: C/scale.vala.page:34
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.PositionType.html\">Gtk."
"PositionType</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/scale.vala.page:34
+#: C/scale.vala.page:35
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Orientation.html\">Gtk."
"Orientation</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/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'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/scrolledwindow.c.page:7
+#: C/scrolledwindow.c.page:8
msgctxt "text"
msgid "ScrolledWindow (C)"
-msgstr ""
+msgstr "ScrolledWindow (C)"
#. (itstool) path: info/desc
-#: C/scrolledwindow.c.page:19 C/scrolledwindow.js.page:17
-#: C/scrolledwindow.py.page:18 C/scrolledwindow.vala.page:18
+#: C/scrolledwindow.c.page:20 C/scrolledwindow.js.page:18
+#: C/scrolledwindow.py.page:19 C/scrolledwindow.vala.page:19
msgid "Adds scrollbars to its child widget"
msgstr ""
#. (itstool) path: page/title
-#: C/scrolledwindow.c.page:22 C/scrolledwindow.js.page:20
-#: C/scrolledwindow.py.page:21 C/scrolledwindow.vala.page:21
+#: C/scrolledwindow.c.page:23 C/scrolledwindow.js.page:21
+#: C/scrolledwindow.py.page:22 C/scrolledwindow.vala.page:22
msgid "ScrolledWindow"
-msgstr ""
+msgstr "ScrolledWindow"
-#. (itstool) path: page/p
+#. (itstool) path: page/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/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."
+msgctxt "_"
+msgid ""
+"external ref='media/scrolledwindow.png' "
+"md5='697bb3205d5c4fb0b4ea8db435843157'"
msgstr ""
+"external ref='media/scrolledwindow.png' "
+"md5='697bb3205d5c4fb0b4ea8db435843157'"
+
+#. (itstool) path: page/p
+#: C/scrolledwindow.c.page:26 C/scrolledwindow.js.page:23
+#: C/scrolledwindow.py.page:24 C/scrolledwindow.vala.page:24
+#, fuzzy
+msgid "An image in a scrolled window."
+msgstr "Atributos da janela de rolagem"
#. (itstool) path: page/code
-#: C/scrolledwindow.c.page:27
+#: C/scrolledwindow.c.page:28
#, no-wrap
msgid ""
"\n"
@@ -27490,7 +31045,7 @@ msgid ""
" /* 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"
+" gtk_container_add (GTK_CONTAINER (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"
@@ -27521,59 +31076,123 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/scrolledwindow.c.page:36
+#: C/scrolledwindow.c.page:37
msgid ""
"<link href=\"http://developer.gnome.org/gtk/stable/gtk3-Standard-"
"Enumerations.html#GtkPolicyType\">GtkPolicyType</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/scrolledwindow.js.page:7
+#: C/scrolledwindow.js.page:8
msgctxt "text"
msgid "ScrolledWindow (JavaScript)"
-msgstr ""
-
-#. (itstool) path: section/code
-#: C/scrolledwindow.js.page:28
-#, no-wrap
+msgstr "ScrolledWindow (JavaScript)"
+
+#. (itstool) path: section/code
+#: C/scrolledwindow.js.page:29
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const GLib = imports.gi.GLib;\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "const Webkit = imports.gi.WebKit;\n"
+#| "\n"
+#| "const HelloGNOME = new Lang.Class ({\n"
+#| " Name: 'Hello GNOME',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function () {\n"
+#| " this.application = new Gtk.Application ();\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 ({\n"
+#| " application: this.application,\n"
+#| " title: \"Welcome to GNOME\",\n"
+#| " default_height: 200,\n"
+#| " default_width: 400,\n"
+#| " window_position: Gtk.WindowPosition.CENTER });\n"
+#| "\n"
+#| " // Create a webview to show the web app\n"
+#| " this._webView = new Webkit.WebView ();\n"
+#| "\n"
+#| " // Put the web app into the webview\n"
+#| " this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+#| " \"/hellognome.html\", null));\n"
+#| "\n"
+#| " // Put the webview into the window\n"
+#| " this._window.add (this._webView);\n"
+#| "\n"
+#| " // Show the window and all child widgets\n"
+#| " this._window.show_all();\n"
+#| " },\n"
+#| "\n"
+#| "});\n"
+#| "\n"
+#| "// Run the application\n"
+#| "let app = new HelloGNOME ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\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"
+"class ScrolledWindowExample {\n"
"\n"
" // Create the application itself\n"
-" _init: function () {\n"
-" this.application = new Gtk.Application({ application_id: 'org.example.jscrolledwindow' });\n"
+" constructor() {\n"
+" this.application = new Gtk.Application({\n"
+" application_id: 'org.example.jscrolledwindow'\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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this.window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function() {\n"
-" this._buildUI ();\n"
-" },\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\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"
+" this.window = new Gtk.ApplicationWindow({\n"
+" 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"
+" });\n"
" // the scrolledwindow\n"
" this.scrolledWindow = new Gtk.ScrolledWindow();\n"
" this.scrolledWindow.set_border_width(10);\n"
@@ -27590,43 +31209,107 @@ msgid ""
" this.window.add(this.scrolledWindow);\n"
" this.window.show_all();\n"
" }\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 GLib = imports.gi.GLib;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"const Webkit = imports.gi.WebKit;\n"
+"\n"
+"const HelloGNOME = new Lang.Class ({\n"
+" Name: 'Olá, GNOME',\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function () {\n"
+" this.application = new Gtk.Application ();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativa\n"
+" _onActivate: function () {\n"
+" this._window.present ();\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup: function () {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function () {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow ({\n"
+" application: this.application,\n"
+" title: \"Bem-vindo ao GNOME\",\n"
+" default_height: 200,\n"
+" default_width: 400,\n"
+" window_position: Gtk.WindowPosition.CENTER });\n"
+"\n"
+" // Cria um webview para mostrar o aplicativo web\n"
+" this._webView = new Webkit.WebView ();\n"
+"\n"
+" // Coloca o aplicativo web no webview\n"
+" this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+" \"/hellognome.html\", null));\n"
+"\n"
+" // Coloca o webview na janela\n"
+" this._window.add (this._webView);\n"
+"\n"
+" // Mostra a janela e todos seus widgets filhos\n"
+" this._window.show_all();\n"
+" },\n"
+"\n"
+"});\n"
+"\n"
+"// Executa o aplicativo\n"
+"let app = new HelloGNOME ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: item/p
-#: C/scrolledwindow.js.page:35
+#: C/scrolledwindow.js.page:36
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk."
"ScrolledWindow.html\">GtkScrolledWindow</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/scrolledwindow.py.page:7
+#: C/scrolledwindow.py.page:8
msgctxt "text"
msgid "ScrolledWindow (Python)"
-msgstr ""
+msgstr "ScrolledWindow (Python)"
#. (itstool) path: section/code
-#: C/scrolledwindow.py.page:29
+#: C/scrolledwindow.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=\"ScrolledWindow Example\", application=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 - or NEVER)\n"
-" scrolled_window.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\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"
@@ -27638,7 +31321,9 @@ msgid ""
" # 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"
@@ -27655,12 +31340,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/scrolledwindow.py.page:32
+#: C/scrolledwindow.py.page:33
+#, fuzzy
msgid "Useful methods for a ScrolledWindow widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: item/p
-#: C/scrolledwindow.py.page:34
+#: C/scrolledwindow.py.page:35
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."
@@ -27670,14 +31356,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/scrolledwindow.py.page:35
+#: C/scrolledwindow.py.page:36
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 ""
#. (itstool) path: item/p
-#: C/scrolledwindow.py.page:36
+#: C/scrolledwindow.py.page:37
msgid ""
"<code>set_placement(window_placement)</code> sets the placement of the "
"contents with respect to the scrollbars for the scrolled window. The options "
@@ -27688,33 +31374,33 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/scrolledwindow.py.page:37
+#: C/scrolledwindow.py.page:38
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 ""
#. (itstool) path: item/p
-#: C/scrolledwindow.py.page:44 C/textview.py.page:98
+#: C/scrolledwindow.py.page:45 C/textview.py.page:99
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkScrolledWindow.html"
"\">GtkScrolledWindow</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/scrolledwindow.vala.page:7
+#: C/scrolledwindow.vala.page:8
msgctxt "text"
msgid "ScrolledWindow (Vala)"
-msgstr ""
+msgstr "ScrolledWindow (Vala)"
#. (itstool) path: page/code
-#: C/scrolledwindow.vala.page:25
+#: C/scrolledwindow.vala.page:26
#, no-wrap
msgid ""
"/* This is the application. */\n"
@@ -27743,53 +31429,57 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/scrolledwindow.vala.page:30 C/textview.vala.page:36
+#: C/scrolledwindow.vala.page:31 C/textview.vala.page:37
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ScrolledWindow.html\">Gtk."
"ScrolledWindow</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/scrolledwindow.vala.page:31 C/textview.vala.page:38
+#: C/scrolledwindow.vala.page:32 C/textview.vala.page:39
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.c.page:23 C/separator.py.page:24 C/separator.vala.page:25
-msgctxt "_"
-msgid ""
-"external ref='media/separator.png' md5='8769b27662ce5c77f99e9ce33751a21a'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/separator.c.page:7
+#: C/separator.c.page:8
+#, fuzzy
msgctxt "text"
msgid "Separator (C)"
-msgstr ""
+msgstr "Separador “%c” inválido"
#. (itstool) path: info/desc
-#: C/separator.c.page:18 C/separator.py.page:19 C/separator.vala.page:20
+#: C/separator.c.page:19 C/separator.py.page:20 C/separator.vala.page:21
+#, fuzzy
msgid "A separator widget"
-msgstr ""
+msgstr "_Separador:"
#. (itstool) path: page/title
-#: C/separator.c.page:21 C/separator.py.page:22 C/separator.vala.page:23
+#: C/separator.c.page:22 C/separator.py.page:23 C/separator.vala.page:24
+#, fuzzy
msgid "Separator"
+msgstr "Separador"
+
+#. (itstool) path: page/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.c.page:24 C/separator.py.page:25 C/separator.vala.page:26
+msgctxt "_"
+msgid ""
+"external ref='media/separator.png' md5='8769b27662ce5c77f99e9ce33751a21a'"
msgstr ""
+"external ref='media/separator.png' md5='8769b27662ce5c77f99e9ce33751a21a'"
#. (itstool) path: page/p
-#: C/separator.c.page:24 C/separator.py.page:25 C/separator.vala.page:26
+#: C/separator.c.page:25 C/separator.py.page:26 C/separator.vala.page:27
msgid "A horizontal and a vertical separator divide some labels."
msgstr ""
#. (itstool) path: section/code
-#: C/separator.c.page:30
+#: C/separator.c.page:31
#, no-wrap
msgid ""
"#include <gtk/gtk.h>\n"
@@ -27846,31 +31536,35 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/separator.c.page:34 C/separator.py.page:35 C/separator.vala.page:36
+#: C/separator.c.page:35 C/separator.py.page:36 C/separator.vala.page:37
+#, fuzzy
msgid "API Reference"
-msgstr ""
+msgstr "Referência de API"
#. (itstool) path: item/p
-#: C/separator.c.page:38 C/separator.py.page:39
+#: C/separator.c.page:39 C/separator.py.page:40
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkSeparator.html"
"\">GtkSeparator</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/separator.py.page:7
+#: C/separator.py.page:8
+#, fuzzy
msgctxt "text"
-msgid "Seperator (Python)"
-msgstr ""
+msgid "Separator (Python)"
+msgstr "_Python"
#. (itstool) path: section/code
-#: C/separator.py.page:31
+#: C/separator.py.page:32
#, 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=\"Separator Example\", application=app)\n"
"\n"
@@ -27900,13 +31594,15 @@ 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"
@@ -27914,13 +31610,14 @@ msgid ""
msgstr ""
#. (itstool) path: info/title
-#: C/separator.vala.page:7
+#: C/separator.vala.page:8
+#, fuzzy
msgctxt "text"
msgid "Separator (Vala)"
-msgstr ""
+msgstr "Separador"
#. (itstool) path: section/code
-#: C/separator.vala.page:32
+#: C/separator.vala.page:33
#, no-wrap
msgid ""
"/* This is the application. */\n"
@@ -27969,60 +31666,38 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/separator.vala.page:40
+#: C/separator.vala.page:41
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Window.html\">GtkWindow</"
"link>"
msgstr ""
#. (itstool) path: item/p
-#: C/separator.vala.page:41
+#: C/separator.vala.page:42
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Separator.html"
"\">GtkSeparator</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/separator.vala.page:42
+#: C/separator.vala.page:43
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Grid.html\">GtkGrid</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/separator.vala.page:43
+#: C/separator.vala.page:44
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Label.html\">GtkLabel</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/set-up-gedit.js.page:24
-msgctxt "_"
-msgid ""
-"external ref='media/geditview.png' md5='f1438295662d95f56fcd1d8200efaaf2'"
-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/set-up-gedit.js.page:36
-msgctxt "_"
-msgid ""
-"external ref='media/gediteditor.png' md5='50db1ee8f2c545744879ee9fba5b4b24'"
-msgstr ""
-
#. (itstool) path: page/title
-#: C/set-up-gedit.js.page:18
+#: C/set-up-gedit.js.page:19
msgid "Set up gedit for JavaScript development"
msgstr ""
#. (itstool) path: page/p
-#: C/set-up-gedit.js.page:19
+#: C/set-up-gedit.js.page:20
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 "
@@ -28030,24 +31705,36 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/set-up-gedit.js.page:22
+#: C/set-up-gedit.js.page:23
msgid "Making code clearer"
msgstr ""
#. (itstool) path: section/p
-#: C/set-up-gedit.js.page:23
+#: C/set-up-gedit.js.page:24
msgid ""
"Click on <gui>Edit</gui> in gedit's menu bar, then click on "
"<gui>Preferences</gui>. You should see something like this:"
msgstr ""
-#. (itstool) path: section/p
+#. (itstool) path: section/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:25
+msgctxt "_"
+msgid ""
+"external ref='media/geditview.png' md5='f1438295662d95f56fcd1d8200efaaf2'"
+msgstr ""
+"external ref='media/geditview.png' md5='f1438295662d95f56fcd1d8200efaaf2'"
+
+#. (itstool) path: section/p
+#: C/set-up-gedit.js.page:26
msgid "Here are the options you want to make sure are turned on."
msgstr ""
#. (itstool) path: item/p
-#: C/set-up-gedit.js.page:27
+#: C/set-up-gedit.js.page:28
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 "
@@ -28055,33 +31742,46 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/set-up-gedit.js.page:28
+#: C/set-up-gedit.js.page:29
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 ""
#. (itstool) path: item/p
-#: C/set-up-gedit.js.page:29
+#: C/set-up-gedit.js.page:30
msgid ""
"<gui>Highlight matching brackets</gui> helps you make sure you didn't leave "
"out a bracket by accident."
msgstr ""
#. (itstool) path: section/title
-#: C/set-up-gedit.js.page:34
+#: C/set-up-gedit.js.page:35
+#, fuzzy
msgid "Making editing easier"
-msgstr ""
+msgstr "Remove otimização para tornar a edição mais fácil"
#. (itstool) path: section/p
-#: C/set-up-gedit.js.page:35
+#: C/set-up-gedit.js.page:36
msgid ""
"In gedit's <gui>Preferences</gui> dialog, click on the <gui>Editor</gui> "
"tab. You should see something like this:"
msgstr ""
-#. (itstool) path: section/p
+#. (itstool) path: section/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:37
+msgctxt "_"
+msgid ""
+"external ref='media/gediteditor.png' md5='50db1ee8f2c545744879ee9fba5b4b24'"
+msgstr ""
+"external ref='media/gediteditor.png' md5='50db1ee8f2c545744879ee9fba5b4b24'"
+
+#. (itstool) path: section/p
+#: C/set-up-gedit.js.page:38
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 "
@@ -28090,7 +31790,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/set-up-gedit.js.page:38
+#: C/set-up-gedit.js.page:39
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 "
@@ -28098,23 +31798,25 @@ msgid ""
msgstr ""
#. (itstool) path: info/title
-#: C/signals-callbacks.py.page:8
+#: C/signals-callbacks.py.page:9
+#, fuzzy
msgctxt "text"
msgid "Signals and callbacks (Python)"
-msgstr ""
+msgstr "_Python"
#. (itstool) path: info/desc
-#: C/signals-callbacks.py.page:13
+#: C/signals-callbacks.py.page:14
msgid "An explanation of signals and callbacks in GTK+."
msgstr ""
#. (itstool) path: page/title
-#: C/signals-callbacks.py.page:26
+#: C/signals-callbacks.py.page:27
+#, fuzzy
msgid "Signals and callbacks"
-msgstr ""
+msgstr "_Sinais"
#. (itstool) path: section/p
-#: C/signals-callbacks.py.page:33
+#: C/signals-callbacks.py.page:34
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. "
@@ -28123,7 +31825,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/signals-callbacks.py.page:35
+#: C/signals-callbacks.py.page:36
msgid ""
"When widgets receive an event, they frequently emit one or more signals. "
"Signals notify your program that \"something interesting happened\" by "
@@ -28134,7 +31836,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/signals-callbacks.py.page:37
+#: C/signals-callbacks.py.page:38
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 "
@@ -28154,7 +31856,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/signals-callbacks.py.page:39
+#: C/signals-callbacks.py.page:40
msgid ""
"The function returns a number (the <code>handler_id</code>) that identifies "
"this particular signal-callback pair. This number is required to disconnect "
@@ -28164,54 +31866,58 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/signals-callbacks.py.page:46
+#: C/signals-callbacks.py.page:47
msgid ""
"<link href=\"http://developer.gnome.org/gobject/stable/signal.html"
"\">Signals</link> in GObject documentation"
msgstr ""
#. (itstool) path: section/p
-#: C/signals-callbacks.py.page:47
+#: C/signals-callbacks.py.page:48
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.
-#: 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 ""
-
#. (itstool) path: info/title
-#: C/spinbutton.c.page:7
+#: C/spinbutton.c.page:8
+#, fuzzy
msgctxt "text"
msgid "SpinButton (C)"
-msgstr ""
+msgstr "Botão de rolagem para atualização"
#. (itstool) path: info/desc
-#: C/spinbutton.c.page:20
+#: C/spinbutton.c.page:21
+#, fuzzy
msgid "Retrieve an integer or floating point number"
-msgstr ""
+msgstr "Número de ponto flutuante"
#. (itstool) path: page/title
-#: C/spinbutton.c.page:23 C/spinbutton.js.page:23 C/spinbutton.py.page:22
-#: C/spinbutton.vala.page:22
+#: C/spinbutton.c.page:24 C/spinbutton.js.page:24 C/spinbutton.py.page:23
+#: C/spinbutton.vala.page:23
+#, fuzzy
msgid "SpinButton"
+msgstr "Botão de rolagem para atualização"
+
+#. (itstool) path: page/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.c.page:26 C/spinbutton.py.page:24 C/spinbutton.vala.page:24
+msgctxt "_"
+msgid ""
+"external ref='media/spinbutton.png' md5='993cbb7d9bd271a329727a926195712a'"
msgstr ""
+"external ref='media/spinbutton.png' md5='993cbb7d9bd271a329727a926195712a'"
#. (itstool) path: page/p
-#: C/spinbutton.c.page:26 C/spinbutton.py.page:24 C/spinbutton.vala.page:24
+#: C/spinbutton.c.page:27 C/spinbutton.py.page:25 C/spinbutton.vala.page:25
msgid "Choose a number, by entering it or by clicking on the -/+ buttons!"
msgstr ""
#. (itstool) path: page/code
-#: C/spinbutton.c.page:28
+#: C/spinbutton.c.page:29
#, no-wrap
msgid ""
"\n"
@@ -28312,37 +32018,43 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/spinbutton.c.page:36
+#: C/spinbutton.c.page:37
+#, fuzzy
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkSpinButton.html"
"\">GtkSpinButton</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/\">Manual de referência</"
+"link>"
-#. (itstool) path: media
+#. (itstool) path: info/title
+#: C/spinbutton.js.page:8
+#, fuzzy
+msgctxt "text"
+msgid "SpinButton (JavaScript)"
+msgstr "JavaScript"
+
+#. (itstool) path: info/desc
+#: C/spinbutton.js.page:21
+msgid "A number entry field that has + and - buttons"
+msgstr ""
+
+#. (itstool) path: page/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
+#: C/spinbutton.js.page:25
msgctxt "_"
msgid ""
"external ref='media/spinbuttonkittens.png' "
"md5='577cce8a902140aacbab73fe8a76a010'"
msgstr ""
-
-#. (itstool) path: info/title
-#: C/spinbutton.js.page:7
-msgctxt "text"
-msgid "SpinButton (JavaScript)"
-msgstr ""
-
-#. (itstool) path: info/desc
-#: C/spinbutton.js.page:20
-msgid "A number entry field that has + and - buttons"
-msgstr ""
+"external ref='media/spinbuttonkittens.png' "
+"md5='577cce8a902140aacbab73fe8a76a010'"
#. (itstool) path: page/p
-#: C/spinbutton.js.page:25
+#: C/spinbutton.js.page:26
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 "
@@ -28350,7 +32062,7 @@ msgid ""
msgstr ""
#. (itstool) path: page/p
-#: C/spinbutton.js.page:26
+#: C/spinbutton.js.page:27
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 "
@@ -28358,7 +32070,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/spinbutton.js.page:43
+#: C/spinbutton.js.page:44
#, no-wrap
msgid ""
"\n"
@@ -28388,7 +32100,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/spinbutton.js.page:68
+#: C/spinbutton.js.page:69
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/"
@@ -28397,7 +32109,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/spinbutton.js.page:69
+#: C/spinbutton.js.page:70
#, no-wrap
msgid ""
"\n"
@@ -28413,12 +32125,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/spinbutton.js.page:84
+#: C/spinbutton.js.page:85
+#, fuzzy
msgid "Creating the SpinButtons"
-msgstr ""
+msgstr "sem tabelas, criando …"
#. (itstool) path: section/code
-#: C/spinbutton.js.page:85
+#: C/spinbutton.js.page:86
#, no-wrap
msgid ""
"\n"
@@ -28428,7 +32141,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/spinbutton.js.page:91
+#: C/spinbutton.js.page:92
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 "
@@ -28437,7 +32150,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/spinbutton.js.page:92
+#: C/spinbutton.js.page:93
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 "
@@ -28445,7 +32158,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/spinbutton.js.page:94
+#: C/spinbutton.js.page:95
#, no-wrap
msgid ""
"\n"
@@ -28466,7 +32179,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/spinbutton.js.page:111
+#: C/spinbutton.js.page:112
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 "
@@ -28478,7 +32191,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/spinbutton.js.page:112
+#: C/spinbutton.js.page:113
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 "
@@ -28487,19 +32200,20 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/spinbutton.js.page:113
+#: C/spinbutton.js.page:114
msgid ""
"For the kitties' sake, please don't use set_digits to allow a decimal number "
"of kittens."
msgstr ""
#. (itstool) path: section/title
-#: C/spinbutton.js.page:117
+#: C/spinbutton.js.page:118
+#, fuzzy
msgid "Creating the rest of the UI"
-msgstr ""
+msgstr "UI"
#. (itstool) path: section/code
-#: C/spinbutton.js.page:119
+#: C/spinbutton.js.page:120
#, no-wrap
msgid ""
"\n"
@@ -28513,7 +32227,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/spinbutton.js.page:128
+#: C/spinbutton.js.page:129
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 "
@@ -28525,7 +32239,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/spinbutton.js.page:130
+#: C/spinbutton.js.page:131
#, no-wrap
msgid ""
"\n"
@@ -28553,7 +32267,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/spinbutton.js.page:154
+#: C/spinbutton.js.page:155
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 "
@@ -28561,7 +32275,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/spinbutton.js.page:155
+#: C/spinbutton.js.page:156
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 "
@@ -28571,7 +32285,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/spinbutton.js.page:157
+#: C/spinbutton.js.page:158
#, no-wrap
msgid ""
"\n"
@@ -28584,19 +32298,19 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/spinbutton.js.page:165 C/switch.js.page:153
+#: C/spinbutton.js.page:166 C/switch.js.page:154
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 ""
#. (itstool) path: section/title
-#: C/spinbutton.js.page:169
+#: C/spinbutton.js.page:170
msgid "Function which handles the SpinButtons' numerical values being adjusted"
msgstr ""
#. (itstool) path: section/code
-#: C/spinbutton.js.page:171
+#: C/spinbutton.js.page:172
#, no-wrap
msgid ""
"\n"
@@ -28612,7 +32326,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/spinbutton.js.page:182
+#: C/spinbutton.js.page:183
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 "
@@ -28621,60 +32335,149 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/spinbutton.js.page:184
-#, no-wrap
+#: C/spinbutton.js.page:185
+#, fuzzy, no-wrap
msgid ""
"\n"
"// Run the application\n"
"let app = new SpinButtonExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"\n"
+"// Executa o aplicativo\n"
+"let app = new GettingTheSignal ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: section/p
-#: C/spinbutton.js.page:189
+#: C/spinbutton.js.page:190
msgid ""
"Finally, we create a new instance of the finished SpinButtonExample class, "
"and set the application running."
msgstr ""
#. (itstool) path: section/code
-#: C/spinbutton.js.page:194
-#, no-wrap
+#: C/spinbutton.js.page:195
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "\n"
+#| "const WelcomeToTheGrid = new Lang.Class({\n"
+#| " Name: 'Welcome to the Grid',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function() {\n"
+#| " this.application = new Gtk.Application();\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"
+#| "\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: 10,\n"
+#| " title: \"Welcome to the Grid\"});\n"
+#| "\n"
+#| " // Create the Grid\n"
+#| " this._grid = new Gtk.Grid ({\n"
+#| " // column_homogeneous: true,\n"
+#| " // column_spacing: 20,\n"
+#| " row_spacing: 20 });\n"
+#| "\n"
+#| " // Create an image\n"
+#| " this._image = new Gtk.Image ({ file: \"gnome-image.png\" });\n"
+#| "\n"
+#| " // Create a second image using a stock icon\n"
+#| " this._icon = new Gtk.Image ({ stock: 'gtk-about' });\n"
+#| "\n"
+#| " // Create a label\n"
+#| " this._label = new Gtk.Label ({\n"
+#| " label: \"Welcome to GNOME, too!\",\n"
+#| " /* margin_top: 20 */ });\n"
+#| "\n"
+#| " /* Create a second label\n"
+#| " this._labelTwo = new Gtk.Label ({\n"
+#| " label: \"The cake is a pie.\" }); */\n"
+#| "\n"
+#| " /* Create a button\n"
+#| " this._button = new Gtk.Button ({\n"
+#| " label: \"Welcome to GNOME, too!\"}); */\n"
+#| "\n"
+#| " // Attach the images and button to the grid\n"
+#| " this._grid.attach (this._image, 0, 0, 2, 1);\n"
+#| " this._grid.attach (this._icon, 0, 1, 1, 1);\n"
+#| " this._grid.attach (this._label, 1, 1, 1, 1);\n"
+#| "\n"
+#| " // this._grid.attach (this._label, 0, 1, 1, 1);\n"
+#| " // this._grid.attach (this._labelTwo, 1, 1, 1, 1);\n"
+#| "\n"
+#| " // this._grid.attach (this._button, 1, 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"
+#| "// Run the application\n"
+#| "let app = new WelcomeToTheGrid ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\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"
+"class SpinButtonExample {\n"
"\n"
" // Create the application itself\n"
-" _init: function() {\n"
+" constructor() {\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"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents window when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function() {\n"
-" this._buildUI ();\n"
-" },\n"
-"\n"
-"\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow({\n"
@@ -28685,7 +32488,7 @@ msgid ""
"\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"
+" this._kittens.connect (\"value-changed\", this._newValue.bind(this));\n"
"\n"
" // Create an adjustment to use for the second spinbutton\n"
" this._adjustment = new Gtk.Adjustment ({\n"
@@ -28697,7 +32500,7 @@ msgid ""
"\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"
+" this._tuna.connect (\"value-changed\", this._newValue.bind(this));\n"
"\n"
" // this._tuna.set_digits (1);\n"
" // this._tuna.set_wrap (true);\n"
@@ -28737,51 +32540,135 @@ msgid ""
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
+" }\n"
+"\n"
+" _newValue() {\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"
+"// Run the application\n"
+"let app = new SpinButtonExample ();\n"
+"app.application.run (ARGV);\n"
+msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"\n"
+"const WelcomeToTheGrid = new Lang.Class({\n"
+" Name: 'Bem-vindo à Grid',\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function() {\n"
+" this.application = new Gtk.Application();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
" },\n"
"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativo\n"
+" _onActivate: function() {\n"
+" this._window.present();\n"
+" },\n"
"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup: function() {\n"
+" this._buildUI ();\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"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function() {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow({\n"
+" application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" border_width: 10,\n"
+" title: \"Bem-vindo à Grid\"});\n"
+"\n"
+" // Cria a Grid\n"
+" this._grid = new Gtk.Grid ({\n"
+" // column_homogeneous: true,\n"
+" // column_spacing: 20,\n"
+" row_spacing: 20 });\n"
+"\n"
+" // Cria uma imagem\n"
+" this._image = new Gtk.Image ({ file: \"gnome-image.png\" });\n"
+"\n"
+" // Cria uma segunda imagem usando um ícone padrão\n"
+" this._icon = new Gtk.Image ({ stock: 'gtk-about' });\n"
+"\n"
+" // Cria um rótulo\n"
+" this._label = new Gtk.Label ({\n"
+" label: \"Bem-vindo ao GNOME, também!\",\n"
+" /* margin_top: 20 */ });\n"
+"\n"
+" /* Cria um segundo rótulo\n"
+" this._labelTwo = new Gtk.Label ({\n"
+" label: \"O bolo é uma torta.\" }); */\n"
+"\n"
+" /* Cria um botão\n"
+" this._button = new Gtk.Button ({\n"
+" label: \"Bem-vindo ao GNOME, também!\"}); */\n"
+"\n"
+" // Anexa as imagens e botão à grade\n"
+" this._grid.attach (this._image, 0, 0, 2, 1);\n"
+" this._grid.attach (this._icon, 0, 1, 1, 1);\n"
+" this._grid.attach (this._label, 1, 1, 1, 1);\n"
+"\n"
+" // this._grid.attach (this._label, 0, 1, 1, 1);\n"
+" // this._grid.attach (this._labelTwo, 1, 1, 1, 1);\n"
+"\n"
+" // this._grid.attach (this._button, 1, 1, 1, 1);\n"
+"\n"
+" // Adiciona a grade à janela\n"
+" this._window.add (this._grid);\n"
+"\n"
+" // Mostra a janela e todos os widgets filhos\n"
+" this._window.show_all();\n"
" }\n"
"\n"
"});\n"
"\n"
-"// Run the application\n"
-"let app = new SpinButtonExample ();\n"
+"// Executa o aplicativo\n"
+"let app = new WelcomeToTheGrid ();\n"
"app.application.run (ARGV);\n"
-msgstr ""
#. (itstool) path: item/p
-#: C/spinbutton.js.page:205
+#: C/spinbutton.js.page:206
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.SpinButton."
"html\">Gtk.SpinButton</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/spinbutton.py.page:7
+#: C/spinbutton.py.page:8
+#, fuzzy
msgctxt "text"
msgid "SpinButton (Python)"
-msgstr ""
+msgstr "Botão de rolagem para atualização"
#. (itstool) path: info/desc
-#: C/spinbutton.py.page:19
+#: C/spinbutton.py.page:20
msgid "Retrieve an integer or floating-point number from the user."
msgstr ""
#. (itstool) path: section/code
-#: C/spinbutton.py.page:30
+#: C/spinbutton.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=\"SpinButton Example\", application=app)\n"
" self.set_default_size(210, 70)\n"
@@ -28813,11 +32700,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"
@@ -28834,12 +32725,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/spinbutton.py.page:34
+#: C/spinbutton.py.page:35
+#, fuzzy
msgid "Useful methods for a SpinButton widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: section/p
-#: C/spinbutton.py.page:35
+#: C/spinbutton.py.page:36
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 "
@@ -28853,7 +32745,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/spinbutton.py.page:36
+#: C/spinbutton.py.page:37
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>."
@@ -28862,7 +32754,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/spinbutton.py.page:38
+#: C/spinbutton.py.page:39
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"
@@ -28870,39 +32762,41 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/spinbutton.py.page:39
+#: C/spinbutton.py.page:40
msgid ""
"<code>set_digits(digits)</code> sets the precision to be displayed by the "
"spinbutton, up to 20 digits."
msgstr ""
#. (itstool) path: item/p
-#: C/spinbutton.py.page:40
+#: C/spinbutton.py.page:41
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 ""
#. (itstool) path: item/p
-#: C/spinbutton.py.page:48
+#: C/spinbutton.py.page:49
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkSpinButton.html"
"\">GtkSpinButton</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/spinbutton.vala.page:7
+#: C/spinbutton.vala.page:8
+#, fuzzy
msgctxt "text"
msgid "SpinButton (Vala)"
-msgstr ""
+msgstr "Botão de rolagem para atualização"
#. (itstool) path: info/desc
-#: C/spinbutton.vala.page:19
+#: C/spinbutton.vala.page:20
+#, fuzzy
msgid "Retrieve an integer or floating point number."
-msgstr ""
+msgstr "Número de ponto flutuante"
#. (itstool) path: page/code
-#: C/spinbutton.vala.page:26
+#: C/spinbutton.vala.page:27
#, no-wrap
msgid ""
"/* This is the application. */\n"
@@ -28943,49 +32837,53 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/spinbutton.vala.page:31
+#: C/spinbutton.vala.page:32
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.SpinButton.html\">Gtk."
"SpinButton</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/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 ""
-
#. (itstool) path: info/title
-#: C/spinner.c.page:7
+#: C/spinner.c.page:8
+#, fuzzy
msgctxt "text"
msgid "Spinner (C)"
-msgstr ""
+msgstr "Spinner"
#. (itstool) path: info/desc
-#: C/spinner.c.page:18 C/spinner.js.page:17 C/spinner.py.page:18
-#: C/spinner.vala.page:17
+#: C/spinner.c.page:19 C/spinner.js.page:18 C/spinner.py.page:19
+#: C/spinner.vala.page:18
+#, fuzzy
msgid "A spinner animation"
-msgstr ""
+msgstr "Spinner"
#. (itstool) path: page/title
-#: C/spinner.c.page:21 C/spinner.js.page:20 C/spinner.py.page:21
-#: C/spinner.vala.page:20
+#: C/spinner.c.page:22 C/spinner.js.page:21 C/spinner.py.page:22
+#: C/spinner.vala.page:21
+#, fuzzy
msgid "Spinner"
-msgstr ""
+msgstr "Spinner"
-#. (itstool) path: page/p
+#. (itstool) path: page/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/spinner.c.page:24 C/spinner.js.page:22 C/spinner.py.page:23
#: C/spinner.vala.page:22
+msgctxt "_"
+msgid "external ref='media/spinner.png' md5='d04f2d81f1d72c6c2f97e8729947dfed'"
+msgstr ""
+"external ref='media/spinner.png' md5='d04f2d81f1d72c6c2f97e8729947dfed'"
+
+#. (itstool) path: page/p
+#: C/spinner.c.page:25 C/spinner.js.page:23 C/spinner.py.page:24
+#: C/spinner.vala.page:23
msgid "This Spinner is stopped and started by pressing the spacebar."
msgstr ""
#. (itstool) path: page/code
-#: C/spinner.c.page:26
+#: C/spinner.c.page:27
#, no-wrap
msgid ""
"\n"
@@ -29080,93 +32978,155 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/spinner.c.page:34
+#: C/spinner.c.page:35
msgid ""
"<link href=\"http://developer.gnome.org/gobject/stable/gobject-The-Base-"
"Object-Type.html#g-object-get\">GObject</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/spinner.c.page:35 C/togglebutton.c.page:37
+#: C/spinner.c.page:36 C/togglebutton.c.page:38
+#, fuzzy
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkSpinner.html"
"\">GtkSpinner</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/\">Manual de referência</"
+"link>"
#. (itstool) path: info/title
-#: C/spinner.js.page:7
+#: C/spinner.js.page:8
+#, fuzzy
msgctxt "text"
msgid "Spinner (JavaScript)"
-msgstr ""
+msgstr "Spinner"
#. (itstool) path: page/code
-#: C/spinner.js.page:24
-#, no-wrap
+#: C/spinner.js.page:25
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const GLib = imports.gi.GLib;\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "const Webkit = imports.gi.WebKit;\n"
+#| "\n"
+#| "const HelloGNOME = new Lang.Class ({\n"
+#| " Name: 'Hello GNOME',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function () {\n"
+#| " this.application = new Gtk.Application ();\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 ({\n"
+#| " application: this.application,\n"
+#| " title: \"Welcome to GNOME\",\n"
+#| " default_height: 200,\n"
+#| " default_width: 400,\n"
+#| " window_position: Gtk.WindowPosition.CENTER });\n"
+#| "\n"
+#| " // Create a webview to show the web app\n"
+#| " this._webView = new Webkit.WebView ();\n"
+#| "\n"
+#| " // Put the web app into the webview\n"
+#| " this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+#| " \"/hellognome.html\", null));\n"
+#| "\n"
+#| " // Put the webview into the window\n"
+#| " this._window.add (this._webView);\n"
+#| "\n"
+#| " // Show the window and all child widgets\n"
+#| " this._window.show_all();\n"
+#| " },\n"
+#| "\n"
+#| "});\n"
+#| "\n"
+#| "// Run the application\n"
+#| "let app = new HelloGNOME ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gdk = '3.0';\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const Gio = imports.gi.Gio;\n"
"const GLib = imports.gi.GLib;\n"
"const Gtk = imports.gi.Gtk;\n"
"const Gdk = imports.gi.Gdk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const SpinnerExample = new Lang.Class ({\n"
-" Name: 'Spinner Example',\n"
+"class SpinnerExample {\n"
"\n"
" // Create the application itself\n"
-" _init: function () {\n"
-" this.application = new Gtk.Application ({\n"
+" constructor() {\n"
+" this.application = new Gtk.Application({\n"
" application_id: 'org.example.jsspinner',\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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function () {\n"
-" this._window.present ();\n"
-" },\n"
+" _onActivate() {\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"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function () {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
-" this._window = new Gtk.ApplicationWindow ({\n"
+" this._window = new Gtk.ApplicationWindow({\n"
" application: this.application,\n"
" window_position: Gtk.WindowPosition.CENTER,\n"
" title: \"Spinner Example\",\n"
" default_height: 200,\n"
" default_width: 200,\n"
-" border_width: 30 });\n"
+" border_width: 30\n"
+" });\n"
"\n"
" // Create a spinner which starts spinning automatically\n"
" this._spinner = new Gtk.Spinner ({active: true});\n"
" this._window.add (this._spinner);\n"
"\n"
" // Connect a keypress event to the function that makes it start or stop spinning\n"
-" this._window.connect(\"key-press-event\", Lang.bind(this, this._onKeyPress));\n"
+" this._window.connect(\"key-press-event\", this._onKeyPress.bind(this));\n"
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
-"\n"
-"\n"
+" }\n"
"\n"
-" _onKeyPress: function(widget, event) {\n"
+" _onKeyPress(widget, event) {\n"
"\n"
" // Get the value of the key that was pressed\n"
-" let keyval = event.get_keyval()[1];\n"
+" let [, keyval] = event.get_keyval();\n"
"\n"
" // If it was the spacebar, toggle the spinner to start or stop\n"
" if (keyval == Gdk.KEY_space) {\n"
@@ -29176,45 +33136,105 @@ msgid ""
" this._spinner.start();\n"
" }\n"
" }\n"
-"\n"
-"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new SpinnerExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const GLib = imports.gi.GLib;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"const Webkit = imports.gi.WebKit;\n"
+"\n"
+"const HelloGNOME = new Lang.Class ({\n"
+" Name: 'Olá, GNOME',\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function () {\n"
+" this.application = new Gtk.Application ();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativa\n"
+" _onActivate: function () {\n"
+" this._window.present ();\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup: function () {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function () {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow ({\n"
+" application: this.application,\n"
+" title: \"Bem-vindo ao GNOME\",\n"
+" default_height: 200,\n"
+" default_width: 400,\n"
+" window_position: Gtk.WindowPosition.CENTER });\n"
+"\n"
+" // Cria um webview para mostrar o aplicativo web\n"
+" this._webView = new Webkit.WebView ();\n"
+"\n"
+" // Coloca o aplicativo web no webview\n"
+" this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+" \"/hellognome.html\", null));\n"
+"\n"
+" // Coloca o webview na janela\n"
+" this._window.add (this._webView);\n"
+"\n"
+" // Mostra a janela e todos seus widgets filhos\n"
+" this._window.show_all();\n"
+" },\n"
+"\n"
+"});\n"
+"\n"
+"// Executa o aplicativo\n"
+"let app = new HelloGNOME ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: item/p
-#: C/spinner.js.page:29
+#: C/spinner.js.page:30
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gdk.html\">Gdk - "
"Key Values</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/spinner.js.page:32 C/togglebutton.js.page:157
+#: C/spinner.js.page:33 C/togglebutton.js.page:158
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Spinner.html"
"\">Gtk.Spinner</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/spinner.py.page:7
+#: C/spinner.py.page:8
+#, fuzzy
msgctxt "text"
msgid "Spinner (Python)"
-msgstr ""
+msgstr "Spinner"
#. (itstool) path: section/code
-#: C/spinner.py.page:30
+#: C/spinner.py.page:31
#, no-wrap
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"
@@ -29245,7 +33265,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"
@@ -29262,7 +33284,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/spinner.py.page:32
+#: C/spinner.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 "
@@ -29272,27 +33294,28 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/spinner.py.page:41 C/togglebutton.py.page:45
+#: C/spinner.py.page:42 C/togglebutton.py.page:46
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkSpinner.html"
"\">GtkSpinner</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/spinner.py.page:42
+#: C/spinner.py.page:43
msgid ""
"<link href=\"http://developer.gnome.org/gdk/stable/gdk-Keyboard-Handling.html"
"\">Key Values</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/spinner.vala.page:7
+#: C/spinner.vala.page:8
+#, fuzzy
msgctxt "text"
msgid "Spinner (Vala)"
-msgstr ""
+msgstr "Vala"
#. (itstool) path: page/code
-#: C/spinner.vala.page:24
+#: C/spinner.vala.page:25
#, no-wrap
msgid ""
"public class MyWindow : Gtk.ApplicationWindow {\n"
@@ -29349,56 +33372,59 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/spinner.vala.page:29
+#: C/spinner.vala.page:30
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Widget.html\">Gtk.Widget</"
"link>"
msgstr ""
#. (itstool) path: item/p
-#: C/spinner.vala.page:30
+#: C/spinner.vala.page:31
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Spinner.html\">Gtk.Spinner</"
"link>"
msgstr ""
#. (itstool) path: item/p
-#: C/spinner.vala.page:31
+#: C/spinner.vala.page:32
msgid ""
"<link href=\"http://www.valadoc.org/gdk-3.0/Gdk.keyval_name.html\">Gdk."
"keyval_name</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.c.page:26
-msgctxt "_"
-msgid ""
-"external ref='media/statusbar3.png' md5='60c71604fb44656237ee66dfb39a8689'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/statusbar.c.page:7
+#: C/statusbar.c.page:8
+#, fuzzy
msgctxt "text"
msgid "Statusbar (C)"
-msgstr ""
+msgstr "A barra de status"
#. (itstool) path: info/desc
-#: C/statusbar.c.page:21 C/statusbar.py.page:19 C/statusbar.vala.page:20
+#: C/statusbar.c.page:22 C/statusbar.py.page:20 C/statusbar.vala.page:21
msgid "Report messages of minor importance to the user"
msgstr ""
#. (itstool) path: page/title
-#: C/statusbar.c.page:24 C/statusbar.js.page:20 C/statusbar.py.page:22
-#: C/statusbar.vala.page:23
+#: C/statusbar.c.page:25 C/statusbar.js.page:21 C/statusbar.py.page:23
+#: C/statusbar.vala.page:24
+#, fuzzy
msgid "Statusbar"
+msgstr "Barra de status"
+
+#. (itstool) path: page/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:27
+msgctxt "_"
+msgid ""
+"external ref='media/statusbar3.png' md5='60c71604fb44656237ee66dfb39a8689'"
msgstr ""
+"external ref='media/statusbar3.png' md5='60c71604fb44656237ee66dfb39a8689'"
#. (itstool) path: page/p
-#: C/statusbar.c.page:27
+#: C/statusbar.c.page:28
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 "
@@ -29406,7 +33432,7 @@ msgid ""
msgstr ""
#. (itstool) path: page/code
-#: C/statusbar.c.page:29
+#: C/statusbar.c.page:30
#, no-wrap
msgid ""
"\n"
@@ -29432,7 +33458,7 @@ msgid ""
" char hold_output[20];\n"
" \n"
" /*This is a safer form of the standard sprintf () function. The output is \n"
-" gauranteed in this case to not exceed 20 characters, and the result is stored \n"
+" guaranteed in this case to not exceed 20 characters, and the result is stored\n"
" into the 'hold_output' variable*/\n"
" g_snprintf (hold_output, 20, \"Item %d\", count++);\n"
" gtk_statusbar_push (GTK_STATUSBAR (status_bar), \n"
@@ -29514,43 +33540,49 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/statusbar.c.page:37
+#: C/statusbar.c.page:38
+#, fuzzy
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkStatusbar.html"
"\">GtkStatusBar</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/\">Manual de referência</"
+"link>"
#. (itstool) path: item/p
-#: C/statusbar.c.page:38
+#: C/statusbar.c.page:39
msgid ""
"<link href=\"http://developer.gnome.org/glib/stable/glib-String-Utility-"
"Functions.html#g-snprintf\">String Utility Functions</link>"
msgstr ""
-#. (itstool) path: media
+#. (itstool) path: info/title
+#: C/statusbar.js.page:8
+#, fuzzy
+msgctxt "text"
+msgid "Statusbar (JavaScript)"
+msgstr "JavaScript"
+
+#. (itstool) path: info/desc
+#: C/statusbar.js.page:18
+#, fuzzy
+msgid "Show notifications in a dedicated statusbar"
+msgstr "Mostrar notificações na"
+
+#. (itstool) path: page/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
+#: C/statusbar.js.page:22
msgctxt "_"
msgid ""
"external ref='media/statusbar2.png' md5='ff6f7e5b270827ca98b2d5f7087aa766'"
msgstr ""
-
-#. (itstool) path: info/title
-#: C/statusbar.js.page:7
-msgctxt "text"
-msgid "Statusbar (JavaScript)"
-msgstr ""
-
-#. (itstool) path: info/desc
-#: C/statusbar.js.page:17
-msgid "Show notifications in a dedicated statusbar"
-msgstr ""
+"external ref='media/statusbar2.png' md5='ff6f7e5b270827ca98b2d5f7087aa766'"
#. (itstool) path: page/p
-#: C/statusbar.js.page:22
+#: C/statusbar.js.page:23
msgid ""
"This statusbar keeps track of how many times you've clicked a button. "
"Applications like <link href=\"http://projects.gnome.org/gedit/\">gedit</"
@@ -29559,7 +33591,7 @@ msgid ""
msgstr ""
#. (itstool) path: page/p
-#: C/statusbar.js.page:23
+#: C/statusbar.js.page:24
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 "
@@ -29568,7 +33600,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/statusbar.js.page:40
+#: C/statusbar.js.page:41
#, no-wrap
msgid ""
"\n"
@@ -29599,7 +33631,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/statusbar.js.page:66
+#: C/statusbar.js.page:67
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/"
@@ -29608,7 +33640,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/statusbar.js.page:67
+#: C/statusbar.js.page:68
#, no-wrap
msgid ""
"\n"
@@ -29629,7 +33661,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/statusbar.js.page:83
+#: C/statusbar.js.page:84
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="
@@ -29641,12 +33673,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/statusbar.js.page:87
+#: C/statusbar.js.page:88
+#, fuzzy
msgid "Creating the buttons"
-msgstr ""
+msgstr "Os botões"
#. (itstool) path: section/code
-#: C/statusbar.js.page:88
+#: C/statusbar.js.page:89
#, no-wrap
msgid ""
"\n"
@@ -29669,7 +33702,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/statusbar.js.page:106
+#: C/statusbar.js.page:107
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 "
@@ -29680,7 +33713,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/statusbar.js.page:108
+#: C/statusbar.js.page:109
#, no-wrap
msgid ""
"\n"
@@ -29701,7 +33734,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/statusbar.js.page:124
+#: C/statusbar.js.page:125
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 "
@@ -29712,12 +33745,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/statusbar.js.page:128
+#: C/statusbar.js.page:129
+#, fuzzy
msgid "Creating the statusbar"
-msgstr ""
+msgstr "A barra de status"
#. (itstool) path: section/code
-#: C/statusbar.js.page:129
+#: C/statusbar.js.page:130
#, no-wrap
msgid ""
"\n"
@@ -29738,14 +33772,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/statusbar.js.page:145
+#: C/statusbar.js.page:146
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."
msgstr ""
#. (itstool) path: section/p
-#: C/statusbar.js.page:146
+#: C/statusbar.js.page:147
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 "
@@ -29757,14 +33791,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/statusbar.js.page:147
+#: C/statusbar.js.page:148
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 ""
#. (itstool) path: section/code
-#: C/statusbar.js.page:148
+#: C/statusbar.js.page:149
#, no-wrap
msgid ""
"\n"
@@ -29781,7 +33815,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/statusbar.js.page:160
+#: C/statusbar.js.page:161
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 "
@@ -29789,12 +33823,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/statusbar.js.page:164
+#: C/statusbar.js.page:165
+#, fuzzy
msgid "Functions for interacting with the statusbar"
-msgstr ""
+msgstr "A barra de status"
#. (itstool) path: section/code
-#: C/statusbar.js.page:165
+#: C/statusbar.js.page:166
#, no-wrap
msgid ""
"\n"
@@ -29839,7 +33874,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/statusbar.js.page:205
+#: C/statusbar.js.page:206
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 "
@@ -29850,61 +33885,63 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/statusbar.js.page:206
-#, no-wrap
+#: C/statusbar.js.page:207
+#, fuzzy, no-wrap
msgid ""
"\n"
"// Run the application\n"
"let app = new StatusbarExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"\n"
+"// Executa o aplicativo\n"
+"let app = new GettingTheSignal ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: section/p
-#: C/statusbar.js.page:211
+#: C/statusbar.js.page:212
msgid ""
"Finally, we create a new instance of the finished StatusbarExample class, "
"and set the application running."
msgstr ""
#. (itstool) path: section/code
-#: C/statusbar.js.page:216
+#: C/statusbar.js.page:217
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const Gio = imports.gi.Gio;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const StatusbarExample = new Lang.Class({\n"
-" Name: 'Statusbar Example',\n"
+"class StatusbarExample {\n"
"\n"
" // Create the application itself\n"
-" _init: function() {\n"
+" constructor() {\n"
" this.application = new Gtk.Application({\n"
" application_id: 'org.example.jsstatusbar',\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"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents window when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function() {\n"
-" this._buildUI ();\n"
-" },\n"
-"\n"
-"\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow({\n"
@@ -29921,19 +33958,19 @@ msgid ""
" // Create the main button\n"
" this._clickMe = new Gtk.Button ({\n"
" label: \"Click Me!\" });\n"
-" this._clickMe.connect (\"clicked\", Lang.bind (this, this._clicked));\n"
+" this._clickMe.connect (\"clicked\", this._clicked.bind(this));\n"
"\n"
" // Create the back button\n"
" this._backButton = new Gtk.Button ({\n"
" label: \"gtk-go-back\",\n"
" use_stock: true });\n"
-" this._backButton.connect (\"clicked\", Lang.bind (this, this._back));\n"
+" this._backButton.connect (\"clicked\", this._back.bind(this));\n"
"\n"
" // Create the clear button\n"
" this._clearButton = new Gtk.Button ({\n"
" label: \"gtk-clear\",\n"
" use_stock: true });\n"
-" this._clearButton.connect (\"clicked\", Lang.bind (this, this._clear));\n"
+" this._clearButton.connect (\"clicked\", this._clear.bind(this));\n"
"\n"
" // Put the buttons in a grid\n"
" this._grid = new Gtk.Grid ({\n"
@@ -29974,35 +34011,27 @@ msgid ""
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
-"\n"
+" }\n"
"\n"
-"\n"
-" _clicked: function() {\n"
+" _clicked() {\n"
"\n"
" // Increment the number of clicks by 1\n"
" this.Clicks++;\n"
"\n"
" // Update the statusbar with the new number of clicks\n"
" this._statusbar.push (this.ContextID, \"Number of clicks: \" + this.Clicks);\n"
+" }\n"
"\n"
-" },\n"
-"\n"
-"\n"
-"\n"
-" _back: function () {\n"
+" _back() {\n"
"\n"
" // If there have been any clicks, decrement by 1 and remove last statusbar update\n"
" if (this.Clicks > 0 ) {\n"
" this.Clicks--;\n"
" this._statusbar.pop (this.ContextID);\n"
" };\n"
+" }\n"
"\n"
-" },\n"
-"\n"
-"\n"
-"\n"
-" _clear: function () {\n"
+" _clear() {\n"
"\n"
" // Reset the number of clicks\n"
" this.Clicks = 0;\n"
@@ -30012,10 +34041,8 @@ msgid ""
"\n"
" // Reset the statusbar's message\n"
" this._statusbar.push (this.ContextID, \"Number of clicks: \" + this.Clicks);\n"
-"\n"
" }\n"
-"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new StatusbarExample ();\n"
@@ -30023,60 +34050,64 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/statusbar.js.page:225
+#: C/statusbar.js.page:226
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Frame.html"
"\">Gtk.Frame</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/statusbar.js.page:226
+#: C/statusbar.js.page:227
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Paned.html"
"\">Gtk.Paned</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/statusbar.js.page:227
+#: C/statusbar.js.page:228
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Statusbar.html"
"\">Gtk.Statusbar</link>"
msgstr ""
-#. (itstool) path: media
+#. (itstool) path: info/title
+#: C/statusbar.py.page:8
+#, fuzzy
+msgctxt "text"
+msgid "Statusbar (Python)"
+msgstr "A barra de status"
+
+#. (itstool) path: page/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.py.page:23 C/statusbar.vala.page:24
+#: C/statusbar.py.page:24 C/statusbar.vala.page:25
msgctxt "_"
msgid ""
"external ref='media/statusbar.png' md5='eb1aca55315d6cda57b12a5f36058ba8'"
msgstr ""
-
-#. (itstool) path: info/title
-#: C/statusbar.py.page:7
-msgctxt "text"
-msgid "Statusbar (Python)"
-msgstr ""
+"external ref='media/statusbar.png' md5='eb1aca55315d6cda57b12a5f36058ba8'"
#. (itstool) path: page/p
-#: C/statusbar.py.page:24
+#: C/statusbar.py.page:25
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
+#: C/statusbar.py.page:32
#, no-wrap
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=\"StatusBar Example\", application=app)\n"
" self.set_default_size(200, 100)\n"
@@ -30095,7 +34126,8 @@ msgid ""
" # 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"
+" 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"
@@ -30121,11 +34153,13 @@ msgid ""
" # 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"
+" \" 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"
@@ -30142,7 +34176,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/statusbar.py.page:33
+#: C/statusbar.py.page:34
msgid ""
"<code>Gdk.keyval_name(event.keyval)</code> converts the key value "
"<code>event.keyval</code> into a symbolic name. The names and corresponding "
@@ -30152,12 +34186,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/statusbar.py.page:39
+#: C/statusbar.py.page:40
+#, fuzzy
msgid "Useful methods for a Statusbar widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: section/p
-#: C/statusbar.py.page:40
+#: C/statusbar.py.page:41
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>."
@@ -30166,21 +34201,21 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/statusbar.py.page:42
+#: C/statusbar.py.page:43
msgid ""
"<code>pop(context_id)</code> removes the first message in the statusbar "
"stack with the given <code>context_id</code>."
msgstr ""
#. (itstool) path: item/p
-#: C/statusbar.py.page:43
+#: C/statusbar.py.page:44
msgid ""
"<code>remove_all(context_id)</code> removes all the messages in the "
"statusbar stack with the given <code>context_id</code>."
msgstr ""
#. (itstool) path: item/p
-#: C/statusbar.py.page:44
+#: C/statusbar.py.page:45
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 "
@@ -30190,32 +34225,33 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/statusbar.py.page:52
+#: C/statusbar.py.page:53
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkStatusbar.html"
"\">GtkStatusbar</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/statusbar.py.page:53
+#: C/statusbar.py.page:54
msgid ""
"<link href=\"http://developer.gnome.org/gdk/stable/gdk-Keyboard-Handling.html"
"\">Gdk - Key Values</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/statusbar.vala.page:7
+#: C/statusbar.vala.page:8
+#, fuzzy
msgctxt "text"
msgid "Statusbar (Vala)"
-msgstr ""
+msgstr "Barra de status"
#. (itstool) path: page/p
-#: C/statusbar.vala.page:25
+#: C/statusbar.vala.page:26
msgid "This statusbar tells you what's going on."
msgstr ""
#. (itstool) path: page/code
-#: C/statusbar.vala.page:27
+#: C/statusbar.vala.page:28
#, no-wrap
msgid ""
"public class MyWindow : Gtk.ApplicationWindow {\n"
@@ -30283,40 +34319,42 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/statusbar.vala.page:32
+#: C/statusbar.vala.page:33
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Statusbar.html\">Gtk."
"Statusbar</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/strings.py.page:8
+#: C/strings.py.page:9
msgctxt "text"
msgid "Strings (Python)"
msgstr ""
#. (itstool) path: info/desc
-#: C/strings.py.page:13
+#: C/strings.py.page:14
msgid "An explanation of how to deal with strings in Python and GTK+."
msgstr ""
#. (itstool) path: page/title
-#: C/strings.py.page:26
+#: C/strings.py.page:27
+#, fuzzy
msgid "Strings"
-msgstr ""
+msgstr "Strings"
#. (itstool) path: note/p
-#: C/strings.py.page:30
+#: C/strings.py.page:31
msgid "GNOME strongly encourages the use of Python 3 for writing applications!"
msgstr ""
#. (itstool) path: section/title
-#: C/strings.py.page:33
+#: C/strings.py.page:34
+#, fuzzy
msgid "Strings in Python 2"
-msgstr ""
+msgstr "Python (versão 2)"
#. (itstool) path: section/p
-#: C/strings.py.page:35
+#: C/strings.py.page:36
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 "
@@ -30327,7 +34365,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/strings.py.page:37
+#: C/strings.py.page:38
#, no-wrap
msgid ""
"\n"
@@ -30337,16 +34375,16 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/strings.py.page:43
+#: C/strings.py.page:44
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 ""
#. (itstool) path: section/code
-#: C/strings.py.page:45
+#: C/strings.py.page:46
#, no-wrap
msgid ""
"\n"
@@ -30362,7 +34400,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/strings.py.page:56
+#: C/strings.py.page:57
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) "
@@ -30371,30 +34409,31 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/strings.py.page:61
+#: C/strings.py.page:62
+#, fuzzy
msgid "Strings in Python 3"
-msgstr ""
+msgstr "Habilitar folding de expressões python entre aspas"
#. (itstool) path: section/p
-#: C/strings.py.page:63
+#: C/strings.py.page:64
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 "
-"binary data in the form of instances of the bytes type. Conceptionally, "
+"binary data in the form of instances of the bytes type. Conceptually, "
"<code>str</code> refers to text, whereas bytes refers to data. Use "
"<code>encode()</code> to go from <code>str</code> to <code>bytes</code>, and "
"<code>decode()</code> to go from <code>bytes</code> to <code>str</code>."
msgstr ""
#. (itstool) path: section/p
-#: C/strings.py.page:65
+#: C/strings.py.page:66
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 ""
#. (itstool) path: section/code
-#: C/strings.py.page:67
+#: C/strings.py.page:68
#, no-wrap
msgid ""
"\n"
@@ -30411,12 +34450,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/strings.py.page:82
+#: C/strings.py.page:83
+#, fuzzy
msgid "Unicode in GTK+"
-msgstr ""
+msgstr "GTK+"
#. (itstool) path: section/p
-#: C/strings.py.page:84
+#: C/strings.py.page:85
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 "
@@ -30427,7 +34467,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/strings.py.page:86
+#: C/strings.py.page:87
#, no-wrap
msgid ""
"\n"
@@ -30441,30 +34481,34 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/strings.py.page:95
+#: C/strings.py.page:96
+#, fuzzy
msgid "Furthermore:"
msgstr ""
+"Além disso, em vez de apenas dizer “em uma questão que seja razoavelmente "
+"susceptível de levantar preocupações”, qualquer gravação do que é observado "
+"deve ser presumido como levantar preocupações para as liberdades civis."
#. (itstool) path: section/code
-#: C/strings.py.page:97
-#, no-wrap
+#: C/strings.py.page:98
+#, fuzzy, no-wrap
msgid ""
"\n"
">>> txt == unicode_string"
-msgstr ""
+msgstr "B<'\\e\"> E<lt>B<texto>E<gt>"
#. (itstool) path: section/p
-#: C/strings.py.page:100
+#: C/strings.py.page:101
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 ""
#. (itstool) path: section/p
-#: C/strings.py.page:102
+#: C/strings.py.page:103
msgid ""
"This is especially important if you want to internationalize your program "
"using <link href=\"http://docs.python.org/library/gettext.html"
@@ -30473,7 +34517,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/strings.py.page:104
+#: C/strings.py.page:105
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 "
@@ -30481,67 +34525,71 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/strings.py.page:106
+#: C/strings.py.page:107
msgid ""
-"With Python 3.x things are much more consistent, because PyGObject will "
+"String encoding is more consistent in Python 3.x 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."
msgstr ""
#. (itstool) path: section/p
-#: C/strings.py.page:113
+#: C/strings.py.page:114
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
+#. (itstool) path: info/title
+#: C/switch.c.page:8
+#, fuzzy
+msgctxt "text"
+msgid "Switch (C)"
+msgstr "Alternar"
+
+#. (itstool) path: info/desc
+#: C/switch.c.page:18 C/switch.py.page:19 C/switch.vala.page:22
+#, fuzzy
+msgid "A \"light switch\" style toggle"
+msgstr "toggle-switch-intl"
+
+#. (itstool) path: page/title
+#: C/switch.c.page:21 C/switch.js.page:21 C/switch.py.page:22
+#: C/switch.vala.page:25
+#, fuzzy
+msgid "Switch"
+msgstr "Alternar"
+
+#. (itstool) path: page/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.c.page:22 C/switch.py.page:22 C/switch.vala.page:25
+#: C/switch.c.page:23 C/switch.py.page:23 C/switch.vala.page:26
msgctxt "_"
msgid ""
"external ref='media/switch_off.png' md5='211a2962708800697ad5373dcc86ad6d'"
msgstr ""
-#. (itstool) path: media
+#. (itstool) path: page/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.c.page:23 C/switch.py.page:23 C/switch.vala.page:26
+#: C/switch.c.page:24 C/switch.py.page:24 C/switch.vala.page:27
msgctxt "_"
msgid ""
"external ref='media/switch_on.png' md5='95e8769f758c2d95ace0fa8ecf30b29d'"
msgstr ""
-#. (itstool) path: info/title
-#: C/switch.c.page:7
-msgctxt "text"
-msgid "Switch (C)"
-msgstr ""
-
-#. (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 ""
-
-#. (itstool) path: page/title
-#: C/switch.c.page:20 C/switch.js.page:20 C/switch.py.page:21
-#: C/switch.vala.page:24
-msgid "Switch"
-msgstr ""
-
#. (itstool) path: page/p
-#: C/switch.c.page:24
+#: C/switch.c.page:25
+#, fuzzy
msgid "This switch toggles the title of the window."
-msgstr ""
+msgstr "Alterna o alternador"
#. (itstool) path: page/code
-#: C/switch.c.page:26
+#: C/switch.c.page:27
#, no-wrap
msgid ""
"\n"
@@ -30624,30 +34672,32 @@ msgid ""
"}\n"
msgstr ""
-#. (itstool) path: media
+#. (itstool) path: info/title
+#: C/switch.js.page:8
+#, fuzzy
+msgctxt "text"
+msgid "Switch (JavaScript)"
+msgstr "_JavaScript"
+
+#. (itstool) path: info/desc
+#: C/switch.js.page:18
+msgid "A sliding switch that can be flipped on and off"
+msgstr ""
+
+#. (itstool) path: page/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
+#: C/switch.js.page:22
msgctxt "_"
msgid ""
"external ref='media/switchanimals.png' md5='513ae15dcf68e15eef30b76420b8c714'"
msgstr ""
-
-#. (itstool) path: info/title
-#: C/switch.js.page:7
-msgctxt "text"
-msgid "Switch (JavaScript)"
-msgstr ""
-
-#. (itstool) path: info/desc
-#: C/switch.js.page:17
-msgid "A sliding switch that can be flipped on and off"
-msgstr ""
+"external ref='media/switchanimals.png' md5='513ae15dcf68e15eef30b76420b8c714'"
#. (itstool) path: page/p
-#: C/switch.js.page:22
+#: C/switch.js.page:23
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</"
@@ -30657,7 +34707,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/switch.js.page:23
+#: C/switch.js.page:24
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>, "
@@ -30668,7 +34718,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/switch.js.page:25
+#: C/switch.js.page:26
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/"
@@ -30676,7 +34726,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/switch.js.page:26
+#: C/switch.js.page:27
msgid ""
"<link href=\"http://en.wikipedia.org/wiki/File:Pygoscelis_papua_-"
"Nagasaki_Penguin_Aquarium_-swimming_underwater-8a.jpg\">Gentoo penguin "
@@ -30685,7 +34735,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/switch.js.page:27
+#: C/switch.js.page:28
msgid ""
"<link href=\"http://www.flickr.com/photos/shekgraham/127431519/in/"
"photostream/\">Fruit bat photo</link> by Shek Graham, licensed <link href="
@@ -30693,7 +34743,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/switch.js.page:28
+#: C/switch.js.page:29
msgid ""
"<link href=\"http://commons.wikimedia.org/wiki/File:Mute_Swan-"
"Mindaugas_Urbonas.jpg\">Mute swan photo</link> by Mindaugas Urbonas, "
@@ -30702,7 +34752,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/switch.js.page:30
+#: C/switch.js.page:31
msgid ""
"Photo credits and licensing information are shown in the application's <link "
"xref=\"aboutdialog.js\">AboutDialog</link>. Always remember to credit the "
@@ -30711,7 +34761,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/switch.js.page:47
+#: C/switch.js.page:48
#, no-wrap
msgid ""
"\n"
@@ -30743,7 +34793,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/switch.js.page:74
+#: C/switch.js.page:75
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."
@@ -30752,7 +34802,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/switch.js.page:76
+#: C/switch.js.page:77
#, no-wrap
msgid ""
"\n"
@@ -30768,12 +34818,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/switch.js.page:91
+#: C/switch.js.page:92
+#, fuzzy
msgid "Creating the switches"
-msgstr ""
+msgstr "TROCA"
#. (itstool) path: section/code
-#: C/switch.js.page:92
+#: C/switch.js.page:93
#, no-wrap
msgid ""
"\n"
@@ -30782,7 +34833,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/switch.js.page:97
+#: C/switch.js.page:98
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 "
@@ -30790,7 +34841,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/switch.js.page:99
+#: C/switch.js.page:100
#, no-wrap
msgid ""
"\n"
@@ -30814,7 +34865,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/switch.js.page:119
+#: C/switch.js.page:120
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 "
@@ -30823,7 +34874,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/switch.js.page:120
+#: C/switch.js.page:121
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 "
@@ -30834,7 +34885,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/switch.js.page:122
+#: C/switch.js.page:123
#, no-wrap
msgid ""
"\n"
@@ -30861,7 +34912,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/switch.js.page:144
+#: C/switch.js.page:145
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 "
@@ -30870,7 +34921,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/switch.js.page:145
+#: C/switch.js.page:146
#, no-wrap
msgid ""
"\n"
@@ -30883,12 +34934,12 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/switch.js.page:157
+#: C/switch.js.page:158
msgid "Function which handles the switches being flipped"
msgstr ""
#. (itstool) path: section/code
-#: C/switch.js.page:159
+#: C/switch.js.page:160
#, no-wrap
msgid ""
"\n"
@@ -30914,7 +34965,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/switch.js.page:180
+#: C/switch.js.page:181
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() "
@@ -30923,12 +34974,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/switch.js.page:184
+#: C/switch.js.page:185
+#, fuzzy
msgid "Creating the AboutDialog"
-msgstr ""
+msgstr "sem tabelas, criando …"
#. (itstool) path: section/code
-#: C/switch.js.page:185
+#: C/switch.js.page:186
#, no-wrap
msgid ""
"\n"
@@ -30959,7 +35011,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/switch.js.page:211
+#: C/switch.js.page:212
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 "
@@ -30968,7 +35020,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/switch.js.page:213
+#: C/switch.js.page:214
#, no-wrap
msgid ""
"\n"
@@ -31007,7 +35059,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/switch.js.page:247
+#: C/switch.js.page:248
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 "
@@ -31019,61 +35071,63 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/switch.js.page:249
-#, no-wrap
+#: C/switch.js.page:250
+#, fuzzy, no-wrap
msgid ""
"\n"
"// Run the application\n"
"let app = new SwitchExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"\n"
+"// Executa o aplicativo\n"
+"let app = new GettingTheSignal ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: section/p
-#: C/switch.js.page:254
+#: C/switch.js.page:255
msgid ""
"Finally, we create a new instance of the finished SwitchExample class, and "
"set the application running."
msgstr ""
#. (itstool) path: section/code
-#: C/switch.js.page:259
+#: C/switch.js.page:260
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\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"
+"class SwitchExample {\n"
"\n"
" // Create the application itself\n"
-" _init: function() {\n"
+" constructor() {\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"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents window when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal creates the menu and builds the UI\n"
-" _onStartup: function() {\n"
+" _onStartup() {\n"
" this._initMenus();\n"
-" this._buildUI ();\n"
-" },\n"
-"\n"
-"\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow({\n"
@@ -31092,7 +35146,7 @@ msgid ""
"\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"
+" this._flySwitch.connect ('notify::active', this._switchFlip.bind(this));\n"
"\n"
" // Create a label for the second switch\n"
" this._birdLabel = new Gtk.Label ({\n"
@@ -31101,7 +35155,7 @@ msgid ""
"\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"
+" this._birdSwitch.connect ('notify::active', this._switchFlip.bind(this));\n"
"\n"
" // Create a grid for the labels and switches beneath the picture\n"
" this._UIGrid = new Gtk.Grid ({\n"
@@ -31129,33 +35183,27 @@ msgid ""
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
-"\n"
-"\n"
+" }\n"
"\n"
-" _switchFlip: function() {\n"
+" _switchFlip() {\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"
+" if (this._birdSwitch.get_active())\n"
+" this._image.set_from_file (\"muteswan.png\");\n"
+" else\n"
+" this._image.set_from_file (\"fruitbat.png\");\n"
+" } else {\n"
"\n"
+" if (this._birdSwitch.get_active())\n"
+" this._image.set_from_file (\"gentoopenguin.png\");\n"
+" else\n"
+" this._image.set_from_file (\"redfox.png\");\n"
" }\n"
+" }\n"
"\n"
-" },\n"
-"\n"
-"\n"
-"\n"
-" _initMenus: function() {\n"
+" _initMenus() {\n"
"\n"
" // Build the application's menu so we can have an \"About\" button\n"
" let menu = new Gio.Menu();\n"
@@ -31165,24 +35213,16 @@ msgid ""
"\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"
+" aboutAction.connect('activate', () => { this._showAbout(); });\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"
+" quitAction.connect('activate', () => { this._window.destroy(); });\n"
" this.application.add_action(quitAction);\n"
-" },\n"
-"\n"
+" }\n"
"\n"
-"\n"
-" _showAbout: function () {\n"
+" _showAbout() {\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"
@@ -31212,8 +35252,7 @@ msgid ""
" aboutDialog.destroy();\n"
" });\n"
" }\n"
-"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new SwitchExample ();\n"
@@ -31221,39 +35260,42 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/switch.js.page:270
+#: C/switch.js.page:271
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Image.html"
"\">Gtk.Image</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/switch.js.page:272
+#: C/switch.js.page:273
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Switch.html"
"\">Gtk.Switch</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/switch.py.page:7
+#: C/switch.py.page:8
+#, fuzzy
msgctxt "text"
msgid "Switch (Python)"
-msgstr ""
+msgstr "Alternar"
#. (itstool) path: page/p
-#: C/switch.py.page:25
+#: C/switch.py.page:26
msgid "This Switch makes the title appears and disappear."
msgstr ""
#. (itstool) path: section/code
-#: C/switch.py.page:32
+#: C/switch.py.page:33
#, no-wrap
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"
@@ -31273,9 +35315,9 @@ msgid ""
"\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"
+" 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"
@@ -31291,7 +35333,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"
@@ -31308,12 +35352,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/switch.py.page:36
+#: C/switch.py.page:37
+#, fuzzy
msgid "Useful methods for a Switch widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: section/p
-#: C/switch.py.page:37
+#: C/switch.py.page:38
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>."
@@ -31322,25 +35367,27 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/switch.py.page:44
+#: C/switch.py.page:45
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkSwitch.html"
"\">GtkSwitch</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/switch.vala.page:7
+#: C/switch.vala.page:8
+#, fuzzy
msgctxt "text"
msgid "Switch (Vala)"
-msgstr ""
+msgstr "_Vala"
#. (itstool) path: page/p
-#: C/switch.vala.page:28
+#: C/switch.vala.page:29
+#, fuzzy
msgid "This Switch toggles the title."
-msgstr ""
+msgstr "Alterna o alternador"
#. (itstool) path: page/code
-#: C/switch.vala.page:30
+#: C/switch.vala.page:31
#, no-wrap
msgid ""
"class MyWindow : Gtk.ApplicationWindow {\n"
@@ -31392,71 +35439,76 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/switch.vala.page:35
+#: C/switch.vala.page:36
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Switch.html\">Gtk.Switch</"
"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.c.page:26 C/textview.py.page:38 C/textview.vala.page:26
-msgctxt "_"
-msgid ""
-"external ref='media/textview.png' md5='049e859ed1af2d7c93d8cb5cfd9f7792'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/textview.c.page:7
+#: C/textview.c.page:8
+#, fuzzy
msgctxt "text"
msgid "TextView (C)"
-msgstr ""
+msgstr "C"
#. (itstool) path: info/desc
-#: C/textview.c.page:17 C/textview.vala.page:17
+#: C/textview.c.page:18 C/textview.vala.page:18
+#, fuzzy
msgid "Widget which displays a GtkTextBuffer"
-msgstr ""
+msgstr "O componente pai com o qual a janela deveria se alinhar."
#. (itstool) path: page/title
-#: C/textview.c.page:20 C/textview.vala.page:20
+#: C/textview.c.page:21 C/textview.vala.page:21
+#, fuzzy
msgid "TextView widget"
-msgstr ""
+msgstr "Widget:"
#. (itstool) path: note/p
-#: C/textview.c.page:21 C/textview.py.page:32 C/textview.vala.page:21
+#: C/textview.c.page:22 C/textview.py.page:33 C/textview.vala.page:22
msgid "If we press \"enter\", we have a new line."
msgstr ""
#. (itstool) path: note/p
-#: C/textview.c.page:22 C/textview.vala.page:22
+#: C/textview.c.page:23 C/textview.vala.page:23
msgid ""
"If we press \"enter\" more times then there are lines in the default sized "
"window, then a vertical scrollbar appears."
msgstr ""
#. (itstool) path: note/p
-#: C/textview.c.page:23 C/textview.vala.page:23
+#: C/textview.c.page:24 C/textview.vala.page:24
msgid ""
"If we write a long sentence, the text will wrap breaking lines between words."
msgstr ""
#. (itstool) path: note/p
-#: C/textview.c.page:24
+#: C/textview.c.page:25
msgid ""
"If we have a loooooooooooooooooooooooooooooooooooong (that was long) word, "
"a* horizontal scrollbar will appear."
msgstr ""
+#. (itstool) path: page/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.c.page:27 C/textview.py.page:39 C/textview.vala.page:27
+msgctxt "_"
+msgid ""
+"external ref='media/textview.png' md5='049e859ed1af2d7c93d8cb5cfd9f7792'"
+msgstr ""
+"external ref='media/textview.png' md5='049e859ed1af2d7c93d8cb5cfd9f7792'"
+
#. (itstool) path: page/p
-#: C/textview.c.page:27 C/textview.vala.page:27
+#: C/textview.c.page:28 C/textview.vala.page:28
+#, fuzzy
msgid "This is an example of Gtk.TextView"
-msgstr ""
+msgstr "Por exemplo:"
#. (itstool) path: page/code
-#: C/textview.c.page:29
+#: C/textview.c.page:30
#, no-wrap
msgid ""
"\n"
@@ -31534,48 +35586,61 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/textview.c.page:40
+#: C/textview.c.page:41
+#, fuzzy
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
-msgctxt "_"
-msgid ""
-"external ref='media/textviewpenguinchat.png' "
-"md5='0dd6f6aa44aaeab7901bd90162ed4c9a'"
-msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/\">Manual de referência</"
+"link>"
#. (itstool) path: info/title
-#: C/textview.js.page:7
+#: C/textview.js.page:8
+#, fuzzy
msgctxt "text"
msgid "TextView (JavaScript)"
-msgstr ""
+msgstr "_JavaScript"
#. (itstool) path: info/desc
-#: C/textview.js.page:21
+#: C/textview.js.page:22
+#, fuzzy
msgid "A multiline text editor"
-msgstr ""
+msgstr "Multilinha"
#. (itstool) path: page/title
-#: C/textview.js.page:24 C/textview.py.page:29
+#: C/textview.js.page:25 C/textview.py.page:30
+#, fuzzy
msgid "TextView"
msgstr ""
+"// cria seus próprios ajustes\n"
+"Gtk::TextView textview;\n"
+"// usa o ajuste recém-criado para a barra de rolagem assim\n"
+"Gtk::Scrollbar vscrollbar (textview.get_vadjustment(), Gtk::"
+"ORIENTATION_VERTICAL);"
-#. (itstool) path: page/p
+#. (itstool) path: page/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:26
+msgctxt "_"
+msgid ""
+"external ref='media/textviewpenguinchat.png' "
+"md5='0dd6f6aa44aaeab7901bd90162ed4c9a'"
+msgstr ""
+"external ref='media/textviewpenguinchat.png' "
+"md5='0dd6f6aa44aaeab7901bd90162ed4c9a'"
+
+#. (itstool) path: page/p
+#: C/textview.js.page:27
msgid ""
"A TextView is really (or at least usually) a nested set of three objects."
msgstr ""
#. (itstool) path: item/p
-#: C/textview.js.page:28
+#: C/textview.js.page:29
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 "
@@ -31583,7 +35648,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/textview.js.page:29
+#: C/textview.js.page:30
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 "
@@ -31592,7 +35657,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/textview.js.page:30
+#: C/textview.js.page:31
msgid ""
"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 "
@@ -31603,7 +35668,7 @@ msgid ""
msgstr ""
#. (itstool) path: page/p
-#: C/textview.js.page:32
+#: C/textview.js.page:33
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 "
@@ -31613,7 +35678,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/textview.js.page:33
+#: C/textview.js.page:34
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 "
@@ -31622,7 +35687,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/textview.js.page:49
+#: C/textview.js.page:50
#, no-wrap
msgid ""
"\n"
@@ -31651,7 +35716,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/textview.js.page:73
+#: C/textview.js.page:74
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/"
@@ -31660,7 +35725,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/textview.js.page:74
+#: C/textview.js.page:75
#, no-wrap
msgid ""
"\n"
@@ -31678,12 +35743,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/textview.js.page:91
+#: C/textview.js.page:92
+#, fuzzy
msgid "Creating the TextView"
-msgstr ""
+msgstr "Criando um evento"
#. (itstool) path: section/code
-#: C/textview.js.page:92
+#: C/textview.js.page:93
#, no-wrap
msgid ""
"\n"
@@ -31696,7 +35762,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/textview.js.page:101
+#: C/textview.js.page:102
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 "
@@ -31705,7 +35771,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/textview.js.page:103
+#: C/textview.js.page:104
#, no-wrap
msgid ""
"\n"
@@ -31718,7 +35784,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/textview.js.page:112
+#: C/textview.js.page:113
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 "
@@ -31727,7 +35793,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/textview.js.page:113
+#: C/textview.js.page:114
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"
@@ -31738,7 +35804,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/textview.js.page:115
+#: C/textview.js.page:116
#, no-wrap
msgid ""
"\n"
@@ -31755,7 +35821,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/textview.js.page:127
+#: C/textview.js.page:128
msgid ""
"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-"
@@ -31764,7 +35830,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/textview.js.page:133
+#: C/textview.js.page:134
#, no-wrap
msgid ""
"\n"
@@ -31779,14 +35845,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/textview.js.page:143
+#: C/textview.js.page:144
msgid ""
"The first <link xref=\"grid.js\">Grid</link> we create only has the Label "
"and the ScrolledWindow inside it."
msgstr ""
#. (itstool) path: section/code
-#: C/textview.js.page:145
+#: C/textview.js.page:146
#, no-wrap
msgid ""
"\n"
@@ -31808,7 +35874,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/textview.js.page:162
+#: C/textview.js.page:163
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 "
@@ -31817,7 +35883,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/textview.js.page:164
+#: C/textview.js.page:165
#, no-wrap
msgid ""
"\n"
@@ -31830,19 +35896,19 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/textview.js.page:173
+#: C/textview.js.page:174
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 ""
#. (itstool) path: section/title
-#: C/textview.js.page:178
+#: C/textview.js.page:179
msgid "Function which handles the penguin's response"
msgstr ""
#. (itstool) path: section/code
-#: C/textview.js.page:179
+#: C/textview.js.page:180
#, no-wrap
msgid ""
"\n"
@@ -31898,7 +35964,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/textview.js.page:230
+#: C/textview.js.page:231
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 "
@@ -31908,7 +35974,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/textview.js.page:231
+#: C/textview.js.page:232
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. "
@@ -31917,58 +35983,60 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/textview.js.page:233
-#, no-wrap
+#: C/textview.js.page:234
+#, fuzzy, no-wrap
msgid ""
"\n"
"// Run the application\n"
"let app = new TextViewExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"\n"
+"// Executa o aplicativo\n"
+"let app = new GettingTheSignal ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: section/p
-#: C/textview.js.page:238
+#: C/textview.js.page:239
msgid ""
"Finally, we create a new instance of the finished TextViewExample class, and "
"set the application running."
msgstr ""
#. (itstool) path: section/code
-#: C/textview.js.page:243
+#: C/textview.js.page:244
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const TextViewExample = new Lang.Class ({\n"
-" Name: 'TextView Example',\n"
+"class TextViewExample {\n"
"\n"
" // Create the application itself\n"
-" _init: function () {\n"
-" this.application = new Gtk.Application ({\n"
-" application_id: 'org.example.jstextview' });\n"
+" constructor() {\n"
+" this.application = new Gtk.Application({\n"
+" application_id: 'org.example.jstextview'\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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function () {\n"
-" this._window.present ();\n"
-" },\n"
+" _onActivate() {\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"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function () {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow ({\n"
@@ -32018,7 +36086,7 @@ msgid ""
" halign: Gtk.Align.END,\n"
" margin_top: 20,\n"
" label: \"Send\" });\n"
-" this._send.connect ('clicked', Lang.bind (this, this._chat));\n"
+" this._send.connect ('clicked', this._chat.bind(this));\n"
"\n"
" // Create a grid that will have the other grid on top and the button on bottom\n"
" this._mainGrid = new Gtk.Grid ({\n"
@@ -32034,11 +36102,9 @@ msgid ""
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
-"\n"
-"\n"
+" }\n"
"\n"
-" _chat: function () {\n"
+" _chat() {\n"
"\n"
" // Create a random number to determine what the penguin says\n"
" this.number = Math.floor ((Math.random() * 3) + 1);\n"
@@ -32083,10 +36149,8 @@ msgid ""
"\n"
" // Give focus back to the textview so you don't have to click it again\n"
" this._textView.has_focus = true;\n"
-"\n"
" }\n"
-"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new TextViewExample ();\n"
@@ -32094,72 +36158,80 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/textview.js.page:255
+#: C/textview.js.page:256
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk."
"ScrolledWindow.html\">Gtk.ScrolledWindow</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/textview.js.page:256
+#: C/textview.js.page:257
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.TextBuffer."
"html\">Gtk.TextBuffer</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/textview.js.page:257
+#: C/textview.js.page:258
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.TextView.html"
"\">Gtk.TextView</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/textview.py.page:7
+#: C/textview.py.page:8
+#, fuzzy
msgctxt "text"
msgid "TextView (Python)"
-msgstr ""
+msgstr "_Python"
#. (itstool) path: info/desc
-#: C/textview.py.page:26
+#: C/textview.py.page:27
+#, fuzzy
msgid "Widget that displays a GtkTextBuffer"
-msgstr ""
+msgstr "Monitores"
#. (itstool) path: note/p
-#: C/textview.py.page:31
+#: C/textview.py.page:32
+#, fuzzy
msgid "This is an example of Gtk.TextView."
-msgstr ""
+msgstr "Por exemplo:"
#. (itstool) path: note/p
-#: C/textview.py.page:33
+#: C/textview.py.page:34
msgid ""
"But we can also have a new line if we write a long sentence (the text will "
"wrap breaking lines between words)."
msgstr ""
#. (itstool) path: note/p
-#: C/textview.py.page:34
+#: C/textview.py.page:35
+#, fuzzy
msgid "If we have a loooooooooooooooooooooooooooooooooooong"
-msgstr ""
+msgstr "Nós temos um disco válido!\n"
#. (itstool) path: note/p
-#: C/textview.py.page:35
+#: C/textview.py.page:36
+#, fuzzy
msgid "(that was long)"
-msgstr ""
+msgstr "LONG"
#. (itstool) path: note/p
-#: C/textview.py.page:36
+#: C/textview.py.page:37
+#, fuzzy
msgid "word, an horizontal scrollbar will appear."
-msgstr ""
+msgstr "Política da barra de rolagem horizontal"
#. (itstool) path: section/code
-#: C/textview.py.page:45
+#: C/textview.py.page:46
#, 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=\"TextView Example\", application=app)\n"
" self.set_default_size(300, 450)\n"
@@ -32168,7 +36240,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"
@@ -32183,7 +36256,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"
@@ -32200,12 +36275,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/textview.py.page:49
+#: C/textview.py.page:50
+#, fuzzy
msgid "Useful methods for a TextView widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: section/p
-#: C/textview.py.page:50
+#: C/textview.py.page:51
msgid ""
"A <code>Gtk.TextView</code> displays the text stored in a <code>Gtk."
"TextBuffer</code>. However, most text manipulation is accomplished with "
@@ -32221,12 +36297,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/textview.py.page:51
+#: C/textview.py.page:52
+#, fuzzy
msgid "Methods for a TextView widget:"
-msgstr ""
+msgstr "Widget:"
#. (itstool) path: item/p
-#: C/textview.py.page:53
+#: C/textview.py.page:54
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 "
@@ -32234,7 +36311,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/textview.py.page:54
+#: C/textview.py.page:55
msgid ""
"The justification of the text is set with <code>set_justification(Gtk."
"Justification.JUSTIFICATION)</code> where <code>JUSTIFICATION</code> is one "
@@ -32242,7 +36319,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/textview.py.page:55
+#: C/textview.py.page:56
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 "
@@ -32253,26 +36330,27 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/textview.py.page:57
+#: C/textview.py.page:58
+#, fuzzy
msgid "Methods for a TextBuffer widget:"
-msgstr ""
+msgstr "Widget:"
#. (itstool) path: item/p
-#: C/textview.py.page:59
+#: C/textview.py.page:60
msgid ""
"<code>get_insert()</code> returns the <code>Gtk.TextMark</code> that "
"represents the cursor, that is the insertion point."
msgstr ""
#. (itstool) path: item/p
-#: C/textview.py.page:60
+#: C/textview.py.page:61
msgid ""
"<code>get_selection_bound()</code> returns the <code>Gtk.TextMark</code> "
"that represents the selection bound."
msgstr ""
#. (itstool) path: item/p
-#: C/textview.py.page:61
+#: C/textview.py.page:62
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 "
@@ -32282,7 +36360,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/textview.py.page:62
+#: C/textview.py.page:63
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</"
@@ -32292,7 +36370,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/textview.py.page:63
+#: C/textview.py.page:64
msgid ""
"<code>insert_at_cursor(\"some text\", length)</code> does the same as "
"<code>insert(iter, \"some text\", length)</code>, with the current cursor "
@@ -32300,7 +36378,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/textview.py.page:64
+#: C/textview.py.page:65
msgid ""
"<code>create_mark(\"mark_name\", iter, left_gravity)</code> where "
"<code>iter</code> is a <code>Gtk.TextIter</code> and <code>left_gravity</"
@@ -32314,7 +36392,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/textview.py.page:66
+#: C/textview.py.page:67
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 "
@@ -32324,7 +36402,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/code
-#: C/textview.py.page:67
+#: C/textview.py.page:68
#, no-wrap
msgid ""
"\n"
@@ -32333,69 +36411,78 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/textview.py.page:70
+#: C/textview.py.page:71
msgid "The following are some of the common styles applied to text:"
msgstr ""
#. (itstool) path: item/p
-#: C/textview.py.page:72
+#: C/textview.py.page:73
+#, fuzzy
msgid "Background colour (\"background\" property)"
-msgstr ""
+msgstr "Clique para modificar a cor de fundo do relógio"
#. (itstool) path: item/p
-#: C/textview.py.page:73
+#: C/textview.py.page:74
+#, fuzzy
msgid "Foreground colour (\"foreground\" property)"
-msgstr ""
+msgstr "Clique para modificar a cor do relógio"
#. (itstool) path: item/p
-#: C/textview.py.page:74
+#: C/textview.py.page:75
+#, fuzzy
msgid "Underline (\"underline\" property)"
-msgstr ""
+msgstr "Sublinhado – \\underline"
#. (itstool) path: item/p
-#: C/textview.py.page:75
+#: C/textview.py.page:76
+#, fuzzy
msgid "Bold (\"weight\" property)"
-msgstr ""
+msgstr "<span weight=\"bold\">Objetivo Procurado</span>"
#. (itstool) path: item/p
-#: C/textview.py.page:76
+#: C/textview.py.page:77
+#, fuzzy
msgid "Italics (\"style\" property)"
-msgstr ""
+msgstr "Itálico"
#. (itstool) path: item/p
-#: C/textview.py.page:77
+#: C/textview.py.page:78
+#, fuzzy
msgid "Strikethrough (\"strikethrough\" property)"
-msgstr ""
+msgstr "_Tachar"
#. (itstool) path: item/p
-#: C/textview.py.page:78
+#: C/textview.py.page:79
+#, fuzzy
msgid "Justification (\"justification\" property)"
-msgstr ""
+msgstr "sem justificação"
#. (itstool) path: item/p
-#: C/textview.py.page:79
+#: C/textview.py.page:80
+#, fuzzy
msgid "Size (\"size\" and \"size-points\" properties)"
-msgstr ""
+msgstr "O tamanho do marcador em pontos"
#. (itstool) path: item/p
-#: C/textview.py.page:80
+#: C/textview.py.page:81
msgid "Text wrapping (\"wrap-mode\" property)"
msgstr ""
#. (itstool) path: item/p
-#: C/textview.py.page:82
+#: C/textview.py.page:83
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 ""
#. (itstool) path: section/p
-#: C/textview.py.page:84
+#: C/textview.py.page:85
+#, fuzzy
msgid "Methods for a TextIter widget"
-msgstr ""
+msgstr "Widget:"
#. (itstool) path: item/p
-#: C/textview.py.page:86
+#: C/textview.py.page:87
msgid ""
"<code>forward_search(needle, flags, limit)</code> searches forward for "
"<code>needle</code>. The search will not continue past the <code>Gtk."
@@ -32413,55 +36500,56 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/textview.py.page:87
+#: C/textview.py.page:88
msgid ""
"<code>backward_search(needle, flags, limit)</code> does the same as "
"<code>forward_search()</code>, but moving backwards."
msgstr ""
#. (itstool) path: item/p
-#: C/textview.py.page:95
+#: C/textview.py.page:96
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkTextView.html"
"\">GtkTextView</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/textview.py.page:96
+#: C/textview.py.page:97
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkTextBuffer.html"
"\">GtkTextBuffer</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/textview.py.page:97
+#: C/textview.py.page:98
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkTextTag.html"
"\">GtkTextTag</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/textview.vala.page:7
+#: C/textview.vala.page:8
+#, fuzzy
msgctxt "text"
msgid "TextView (Vala)"
-msgstr ""
+msgstr "_Vala"
#. (itstool) path: note/p
-#: C/textview.vala.page:24
+#: C/textview.vala.page:25
msgid ""
"If we have a loooooooooooooooooooooooooooooooooooong word, a horizontal "
"scrollbar will appear."
msgstr ""
#. (itstool) path: page/code
-#: C/textview.vala.page:29
+#: C/textview.vala.page:30
#, no-wrap
msgid ""
"/* 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"
-"\t\t/* Create the window of this applicationt. */\n"
+"\t\t/* Create the window of this application. */\n"
"\t\tnew MyWindow (this).show_all ();\n"
"\t}\n"
"}\n"
@@ -32493,64 +36581,68 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/textview.vala.page:34
+#: C/textview.vala.page:35
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.TextBuffer.html\">Gtk."
"TextBuffer</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/textview.vala.page:35
+#: C/textview.vala.page:36
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.TextView.html\">Gtk."
"TextView</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/textview.vala.page:37
+#: C/textview.vala.page:38
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.
-#: 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 ""
-
#. (itstool) path: info/title
-#: C/togglebutton.c.page:7
+#: C/togglebutton.c.page:8
+#, fuzzy
msgctxt "text"
msgid "ToggleButton (C)"
-msgstr ""
+msgstr "Botão de alternância"
#. (itstool) path: info/desc
-#: C/togglebutton.c.page:21 C/togglebutton.py.page:18
-#: C/togglebutton.vala.page:20
+#: C/togglebutton.c.page:22 C/togglebutton.py.page:19
+#: C/togglebutton.vala.page:21
+#, fuzzy
msgid "A button which retains state"
-msgstr ""
+msgstr "Estado “%s” desconhecido para o botão"
#. (itstool) path: page/title
-#: C/togglebutton.c.page:24 C/togglebutton.js.page:20
-#: C/togglebutton.py.page:21 C/togglebutton.vala.page:23
+#: C/togglebutton.c.page:25 C/togglebutton.js.page:21 C/togglebutton.py.page:22
+#: C/togglebutton.vala.page:24
+#, fuzzy
msgid "ToggleButton"
+msgstr "Botão de alternância"
+
+#. (itstool) path: page/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/togglebutton.c.page:27 C/togglebutton.js.page:22 C/togglebutton.py.page:23
+#: C/togglebutton.vala.page:25
+msgctxt "_"
+msgid ""
+"external ref='media/togglebutton.png' md5='791e062613d4f9bd5936390b0aa18448'"
msgstr ""
+"external ref='media/togglebutton.png' md5='791e062613d4f9bd5936390b0aa18448'"
#. (itstool) path: page/p
-#: C/togglebutton.c.page:27 C/togglebutton.py.page:23
-#: C/togglebutton.vala.page:25
+#: C/togglebutton.c.page:28 C/togglebutton.py.page:24
+#: C/togglebutton.vala.page:26
msgid "When this ToggleButton is in an active state, the spinner spins."
msgstr ""
#. (itstool) path: page/code
-#: C/togglebutton.c.page:29
+#: C/togglebutton.c.page:30
#, no-wrap
msgid ""
"\n"
@@ -32635,25 +36727,29 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/togglebutton.c.page:38
+#: C/togglebutton.c.page:39
+#, fuzzy
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkToggleButton.html"
"\">GtkTogglebutton</link>"
msgstr ""
+"<link href=\"https://developer.gnome.org/gtk3/stable/GtkToggleButton.html"
+"\">GtkToggleButton</link>"
#. (itstool) path: info/title
-#: C/togglebutton.js.page:7
+#: C/togglebutton.js.page:8
+#, fuzzy
msgctxt "text"
msgid "ToggleButton (JavaScript)"
-msgstr ""
+msgstr "Botão de alternância"
#. (itstool) path: info/desc
-#: C/togglebutton.js.page:17
+#: C/togglebutton.js.page:18
msgid "Stays pressed until you click it again"
msgstr ""
#. (itstool) path: page/p
-#: C/togglebutton.js.page:22
+#: C/togglebutton.js.page:23
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/"
@@ -32662,7 +36758,7 @@ msgid ""
msgstr ""
#. (itstool) path: page/p
-#: C/togglebutton.js.page:23
+#: C/togglebutton.js.page:24
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 "
@@ -32672,7 +36768,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/togglebutton.js.page:40
+#: C/togglebutton.js.page:41
#, no-wrap
msgid ""
"\n"
@@ -32703,7 +36799,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/togglebutton.js.page:67
+#: C/togglebutton.js.page:68
#, no-wrap
msgid ""
"\n"
@@ -32721,12 +36817,12 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/togglebutton.js.page:84
+#: C/togglebutton.js.page:85
msgid "Creating the ToggleButton and other widgets"
msgstr ""
#. (itstool) path: section/code
-#: C/togglebutton.js.page:85
+#: C/togglebutton.js.page:86
#, no-wrap
msgid ""
"\n"
@@ -32735,14 +36831,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/togglebutton.js.page:90
+#: C/togglebutton.js.page:91
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 ""
#. (itstool) path: section/code
-#: C/togglebutton.js.page:92
+#: C/togglebutton.js.page:93
#, no-wrap
msgid ""
"\n"
@@ -32752,7 +36848,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/togglebutton.js.page:98
+#: C/togglebutton.js.page:99
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 "
@@ -32762,7 +36858,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/togglebutton.js.page:100
+#: C/togglebutton.js.page:101
#, no-wrap
msgid ""
"\n"
@@ -32775,14 +36871,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/togglebutton.js.page:108
+#: C/togglebutton.js.page:109
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 ""
#. (itstool) path: section/code
-#: C/togglebutton.js.page:110
+#: C/togglebutton.js.page:111
#, no-wrap
msgid ""
"\n"
@@ -32795,19 +36891,19 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/togglebutton.js.page:118
+#: C/togglebutton.js.page:119
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."
msgstr ""
#. (itstool) path: section/title
-#: C/togglebutton.js.page:122
+#: C/togglebutton.js.page:123
msgid "Making something happen when the ToggleButton is toggled"
msgstr ""
#. (itstool) path: section/code
-#: C/togglebutton.js.page:124
+#: C/togglebutton.js.page:125
#, no-wrap
msgid ""
"\n"
@@ -32824,7 +36920,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/togglebutton.js.page:136
+#: C/togglebutton.js.page:137
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 "
@@ -32833,54 +36929,116 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/togglebutton.js.page:138
-#, no-wrap
+#: C/togglebutton.js.page:139
+#, fuzzy, no-wrap
msgid ""
"\n"
"// Run the application\n"
"let app = new ToggleButtonExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"\n"
+"// Executa o aplicativo\n"
+"let app = new GettingTheSignal ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: section/code
-#: C/togglebutton.js.page:148
-#, no-wrap
+#: C/togglebutton.js.page:149
+#, fuzzy, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const GLib = imports.gi.GLib;\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "const Webkit = imports.gi.WebKit;\n"
+#| "\n"
+#| "const HelloGNOME = new Lang.Class ({\n"
+#| " Name: 'Hello GNOME',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function () {\n"
+#| " this.application = new Gtk.Application ();\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 ({\n"
+#| " application: this.application,\n"
+#| " title: \"Welcome to GNOME\",\n"
+#| " default_height: 200,\n"
+#| " default_width: 400,\n"
+#| " window_position: Gtk.WindowPosition.CENTER });\n"
+#| "\n"
+#| " // Create a webview to show the web app\n"
+#| " this._webView = new Webkit.WebView ();\n"
+#| "\n"
+#| " // Put the web app into the webview\n"
+#| " this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+#| " \"/hellognome.html\", null));\n"
+#| "\n"
+#| " // Put the webview into the window\n"
+#| " this._window.add (this._webView);\n"
+#| "\n"
+#| " // Show the window and all child widgets\n"
+#| " this._window.show_all();\n"
+#| " },\n"
+#| "\n"
+#| "});\n"
+#| "\n"
+#| "// Run the application\n"
+#| "let app = new HelloGNOME ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\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"
+"class ToggleButtonExample {\n"
"\n"
" // Create the application itself\n"
-" _init: function() {\n"
+" constructor() {\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"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents window when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function() {\n"
-" this._buildUI ();\n"
-" },\n"
-"\n"
-"\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
+" _buildUI() {\n"
"\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow({\n"
@@ -32896,7 +37054,7 @@ msgid ""
"\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"
+" this._toggleButton.connect ('toggled', this._onToggle.bind(this));\n"
"\n"
" // Create a grid and put everything in it\n"
" this._grid = new Gtk.Grid ({\n"
@@ -32910,11 +37068,9 @@ msgid ""
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
-"\n"
-"\n"
+" }\n"
"\n"
-" _onToggle: function() {\n"
+" _onToggle() {\n"
"\n"
" // Start or stop the spinner\n"
" if (this._toggleButton.get_active ())\n"
@@ -32922,38 +37078,100 @@ msgid ""
" else this._spinner.stop ();\n"
"\n"
" }\n"
-"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new ToggleButtonExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"#!/usr/bin/gjs\n"
+"\n"
+"const GLib = imports.gi.GLib;\n"
+"const Gtk = imports.gi.Gtk;\n"
+"const Lang = imports.lang;\n"
+"const Webkit = imports.gi.WebKit;\n"
+"\n"
+"const HelloGNOME = new Lang.Class ({\n"
+" Name: 'Olá, GNOME',\n"
+"\n"
+" // Cria o aplicativo em si\n"
+" _init: function () {\n"
+" this.application = new Gtk.Application ();\n"
+"\n"
+" // Conecta os sinais 'activate' e 'startup' às funções de chamada\n"
+" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+" this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'activate' apresenta janelas quando ativa\n"
+" _onActivate: function () {\n"
+" this._window.present ();\n"
+" },\n"
+"\n"
+" // Função de chamada para o sinal 'startup' constrói a interface gráfica\n"
+" _onStartup: function () {\n"
+" this._buildUI ();\n"
+" },\n"
+"\n"
+" // Constrói a interface gráfica do aplicativo\n"
+" _buildUI: function () {\n"
+"\n"
+" // Cria a janela do aplicativo\n"
+" this._window = new Gtk.ApplicationWindow ({\n"
+" application: this.application,\n"
+" title: \"Bem-vindo ao GNOME\",\n"
+" default_height: 200,\n"
+" default_width: 400,\n"
+" window_position: Gtk.WindowPosition.CENTER });\n"
+"\n"
+" // Cria um webview para mostrar o aplicativo web\n"
+" this._webView = new Webkit.WebView ();\n"
+"\n"
+" // Coloca o aplicativo web no webview\n"
+" this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
+" \"/hellognome.html\", null));\n"
+"\n"
+" // Coloca o webview na janela\n"
+" this._window.add (this._webView);\n"
+"\n"
+" // Mostra a janela e todos seus widgets filhos\n"
+" this._window.show_all();\n"
+" },\n"
+"\n"
+"});\n"
+"\n"
+"// Executa o aplicativo\n"
+"let app = new HelloGNOME ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: item/p
-#: C/togglebutton.js.page:158
+#: C/togglebutton.js.page:159
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.ToggleButton."
"html\">Gtk.ToggleButton</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/togglebutton.py.page:7
+#: C/togglebutton.py.page:8
+#, fuzzy
msgctxt "text"
msgid "ToggleButton (Python)"
-msgstr ""
+msgstr "Botão de alternância"
#. (itstool) path: section/code
-#: C/togglebutton.py.page:30
+#: C/togglebutton.py.page:31
#, no-wrap
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"
@@ -32972,10 +37190,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"
@@ -32989,7 +37207,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"
@@ -33006,35 +37226,37 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/togglebutton.py.page:35
+#: C/togglebutton.py.page:36
+#, fuzzy
msgid "Useful methods for a ToggleButton widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: section/p
-#: C/togglebutton.py.page:36
+#: C/togglebutton.py.page:37
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 ""
#. (itstool) path: item/p
-#: C/togglebutton.py.page:44 C/toolbar.py.page:59
-#: C/toolbar_builder.py.page:197
+#: C/togglebutton.py.page:45 C/toolbar.py.page:60 C/toolbar_builder.py.page:198
+#: C/widget_drawing.py.page:38
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkWidget.html"
"\">GtkWidget</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/togglebutton.vala.page:7
+#: C/togglebutton.vala.page:8
+#, fuzzy
msgctxt "text"
msgid "ToggleButton (Vala)"
-msgstr ""
+msgstr "Botão de alternância"
#. (itstool) path: page/code
-#: C/togglebutton.vala.page:27
+#: C/togglebutton.vala.page:28
#, no-wrap
msgid ""
"public class MyWindow : Gtk.ApplicationWindow {\n"
@@ -33095,57 +37317,61 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/togglebutton.vala.page:32
+#: C/togglebutton.vala.page:33
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.
-#: 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 ""
-
#. (itstool) path: info/title
-#: C/toolbar.c.page:7
+#: C/toolbar.c.page:8
+#, fuzzy
msgctxt "text"
msgid "Toolbar (C)"
-msgstr ""
+msgstr "Barra de ferramentas"
#. (itstool) path: info/desc
-#: C/toolbar.c.page:19 C/toolbar.vala.page:18 C/toolbar_builder.vala.page:19
+#: C/toolbar.c.page:20 C/toolbar.vala.page:19 C/toolbar_builder.vala.page:20
+#, fuzzy
msgid "A bar of buttons"
-msgstr ""
+msgstr "Estilo tradicional com barra de localização e botões de navegação"
#. (itstool) path: page/title
-#: C/toolbar.c.page:22 C/toolbar.js.page:20 C/toolbar.py.page:22
-#: C/toolbar.vala.page:21
+#: C/toolbar.c.page:23 C/toolbar.js.page:21 C/toolbar.py.page:23
+#: C/toolbar.vala.page:22
+#, fuzzy
msgid "Toolbar"
+msgstr "Barra de ferramentas"
+
+#. (itstool) path: page/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/toolbar.c.page:25 C/toolbar.js.page:22 C/toolbar.py.page:25
+#: C/toolbar.vala.page:24 C/toolbar_builder.py.page:38
+#: C/toolbar_builder.vala.page:25
+msgctxt "_"
+msgid "external ref='media/toolbar.png' md5='f0350855eedf6343952b72d6d906f738'"
msgstr ""
+"external ref='media/toolbar.png' md5='f0350855eedf6343952b72d6d906f738'"
#. (itstool) path: page/p
-#: C/toolbar.c.page:25 C/toolbar.js.page:22 C/toolbar.vala.page:24
+#: C/toolbar.c.page:26 C/toolbar.js.page:23 C/toolbar.vala.page:25
msgid ""
"Toolbar can contain either text or stock icons. In this sample we use stock "
"icons. This example has fullscreen functionality."
msgstr ""
#. (itstool) path: page/p
-#: C/toolbar.c.page:26
+#: C/toolbar.c.page:27
msgid ""
"This example uses SimpleActions (window and app). App actions can easily be "
"added to the app menu."
msgstr ""
#. (itstool) path: page/code
-#: C/toolbar.c.page:28
+#: C/toolbar.c.page:29
#, no-wrap
msgid ""
"\n"
@@ -33372,71 +37598,85 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar.c.page:34 C/tooltip.c.page:38 C/tooltip.py.page:59
+#: C/toolbar.c.page:35 C/tooltip.c.page:39 C/tooltip.py.page:60
+#, fuzzy
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkToolbar.html"
"\">GtkToolbar</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/\">Manual de referência</"
+"link>"
#. (itstool) path: item/p
-#: C/toolbar.c.page:35
+#: C/toolbar.c.page:36
+#, fuzzy
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkToolButton.html"
"\">GtkToolbutton</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/\">Manual de referência</"
+"link>"
#. (itstool) path: info/title
-#: C/toolbar.js.page:7
+#: C/toolbar.js.page:8
+#, fuzzy
msgctxt "text"
msgid "Toolbar (JavaScript)"
-msgstr ""
+msgstr "_JavaScript"
#. (itstool) path: info/desc
-#: C/toolbar.js.page:17
+#: C/toolbar.js.page:18
+#, fuzzy
msgid "A bar of tools"
msgstr ""
+"A partir do menu da janela de imagens, em:<menuchoice><guimenu>Ferramentas</"
+"guimenu><guisubmenu>Ferramentas de transformação</"
+"guisubmenu><guimenuitem>Espelhar</guimenuitem></menuchoice>,"
#. (itstool) path: page/p
-#: C/toolbar.js.page:23 C/toolbar.vala.page:25
+#: C/toolbar.js.page:24 C/toolbar.vala.page:26
msgid ""
"This example uses SimpleActions (window and app). App actions can easily be "
"added the the app menu."
msgstr ""
#. (itstool) path: page/code
-#: C/toolbar.js.page:25
+#: C/toolbar.js.page:26
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gdk = '3.0';\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const Gdk = imports.gi.Gdk;\n"
"const Gio = imports.gi.Gio;\n"
"const GLib = imports.gi.GLib;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
"\n"
-"const Application = new Lang.Class({\n"
-" Name: 'Application',\n"
+"class Application {\n"
"\n"
" //create the application\n"
-" _init: function() {\n"
+" constructor() {\n"
" this.application = new Gtk.Application({\n"
" application_id: 'org.example.myapp',\n"
" flags: Gio.ApplicationFlags.FLAGS_NONE\n"
" });\n"
"\n"
" //connect to '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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" //create the UI (in this case it's just the ApplicationWindow\n"
-" _buildUI: function() {\n"
-" this._window = new Gtk.ApplicationWindow({ application: this.application,\n"
-" window_position: Gtk.WindowPosition.CENTER,\n"
-" title: \"Toolbar Example\",\n"
-" default_height: 200,\n"
-" default_width: 400 });\n"
+" _buildUI() {\n"
+" this._window = new Gtk.ApplicationWindow({\n"
+" application: this.application,\n"
+" window_position: Gtk.WindowPosition.CENTER,\n"
+" title: \"Toolbar Example\",\n"
+" default_height: 200,\n"
+" default_width: 400\n"
+" });\n"
"\n"
" this._grid = new Gtk.Grid();\n"
" this._window.add(this._grid);\n"
@@ -33449,21 +37689,21 @@ msgid ""
" //show the toolbar and window\n"
" this._toolbar.show();\n"
" this._window.show();\n"
-" },\n"
+" }\n"
"\n"
" //callback function for 'activate' signal\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" //callback function for 'startup' signal\n"
-" _onStartup: function() {\n"
+" _onStartup() {\n"
" this._initMenus();\n"
" this._buildUI();\n"
-" },\n"
+" }\n"
"\n"
" //create the toolbar, its toolbuttons and their actions\n"
-" _createToolbar: function() {\n"
+" _createToolbar() {\n"
"\n"
" this._toolbar = new Gtk.Toolbar();\n"
" this._toolbar.get_style_context().add_class(Gtk.STYLE_CLASS_PRIMARY_TOOLBAR);\n"
@@ -33472,13 +37712,10 @@ msgid ""
" //Using actions allows you to add them to the app menu\n"
" //without duplicating code.\n"
" let newAction = new Gio.SimpleAction({ name: 'new'});\n"
-" newAction.connect('activate', Lang.bind(this,\n"
-" function() {\n"
-" this._newCB();\n"
-" }));\n"
+" newAction.connect('activate', () => { this._newCB(); });\n"
" this.application.add_action(newAction);//note: this action is added to the app\n"
"\n"
-" this._newButton = new Gtk.ToolButton.new_from_stock(Gtk.STOCK_NEW);\n"
+" this._newButton = Gtk.ToolButton.new_from_stock(Gtk.STOCK_NEW);\n"
" this._newButton.is_important = true;\n"
" this._toolbar.add(this._newButton);\n"
" this._newButton.show();\n"
@@ -33486,13 +37723,10 @@ msgid ""
"\n"
" //create the \"Open\" ToolButton and its SimpleAction\n"
" let openAction = new Gio.SimpleAction({ name: 'open'});\n"
-" openAction.connect('activate', Lang.bind(this,\n"
-" function() {\n"
-" this._openCB();\n"
-" }));\n"
+" openAction.connect('activate', () => { this._openCB(); });\n"
" this.application.add_action(openAction);\n"
"\n"
-" this._openButton = new Gtk.ToolButton.new_from_stock(Gtk.STOCK_OPEN);\n"
+" this._openButton = Gtk.ToolButton.new_from_stock(Gtk.STOCK_OPEN);\n"
" this._openButton.is_important = true;\n"
" this._toolbar.add(this._openButton);\n"
" this._openButton.show();\n"
@@ -33500,13 +37734,10 @@ msgid ""
"\n"
" //create the \"Undo\" ToolButton and its SimpleAction\n"
" let undoAction = new Gio.SimpleAction({ name: 'undo'});\n"
-" undoAction.connect('activate', Lang.bind (this,\n"
-" function() {\n"
-" this._undoCB();\n"
-" }));\n"
+" undoAction.connect('activate', () => { this._undoCB(); });\n"
" this._window.add_action(undoAction);//note this action is added to the window\n"
"\n"
-" this._undoButton = new Gtk.ToolButton.new_from_stock(Gtk.STOCK_UNDO);\n"
+" this._undoButton = Gtk.ToolButton.new_from_stock(Gtk.STOCK_UNDO);\n"
" this._undoButton.is_important = true;\n"
" this._toolbar.add(this._undoButton);\n"
" this._undoButton.show();\n"
@@ -33514,26 +37745,25 @@ msgid ""
"\n"
" //create the \"Fullscreen\" ToolButton and its SimpleAction\n"
" let fullscreenToggleAction = new Gio.SimpleAction ({ name: 'fullscreenToggle' });\n"
-" fullscreenToggleAction.connect ('activate', Lang.bind (this,\n"
-" function () {\n"
-" this._fullscreenToggleCB();\n"
-" }));\n"
+" fullscreenToggleAction.connect('activate', () => {\n"
+" this._fullscreenToggleCB();\n"
+" });\n"
" this._window.add_action(fullscreenToggleAction);\n"
"\n"
-" this._fullscreenButton = new Gtk.ToolButton.new_from_stock(Gtk.STOCK_FULLSCREEN);\n"
+" this._fullscreenButton = Gtk.ToolButton.new_from_stock(Gtk.STOCK_FULLSCREEN);\n"
" this._fullscreenButton.is_important = true;\n"
" this._toolbar.add(this._fullscreenButton);\n"
" this._fullscreenButton.show();\n"
" this._fullscreenButton.action_name = \"win.fullscreenToggle\";\n"
"\n"
" //create the \"leaveFullscreen\" ToolButton, and set the action name to \"win.fullscreenToggle\"\n"
-" this._leaveFullscreenButton = new Gtk.ToolButton.new_from_stock(Gtk.STOCK_LEAVE_FULLSCREEN);\n"
+" this._leaveFullscreenButton = Gtk.ToolButton.new_from_stock(Gtk.STOCK_LEAVE_FULLSCREEN);\n"
" this._leaveFullscreenButton.is_important = true;\n"
" this._toolbar.add(this._leaveFullscreenButton);\n"
" this._leaveFullscreenButton.action_name = \"win.fullscreenToggle\";\n"
-" },\n"
+" }\n"
"\n"
-" _initMenus: function () {\n"
+" _initMenus() {\n"
" let menu = new Gio.Menu();\n"
" menu.append(\"New\", 'app.new');\n"
" menu.append(\"Open\", 'app.open');\n"
@@ -33542,38 +37772,34 @@ msgid ""
" this.application.set_app_menu(menu);\n"
"\n"
" let quitAction = new Gio.SimpleAction({name: 'quit' });\n"
-" quitAction.connect('activate', Lang.bind(this,\n"
-" function() {\n"
-" this._window.destroy();\n"
-" }));\n"
+" quitAction.connect('activate', () => { this._window.destroy(); });\n"
" this.application.add_action(quitAction);\n"
-" },\n"
+" }\n"
"\n"
-" _newCB: function() {\n"
+" _newCB() {\n"
" print(\"You clicked 'New'.\");\n"
-" },\n"
+" }\n"
"\n"
-" _openCB: function() {\n"
+" _openCB() {\n"
" print(\"You clicked 'Open'.\");\n"
-" },\n"
+" }\n"
"\n"
-" _undoCB:function () {\n"
+" _undoCB() {\n"
" print (\"You clicked 'Undo'.\");\n"
-" },\n"
+" }\n"
"\n"
-" _fullscreenToggleCB: function() {\n"
+" _fullscreenToggleCB() {\n"
" if ((this._window.get_window().get_state() & Gdk.WindowState.FULLSCREEN) != 0 ) {\n"
" this._window.unfullscreen();\n"
" this._leaveFullscreenButton.hide();\n"
" this._fullscreenButton.show();\n"
-" }\n"
-" else {\n"
+" } else {\n"
" this._window.fullscreen();\n"
" this._fullscreenButton.hide();\n"
" this._leaveFullscreenButton.show();\n"
" }\n"
" }\n"
-"});\n"
+"};\n"
"\n"
"//run the application\n"
"let app = new Application();\n"
@@ -33581,58 +37807,59 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar.js.page:30
+#: C/toolbar.js.page:31
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Window.html"
"\">Gtk.Window</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar.js.page:31
+#: C/toolbar.js.page:32
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Toolbar.html"
"\">Gtk.Toolbar</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar.js.page:32
+#: C/toolbar.js.page:33
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.ToolButton."
"html\">Gtk.ToolButton</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar.js.page:33
+#: C/toolbar.js.page:34
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.html\">Gtk "
"Stock items</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar.js.page:34
+#: C/toolbar.js.page:35
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gdk.WindowState."
"html\">Gdk.WindowState</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/toolbar.py.page:7
+#: C/toolbar.py.page:8
+#, fuzzy
msgctxt "text"
msgid "Toolbar (Python)"
-msgstr ""
+msgstr "Barra de ferramentas"
#. (itstool) path: info/desc
-#: C/toolbar.py.page:19 C/toolbar_builder.py.page:32
+#: C/toolbar.py.page:20 C/toolbar_builder.py.page:33
msgid "A bar of buttons and other widgets"
msgstr ""
#. (itstool) path: page/p
-#: C/toolbar.py.page:25
+#: C/toolbar.py.page:26
msgid "An example of toolbar with buttons (from stock icons)."
msgstr ""
#. (itstool) path: section/code
-#: C/toolbar.py.page:32
+#: C/toolbar.py.page:33
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -33640,7 +37867,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"
@@ -33680,7 +37909,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"
@@ -33709,7 +37938,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"
@@ -33719,12 +37949,14 @@ msgid ""
"\n"
" # callback method for undo\n"
" def undo_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Undo\\\".\"\n"
+" print(\"You clicked \\\"Undo\\\".\")\n"
"\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"
@@ -33732,7 +37964,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"
@@ -33758,11 +37992,11 @@ msgid ""
"\n"
" # callback method for new\n"
" def new_callback(self, action, parameter):\n"
-" print \"You clicked \\\"New\\\".\"\n"
+" print(\"You clicked \\\"New\\\".\")\n"
"\n"
" # callback method for open\n"
" def open_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Open\\\".\"\n"
+" print(\"You clicked \\\"Open\\\".\")\n"
"\n"
"app = MyApplication()\n"
"exit_status = app.run(sys.argv)\n"
@@ -33770,22 +38004,23 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/toolbar.py.page:36
+#: C/toolbar.py.page:37
+#, fuzzy
msgid "Useful methods for a Toolbar widget"
-msgstr ""
+msgstr "Barra de ferramentas de widget"
#. (itstool) path: section/p
-#: C/toolbar.py.page:37
+#: C/toolbar.py.page:38
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 ""
#. (itstool) path: item/p
-#: C/toolbar.py.page:40
+#: C/toolbar.py.page:41
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 "
@@ -33793,14 +38028,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar.py.page:41
+#: C/toolbar.py.page:42
msgid ""
"<code>get_item_index(tool_item)</code> retrieves the position of "
"<code>tool_item</code> on the toolbar."
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar.py.page:42
+#: C/toolbar.py.page:43
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 "
@@ -33808,7 +38043,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar.py.page:43
+#: C/toolbar.py.page:44
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 "
@@ -33816,20 +38051,21 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar.py.page:44
+#: C/toolbar.py.page:45
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."
+"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 ""
#. (itstool) path: item/p
-#: C/toolbar.py.page:45
+#: C/toolbar.py.page:46
msgid ""
"<code>set_style(style)</code>, where <code>style</code> is one of <code>Gtk."
"ToolbarStyle.ICONS, Gtk.ToolbarStyle.TEXT, Gtk.ToolbarStyle.BOTH, Gtk."
@@ -33840,48 +38076,49 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar.py.page:54
+#: C/toolbar.py.page:55
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkToolbar.html"
"\">GtkToolbar</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar.py.page:55
+#: C/toolbar.py.page:56
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkToolButton.html"
"\">GtkToolButton</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar.py.page:56
+#: C/toolbar.py.page:57
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkToolItem.html"
"\">GtkToolItem</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar.py.page:58
+#: C/toolbar.py.page:59
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkActionable.html"
"\">GtkActionable</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar.py.page:60 C/toolbar_builder.py.page:198
+#: C/toolbar.py.page:61 C/toolbar_builder.py.page:199
msgid ""
"<link href=\"http://developer.gnome.org/gdk3/unstable/gdk3-Event-Structures."
"html#GdkEventWindowState\">Event Structures</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/toolbar.vala.page:7
+#: C/toolbar.vala.page:8
+#, fuzzy
msgctxt "text"
msgid "Toolbar (Vala)"
-msgstr ""
+msgstr "_Vala"
#. (itstool) path: page/code
-#: C/toolbar.vala.page:27
+#: C/toolbar.vala.page:28
#, no-wrap
msgid ""
"/* This is the Window */\n"
@@ -33895,7 +38132,7 @@ msgid ""
"\tGtk.ToolButton fullscreen_button;\n"
"\tGtk.ToolButton leave_fullscreen_button;\n"
"\n"
-"\t/* Contstructor */\n"
+"\t/* Constructor */\n"
"\tinternal MyWindow (MyApplication app) {\n"
"\t\tObject (application: app, title: \"Toolbar Example\");\n"
"\n"
@@ -34019,363 +38256,391 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar.vala.page:33 C/toolbar_builder.vala.page:150
-#: C/tooltip.vala.page:39
+#: C/toolbar.vala.page:34 C/toolbar_builder.vala.page:151
+#: C/tooltip.vala.page:40
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Toolbar.html\">Gtk.Toolbar</"
"link>"
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar.vala.page:34 C/toolbar_builder.vala.page:151
+#: C/toolbar.vala.page:35 C/toolbar_builder.vala.page:152
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ToolButton.html\">Gtk."
"Toolbutton</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar.vala.page:35 C/toolbar_builder.vala.page:152
+#: C/toolbar.vala.page:36 C/toolbar_builder.vala.page:153
msgid ""
"<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.
-#: C/toolbar_builder.py.page:49 C/toolbar_builder.vala.page:32
-msgctxt "_"
-msgid ""
-"external ref='media/glade_ui.png' md5='baea74fe213bc12ea934f64f6977215a'"
-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/toolbar_builder.py.page:55 C/toolbar_builder.vala.page:38
-msgctxt "_"
-msgid ""
-"external ref='media/glade_select_toolbar.png' "
-"md5='f7b5b224050b2e387eb04362fc99df00'"
-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/toolbar_builder.py.page:61 C/toolbar_builder.vala.page:44
-msgctxt "_"
-msgid ""
-"external ref='media/glade_toolbar_general.png' "
-"md5='e31daba6e8a3e526aca89d5f1622edaa'"
-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/toolbar_builder.py.page:67 C/toolbar_builder.vala.page:50
-msgctxt "_"
-msgid ""
-"external ref='media/glade_toolbar_common.png' "
-"md5='d5ec6cc0218ca98e195dbd033feb9ac5'"
-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/toolbar_builder.py.page:73 C/toolbar_builder.vala.page:56
-msgctxt "_"
-msgid ""
-"external ref='media/glade_toolbar_edit.png' "
-"md5='feb1e2b7040d24a4d030f94cf07c81fd'"
-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/toolbar_builder.py.page:132 C/toolbar_builder.vala.page:115
-msgctxt "_"
-msgid ""
-"external ref='media/glade_toolbar_editor.png' "
-"md5='8af65241e5ca47d5494a7b36640e6f1c'"
-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/toolbar_builder.py.page:141 C/toolbar_builder.vala.page:124
-msgctxt "_"
-msgid ""
-"external ref='media/glade_visible_no.png' "
-"md5='dc6c025aa825f4d772fbd283d6330026'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/toolbar_builder.py.page:7
+#: C/toolbar_builder.py.page:8
msgctxt "text"
msgid "Toolbar created using Glade (Python)"
msgstr ""
#. (itstool) path: page/title
-#: C/toolbar_builder.py.page:35 C/toolbar_builder.vala.page:22
+#: C/toolbar_builder.py.page:36 C/toolbar_builder.vala.page:23
+#, fuzzy
msgid "Toolbar created using Glade"
-msgstr ""
+msgstr "Quando você começou a usar Glade?"
#. (itstool) path: page/p
-#: C/toolbar_builder.py.page:38
+#: C/toolbar_builder.py.page:39
msgid ""
"This example is similar to <link xref=\"toolbar.py\"/>, except we use Glade "
"to create the toolbar in an XML .ui file."
msgstr ""
#. (itstool) path: section/title
-#: C/toolbar_builder.py.page:43
+#: C/toolbar_builder.py.page:44
+#, fuzzy
msgid "Creating the toolbar with Glade"
-msgstr ""
+msgstr "Barra de ferramentas"
#. (itstool) path: section/p
#. (itstool) path: page/p
-#: C/toolbar_builder.py.page:44 C/toolbar_builder.vala.page:27
+#: C/toolbar_builder.py.page:45 C/toolbar_builder.vala.page:28
msgid ""
"To create the toolbar using the <link href=\"http://glade.gnome.org/\">Glade "
"Interface Designer</link>:"
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:48 C/toolbar_builder.vala.page:31
+#: C/toolbar_builder.py.page:49 C/toolbar_builder.vala.page:32
msgid "Open Glade, and save the file as <file>toolbar_builder.ui</file>"
msgstr ""
+#. (itstool) path: p/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/toolbar_builder.py.page:50 C/toolbar_builder.vala.page:33
+msgctxt "_"
+msgid ""
+"external ref='media/glade_ui.png' md5='baea74fe213bc12ea934f64f6977215a'"
+msgstr ""
+"external ref='media/glade_ui.png' md5='baea74fe213bc12ea934f64f6977215a'"
+
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:49 C/toolbar_builder.vala.page:32
+#: C/toolbar_builder.py.page:50 C/toolbar_builder.vala.page:33
msgid ""
"<media type=\"image\" src=\"media/glade_ui.png\" width=\"900\"> Screenshot "
"of Glade ui </media>"
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:54 C/toolbar_builder.vala.page:37
+#: C/toolbar_builder.py.page:55 C/toolbar_builder.vala.page:38
msgid ""
"Under <gui>Containers</gui> on the left hand side, right click on the "
"toolbar icon and select <gui>Add widget as toplevel</gui>."
msgstr ""
+#. (itstool) path: p/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/toolbar_builder.py.page:56 C/toolbar_builder.vala.page:39
+msgctxt "_"
+msgid ""
+"external ref='media/glade_select_toolbar.png' "
+"md5='f7b5b224050b2e387eb04362fc99df00'"
+msgstr ""
+
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:55 C/toolbar_builder.vala.page:38
+#: C/toolbar_builder.py.page:56 C/toolbar_builder.vala.page:39
msgid ""
"<media type=\"image\" src=\"media/glade_select_toolbar.png\"> Screenshot of "
"toolbar icon in Glade ui </media>"
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:60 C/toolbar_builder.vala.page:43
+#: C/toolbar_builder.py.page:61 C/toolbar_builder.vala.page:44
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 ""
+#. (itstool) path: p/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/toolbar_builder.py.page:62 C/toolbar_builder.vala.page:45
+msgctxt "_"
+msgid ""
+"external ref='media/glade_toolbar_general.png' "
+"md5='e31daba6e8a3e526aca89d5f1622edaa'"
+msgstr ""
+
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:61 C/toolbar_builder.vala.page:44
+#: C/toolbar_builder.py.page:62 C/toolbar_builder.vala.page:45
msgid ""
"<media type=\"image\" src=\"media/glade_toolbar_general.png\"> Screenshot of "
"General tab </media>"
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:66 C/toolbar_builder.vala.page:49
+#: C/toolbar_builder.py.page:67 C/toolbar_builder.vala.page:50
msgid ""
"Under the <gui>Common</gui> tab, set <gui>Horizontal Expand</gui> to "
"<gui>Yes</gui>."
msgstr ""
+#. (itstool) path: p/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/toolbar_builder.py.page:68 C/toolbar_builder.vala.page:51
+msgctxt "_"
+msgid ""
+"external ref='media/glade_toolbar_common.png' "
+"md5='d5ec6cc0218ca98e195dbd033feb9ac5'"
+msgstr ""
+
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:67 C/toolbar_builder.vala.page:50
+#: C/toolbar_builder.py.page:68 C/toolbar_builder.vala.page:51
msgid ""
"<media type=\"image\" src=\"media/glade_toolbar_common.png\"> Screenshot of "
"Common tab </media>"
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:72 C/toolbar_builder.vala.page:55
+#: C/toolbar_builder.py.page:73 C/toolbar_builder.vala.page:56
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 ""
+#. (itstool) path: p/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/toolbar_builder.py.page:74 C/toolbar_builder.vala.page:57
+msgctxt "_"
+msgid ""
+"external ref='media/glade_toolbar_edit.png' "
+"md5='feb1e2b7040d24a4d030f94cf07c81fd'"
+msgstr ""
+
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:73 C/toolbar_builder.vala.page:56
+#: C/toolbar_builder.py.page:74 C/toolbar_builder.vala.page:57
msgid ""
"<media type=\"image\" src=\"media/glade_toolbar_edit.png\"> Screenshot of "
"where to right click to edit toolbar. </media>"
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:78 C/toolbar_builder.vala.page:61
+#: C/toolbar_builder.py.page:79 C/toolbar_builder.vala.page:62
msgid ""
"We want to add 5 ToolButtons: New, Open, Undo, Fullscreen and Leave "
"Fullscreen. First, we will add the New ToolButton."
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:81 C/toolbar_builder.vala.page:64
+#: C/toolbar_builder.py.page:82 C/toolbar_builder.vala.page:65
msgid "Under <gui>Hierarchy</gui> tab, click <gui>Add</gui>."
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:82 C/toolbar_builder.vala.page:65
+#: C/toolbar_builder.py.page:83 C/toolbar_builder.vala.page:66
msgid "Change the name of the ToolItem to <input>new_button</input>."
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:83 C/toolbar_builder.vala.page:66
+#: C/toolbar_builder.py.page:84 C/toolbar_builder.vala.page:67
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 ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:84 C/toolbar_builder.vala.page:67
+#: C/toolbar_builder.py.page:85 C/toolbar_builder.vala.page:68
msgid "Enter the <gui>action name</gui>: <input>app.new</input>."
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:85 C/toolbar_builder.vala.page:68
+#: C/toolbar_builder.py.page:86 C/toolbar_builder.vala.page:69
msgid "Change the <gui>Label</gui> to <input>New</input>."
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:86 C/toolbar_builder.vala.page:69
+#: C/toolbar_builder.py.page:87 C/toolbar_builder.vala.page:70
msgid ""
"Select the <gui>New</gui> Stock Id from the drop down menu, or type "
"<input>gtk-new</input>."
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:88 C/toolbar_builder.vala.page:71
+#: C/toolbar_builder.py.page:89 C/toolbar_builder.vala.page:72
msgid ""
"Repeat the above steps for the remaining ToolButtons, with the following "
"properties:"
msgstr ""
#. (itstool) path: td/p
-#: C/toolbar_builder.py.page:95 C/toolbar_builder.vala.page:78
+#: C/toolbar_builder.py.page:96 C/toolbar_builder.vala.page:79
+#, fuzzy
msgid "Is important"
-msgstr ""
+msgstr "É importante"
#. (itstool) path: td/p
-#: C/toolbar_builder.py.page:96 C/toolbar_builder.vala.page:79
+#: C/toolbar_builder.py.page:97 C/toolbar_builder.vala.page:80
+#, fuzzy
msgid "Action name"
-msgstr ""
+msgstr "Nome da ação"
#. (itstool) path: td/p
-#: C/toolbar_builder.py.page:98 C/toolbar_builder.vala.page:81
+#: C/toolbar_builder.py.page:99 C/toolbar_builder.vala.page:82
+#, fuzzy
msgid "Stock Id"
-msgstr ""
+msgstr "ID de predefinição"
#. (itstool) path: td/p
-#: C/toolbar_builder.py.page:103 C/toolbar_builder.vala.page:86
+#: C/toolbar_builder.py.page:104 C/toolbar_builder.vala.page:87
+#, fuzzy
msgid "open_button"
msgstr ""
+"As ações de notificação não devem duplicar a ação padrão. Por exemplo, uma "
+"nova notificação de e-mail não precisa incluir um botão Open, uma vez que a "
+"ação padrão já deve executar essa ação."
#. (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
+#: C/toolbar_builder.py.page:105 C/toolbar_builder.py.page:112
+#: C/toolbar_builder.py.page:119 C/toolbar_builder.py.page:126
+#: C/toolbar_builder.vala.page:88 C/toolbar_builder.vala.page:95
+#: C/toolbar_builder.vala.page:102 C/toolbar_builder.vala.page:109
+#, fuzzy
msgid "Yes"
-msgstr ""
+msgstr "Sim"
#. (itstool) path: td/p
-#: C/toolbar_builder.py.page:105 C/toolbar_builder.vala.page:88
+#: C/toolbar_builder.py.page:106 C/toolbar_builder.vala.page:89
msgid "app.open"
msgstr ""
#. (itstool) path: td/p
-#: C/toolbar_builder.py.page:106 C/toolbar_builder.vala.page:89
+#: C/toolbar_builder.py.page:107 C/toolbar_builder.vala.page:90
+#, fuzzy
msgid "Open"
-msgstr ""
+msgstr "Abre"
#. (itstool) path: td/p
-#: C/toolbar_builder.py.page:107 C/toolbar_builder.vala.page:90
+#: C/toolbar_builder.py.page:108 C/toolbar_builder.vala.page:91
+#, fuzzy
msgid "gtk-open"
-msgstr ""
+msgstr "GTK+"
#. (itstool) path: td/p
-#: C/toolbar_builder.py.page:110 C/toolbar_builder.vala.page:93
+#: C/toolbar_builder.py.page:111 C/toolbar_builder.vala.page:94
+#, fuzzy
msgid "undo_button"
msgstr ""
+"O arquivo será movido para a lixeira e você terá a opção de <gui>Desfazer</"
+"gui> a exclusão. O botão <gui>Desfazer</gui> aparecerá por poucos segundos. "
+"Se você selecionar <gui>Desfazer</gui>, o arquivo será restaurado para sua "
+"localização original."
#. (itstool) path: td/p
-#: C/toolbar_builder.py.page:112 C/toolbar_builder.vala.page:95
+#: C/toolbar_builder.py.page:113 C/toolbar_builder.vala.page:96
msgid "win.undo"
msgstr ""
#. (itstool) path: td/p
-#: C/toolbar_builder.py.page:113 C/toolbar_builder.vala.page:96
+#: C/toolbar_builder.py.page:114 C/toolbar_builder.vala.page:97
+#, fuzzy
msgid "Undo"
-msgstr ""
+msgstr "Desfazer"
#. (itstool) path: td/p
-#: C/toolbar_builder.py.page:114 C/toolbar_builder.vala.page:97
+#: C/toolbar_builder.py.page:115 C/toolbar_builder.vala.page:98
+#, fuzzy
msgid "gtk-undo"
-msgstr ""
+msgstr "GTK+"
#. (itstool) path: td/p
-#: C/toolbar_builder.py.page:117 C/toolbar_builder.vala.page:100
+#: C/toolbar_builder.py.page:118 C/toolbar_builder.vala.page:101
+#, fuzzy
msgid "fullscreen_button"
msgstr ""
+"Para ampliar no modo de tela cheia, vá até "
+"<menuchoice><shortcut><keycap>F11</keycap></shortcut><guimenu>Ver</"
+"guimenu><guimenuitem>Tela cheia</guimenuitem></menuchoice>. Você também pode "
+"usar a tecla <keycap>F</keycap> para alternar o modo de tela cheia. Para "
+"sair do modo de tela cheia, clique no botão <guibutton>Sair da tela cheia</"
+"guibutton> ou pressione <keycap>Esc</keycap>, <keycap>F11</keycap> ou "
+"<keycap>F</keycap>."
#. (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
+#: C/toolbar_builder.py.page:120 C/toolbar_builder.py.page:127
+#: C/toolbar_builder.vala.page:103 C/toolbar_builder.vala.page:110
msgid "win.fullscreen"
msgstr ""
#. (itstool) path: td/p
-#: C/toolbar_builder.py.page:120 C/toolbar_builder.vala.page:103
+#: C/toolbar_builder.py.page:121 C/toolbar_builder.vala.page:104
+#, fuzzy
msgid "Fullscreen"
-msgstr ""
+msgstr "Tela cheia"
#. (itstool) path: td/p
-#: C/toolbar_builder.py.page:121 C/toolbar_builder.vala.page:104
+#: C/toolbar_builder.py.page:122 C/toolbar_builder.vala.page:105
+#, fuzzy
msgid "gtk-fullscreen"
-msgstr ""
+msgstr "_Tela cheia"
#. (itstool) path: td/p
-#: C/toolbar_builder.py.page:124 C/toolbar_builder.vala.page:107
+#: C/toolbar_builder.py.page:125 C/toolbar_builder.vala.page:108
+#, fuzzy
msgid "leave_fullscreen_button"
msgstr ""
+"Para ampliar no modo de tela cheia, vá até "
+"<menuchoice><shortcut><keycap>F11</keycap></shortcut><guimenu>Ver</"
+"guimenu><guimenuitem>Tela cheia</guimenuitem></menuchoice>. Você também pode "
+"usar a tecla <keycap>F</keycap> para alternar o modo de tela cheia. Para "
+"sair do modo de tela cheia, clique no botão <guibutton>Sair da tela cheia</"
+"guibutton> ou pressione <keycap>Esc</keycap>, <keycap>F11</keycap> ou "
+"<keycap>F</keycap>."
#. (itstool) path: td/p
-#: C/toolbar_builder.py.page:127 C/toolbar_builder.vala.page:110
+#: C/toolbar_builder.py.page:128 C/toolbar_builder.vala.page:111
+#, fuzzy
msgid "Leave Fullscreen"
-msgstr ""
+msgstr "Sair do modo tela cheia"
#. (itstool) path: td/p
-#: C/toolbar_builder.py.page:128 C/toolbar_builder.vala.page:111
+#: C/toolbar_builder.py.page:129 C/toolbar_builder.vala.page:112
+#, fuzzy
msgid "gtk-leave-fullscreen"
+msgstr "_Sair da tela cheia"
+
+#. (itstool) path: item/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/toolbar_builder.py.page:133 C/toolbar_builder.vala.page:116
+msgctxt "_"
+msgid ""
+"external ref='media/glade_toolbar_editor.png' "
+"md5='8af65241e5ca47d5494a7b36640e6f1c'"
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:137 C/toolbar_builder.vala.page:120
+#: C/toolbar_builder.py.page:138 C/toolbar_builder.vala.page:121
msgid "Close the <gui>Tool Bar Editor</gui>."
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:140
+#: C/toolbar_builder.py.page:141
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 "
@@ -34387,20 +38652,33 @@ msgid ""
"code> separately on all the elements."
msgstr ""
+#. (itstool) path: p/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/toolbar_builder.py.page:142 C/toolbar_builder.vala.page:125
+msgctxt "_"
+msgid ""
+"external ref='media/glade_visible_no.png' "
+"md5='dc6c025aa825f4d772fbd283d6330026'"
+msgstr ""
+
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:141 C/toolbar_builder.vala.page:124
+#: C/toolbar_builder.py.page:142 C/toolbar_builder.vala.page:125
msgid ""
"<media type=\"image\" src=\"media/glade_visible_no.png\"> Setting the "
"visible property to No </media>"
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:146 C/toolbar_builder.vala.page:129
+#: C/toolbar_builder.py.page:147 C/toolbar_builder.vala.page:130
+#, fuzzy
msgid "Save your work, and close Glade."
-msgstr ""
+msgstr "Salve seu arquivo para trabalhar nele posteriormente."
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:149 C/toolbar_builder.vala.page:132
+#: C/toolbar_builder.py.page:150 C/toolbar_builder.vala.page:133
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."
@@ -34410,7 +38688,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/code
-#: C/toolbar_builder.py.page:150 C/toolbar_builder.vala.page:133
+#: C/toolbar_builder.py.page:151 C/toolbar_builder.vala.page:134
#, no-wrap
msgid ""
"\n"
@@ -34421,7 +38699,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:155 C/toolbar_builder.vala.page:138
+#: C/toolbar_builder.py.page:156 C/toolbar_builder.vala.page:139
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 "
@@ -34430,7 +38708,7 @@ msgstr ""
#. (itstool) path: section/code
#. (itstool) path: page/code
-#: C/toolbar_builder.py.page:158 C/toolbar_builder.vala.page:141
+#: C/toolbar_builder.py.page:159 C/toolbar_builder.vala.page:142
#, no-wrap
msgid ""
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
@@ -34531,14 +38809,14 @@ msgstr ""
#. (itstool) path: section/p
#. (itstool) path: page/p
-#: C/toolbar_builder.py.page:165 C/toolbar_builder.vala.page:143
+#: C/toolbar_builder.py.page:166 C/toolbar_builder.vala.page:144
msgid ""
"We now create the code below, which adds the toolbar from the file we just "
"created."
msgstr ""
#. (itstool) path: section/code
-#: C/toolbar_builder.py.page:166
+#: C/toolbar_builder.py.page:167
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -34546,7 +38824,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"
@@ -34565,14 +38845,15 @@ msgid ""
" try:\n"
" builder.add_from_file(\"toolbar_builder.ui\")\n"
" except:\n"
-" print \"file not found\"\n"
+" print(\"file not found\")\n"
" sys.exit()\n"
" # and attach it to the grid\n"
" grid.attach(builder.get_object(\"toolbar\"), 0, 0, 1, 1)\n"
"\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"
@@ -34589,12 +38870,14 @@ msgid ""
"\n"
" # callback for undo\n"
" def undo_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Undo\\\".\"\n"
+" print(\"You clicked \\\"Undo\\\".\")\n"
"\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"
@@ -34604,7 +38887,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"
@@ -34632,11 +38917,11 @@ msgid ""
"\n"
" # callback for new\n"
" def new_callback(self, action, parameter):\n"
-" print \"You clicked \\\"New\\\".\"\n"
+" print(\"You clicked \\\"New\\\".\")\n"
"\n"
" # callback for open\n"
" def open_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Open\\\".\"\n"
+" print(\"You clicked \\\"Open\\\".\")\n"
"\n"
"app = MyApplication()\n"
"exit_status = app.run(sys.argv)\n"
@@ -34644,37 +38929,38 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/toolbar_builder.py.page:171
+#: C/toolbar_builder.py.page:172
+#, fuzzy
msgid "Useful methods for Gtk.Builder"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: section/p
-#: C/toolbar_builder.py.page:172
+#: C/toolbar_builder.py.page:173
msgid ""
"For the useful methods for a Toolbar widget, see <link xref=\"toolbar.py\"/>"
msgstr ""
#. (itstool) path: section/p
-#: C/toolbar_builder.py.page:174
+#: C/toolbar_builder.py.page:175
msgid "Gtk.Builder builds an interface from an XML UI definition."
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:177
+#: C/toolbar_builder.py.page:178
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 ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:178
+#: C/toolbar_builder.py.page:179
msgid ""
"<code>add_from_string(string)</code> parses the given string and merges it "
"with the current contents of the Gtk.Builder."
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:179
+#: C/toolbar_builder.py.page:180
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 "
@@ -34682,27 +38968,27 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:180
+#: C/toolbar_builder.py.page:181
msgid ""
-"<code>add_objects_from_string(filename, object_ids)</code> is the same as "
+"<code>add_objects_from_string(string, 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 ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:181
+#: C/toolbar_builder.py.page:182
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 ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:182
+#: C/toolbar_builder.py.page:183
msgid "<code>get_objects()</code> returns all loaded objects."
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar_builder.py.page:183
+#: C/toolbar_builder.py.page:184
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 "
@@ -34716,20 +39002,20 @@ msgid ""
msgstr ""
#. (itstool) path: info/title
-#: C/toolbar_builder.vala.page:7
+#: C/toolbar_builder.vala.page:8
msgctxt "text"
msgid "Toolbar created using Glade (Vala)"
msgstr ""
#. (itstool) path: page/p
-#: C/toolbar_builder.vala.page:25
+#: C/toolbar_builder.vala.page:26
msgid ""
"This example is similar to <link xref=\"toolbar.vala\"/>, except we use "
"Glade to create the toolbar in an XML ui file."
msgstr ""
#. (itstool) path: item/p
-#: C/toolbar_builder.vala.page:123
+#: C/toolbar_builder.vala.page:124
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 "
@@ -34740,7 +39026,7 @@ msgid ""
msgstr ""
#. (itstool) path: page/code
-#: C/toolbar_builder.vala.page:144
+#: C/toolbar_builder.vala.page:145
#, no-wrap
msgid ""
"/* This is the Window */\n"
@@ -34752,7 +39038,7 @@ msgid ""
"\tGtk.ToolButton fullscreen_button;\n"
"\tGtk.ToolButton leave_fullscreen_button;\n"
"\n"
-"\t/* Contstructor */\n"
+"\t/* Constructor */\n"
"\tinternal MyWindow (MyApplication app) {\n"
"\t\tObject (application: app, title: \"Toolbar Example\");\n"
"\n"
@@ -34848,49 +39134,54 @@ 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.c.page:22 C/tooltip.js.page:22 C/tooltip.py.page:23
-#: C/tooltip.vala.page:22
-msgctxt "_"
-msgid "external ref='media/tooltip.png' md5='41e35860a51e39cb48c71e57bb8fb1d0'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/tooltip.c.page:7
+#: C/tooltip.c.page:8
+#, fuzzy
msgctxt "text"
msgid "Tooltip (C)"
-msgstr ""
+msgstr "Dica de ferramenta:"
#. (itstool) path: info/desc
-#: C/tooltip.c.page:18 C/tooltip.js.page:18 C/tooltip.py.page:19
-#: C/tooltip.vala.page:18
+#: C/tooltip.c.page:19 C/tooltip.js.page:19 C/tooltip.py.page:20
+#: C/tooltip.vala.page:19
+#, fuzzy
msgid "Add tips to your widgets"
-msgstr ""
+msgstr "Dicas para seus próximos jogos"
#. (itstool) path: page/title
-#: C/tooltip.c.page:21 C/tooltip.js.page:21 C/tooltip.py.page:22
-#: C/tooltip.vala.page:21
+#: C/tooltip.c.page:22 C/tooltip.js.page:22 C/tooltip.py.page:23
+#: C/tooltip.vala.page:22
+#, fuzzy
msgid "Tooltip"
-msgstr ""
+msgstr "Dica de ferramenta:"
-#. (itstool) path: page/p
+#. (itstool) path: page/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.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."
+msgctxt "_"
+msgid "external ref='media/tooltip.png' md5='41e35860a51e39cb48c71e57bb8fb1d0'"
msgstr ""
+"external ref='media/tooltip.png' md5='41e35860a51e39cb48c71e57bb8fb1d0'"
+
+#. (itstool) path: page/p
+#: C/tooltip.c.page:24 C/tooltip.js.page:24 C/tooltip.py.page:25
+#: C/tooltip.vala.page:24
+#, fuzzy
+msgid "A toolbar with a tooltip (with an image) for a button."
+msgstr "Clique no botão de marcação na barra de ferramentas."
#. (itstool) path: note/p
-#: C/tooltip.c.page:25
+#: C/tooltip.c.page:26
msgid ""
"This example builds on the <link xref=\"toolbar.c\">Toolbar</link> example."
msgstr ""
#. (itstool) path: section/code
-#: C/tooltip.c.page:30
+#: C/tooltip.c.page:31
#, no-wrap
msgid ""
"#include <gtk/gtk.h>\n"
@@ -35080,82 +39371,93 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/tooltip.c.page:37 C/tooltip.py.page:58
+#: C/tooltip.c.page:38 C/tooltip.py.page:59
+#, fuzzy
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkTooltip.html"
"\">GtkTooltip</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/\">Manual de referência</"
+"link>"
#. (itstool) path: item/p
-#: C/tooltip.c.page:39 C/tooltip.py.page:60
+#: C/tooltip.c.page:40 C/tooltip.py.page:61
+#, fuzzy
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/stable/GtkWidget.html"
"\">GtkWidget</link>"
msgstr ""
+"<link href=\"http://developer.gnome.org/gtk3/stable/\">Manual de referência</"
+"link>"
#. (itstool) path: item/p
-#: C/tooltip.c.page:40 C/tooltip.js.page:39 C/tooltip.py.page:61
+#: C/tooltip.c.page:41 C/tooltip.js.page:40 C/tooltip.py.page:62
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
+#: C/tooltip.js.page:8
+#, fuzzy
msgctxt "text"
msgid "Tooltip (JavaScript)"
-msgstr ""
+msgstr "Dica de ferramenta:"
#. (itstool) path: note/p
-#: C/tooltip.js.page:24
+#: C/tooltip.js.page:25
msgid ""
"This example builds on the <link xref=\"toolbar.js\">Toolbar</link> example."
msgstr ""
#. (itstool) path: section/code
-#: C/tooltip.js.page:29
+#: C/tooltip.js.page:30
#, no-wrap
msgid ""
"//!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gdk = '3.0';\n"
+"imports.gi.versions.Gtk = '3.0';\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"
+"class TooltipExample {\n"
" // Create the application \n"
-" _init: function () {\n"
-" this.application = new Gtk.Application ({ application_id: 'org.example.jstooltip' });\n"
+" constructor() {\n"
+" this.application = new Gtk.Application({\n"
+" application_id: 'org.example.jstooltip'\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"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents windows when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this.window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function () {\n"
-" this._buildUI ();\n"
-" },\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function () {\n"
+" _buildUI() {\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"
+" this.window = new Gtk.ApplicationWindow({\n"
+" 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"
"\n"
" this.grid = new Gtk.Grid();\n"
"\n"
@@ -35168,25 +39470,26 @@ msgid ""
" 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._newAction.connect(\"activate\", this._newCallback.bind(this));\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._openAction.connect(\"activate\", this._openCallback.bind(this));\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._undoAction.connect(\"activate\", this._undoCallback.bind(this));\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._fullScreenAction.connect(\"activate\",\n"
+" this._fullScreenCallback.bind(this));\n"
" this.window.add_action(this._fullScreenAction);\n"
"\n"
" this.window.show_all();\n"
-" },\n"
+" }\n"
"\n"
-" _createToolbar: function(){\n"
+" _createToolbar() {\n"
" this.toolbar = new Gtk.Toolbar();\n"
" this.toolbar.get_style_context().add_class(Gtk.STYLE_CLASS_PRIMARY_TOOLBAR);\n"
"\n"
@@ -35215,7 +39518,7 @@ msgid ""
" 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.connect(\"query-tooltip\", this._undoTooltipCallback.bind(this));\n"
" this.undoButton.set_is_important(true);\n"
" this.toolbar.insert(this.undoButton, 2);\n"
" this.undoButton.show();\n"
@@ -35228,31 +39531,31 @@ msgid ""
" this.fullscreenButton.set_action_name(\"win.fullscreenToggle\");\n"
"\n"
" return this.toolbar;\n"
-" },\n"
+" }\n"
"\n"
-" _newCallback: function(action, parameter) {\n"
+" _newCallback(action, parameter) {\n"
" print(\"You clicked \\\"New\\\".\");\n"
-" },\n"
+" }\n"
"\n"
-" _openCallback: function(action, parameter) {\n"
+" _openCallback(action, parameter) {\n"
" print(\"You clicked \\\"Open\\\".\");\n"
-" },\n"
+" }\n"
"\n"
" // the callback function for the tooltip of the \"undo\" button\n"
-" _undoTooltipCallback: function(widget, x, y, keyboard_mode, tooltip) {\n"
+" _undoTooltipCallback(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"
"\n"
-" _undoCallback: function(action, parameter) {\n"
+" _undoCallback(action, parameter) {\n"
" print(\"You clicked \\\"Undo\\\".\");\n"
-" },\n"
+" }\n"
"\n"
-" _fullScreenCallback: function() {\n"
+" _fullScreenCallback() {\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"
@@ -35263,7 +39566,7 @@ msgid ""
" this.window.fullscreen();\n"
" }\n"
" }\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new TooltipExample ();\n"
@@ -35271,40 +39574,41 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/tooltip.js.page:36
+#: C/tooltip.js.page:37
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Tooltip.html"
"\">GtkTooltip</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/tooltip.js.page:37
+#: C/tooltip.js.page:38
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Toolbar.html"
"\">GtkToolbar</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/tooltip.js.page:38
+#: C/tooltip.js.page:39
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Widget.html"
"\">GtkWidget</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/tooltip.py.page:7
+#: C/tooltip.py.page:8
+#, fuzzy
msgctxt "text"
msgid "Tooltip (Python)"
-msgstr ""
+msgstr "_Python"
#. (itstool) path: note/p
-#: C/tooltip.py.page:25
+#: C/tooltip.py.page:26
msgid ""
"This example builds on the <link xref=\"toolbar.py\">Toolbar</link> example."
msgstr ""
#. (itstool) path: section/code
-#: C/tooltip.py.page:31
+#: C/tooltip.py.page:32
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -35312,9 +39616,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"
@@ -35337,11 +39644,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"
@@ -35350,7 +39657,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"
@@ -35360,7 +39667,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"
@@ -35371,7 +39678,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"
@@ -35388,10 +39696,11 @@ msgid ""
" return True\n"
"\n"
" def undo_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Undo\\\".\"\n"
+" 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"
@@ -35399,7 +39708,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"
@@ -35419,10 +39730,10 @@ msgid ""
" app.add_action(open_action)\n"
"\n"
" def new_callback(self, action, parameter):\n"
-" print \"You clicked \\\"New\\\".\"\n"
+" print(\"You clicked \\\"New\\\".\")\n"
"\n"
" def open_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Open\\\".\"\n"
+" print(\"You clicked \\\"Open\\\".\")\n"
"\n"
"app = MyApplication()\n"
"exit_status = app.run(sys.argv)\n"
@@ -35430,12 +39741,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/tooltip.py.page:35
+#: C/tooltip.py.page:36
+#, fuzzy
msgid "Useful methods for a Tooltip widget"
-msgstr ""
+msgstr "Se o componente tem dica de ferramenta"
#. (itstool) path: section/p
-#: C/tooltip.py.page:37
+#: C/tooltip.py.page:38
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 "
@@ -35443,12 +39755,12 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/tooltip.py.page:38
+#: C/tooltip.py.page:39
msgid "For more complex tooltips, for instance for a tooltip with an image:"
msgstr ""
#. (itstool) path: item/p
-#: C/tooltip.py.page:40
+#: C/tooltip.py.page:41
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 "
@@ -35456,7 +39768,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/tooltip.py.page:41
+#: C/tooltip.py.page:42
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 "
@@ -35469,14 +39781,14 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/tooltip.py.page:42
+#: C/tooltip.py.page:43
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 ""
#. (itstool) path: section/p
-#: C/tooltip.py.page:45
+#: C/tooltip.py.page:46
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 "
@@ -35484,21 +39796,21 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/tooltip.py.page:47
+#: C/tooltip.py.page:48
msgid ""
"Set <code>\"has-tooltip\"</code> and connect to <code>\"query-tooltip\"</"
"code> as before."
msgstr ""
#. (itstool) path: item/p
-#: C/tooltip.py.page:48
+#: C/tooltip.py.page:49
msgid ""
"Use <code>set_tooltip_window()</code> on the widget to set a GtkWindow "
"created by you as tooltip window."
msgstr ""
#. (itstool) path: item/p
-#: C/tooltip.py.page:49
+#: C/tooltip.py.page:50
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 "
@@ -35507,20 +39819,21 @@ msgid ""
msgstr ""
#. (itstool) path: info/title
-#: C/tooltip.vala.page:7
+#: C/tooltip.vala.page:8
+#, fuzzy
msgctxt "text"
msgid "Tooltip (Vala)"
-msgstr ""
+msgstr "Dica de ferramenta:"
#. (itstool) path: note/p
-#: C/tooltip.vala.page:24
+#: C/tooltip.vala.page:25
msgid ""
"This example builds on the <link xref=\"toolbar.vala\">Toolbar</link> "
"example."
msgstr ""
#. (itstool) path: section/code
-#: C/tooltip.vala.page:30
+#: C/tooltip.vala.page:31
#, no-wrap
msgid ""
"/* This is the Window */\n"
@@ -35534,7 +39847,7 @@ msgid ""
"\tGtk.ToolButton fullscreen_button;\n"
"\tGtk.ToolButton leave_fullscreen_button;\n"
"\n"
-"\t/* Contstructor */\n"
+"\t/* Constructor */\n"
"\tinternal MyWindow (MyApplication app) {\n"
"\t\tObject (application: app, title: \"Toolbar with Tooltips Example\");\n"
"\n"
@@ -35686,64 +39999,65 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/tooltip.vala.page:38
+#: C/tooltip.vala.page:39
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Tooltip.html\">Gtk.Tooltip</"
"link>"
msgstr ""
#. (itstool) path: item/p
-#: C/tooltip.vala.page:40
+#: C/tooltip.vala.page:41
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Widget.query_tooltip.html"
"\">Gtk.Widget.query_tooltip</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/tooltip.vala.page:41
+#: C/tooltip.vala.page:42
msgid ""
"<link href=\"https://developer.gnome.org/gtk3/3.4/gtk3-Stock-Items.html#GTK-"
"STOCK-UNDO:CAPS\">Stock Items</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_advanced_liststore.py.page:22
-msgctxt "_"
-msgid ""
-"external ref='media/treeview_advanced_liststore.png' "
-"md5='102b512197fb9aa4ed9a16462f6af911'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/treeview_advanced_liststore.py.page:7
+#: C/treeview_advanced_liststore.py.page:8
msgctxt "text"
msgid "Simple Treeview with ListStore (Python)"
msgstr ""
#. (itstool) path: info/desc
-#: C/treeview_advanced_liststore.py.page:18
+#: C/treeview_advanced_liststore.py.page:19
msgid "A TreeView displaying a ListStore (more complex example)"
msgstr ""
#. (itstool) path: page/title
-#: C/treeview_advanced_liststore.py.page:21
+#: C/treeview_advanced_liststore.py.page:22
+#, fuzzy
msgid "More Complex Treeview with ListStore"
+msgstr "Funções para números complexos, conversão de base, e outras"
+
+#. (itstool) path: page/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:23
+msgctxt "_"
+msgid ""
+"external ref='media/treeview_advanced_liststore.png' "
+"md5='102b512197fb9aa4ed9a16462f6af911'"
msgstr ""
#. (itstool) path: page/p
-#: C/treeview_advanced_liststore.py.page:23
-#: C/treeview_simple_liststore.py.page:24
+#: C/treeview_advanced_liststore.py.page:24
+#: C/treeview_simple_liststore.py.page:25
msgid ""
"This TreeView displays a simple ListStore with the selection \"changed\" "
"signal connected."
msgstr ""
#. (itstool) path: section/code
-#: C/treeview_advanced_liststore.py.page:30
+#: C/treeview_advanced_liststore.py.page:31
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -35757,7 +40071,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"
@@ -35807,9 +40123,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"
@@ -35817,9 +40136,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"
@@ -35830,7 +40150,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"
@@ -35840,15 +40160,15 @@ 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"
-" print \"Select a title to remove\"\n"
+" print(\"Select a title to remove\")\n"
" # else, if there are no entries in the model, print \"Empty list\"\n"
" # in the terminal\n"
" else:\n"
-" print \"Empty list\"\n"
+" print(\"Empty list\")\n"
"\n"
" def remove_all_cb(self, button):\n"
" # if there is still an entry in the model\n"
@@ -35858,10 +40178,11 @@ msgid ""
" iter = self.listmodel.get_iter(0)\n"
" self.listmodel.remove(iter)\n"
" # print a message in the terminal alerting that the model is empty\n"
-" print \"Empty list\"\n"
+" print(\"Empty list\")\n"
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -35878,15 +40199,16 @@ msgid ""
msgstr ""
#. (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
+#: C/treeview_advanced_liststore.py.page:35
+#: C/treeview_cellrenderertoggle.py.page:35
+#: C/treeview_simple_liststore.py.page:36 C/treeview_treestore.py.page:36
+#, fuzzy
msgid "Useful methods for a TreeView widget"
-msgstr ""
+msgstr "Widget de visualização em árvore"
#. (itstool) path: section/p
-#: C/treeview_advanced_liststore.py.page:35
-#: C/treeview_cellrenderertoggle.py.page:35 C/treeview_treestore.py.page:36
+#: C/treeview_advanced_liststore.py.page:36
+#: C/treeview_cellrenderertoggle.py.page:36 C/treeview_treestore.py.page:37
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 "
@@ -35897,53 +40219,55 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/treeview_advanced_liststore.py.page:36
+#: C/treeview_advanced_liststore.py.page:37
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."
-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
-msgctxt "_"
-msgid ""
-"external ref='media/treeview_cellrenderertoggle.png' "
-"md5='ade9b9437f8f83150acf37610dab834d'"
+"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: info/title
-#: C/treeview_cellrenderertoggle.py.page:7 C/treeview_treestore.py.page:7
+#: C/treeview_cellrenderertoggle.py.page:8 C/treeview_treestore.py.page:8
+#, fuzzy
msgctxt "text"
msgid "TreeView with TreeStore (Python)"
-msgstr ""
+msgstr "TreeView – TreeStore"
#. (itstool) path: info/desc
-#: C/treeview_cellrenderertoggle.py.page:18
+#: C/treeview_cellrenderertoggle.py.page:19
msgid ""
"A TreeView displaying a TreeStore (more complex example, with "
"CellRendererToggle)"
msgstr ""
#. (itstool) path: page/title
-#: C/treeview_cellrenderertoggle.py.page:21
+#: C/treeview_cellrenderertoggle.py.page:22
+#, fuzzy
msgid "More Complex TreeView with TreeStore"
+msgstr "TreeView – TreeStore"
+
+#. (itstool) path: page/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:23
+msgctxt "_"
+msgid ""
+"external ref='media/treeview_cellrenderertoggle.png' "
+"md5='ade9b9437f8f83150acf37610dab834d'"
msgstr ""
#. (itstool) path: page/p
-#: C/treeview_cellrenderertoggle.py.page:23
+#: C/treeview_cellrenderertoggle.py.page:24
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
+#: C/treeview_cellrenderertoggle.py.page:31
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -35951,10 +40275,13 @@ msgid ""
"import sys\n"
"\n"
"books = [[\"Tolstoy, Leo\", [\"War and Peace\", True], [\"Anna Karenina\", False]],\n"
-" [\"Shakespeare, William\", [\"Hamlet\", False], [\"Macbeth\", True], [\"Othello\", 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"
@@ -35968,7 +40295,8 @@ msgid ""
" # 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"
+" # 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"
@@ -36017,9 +40345,11 @@ msgid ""
" 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"
+" # 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 the author)\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"
@@ -36033,7 +40363,9 @@ msgid ""
" # 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"
@@ -36050,58 +40382,60 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/treeview_cellrenderertoggle.py.page:36
+#: C/treeview_cellrenderertoggle.py.page:37
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 ""
#. (itstool) path: item/p
-#: C/treeview_cellrenderertoggle.py.page:45 C/treeview_treestore.py.page:45
+#: C/treeview_cellrenderertoggle.py.page:46 C/treeview_treestore.py.page:46
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkTreeStore.html"
"\">GtkTreeStore</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/treeview_cellrenderertoggle.py.page:47
+#: C/treeview_cellrenderertoggle.py.page:48
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
-msgctxt "_"
-msgid ""
-"external ref='media/treeview_simple_liststore_penguins.png' "
-"md5='d750a0b9fddf8e508753cc639839871d'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/treeview_simple_liststore.js.page:7
+#: C/treeview_simple_liststore.js.page:8
+#, fuzzy
msgctxt "text"
msgid "TreeView with ListStore (JavaScript)"
-msgstr ""
+msgstr "Widget de visualização em árvore"
#. (itstool) path: info/desc
-#: C/treeview_simple_liststore.js.page:20
+#: C/treeview_simple_liststore.js.page:21
msgid "A widget that shows a separate list of items"
msgstr ""
#. (itstool) path: page/title
-#: C/treeview_simple_liststore.js.page:23
+#: C/treeview_simple_liststore.js.page:24
+#, fuzzy
msgid "TreeView with ListStore"
+msgstr "TreeView – TreeStore"
+
+#. (itstool) path: page/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:25
+msgctxt "_"
+msgid ""
+"external ref='media/treeview_simple_liststore_penguins.png' "
+"md5='d750a0b9fddf8e508753cc639839871d'"
msgstr ""
#. (itstool) path: page/p
-#: C/treeview_simple_liststore.js.page:25
+#: C/treeview_simple_liststore.js.page:26
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 "
@@ -36114,14 +40448,14 @@ msgid ""
msgstr ""
#. (itstool) path: page/p
-#: C/treeview_simple_liststore.js.page:26
+#: C/treeview_simple_liststore.js.page:27
msgid ""
"The TreeView is not just a single widget, but contains a number of smaller "
"ones:"
msgstr ""
#. (itstool) path: item/p
-#: C/treeview_simple_liststore.js.page:28
+#: C/treeview_simple_liststore.js.page:29
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, "
@@ -36129,7 +40463,7 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/treeview_simple_liststore.js.page:29
+#: C/treeview_simple_liststore.js.page:30
msgid ""
"CellRenderer widgets are \"packed\" into each TreeViewColumn, and contain "
"the instructions for how to display each individual \"cell\", or item from "
@@ -36139,7 +40473,7 @@ msgid ""
msgstr ""
#. (itstool) path: page/p
-#: C/treeview_simple_liststore.js.page:31
+#: C/treeview_simple_liststore.js.page:32
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 "
@@ -36150,7 +40484,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/treeview_simple_liststore.js.page:32
+#: C/treeview_simple_liststore.js.page:33
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 "
@@ -36159,7 +40493,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/treeview_simple_liststore.js.page:37
+#: C/treeview_simple_liststore.js.page:38
#, no-wrap
msgid ""
"\n"
@@ -36172,7 +40506,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/treeview_simple_liststore.js.page:50
+#: C/treeview_simple_liststore.js.page:51
#, no-wrap
msgid ""
"\n"
@@ -36202,7 +40536,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.js.page:75
+#: C/treeview_simple_liststore.js.page:76
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/"
@@ -36211,7 +40545,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/treeview_simple_liststore.js.page:76
+#: C/treeview_simple_liststore.js.page:77
#, no-wrap
msgid ""
"\n"
@@ -36229,7 +40563,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/treeview_simple_liststore.js.page:94
+#: C/treeview_simple_liststore.js.page:95
#, no-wrap
msgid ""
"\n"
@@ -36243,7 +40577,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.js.page:103
+#: C/treeview_simple_liststore.js.page:104
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 "
@@ -36252,24 +40586,25 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.js.page:104
+#: C/treeview_simple_liststore.js.page:105
msgid "The GObject data types you can use include:"
msgstr ""
#. (itstool) path: item/p
-#: C/treeview_simple_liststore.js.page:109
+#: C/treeview_simple_liststore.js.page:110
+#, fuzzy
msgid "<file>gtk.gdk.Pixbuf</file> -- A picture"
-msgstr ""
+msgstr "Não foi possível salvar a foto em arquivo"
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.js.page:111
+#: C/treeview_simple_liststore.js.page:112
msgid ""
"In this case, we're making a ListStore of four columns, each one containing "
"string values."
msgstr ""
#. (itstool) path: section/code
-#: C/treeview_simple_liststore.js.page:114
+#: C/treeview_simple_liststore.js.page:115
#, no-wrap
msgid ""
"\n"
@@ -36291,14 +40626,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.js.page:131
+#: C/treeview_simple_liststore.js.page:132
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 ""
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.js.page:132
+#: C/treeview_simple_liststore.js.page:133
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 "
@@ -36310,7 +40645,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/treeview_simple_liststore.js.page:134
+#: C/treeview_simple_liststore.js.page:135
#, no-wrap
msgid ""
"\n"
@@ -36322,7 +40657,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.js.page:141
+#: C/treeview_simple_liststore.js.page:142
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 "
@@ -36331,7 +40666,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.js.page:142
+#: C/treeview_simple_liststore.js.page:143
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 "
@@ -36341,12 +40676,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/treeview_simple_liststore.js.page:147
+#: C/treeview_simple_liststore.js.page:148
+#, fuzzy
msgid "Creating the TreeView"
-msgstr ""
+msgstr "TreeView – TreeStore"
#. (itstool) path: section/code
-#: C/treeview_simple_liststore.js.page:148
+#: C/treeview_simple_liststore.js.page:149
#, no-wrap
msgid ""
"\n"
@@ -36357,7 +40693,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.js.page:154
+#: C/treeview_simple_liststore.js.page:155
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 "
@@ -36365,7 +40701,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/treeview_simple_liststore.js.page:156
+#: C/treeview_simple_liststore.js.page:157
#, no-wrap
msgid ""
"\n"
@@ -36376,7 +40712,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.js.page:162
+#: C/treeview_simple_liststore.js.page:163
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 "
@@ -36384,7 +40720,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/treeview_simple_liststore.js.page:164
+#: C/treeview_simple_liststore.js.page:165
#, no-wrap
msgid ""
"\n"
@@ -36402,7 +40738,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.js.page:177
+#: C/treeview_simple_liststore.js.page:178
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 "
@@ -36415,7 +40751,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/treeview_simple_liststore.js.page:178
+#: C/treeview_simple_liststore.js.page:179
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 "
@@ -36424,7 +40760,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/treeview_simple_liststore.js.page:180
+#: C/treeview_simple_liststore.js.page:181
#, no-wrap
msgid ""
"\n"
@@ -36439,7 +40775,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.js.page:190
+#: C/treeview_simple_liststore.js.page:191
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 "
@@ -36448,28 +40784,28 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/treeview_simple_liststore.js.page:192
+#: C/treeview_simple_liststore.js.page:193
msgid ""
"The first parameter is which CellRenderer we're going to use to render what "
"we're pulling in."
msgstr ""
#. (itstool) path: item/p
-#: C/treeview_simple_liststore.js.page:193
+#: C/treeview_simple_liststore.js.page:194
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 ""
#. (itstool) path: item/p
-#: C/treeview_simple_liststore.js.page:194
+#: C/treeview_simple_liststore.js.page:195
msgid ""
"The third parameter is which of the ListStore's columns we're pulling that "
"information in from."
msgstr ""
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.js.page:196
+#: C/treeview_simple_liststore.js.page:197
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 "
@@ -36477,7 +40813,7 @@ msgid ""
msgstr ""
#. (itstool) path: note/p
-#: C/treeview_simple_liststore.js.page:197
+#: C/treeview_simple_liststore.js.page:198
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 "
@@ -36485,12 +40821,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/treeview_simple_liststore.js.page:201
+#: C/treeview_simple_liststore.js.page:202
+#, fuzzy
msgid "Building the rest of the UI"
-msgstr ""
+msgstr "Descanso"
#. (itstool) path: section/code
-#: C/treeview_simple_liststore.js.page:202
+#: C/treeview_simple_liststore.js.page:203
#, no-wrap
msgid ""
"\n"
@@ -36505,7 +40842,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.js.page:212
+#: C/treeview_simple_liststore.js.page:213
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 "
@@ -36514,7 +40851,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.js.page:213
+#: C/treeview_simple_liststore.js.page:214
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 "
@@ -36523,7 +40860,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/treeview_simple_liststore.js.page:215
+#: C/treeview_simple_liststore.js.page:216
#, no-wrap
msgid ""
"\n"
@@ -36543,7 +40880,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.js.page:230
+#: C/treeview_simple_liststore.js.page:231
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 "
@@ -36551,12 +40888,12 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/treeview_simple_liststore.js.page:234
+#: C/treeview_simple_liststore.js.page:235
msgid "Function which handles a changed selection"
msgstr ""
#. (itstool) path: section/code
-#: C/treeview_simple_liststore.js.page:236
+#: C/treeview_simple_liststore.js.page:237
#, no-wrap
msgid ""
"\n"
@@ -36578,7 +40915,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.js.page:253
+#: C/treeview_simple_liststore.js.page:254
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 "
@@ -36587,7 +40924,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.js.page:254
+#: C/treeview_simple_liststore.js.page:255
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 "
@@ -36596,7 +40933,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.js.page:255
+#: C/treeview_simple_liststore.js.page:256
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 "
@@ -36605,62 +40942,62 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/treeview_simple_liststore.js.page:257
-#, no-wrap
+#: C/treeview_simple_liststore.js.page:258
+#, fuzzy, no-wrap
msgid ""
"\n"
"// Run the application\n"
"let app = new TreeViewExample ();\n"
"app.application.run (ARGV);\n"
msgstr ""
+"\n"
+"// Executa o aplicativo\n"
+"let app = new GettingTheSignal ();\n"
+"app.application.run (ARGV);\n"
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.js.page:262
+#: C/treeview_simple_liststore.js.page:263
msgid ""
"Finally, we create a new instance of the finished TreeViewExample class, and "
"set the application running."
msgstr ""
#. (itstool) path: section/code
-#: C/treeview_simple_liststore.js.page:267
+#: C/treeview_simple_liststore.js.page:268
#, no-wrap
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\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"
+"class TreeViewExample {\n"
" // Create the application itself\n"
-" _init: function() {\n"
+" constructor() {\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"
+" // Connect 'activate' and 'startup' signals to the callback functions\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" this.application.connect('startup', this._onStartup.bind(this));\n"
+" }\n"
"\n"
" // Callback function for 'activate' signal presents window when active\n"
-" _onActivate: function() {\n"
+" _onActivate() {\n"
" this._window.present();\n"
-" },\n"
+" }\n"
"\n"
" // Callback function for 'startup' signal builds the UI\n"
-" _onStartup: function() {\n"
-" this._buildUI ();\n"
-" },\n"
-"\n"
-"\n"
+" _onStartup() {\n"
+" this._buildUI();\n"
+" }\n"
"\n"
" // Build the application's UI\n"
-" _buildUI: function() {\n"
-"\n"
+" _buildUI() {\n"
" // Create the application window\n"
" this._window = new Gtk.ApplicationWindow({\n"
" application: this.application,\n"
@@ -36739,7 +41076,7 @@ msgid ""
" 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"
+" this.selection.connect ('changed', this._onSelectionChanged.bind(this));\n"
"\n"
" // Create a grid to organize everything in\n"
" this._grid = new Gtk.Grid;\n"
@@ -36753,12 +41090,9 @@ msgid ""
"\n"
" // Show the window and all child widgets\n"
" this._window.show_all();\n"
-" },\n"
-"\n"
-"\n"
-"\n"
-" _onSelectionChanged: function () {\n"
+" }\n"
"\n"
+" _onSelectionChanged() {\n"
" // Grab a treeiter pointing to the current selection\n"
" let [ isSelected, model, iter ] = this.selection.get_selected();\n"
"\n"
@@ -36767,11 +41101,10 @@ msgid ""
" 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"
+" this._listStore.get_value (iter, 3)\n"
+" );\n"
" }\n"
-"\n"
-"});\n"
+"};\n"
"\n"
"// Run the application\n"
"let app = new TreeViewExample ();\n"
@@ -36779,57 +41112,58 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/treeview_simple_liststore.js.page:281
+#: C/treeview_simple_liststore.js.page:282
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.TreeSelection."
"html\">Gtk.TreeSelection</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/treeview_simple_liststore.js.page:282
+#: C/treeview_simple_liststore.js.page:283
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.TreeView.html"
"\">Gtk.TreeView</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/treeview_simple_liststore.js.page:283
+#: C/treeview_simple_liststore.js.page:284
msgid ""
"<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk."
"TreeViewColumn.html\">Gtk.TreeViewColumn</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.py.page:23
-#: C/treeview_simple_liststore.vala.page:23
-msgctxt "_"
-msgid ""
-"external ref='media/treeview_simple_liststore.png' "
-"md5='2dc501a2b95b094da985d37b66aee90c'"
-msgstr ""
-
#. (itstool) path: info/title
-#: C/treeview_simple_liststore.py.page:7
+#: C/treeview_simple_liststore.py.page:8
msgctxt "text"
msgid "Simple TreeView with ListStore (Python)"
msgstr ""
#. (itstool) path: info/desc
-#: C/treeview_simple_liststore.py.page:19
+#: C/treeview_simple_liststore.py.page:20
msgid "A TreeView displaying a ListStore (simpler example)"
msgstr ""
#. (itstool) path: page/title
-#: C/treeview_simple_liststore.py.page:22
+#: C/treeview_simple_liststore.py.page:23
+#, fuzzy
msgid "Simple TreeView with ListStore"
+msgstr "TreeView – TreeStore"
+
+#. (itstool) path: page/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.py.page:24
+#: C/treeview_simple_liststore.vala.page:24
+msgctxt "_"
+msgid ""
+"external ref='media/treeview_simple_liststore.png' "
+"md5='2dc501a2b95b094da985d37b66aee90c'"
msgstr ""
#. (itstool) path: section/code
-#: C/treeview_simple_liststore.py.page:31
+#: C/treeview_simple_liststore.py.page:32
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -36847,13 +41181,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"
@@ -36862,15 +41199,15 @@ msgid ""
" # a treeview to see the data stored in the model\n"
" view = Gtk.TreeView(model=listmodel)\n"
" # for each column\n"
-" for i in range(len(columns)):\n"
+" for i, column in enumerate(columns):\n"
" # cellrenderer to render the text\n"
" 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"
+" col = Gtk.TreeViewColumn(column, cell, text=i)\n"
" # and it is appended to the treeview\n"
" view.append_column(col)\n"
"\n"
@@ -36893,11 +41230,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"
@@ -36914,7 +41253,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.py.page:36
+#: C/treeview_simple_liststore.py.page:37
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 "
@@ -36925,46 +41264,47 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/treeview_simple_liststore.py.page:37
+#: C/treeview_simple_liststore.py.page:38
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 ""
#. (itstool) path: item/p
-#: C/treeview_simple_liststore.py.page:50
+#: C/treeview_simple_liststore.py.page:51
msgid ""
"<link href=\"http://developer.gnome.org/pango/stable/pango-Fonts.html"
"\">Fonts</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/treeview_simple_liststore.vala.page:7
+#: C/treeview_simple_liststore.vala.page:8
msgctxt "text"
msgid "Simple Treeview with ListStore (Vala)"
msgstr ""
#. (itstool) path: info/desc
-#: C/treeview_simple_liststore.vala.page:19
+#: C/treeview_simple_liststore.vala.page:20
msgid "A widget can display any TreeModel implementation (lists and trees)"
msgstr ""
#. (itstool) path: page/title
-#: C/treeview_simple_liststore.vala.page:22
+#: C/treeview_simple_liststore.vala.page:23
+#, fuzzy
msgid "Simple Treeview with ListStore"
-msgstr ""
+msgstr "TreeView – TreeStore"
#. (itstool) path: page/p
-#: C/treeview_simple_liststore.vala.page:24
+#: C/treeview_simple_liststore.vala.page:25
msgid ""
"This TreeView displays a simple ListStore with the Selection \"changed\" "
"signal connected."
msgstr ""
#. (itstool) path: page/code
-#: C/treeview_simple_liststore.vala.page:26
+#: C/treeview_simple_liststore.vala.page:27
#, no-wrap
msgid ""
"public class PhoneBookEntry {\n"
@@ -37095,48 +41435,50 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/treeview_simple_liststore.vala.page:31
+#: C/treeview_simple_liststore.vala.page:32
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.TreeView.html\">Gtk."
"TreeView</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/treeview_simple_liststore.vala.page:33
+#: C/treeview_simple_liststore.vala.page:34
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.TreeSelection.html\">Gtk."
"TreeSelection</link>"
msgstr ""
-#. (itstool) path: media
+#. (itstool) path: info/desc
+#: C/treeview_treestore.py.page:20
+msgid "A TreeView displaying a TreeStore (simpler example)"
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/treeview_treestore.py.page:23
+#, fuzzy
+msgid "Simpler TreeView with TreeStore"
+msgstr "TreeView – TreeStore"
+
+#. (itstool) path: page/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
+#: C/treeview_treestore.py.page:24
msgctxt "_"
msgid ""
"external ref='media/treeview_treestore.png' "
"md5='5ca87bc4acd55c527b3fb5fd46779d85'"
msgstr ""
-#. (itstool) path: info/desc
-#: C/treeview_treestore.py.page:19
-msgid "A TreeView displaying a TreeStore (simpler example)"
-msgstr ""
-
-#. (itstool) path: page/title
-#: C/treeview_treestore.py.page:22
-msgid "Simpler TreeView with TreeStore"
-msgstr ""
-
#. (itstool) path: page/p
-#: C/treeview_treestore.py.page:24
+#: C/treeview_treestore.py.page:25
+#, fuzzy
msgid "This TreeView displays a TreeStore."
-msgstr ""
+msgstr "TreeView – TreeStore"
#. (itstool) path: section/code
-#: C/treeview_treestore.py.page:31
+#: C/treeview_treestore.py.page:32
#, no-wrap
msgid ""
"from gi.repository import Gtk\n"
@@ -37147,7 +41489,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"
@@ -37173,7 +41517,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"
@@ -37185,6 +41530,7 @@ msgid ""
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
+"\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -37200,104 +41546,41 @@ msgid ""
"sys.exit(exit_status)\n"
msgstr ""
-#. (itstool) path: credit/name
-#: C/translate.page:15
-msgid "Michael Hill"
-msgstr ""
-
-#. (itstool) path: page/title
-#: C/translate.page:23
-msgid "Help translate"
-msgstr "Ajudando a traduzir"
-
-#. (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 ""
-"Os <app>tutoriais demonstrativos</app> estão sendo traduzidos por uma "
-"comunidade voluntária por todo o mundo. Você está convidado para participar."
-
-#. (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 ""
-"Há <link href=\"http://l10n.gnome.org/module/gnome-devel-docs/\">muitos "
-"idiomas</link> para os quais traduções ainda são necessárias."
-
-#. (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 ""
-"Para começar a traduzir, você precisará <link href=\"http://l10n.gnome.org"
-"\">criar uma conta</link> e participar da <link href=\"http://l10n.gnome.org/"
-"teams/\">equipe de tradução</link> do seu idioma. Isso vai dar a você a "
-"habilidade de enviar novas traduções."
-
-#. (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 ""
-"Você pode conversar com os tradutores do GNOME usando o <link href=\"https://"
-"cbe003.chat.mibbit.com/?url=irc%3A%2F%2Firc.gnome.org%2Fi18n\">irc</link>. "
-"As pessoas no canal estão localizadas por todo o mundo, de forma que você "
-"pode não obter uma resposta imediata como um resultado de diferenças de fuso "
-"horário."
-
-#. (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 ""
-"Alternativamente, você pode contatar a equipe de internacionalização usando "
-"a <link href=\"http://mail.gnome.org/mailman/listinfo/gnome-i18n\">lista de "
-"discussão</link>."
-
#. (itstool) path: info/title
-#: C/tutorial.py.page:8
+#: C/tutorial.py.page:9
+#, fuzzy
msgctxt "text"
msgid "Tutorial for beginners (Python)"
-msgstr ""
+msgstr "Para iniciantes"
#. (itstool) path: info/desc
-#: C/tutorial.py.page:12
+#: C/tutorial.py.page:13
msgid ""
"A tutorial for beginners who want to learn how to program GUIs using GTK+ in "
"Python."
msgstr ""
#. (itstool) path: credit/years
-#: C/tutorial.py.page:21
+#: C/tutorial.py.page:22
+#, fuzzy
msgid "2012 2013"
-msgstr ""
+msgstr "2012, 2013"
#. (itstool) path: credit/name
-#: C/tutorial.py.page:24
+#: C/tutorial.py.page:25
+#, fuzzy
msgid "Jim Campbell"
-msgstr ""
+msgstr "Jim Campbell"
#. (itstool) path: synopsis/p
-#: C/tutorial.py.page:33
+#: C/tutorial.py.page:34
msgid ""
"By following these tutorials you will learn the basics of GUI programming "
"using GTK+ in Python."
msgstr ""
#. (itstool) path: synopsis/p
-#: C/tutorial.py.page:35
+#: C/tutorial.py.page:36
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. "
@@ -37311,35 +41594,38 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/tutorial.py.page:41
+#: C/tutorial.py.page:42
+#, fuzzy
msgid "To run the code samples"
-msgstr ""
+msgstr "Amostras de códigos e tutoriais"
#. (itstool) path: section/p
-#: C/tutorial.py.page:43
+#: C/tutorial.py.page:44
+#, fuzzy
msgid "To run the code samples in the tutorial:"
-msgstr ""
+msgstr "Amostras de códigos e tutoriais"
#. (itstool) path: item/p
-#: C/tutorial.py.page:45
+#: C/tutorial.py.page:46
msgid ""
"Type or copy and paste the code into a file, and save the file with a name "
"like <var>filename</var>.py"
msgstr ""
#. (itstool) path: item/p
-#: C/tutorial.py.page:46
+#: C/tutorial.py.page:47
+#, fuzzy
msgid "To execute the code, type in the terminal:"
-msgstr ""
+msgstr "Código SQL a executar:"
#. (itstool) path: item/screen
-#: C/tutorial.py.page:47
-#, no-wrap
+#: C/tutorial.py.page:48
+#, fuzzy, no-wrap
msgid "python <var>filename</var>.py"
-msgstr ""
+msgstr "<cmd>--filename</cmd>=<var>arquivo</var>"
#. (itstool) path: section/p
-#: C/tutorial.py.page:50
+#: C/tutorial.py.page:51
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 "
@@ -37347,12 +41633,12 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/tutorial.py.page:54
+#: C/tutorial.py.page:55
msgid "A path through the widgets (with some theory)"
msgstr ""
#. (itstool) path: section/p
-#: C/tutorial.py.page:55
+#: C/tutorial.py.page:56
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 "
@@ -37360,112 +41646,127 @@ msgid ""
msgstr ""
#. (itstool) path: steps/title
-#: C/tutorial.py.page:57
+#: C/tutorial.py.page:58
+#, fuzzy
msgid "Tutorial"
-msgstr ""
+msgstr "Tutorial"
#. (itstool) path: steps/title
-#: C/tutorial.py.page:59
+#: C/tutorial.py.page:60
+#, fuzzy
msgid "Basic windows"
-msgstr ""
+msgstr "_Janelas"
#. (itstool) path: steps/title
-#: C/tutorial.py.page:64
+#: C/tutorial.py.page:65
+#, fuzzy
msgid "Images and labels"
msgstr ""
+"Aprenda como posicionar componentes de interface de usuário, como Images e "
+"Labels."
#. (itstool) path: steps/title
-#: C/tutorial.py.page:70
+#: C/tutorial.py.page:71
+#, fuzzy
msgid "Introduction to properties"
-msgstr ""
+msgstr "&Introdução"
#. (itstool) path: steps/title
-#: C/tutorial.py.page:74
+#: C/tutorial.py.page:75
+#, fuzzy
msgid "Grid, separator and scrolling"
-msgstr ""
+msgstr "_Grade:"
#. (itstool) path: steps/title
-#: C/tutorial.py.page:81
+#: C/tutorial.py.page:82
+#, fuzzy
msgid "Signals, callbacks and buttons"
-msgstr ""
+msgstr "_Sinais"
#. (itstool) path: steps/title
-#: C/tutorial.py.page:95
+#: C/tutorial.py.page:96
+#, fuzzy
msgid "Other display widgets"
-msgstr ""
+msgstr "Widgets disponíveis"
#. (itstool) path: steps/title
-#: C/tutorial.py.page:101
+#: C/tutorial.py.page:102
+#, fuzzy
msgid "Entry widgets"
msgstr ""
+"Campos de entrada permite o usuário digitar texto. Você pode alterar o "
+"conteúdo com o método <methodname>set_text()</methodname>, e ler o conteúdo "
+"atual com o método <methodname>get_text()</methodname>."
#. (itstool) path: steps/title
-#: C/tutorial.py.page:107
+#: C/tutorial.py.page:108
+#, fuzzy
msgid "A widget to write and display text"
-msgstr ""
+msgstr "O texto impresso antes do controle"
#. (itstool) path: steps/title
-#: C/tutorial.py.page:111
+#: C/tutorial.py.page:112
+#, fuzzy
msgid "Dialogs"
-msgstr ""
+msgstr "diálogos"
#. (itstool) path: steps/title
-#: C/tutorial.py.page:117
+#: C/tutorial.py.page:118
msgid "Menus, Toolbars and Tooltips (also: using Glade and GtkBuilder)"
msgstr ""
#. (itstool) path: steps/title
-#: C/tutorial.py.page:132
+#: C/tutorial.py.page:133
msgid "TreeViews and ComboBoxes (using the M/V/C design)"
msgstr ""
#. (itstool) path: steps/title
-#: C/tutorial.py.page:142
+#: C/tutorial.py.page:143
+#, fuzzy
msgid "Custom widget"
-msgstr ""
+msgstr "Widget personalizado"
#. (itstool) path: info/title
-#: C/vala.page:6
+#: C/vala.page:7
msgctxt "link"
msgid "Vala"
-msgstr ""
+msgstr "Vala"
#. (itstool) path: page/title
-#: C/vala.page:20
+#: C/vala.page:21
+#, fuzzy
msgid "Tutorials, code samples and platform demos in Vala"
msgstr ""
+"Tutoriais, amostras de código e demonstrações da plataforma em JavaScript"
-#. (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
-msgctxt "_"
-msgid ""
-"external ref='media/weatherAppJs.png' md5='1fe859ac4854273d72ea8fc9203639b2'"
-msgstr ""
+#. (itstool) path: section/title
+#: C/vala.page:26
+#, fuzzy
+msgid "Code samples and tutorial"
+msgstr "Amostras de códigos e tutoriais"
#. (itstool) path: info/title
-#: C/weatherApp.js.page:6
+#: C/weatherApp.js.page:7
+#, fuzzy
msgctxt "text"
msgid "Weather application (JavaScript)"
-msgstr ""
+msgstr "Um aplicativo de meteorologia"
#. (itstool) path: info/desc
-#: C/weatherApp.js.page:21
+#: C/weatherApp.js.page:22
msgid ""
"How to plan an application that uses asynchronous calls. Asynchronous calls "
"will be presented through a weather application."
msgstr ""
#. (itstool) path: page/title
-#: C/weatherApp.js.page:26
+#: C/weatherApp.js.page:27
+#, fuzzy
msgid "Weather application"
-msgstr ""
+msgstr "Um aplicativo de meteorologia"
#. (itstool) path: synopsis/p
-#: C/weatherApp.js.page:28
+#: C/weatherApp.js.page:29
msgid ""
"In this guide well construct a weather application using asynchronous calls. "
"Weather information in this example is fetched from geonames.org and the "
@@ -37477,37 +41778,50 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/weatherApp.js.page:31
+#: C/weatherApp.js.page:32
msgid "<link xref=\"#planningUi\">Planning the graphical user interface</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/weatherApp.js.page:32
+#: C/weatherApp.js.page:33
msgid "<link xref=\"#asynchronous\">Asynchronous calls</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/weatherApp.js.page:33
+#: C/weatherApp.js.page:34
msgid "<link xref=\"#main\">The main program file</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/weatherApp.js.page:34
+#: C/weatherApp.js.page:35
msgid "<link xref=\"#main\">Local library GeoNames</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/weatherApp.js.page:35
+#: C/weatherApp.js.page:36
msgid "<link xref=\"#main\">Autotools and Icons</link>"
msgstr ""
+#. (itstool) path: page/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:41
+msgctxt "_"
+msgid ""
+"external ref='media/weatherAppJs.png' md5='1fe859ac4854273d72ea8fc9203639b2'"
+msgstr ""
+"external ref='media/weatherAppJs.png' md5='1fe859ac4854273d72ea8fc9203639b2'"
+
#. (itstool) path: section/title
-#: C/weatherApp.js.page:43
+#: C/weatherApp.js.page:44
+#, fuzzy
msgid "Planning the graphical user interface"
-msgstr ""
+msgstr "Com a interface gráfica"
#. (itstool) path: section/p
-#: C/weatherApp.js.page:44
+#: C/weatherApp.js.page:45
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 "
@@ -37522,12 +41836,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/weatherApp.js.page:47
+#: C/weatherApp.js.page:48
+#, fuzzy
msgid "Asynchronous calls"
-msgstr ""
+msgstr "Assíncrono"
#. (itstool) path: section/p
-#: C/weatherApp.js.page:48
+#: C/weatherApp.js.page:49
msgid ""
"With many programming languages, all operations are run synchronously - you "
"tell the program to do something, and it will wait until that action "
@@ -37542,28 +41857,30 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/weatherApp.js.page:51
+#: C/weatherApp.js.page:52
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 ""
#. (itstool) path: section/title
-#: C/weatherApp.js.page:54
+#: C/weatherApp.js.page:55
+#, fuzzy
msgid "The different parts of the program"
-msgstr ""
+msgstr "Executa um programa com configurações de privilégios diferentes.\n"
#. (itstool) path: page/title
-#: C/weatherAppMain.js.page:18
+#: C/weatherAppMain.js.page:19
+#, fuzzy
msgid "The main program file"
-msgstr ""
+msgstr "arquivo de configuração principal"
#. (itstool) path: synopsis/p
-#: C/weatherAppMain.js.page:20
+#: C/weatherAppMain.js.page:21
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 "
@@ -37572,33 +41889,34 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/weatherAppMain.js.page:25
+#: C/weatherAppMain.js.page:26
msgid ""
"<link xref=\"#widgets\">Adding a grid and all the necessary widgets to it</"
"link>"
msgstr ""
#. (itstool) path: item/p
-#: C/weatherAppMain.js.page:26
+#: C/weatherAppMain.js.page:27
msgid ""
"<link xref=\"#asynccall\">Requesting the weather information asynchronously</"
"link>"
msgstr ""
#. (itstool) path: item/p
-#: C/weatherAppMain.js.page:27
+#: C/weatherAppMain.js.page:28
msgid ""
"<link xref=\"#connectingbuttons\">Connecting signals to button and entry</"
"link>."
msgstr ""
#. (itstool) path: item/p
-#: C/weatherAppMain.js.page:28
+#: C/weatherAppMain.js.page:29
+#, fuzzy
msgid "<link xref=\"#weatherapp.js\">weatherapp.js</link>"
-msgstr ""
+msgstr "<link xref=\"preferences\">Preferências</link>"
#. (itstool) path: section/p
-#: C/weatherAppMain.js.page:35
+#: C/weatherAppMain.js.page:36
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 "
@@ -37609,7 +41927,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/weatherAppMain.js.page:41
+#: C/weatherAppMain.js.page:42
#, no-wrap
msgid ""
"\n"
@@ -37618,7 +41936,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/weatherAppMain.js.page:44
+#: C/weatherAppMain.js.page:45
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 "
@@ -37627,7 +41945,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/weatherAppMain.js.page:49
+#: C/weatherAppMain.js.page:50
#, no-wrap
msgid ""
"\n"
@@ -37645,12 +41963,12 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/weatherAppMain.js.page:63
+#: C/weatherAppMain.js.page:64
msgid "Adding a grid and all the necessary widgets to it"
msgstr ""
#. (itstool) path: section/code
-#: C/weatherAppMain.js.page:64
+#: C/weatherAppMain.js.page:65
#, no-wrap
msgid ""
"\n"
@@ -37681,10 +41999,10 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/weatherAppMain.js.page:90
+#: C/weatherAppMain.js.page:91
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 "
+"widgets. All the buttons, labels and entries 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 "
@@ -37696,12 +42014,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/weatherAppMain.js.page:94
+#: C/weatherAppMain.js.page:95
+#, fuzzy
msgid "Requesting the weather information asynchronously"
-msgstr ""
+msgstr "Atualizando Informações Meteorológicas"
#. (itstool) path: section/code
-#: C/weatherAppMain.js.page:95
+#: C/weatherAppMain.js.page:96
#, no-wrap
msgid ""
"\n"
@@ -37731,7 +42050,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/weatherAppMain.js.page:120
+#: C/weatherAppMain.js.page:121
msgid ""
"This function is dedicated for calling for the weather information and "
"updating labels and icons accordingly. In the beginning of the function we "
@@ -37745,12 +42064,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/weatherAppMain.js.page:124
+#: C/weatherAppMain.js.page:125
+#, fuzzy
msgid "Connecting signals to button and entry."
-msgstr ""
+msgstr "Po_sicionar pesquisa junto ao botão do painel"
#. (itstool) path: section/code
-#: C/weatherAppMain.js.page:125
+#: C/weatherAppMain.js.page:126
#, no-wrap
msgid ""
"\n"
@@ -37768,7 +42088,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/weatherAppMain.js.page:137
+#: C/weatherAppMain.js.page:138
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, "
@@ -37777,17 +42097,18 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/weatherAppMain.js.page:141
+#: C/weatherAppMain.js.page:142
msgid "Weatherapp.js"
msgstr ""
#. (itstool) path: section/p
-#: C/weatherAppMain.js.page:142
+#: C/weatherAppMain.js.page:143
+#, fuzzy
msgid "Weatherapp.js file looks like this:"
-msgstr ""
+msgstr "Ei, isso se parece com Adonthell!"
#. (itstool) path: section/code
-#: C/weatherAppMain.js.page:143
+#: C/weatherAppMain.js.page:144
#, no-wrap
msgid ""
"\n"
@@ -37877,18 +42198,18 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/weatherAppMain.js.page:228
+#: C/weatherAppMain.js.page:229
msgid "Running until you have all the autotools files ready. :"
msgstr ""
#. (itstool) path: section/screen
-#: C/weatherAppMain.js.page:230
+#: C/weatherAppMain.js.page:231
#, no-wrap
msgid " <output style=\"prompt\">$ </output><input> GJS_PATH=`pwd` gjs weatherapp.js</input>"
msgstr ""
#. (itstool) path: section/p
-#: C/weatherAppMain.js.page:231
+#: C/weatherAppMain.js.page:232
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, "
@@ -37896,12 +42217,13 @@ msgid ""
msgstr ""
#. (itstool) path: page/title
-#: C/weatherAutotools.js.page:18
+#: C/weatherAutotools.js.page:19
+#, fuzzy
msgid "Autotools and Icons"
-msgstr ""
+msgstr "autotools"
#. (itstool) path: synopsis/p
-#: C/weatherAutotools.js.page:20
+#: C/weatherAutotools.js.page:21
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 "
@@ -37911,45 +42233,46 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/weatherAutotools.js.page:23
+#: C/weatherAutotools.js.page:24
msgid "<link xref=\"#autotools\"> Autotools</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/weatherAutotools.js.page:24
+#: C/weatherAutotools.js.page:25
msgid "<link xref=\"#icons\">Custom icons for your application</link>"
msgstr ""
#. (itstool) path: section/title
-#: C/weatherAutotools.js.page:31
+#: C/weatherAutotools.js.page:32
+#, fuzzy
msgid "Autotools and necessary files"
-msgstr ""
+msgstr "autotools"
#. (itstool) path: section/p
-#: C/weatherAutotools.js.page:32
+#: C/weatherAutotools.js.page:33
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 "
"new file: myapp.sh.in file. Hacking the autotools file is a complicated "
"field. More information can be found in many different sources, <link href="
"\"http://en.wikipedia.org/wiki/GNU_build_system\">the wikipedia article</"
-"link> provides a good overwiev on the subject."
+"link> provides a good overview on the subject."
msgstr ""
#. (itstool) path: item/p
#. (itstool) path: section/p
-#: C/weatherAutotools.js.page:35 C/weatherAutotools.js.page:41
+#: C/weatherAutotools.js.page:36 C/weatherAutotools.js.page:42
msgid "weatherapp.desktop"
msgstr ""
#. (itstool) path: item/p
#. (itstool) path: section/p
-#: C/weatherAutotools.js.page:36 C/weatherAutotools.js.page:56
+#: C/weatherAutotools.js.page:37 C/weatherAutotools.js.page:57
msgid "weatherapp.sh.in"
msgstr ""
#. (itstool) path: section/code
-#: C/weatherAutotools.js.page:42
+#: C/weatherAutotools.js.page:43
#, no-wrap
msgid ""
"\n"
@@ -37967,7 +42290,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/weatherAutotools.js.page:54
+#: C/weatherAutotools.js.page:55
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 "
@@ -37975,7 +42298,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/code
-#: C/weatherAutotools.js.page:57
+#: C/weatherAutotools.js.page:58
#, no-wrap
msgid ""
"\n"
@@ -37985,13 +42308,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/weatherAutotools.js.page:61
+#: C/weatherAutotools.js.page:62
msgid ""
"This file is a template to the file Makefile will do to be run from .desktop."
msgstr ""
#. (itstool) path: section/code
-#: C/weatherAutotools.js.page:64
+#: C/weatherAutotools.js.page:65
#, no-wrap
msgid ""
"\n"
@@ -38057,14 +42380,14 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/weatherAutotools.js.page:124
+#: C/weatherAutotools.js.page:125
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:"
msgstr ""
#. (itstool) path: section/p
-#: C/weatherAutotools.js.page:125
+#: C/weatherAutotools.js.page:126
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 "
@@ -38072,25 +42395,25 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/weatherAutotools.js.page:126
+#: C/weatherAutotools.js.page:127
msgid "EXTRA_DIST are the files that are to be distributed"
msgstr ""
#. (itstool) path: section/p
-#: C/weatherAutotools.js.page:127
+#: C/weatherAutotools.js.page:128
msgid "do_subst block is bits and pieces that need to be where they are"
msgstr ""
#. (itstool) path: section/p
-#: C/weatherAutotools.js.page:128
+#: C/weatherAutotools.js.page:129
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"
+"correct places and that is done by the install-icons: bit"
msgstr ""
#. (itstool) path: section/code
-#: C/weatherAutotools.js.page:131
+#: C/weatherAutotools.js.page:132
#, no-wrap
msgid ""
"\n"
@@ -38101,13 +42424,8 @@ msgid ""
"AC_OUTPUT"
msgstr ""
-#. (itstool) path: section/p
-#: C/weatherAutotools.js.page:137
-msgid "autohen.sh"
-msgstr ""
-
#. (itstool) path: section/code
-#: C/weatherAutotools.js.page:138
+#: C/weatherAutotools.js.page:139
#, no-wrap
msgid ""
"\n"
@@ -38117,12 +42435,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/weatherAutotools.js.page:144
+#: C/weatherAutotools.js.page:145
+#, fuzzy
msgid "Custom icons for your application"
-msgstr ""
+msgstr "Ícones simbólicos personalizados"
#. (itstool) path: section/p
-#: C/weatherAutotools.js.page:145
+#: C/weatherAutotools.js.page:146
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."
@@ -38132,7 +42451,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/weatherAutotools.js.page:146
+#: C/weatherAutotools.js.page:147
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. "
@@ -38141,22 +42460,24 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/weatherAutotools.js.page:147
+#: C/weatherAutotools.js.page:148
msgid "appicondir=$(datadir)/icons/hicolor/scalable/apps"
msgstr ""
#. (itstool) path: section/p
-#: C/weatherAutotools.js.page:148
+#: C/weatherAutotools.js.page:149
+#, fuzzy
msgid "appicon_DATA=weather-icon.svg"
-msgstr ""
+msgstr "Não foi possível recuperar dados do tempo"
#. (itstool) path: page/title
-#: C/weatherGeonames.js.page:18
+#: C/weatherGeonames.js.page:19
+#, fuzzy
msgid "Local library geoNames"
-msgstr ""
+msgstr "GeoNames"
#. (itstool) path: synopsis/p
-#: C/weatherGeonames.js.page:20
+#: C/weatherGeonames.js.page:21
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 "
@@ -38169,38 +42490,41 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/weatherGeonames.js.page:23
+#: C/weatherGeonames.js.page:24
msgid ""
"<link xref=\"#geonamesimports\">Local library for getting the weather</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/weatherGeonames.js.page:24
+#: C/weatherGeonames.js.page:25
msgid "<link xref=\"#geonamesfunction\">Creating function geoNames</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/weatherGeonames.js.page:25
+#: C/weatherGeonames.js.page:26
msgid "<link xref=\"#geonamesmethods\">Methods for geoNames</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/weatherGeonames.js.page:26
+#: C/weatherGeonames.js.page:27
+#, fuzzy
msgid "<link xref=\"#geonames.js\">geonames.js </link>"
-msgstr ""
+msgstr "<link xref=\"preferences\">Preferências</link>"
#. (itstool) path: section/title
-#: C/weatherGeonames.js.page:31
+#: C/weatherGeonames.js.page:32
+#, fuzzy
msgid "Local library for getting the weather"
msgstr ""
+"Um aplicativo de painel para monitorar condições meteorológicas locais."
#. (itstool) path: section/p
-#: C/weatherGeonames.js.page:32
+#: C/weatherGeonames.js.page:33
msgid "For this we need a new file that will be our local library."
msgstr ""
#. (itstool) path: section/code
-#: C/weatherGeonames.js.page:33
+#: C/weatherGeonames.js.page:34
#, no-wrap
msgid ""
"\n"
@@ -38210,7 +42534,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/weatherGeonames.js.page:38
+#: C/weatherGeonames.js.page:39
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 "
@@ -38218,12 +42542,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/weatherGeonames.js.page:42
+#: C/weatherGeonames.js.page:43
+#, fuzzy
msgid "Creating function GeoNames"
-msgstr ""
+msgstr "GeoNames"
#. (itstool) path: section/code
-#: C/weatherGeonames.js.page:43
+#: C/weatherGeonames.js.page:44
#, no-wrap
msgid ""
"\n"
@@ -38237,7 +42562,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/weatherGeonames.js.page:52
+#: C/weatherGeonames.js.page:53
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 "
@@ -38246,12 +42571,13 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/weatherGeonames.js.page:56
+#: C/weatherGeonames.js.page:57
+#, fuzzy
msgid "Methods for GeoNames"
-msgstr ""
+msgstr "GeoNames"
#. (itstool) path: section/code
-#: C/weatherGeonames.js.page:57
+#: C/weatherGeonames.js.page:58
#, no-wrap
msgid ""
"\n"
@@ -38295,7 +42621,7 @@ msgid ""
msgstr ""
#. (itstool) path: section/p
-#: C/weatherGeonames.js.page:96
+#: C/weatherGeonames.js.page:97
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 "
@@ -38306,19 +42632,19 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/weatherGeonames.js.page:101
+#: C/weatherGeonames.js.page:102
msgid "geonames.js"
msgstr ""
#. (itstool) path: section/p
-#: C/weatherGeonames.js.page:102
+#: C/weatherGeonames.js.page:103
msgid ""
"Here is the entire code for our local library. The main program file calls "
"this asynchronously."
msgstr ""
#. (itstool) path: section/code
-#: C/weatherGeonames.js.page:103
+#: C/weatherGeonames.js.page:104
#, no-wrap
msgid ""
"\n"
@@ -38373,31 +42699,183 @@ msgid ""
msgstr ""
#. (itstool) path: info/title
-#: C/window.c.page:7
+#: C/widget_drawing.py.page:8
+#, fuzzy
msgctxt "text"
-msgid "Window (C)"
+msgid "Widget (Python)"
+msgstr "Widget:"
+
+#. (itstool) path: info/desc
+#: C/widget_drawing.py.page:18
+msgid "A widget that uses the Cairo library to draw"
msgstr ""
+#. (itstool) path: page/title
+#: C/widget_drawing.py.page:21
+#, fuzzy
+msgid "Widget"
+msgstr "WIDGET"
+
+#. (itstool) path: page/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/widget_drawing.py.page:22
+msgctxt "_"
+msgid ""
+"external ref='media/widget_drawing.png' "
+"md5='d00abd8cb9e158018c57fd75b81dfe58'"
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/widget_drawing.py.page:23
+#, fuzzy
+msgid "Enter an angle, visualize it."
+msgstr "Visualizar"
+
+#. (itstool) path: section/code
+#: C/widget_drawing.py.page:30
+#, no-wrap
+msgid ""
+"from gi.repository import Gtk\n"
+"from gi.repository import cairo\n"
+"import sys\n"
+"import math\n"
+"\n"
+"\n"
+"class MyWindow(Gtk.ApplicationWindow):\n"
+"\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"Choose an angle\", application=app)\n"
+" self.set_default_size(400, 400)\n"
+" self.set_border_width(10)\n"
+"\n"
+" # a default angle\n"
+" self.angle = 360\n"
+"\n"
+" grid = Gtk.Grid()\n"
+"\n"
+" # a spinbutton that takes the value of an angle\n"
+" ad = Gtk.Adjustment(360, 0, 360, 1, 0, 0)\n"
+" self.spin = Gtk.SpinButton(adjustment=ad, climb_rate=1, digits=0)\n"
+" self.spin.connect(\"value-changed\", self.get_angle)\n"
+"\n"
+" # a drawing area for drawing whatever we want\n"
+" self.darea = Gtk.DrawingArea()\n"
+" # that we describe in the method draw(), connected to the signal \"draw\"\n"
+" self.darea.connect(\"draw\", self.draw)\n"
+" # we have to request a minimum size of the drawing area, or it will\n"
+" # disappear\n"
+" self.darea.set_size_request(300, 300)\n"
+"\n"
+" grid.attach(self.spin, 0, 0, 1, 1)\n"
+" grid.attach(self.darea, 0, 1, 1, 1)\n"
+"\n"
+" self.add(grid)\n"
+"\n"
+" # whenever we get a new angle in the spinbutton\n"
+" def get_angle(self, event):\n"
+" self.angle = self.spin.get_value_as_int()\n"
+" # redraw what is in the drawing area\n"
+" self.darea.queue_draw()\n"
+"\n"
+" def draw(self, darea, cr):\n"
+" # a 10-pixels-wide line\n"
+" cr.set_line_width(10)\n"
+" # red\n"
+" cr.set_source_rgba(0.5, 0.0, 0.0, 1.0)\n"
+"\n"
+" # get the width and height of the drawing area\n"
+" w = self.darea.get_allocated_width()\n"
+" h = self.darea.get_allocated_height()\n"
+"\n"
+" # move to the center of the drawing area\n"
+" # (translate from the top left corner to w/2, h/2)\n"
+" cr.translate(w / 2, h / 2)\n"
+" # draw a line to (55, 0)\n"
+" cr.line_to(55, 0)\n"
+" # and get back to (0, 0)\n"
+" cr.line_to(0, 0)\n"
+" # draw an arc centered in the origin, 50 pixels wide, from the angle 0\n"
+" # (in radians) to the angle given by the spinbutton (in degrees)\n"
+" cr.arc(0, 0, 50, 0, self.angle * (math.pi / 180))\n"
+" # draw a line back to the origin\n"
+" cr.line_to(0, 0)\n"
+" # drawing the path, and keeping the path for future use\n"
+" cr.stroke_preserve()\n"
+"\n"
+" # set a colour\n"
+" cr.set_source_rgba(0.0, 0.5, 0.5, 1.0)\n"
+" # and use it to fill the path (that we had kept)\n"
+" cr.fill()\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 ""
+
+#. (itstool) path: item/p
+#: C/widget_drawing.py.page:39
+#, fuzzy
+#| msgid ""
+#| "<link href=\"http://live.gnome.org/DeveloperTools/Installation\">Others</"
+#| "link>"
+msgid ""
+"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkDrawingArea.html"
+"\">GtkDrawingArea</link>"
+msgstr ""
+"<link href=\"http://live.gnome.org/DeveloperTools/Installation\">Outras</"
+"link>"
+
+#. (itstool) path: item/p
+#: C/widget_drawing.py.page:40
+msgid ""
+"<link href=\"http://www.tortall.net/mu/wiki/CairoTutorial\">The Cairo "
+"Tutorial for Python Programmers</link>"
+msgstr ""
+
+#. (itstool) path: info/title
+#: C/window.c.page:8
+#, fuzzy
+msgctxt "text"
+msgid "Window (C)"
+msgstr "_Fechar janela"
+
#. (itstool) path: info/desc
-#: C/window.c.page:17 C/window.py.page:24 C/window.vala.page:17
+#: C/window.c.page:18 C/window.py.page:25 C/window.vala.page:18
msgid "A toplevel window which can contain other widgets"
msgstr ""
#. (itstool) path: page/title
-#: C/window.c.page:20 C/window.js.page:20 C/window.py.page:27
-#: C/window.vala.page:20
+#: C/window.c.page:21 C/window.js.page:21 C/window.py.page:28
+#: C/window.vala.page:21
+#, fuzzy
msgid "Window"
-msgstr ""
+msgstr "Janela"
#. (itstool) path: page/p
-#: C/window.c.page:23
+#: C/window.c.page:24
msgid ""
"A minimal GtkApplication. Use <link xref=\"GtkApplicationWindow.c"
"\">Application Window</link> if you need GMenu support."
msgstr ""
#. (itstool) path: page/code
-#: C/window.c.page:27
+#: C/window.c.page:28
#, no-wrap
msgid ""
"\n"
@@ -38432,71 +42910,71 @@ msgid ""
msgstr ""
#. (itstool) path: info/title
-#: C/window.js.page:7
+#: C/window.js.page:8
+#, fuzzy
msgctxt "text"
msgid "Window (JavaScript)"
-msgstr ""
+msgstr "_JavaScript"
#. (itstool) path: info/desc
-#: C/window.js.page:17
+#: C/window.js.page:18
msgid "A basic window which can contain other widgets"
msgstr ""
#. (itstool) path: td/p
-#: C/window.js.page:25
+#: C/window.js.page:26
+#, fuzzy
msgid "A minimal GtkApplication"
-msgstr ""
+msgstr "GtkApplication"
#. (itstool) path: td/p
-#: C/window.js.page:28
+#: C/window.js.page:29
msgid ""
"Use <link xref=\"GtkApplicationWindow.js\">ApplicationWindow</link> if you "
"need GMenu support."
msgstr ""
#. (itstool) path: page/code
-#: C/window.js.page:32
+#: C/window.js.page:33
#, no-wrap
msgid ""
"\n"
"#!/usr/bin/gjs\n"
"\n"
+"imports.gi.versions.Gtk = '3.0';\n"
+"\n"
"const Gio = imports.gi.Gio;\n"
"const GLib = imports.gi.GLib;\n"
"const Gtk = imports.gi.Gtk;\n"
-"const Lang = imports.lang;\n"
-"\n"
-"const Application = new Lang.Class ({\n"
-" Name: 'Application',\n"
"\n"
+"class Application {\n"
" //create the application\n"
-" _init: function () {\n"
-" this.application = new Gtk.Application ({\n"
+" constructor() {\n"
+" this.application = new Gtk.Application({\n"
" application_id: 'org.example.myapp',\n"
" flags: Gio.ApplicationFlags.FLAGS_NONE\n"
" });\n"
"\n"
-" this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-" },\n"
+" this.application.connect('activate', this._onActivate.bind(this));\n"
+" }\n"
"\n"
" //callback function for 'activate' signal\n"
-" _onActivate: function () {\n"
-"\n"
-" MyWindow = new Gtk.Window({type: Gtk.WindowType.TOPLEVEL});\n"
-" MyWindow.title = \"Welcome to GNOME\";\n"
+" _onActivate() {\n"
+" let myWindow = new Gtk.Window({type: Gtk.WindowType.TOPLEVEL});\n"
+" myWindow.title = \"Welcome to GNOME\";\n"
"\n"
" /* Here are a few ways we can customize our window.\n"
" Try uncommenting them or changing their values! */\n"
-" //MyWindow.set_default_size (400,200);\n"
-" //MyWindow.set_has_resize_grip (false);\n"
-" //MyWindow.set_opacity (0.5);\n"
-" //MyWindow.maximize ();\n"
+" //myWindow.set_default_size (400,200);\n"
+" //myWindow.set_has_resize_grip (false);\n"
+" //myWindow.set_opacity (0.5);\n"
+" //myWindow.maximize ();\n"
"\n"
" //show the window and all child widgets (none in this case)\n"
-" MyWindow.show_all();\n"
-" this.application.add_window(MyWindow);\n"
+" myWindow.show_all();\n"
+" this.application.add_window(myWindow);\n"
" }\n"
-"});\n"
+"};\n"
"\n"
"//run the application\n"
"let app = new Application ();\n"
@@ -38504,43 +42982,50 @@ msgid ""
msgstr ""
#. (itstool) path: page/p
-#: C/window.js.page:34
+#: C/window.js.page:35
+#, fuzzy
msgid "In this example we used the following:"
-msgstr ""
+msgstr "A seguir estão os exemplos que nós apresentamos:"
#. (itstool) path: item/p
-#: C/window.js.page:39
+#: C/window.js.page:40
msgid ""
"<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Window.html"
"\">Gtk.Window</link>"
msgstr ""
#. (itstool) path: info/title
-#: C/window.py.page:7
+#: C/window.py.page:8
+#, fuzzy
msgctxt "text"
msgid "Window (Python)"
-msgstr ""
+msgstr "_Python"
#. (itstool) path: td/p
-#: C/window.py.page:33
+#: C/window.py.page:34
+#, fuzzy
msgid "A minimal GTK+ Application: a window with a title."
msgstr ""
+"Mostrar o título do aplicativo e ícone de fechar\n"
+"para as janelas ativas"
#. (itstool) path: td/p
-#: C/window.py.page:36
+#: C/window.py.page:37
msgid ""
"Use <link xref=\"GtkApplicationWindow.py\"/> if you need <link xref=\"gmenu."
"py\"/> support."
msgstr ""
#. (itstool) path: section/code
-#: C/window.py.page:46
+#: C/window.py.page:47
#, 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"
@@ -38557,30 +43042,32 @@ msgid ""
msgstr ""
#. (itstool) path: section/title
-#: C/window.py.page:51
+#: C/window.py.page:52
+#, fuzzy
msgid "Useful methods for a Window widget"
-msgstr ""
+msgstr "Métodos úteis"
#. (itstool) path: info/title
-#: C/window.vala.page:7
+#: C/window.vala.page:8
+#, fuzzy
msgctxt "text"
msgid "Window (Vala)"
-msgstr ""
+msgstr "_Vala"
#. (itstool) path: td/p
-#: C/window.vala.page:25
+#: C/window.vala.page:26
msgid "The simplest Gtk.Application"
msgstr ""
#. (itstool) path: td/p
-#: C/window.vala.page:28
+#: C/window.vala.page:29
msgid ""
"Use <link xref=\"GtkApplicationWindow.vala\">Application Window</link> if "
"you need GMenu support."
msgstr ""
#. (itstool) path: page/code
-#: C/window.vala.page:32
+#: C/window.vala.page:33
#, no-wrap
msgid ""
"/* This is the application. */\n"
@@ -38623,36 +43110,940 @@ msgid ""
msgstr ""
#. (itstool) path: item/p
-#: C/window.vala.page:38
+#: C/window.vala.page:39
msgid ""
"The widget <link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Window.html"
"\">Gtk.Window</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/window.vala.page:40
+#: C/window.vala.page:41
msgid ""
"The enum <link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.WindowPosition.html"
"\">Gtk.WindowPosition</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/window.vala.page:42
+#: C/window.vala.page:43
msgid ""
"The method <link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Window."
"set_default_size.html\">set_default_size</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/window.vala.page:44
+#: C/window.vala.page:45
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Container.border_width.html"
"\">border_width</link>"
msgstr ""
#. (itstool) path: item/p
-#: C/window.vala.page:46
+#: C/window.vala.page:47
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Window.window_position.html"
"\">window_position</link>"
msgstr ""
+
+#. (itstool) path: credit/name
+#: C/custom-gsource.c.page:11
+#, fuzzy
+msgid "Philip Withnall"
+msgstr "Philip Withnall"
+
+#. (itstool) path: credit/years
+#: C/custom-gsource.c.page:13
+#, fuzzy
+msgid "2015"
+msgstr "2015"
+
+#. (itstool) path: info/desc
+#: C/custom-gsource.c.page:18
+msgid "Tutorial for writing a custom <code>GSource</code> implementation"
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/custom-gsource.c.page:23
+#, fuzzy
+msgid "Custom GSources"
+msgstr "(Personalizar…)"
+
+#. (itstool) path: synopsis/title
+#: C/custom-gsource.c.page:26
+#, fuzzy
+msgid "Summary"
+msgstr "Resumo"
+
+#. (itstool) path: synopsis/p
+#: C/custom-gsource.c.page:28
+msgid ""
+"This article is a tutorial on creating a custom <code>GSource</code>. For "
+"the reference documentation, see the <link href=\"https://developer.gnome."
+"org/glib/stable/glib-The-Main-Event-Loop.html#GSource\">GLib API reference</"
+"link>."
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/custom-gsource.c.page:37
+#, fuzzy
+msgid "What is <code>GSource</code>?"
+msgstr "O que é <code>GMainLoop</code>?"
+
+#. (itstool) path: section/p
+#: C/custom-gsource.c.page:39
+msgid ""
+"A <link href=\"https://developer.gnome.org/glib/stable/glib-The-Main-Event-"
+"Loop.html#GSource\"><code>GSource</code></link> is an expected event with an "
+"associated callback function which will be invoked when that event is "
+"received. An event could be a timeout or data being received on a socket, "
+"for example."
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/custom-gsource.c.page:46
+msgid ""
+"GLib contains various types of <code>GSource</code>, but also allows "
+"applications to define their own, allowing custom events to be integrated "
+"into the main loop."
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/custom-gsource.c.page:52
+msgid ""
+"The structure of a <code>GSource</code> and its virtual functions are "
+"documented in detail in the <link href=\"https://developer.gnome.org/glib/"
+"stable/glib-The-Main-Event-Loop.html#GSourceFuncs\">GLib API reference</"
+"link>."
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/custom-gsource.c.page:61
+#, fuzzy
+msgid "A Message Queue Source"
+msgstr "criação de fila de mensagem falhou"
+
+#. (itstool) path: section/p
+#: C/custom-gsource.c.page:63
+msgid ""
+"As a running example, a message queue source will be used which dispatches "
+"its callback whenever a message is enqueued to a queue internal to the "
+"source (potentially from another thread)."
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/custom-gsource.c.page:69
+msgid ""
+"This type of source is useful for efficiently transferring large numbers of "
+"messages between main contexts. The alternative is transferring each message "
+"as a separate idle <code>GSource</code> using <code>g_source_attach()</"
+"code>. For large numbers of messages, this means a lot of allocations and "
+"frees of <code>GSource</code>s."
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/custom-gsource.c.page:78
+#, fuzzy
+msgid "Structure"
+msgstr "Estrutura"
+
+#. (itstool) path: section/p
+#: C/custom-gsource.c.page:80
+msgid ""
+"Firstly, a structure for the source needs to be declared. This must contain "
+"a <code>GSource</code> as its parent, followed by the private fields for the "
+"source: the queue and a function to call to free each message once finished "
+"with."
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/custom-gsource.c.page:86
+#, no-wrap
+msgid ""
+"\n"
+"typedef struct {\n"
+" GSource parent;\n"
+" GAsyncQueue *queue; /* owned */\n"
+" GDestroyNotify destroy_message;\n"
+"} MessageQueueSource;"
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/custom-gsource.c.page:95
+#, fuzzy
+msgid "Prepare Function"
+msgstr "Preparar um email"
+
+#. (itstool) path: section/p
+#: C/custom-gsource.c.page:97
+msgid ""
+"Next, the prepare function for the source must be defined. This determines "
+"whether the source is ready to be dispatched. As this source is using an in-"
+"memory queue, this can be determined by checking the queue’s length: if "
+"there are elements in the queue, the source can be dispatched to handle them."
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/custom-gsource.c.page:104
+#, no-wrap
+msgid ""
+"\n"
+"return (g_async_queue_length (message_queue_source->queue) > 0);"
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/custom-gsource.c.page:109
+#, fuzzy
+msgid "Check Function"
+msgstr ""
+"O item foi renumerado porque o lançador não informou nenhuma função de "
+"verificação."
+
+#. (itstool) path: section/p
+#: C/custom-gsource.c.page:111
+msgid ""
+"As this source has no file descriptors, the prepare and check functions "
+"essentially have the same job, so a check function is not needed. Setting "
+"the field to <code>NULL</code> in <code>GSourceFuncs</code> bypasses the "
+"check function for this source type."
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/custom-gsource.c.page:120
+#, fuzzy
+msgid "Dispatch Function"
+msgstr "Fun@,{c}@~{a}o"
+
+#. (itstool) path: section/p
+#: C/custom-gsource.c.page:122
+msgid ""
+"For this source, the dispatch function is where the complexity lies. It "
+"needs to dequeue a message from the queue, then pass that message to the "
+"<code>GSource</code>’s callback function. No messages may be queued: even "
+"through the prepare function returned true, another source wrapping the same "
+"queue may have been dispatched in the mean time and taken the final message "
+"from the queue. Further, if no callback has been set for the <code>GSource</"
+"code> (which is allowed), the message must be destroyed and silently dropped."
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/custom-gsource.c.page:133
+msgid ""
+"If both a message and callback are set, the callback can be invoked on the "
+"message and its return value propagated as the return value of the dispatch "
+"function. This is <code>FALSE</code> to destroy the <code>GSource</code> and "
+"<code>TRUE</code> to keep it alive, just as for <code>GSourceFunc</code> — "
+"these semantics are the same for all dispatch function implementations."
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/custom-gsource.c.page:141
+#, no-wrap
+msgid ""
+"\n"
+"/* Pop a message off the queue. */\n"
+"message = g_async_queue_try_pop (message_queue_source->queue);\n"
+"\n"
+"/* If there was no message, bail. */\n"
+"if (message == NULL)\n"
+" {\n"
+" /* Keep the source around to handle the next message. */\n"
+" return TRUE;\n"
+" }\n"
+"\n"
+"/* @func may be %NULL if no callback was specified.\n"
+" * If so, drop the message. */\n"
+"if (func == NULL)\n"
+" {\n"
+" if (message_queue_source->destroy_message != NULL)\n"
+" {\n"
+" message_queue_source->destroy_message (message);\n"
+" }\n"
+"\n"
+" /* Keep the source around to consume the next message. */\n"
+" return TRUE;\n"
+" }\n"
+"\n"
+"return func (message, user_data);"
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/custom-gsource.c.page:169
+#, fuzzy
+msgid "Callback Functions"
+msgstr "chamada"
+
+#. (itstool) path: section/p
+#: C/custom-gsource.c.page:171
+msgid ""
+"The callback from a <code>GSource</code> does not have to have type "
+"<code>GSourceFunc</code>. It can be whatever function type is called in the "
+"source’s dispatch function, as long as that type is sufficiently documented."
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/custom-gsource.c.page:178
+msgid ""
+"Normally, <code>g_source_set_callback()</code> is used to set the callback "
+"function for a source instance. With its <code>GDestroyNotify</code>, a "
+"strong reference can be held to keep an object alive while the source is "
+"still alive:"
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/custom-gsource.c.page:184
+#, no-wrap
+msgid ""
+"\n"
+"g_source_set_callback (source, callback_func,\n"
+" g_object_ref (object_to_strong_ref),\n"
+" (GDestroyNotify) g_object_unref);"
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/custom-gsource.c.page:189
+msgid ""
+"However, <code>GSource</code> has a layer of indirection for retrieving this "
+"callback, exposed as <code>g_source_set_callback_indirect()</code>. This "
+"allows GObject to set a <code>GClosure</code> as the callback for a source, "
+"which allows for sources which are automatically destroyed when an object is "
+"finalized — a <em>weak</em> reference, in contrast to the <em>strong</em> "
+"reference above:"
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/custom-gsource.c.page:197
+#, no-wrap
+msgid ""
+"\n"
+"g_source_set_closure (source,\n"
+" g_cclosure_new_object (callback_func,\n"
+" object_to_weak_ref));"
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/custom-gsource.c.page:202
+msgid ""
+"It also allows for a generic, closure-based ‘dummy’ callback, which can be "
+"used when a source needs to exist but no action needs to be performed in its "
+"callback:"
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/custom-gsource.c.page:207
+#, no-wrap
+msgid ""
+"\n"
+"g_source_set_dummy_callback (source);"
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/custom-gsource.c.page:212
+#, fuzzy
+msgid "Constructor"
+msgstr "Adiciona um construtor padrão."
+
+#. (itstool) path: section/p
+#: C/custom-gsource.c.page:214
+msgid ""
+"Finally, the <code>GSourceFuncs</code> definition of the <code>GSource</"
+"code> can be written, alongside a construction function. It is typical "
+"practice to expose new source types simply as <code>GSource</code>s, not as "
+"the subtype structure; so the constructor returns a <code>GSource*</code>."
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/custom-gsource.c.page:222
+msgid ""
+"The example constructor here also demonstrates use of a child source to "
+"support cancellation conveniently. If the <code>GCancellable</code> is "
+"cancelled, the application’s callback will be dispatched and can check for "
+"cancellation. (The application code will need to make a pointer to the "
+"<code>GCancellable</code> available to its callback, as a field of the "
+"callback’s user data set in <code>g_source_set_callback()</code>)."
+msgstr ""
+
+#. (itstool) path: section/code
+#: C/custom-gsource.c.page:230
+#, no-wrap
+msgid ""
+"\n"
+"GSource *\n"
+"message_queue_source_new (GAsyncQueue *queue,\n"
+" GDestroyNotify destroy_message,\n"
+" GCancellable *cancellable)\n"
+"{\n"
+" GSource *source; /* alias of @message_queue_source */\n"
+" MessageQueueSource *message_queue_source; /* alias of @source */\n"
+"\n"
+" g_return_val_if_fail (queue != NULL, NULL);\n"
+" g_return_val_if_fail (cancellable == NULL ||\n"
+" G_IS_CANCELLABLE (cancellable), NULL);\n"
+"\n"
+" source = g_source_new (&message_queue_source_funcs,\n"
+" sizeof (MessageQueueSource));\n"
+" message_queue_source = (MessageQueueSource *) source;\n"
+"\n"
+" /* The caller can overwrite this name with something more useful later. */\n"
+" g_source_set_name (source, \"MessageQueueSource\");\n"
+"\n"
+" message_queue_source->queue = g_async_queue_ref (queue);\n"
+" message_queue_source->destroy_message = destroy_message;\n"
+"\n"
+" /* Add a cancellable source. */\n"
+" if (cancellable != NULL)\n"
+" {\n"
+" GSource *cancellable_source;\n"
+"\n"
+" cancellable_source = g_cancellable_source_new (cancellable);\n"
+" g_source_set_dummy_callback (cancellable_source);\n"
+" g_source_add_child_source (source, cancellable_source);\n"
+" g_source_unref (cancellable_source);\n"
+" }\n"
+"\n"
+" return source;\n"
+"}"
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/custom-gsource.c.page:270
+#, fuzzy
+#| msgid "Complete code sample"
+msgid "Complete Example"
+msgstr "Incompleto"
+
+#. (itstool) path: listing/title
+#: C/custom-gsource.c.page:273
+#, fuzzy
+#| msgid "Complete code sample"
+msgid "Complete Example Code"
+msgstr "Amostra de código completo"
+
+#. (itstool) path: listing/code
+#: C/custom-gsource.c.page:275
+#, no-wrap
+msgid ""
+"/**\n"
+" * MessageQueueSource:\n"
+" *\n"
+" * This is a #GSource which wraps a #GAsyncQueue and is dispatched whenever a\n"
+" * message can be pulled off the queue. Messages can be enqueued from any\n"
+" * thread.\n"
+" *\n"
+" * The callbacks dispatched by a #MessageQueueSource have type\n"
+" * #MessageQueueSourceFunc.\n"
+" *\n"
+" * #MessageQueueSource supports adding a #GCancellable child source which will\n"
+" * additionally dispatch if a provided #GCancellable is cancelled.\n"
+" */\n"
+"typedef struct {\n"
+" GSource parent;\n"
+" GAsyncQueue *queue; /* owned */\n"
+" GDestroyNotify destroy_message;\n"
+"} MessageQueueSource;\n"
+"\n"
+"/**\n"
+" * MessageQueueSourceFunc:\n"
+" * @message: (transfer full) (nullable): message pulled off the queue\n"
+" * @user_data: user data provided to g_source_set_callback()\n"
+" *\n"
+" * Callback function type for #MessageQueueSource.\n"
+" */\n"
+"typedef gboolean (*MessageQueueSourceFunc) (gpointer message,\n"
+" gpointer user_data);\n"
+"\n"
+"static gboolean\n"
+"message_queue_source_prepare (GSource *source,\n"
+" gint *timeout_)\n"
+"{\n"
+" MessageQueueSource *message_queue_source = (MessageQueueSource *) source;\n"
+"\n"
+" return (g_async_queue_length (message_queue_source->queue) > 0);\n"
+"}\n"
+"\n"
+"static gboolean\n"
+"message_queue_source_dispatch (GSource *source,\n"
+" GSourceFunc callback,\n"
+" gpointer user_data)\n"
+"{\n"
+" MessageQueueSource *message_queue_source = (MessageQueueSource *) source;\n"
+" gpointer message;\n"
+" MessageQueueSourceFunc func = (MessageQueueSourceFunc) callback;\n"
+"\n"
+" /* Pop a message off the queue. */\n"
+" message = g_async_queue_try_pop (message_queue_source->queue);\n"
+"\n"
+" /* If there was no message, bail. */\n"
+" if (message == NULL)\n"
+" {\n"
+" /* Keep the source around to handle the next message. */\n"
+" return TRUE;\n"
+" }\n"
+"\n"
+" /* @func may be %NULL if no callback was specified.\n"
+" * If so, drop the message. */\n"
+" if (func == NULL)\n"
+" {\n"
+" if (message_queue_source->destroy_message != NULL)\n"
+" {\n"
+" message_queue_source->destroy_message (message);\n"
+" }\n"
+"\n"
+" /* Keep the source around to consume the next message. */\n"
+" return TRUE;\n"
+" }\n"
+"\n"
+" return func (message, user_data);\n"
+"}\n"
+"\n"
+"static void\n"
+"message_queue_source_finalize (GSource *source)\n"
+"{\n"
+" MessageQueueSource *message_queue_source = (MessageQueueSource *) source;\n"
+"\n"
+" g_async_queue_unref (message_queue_source->queue);\n"
+"}\n"
+"\n"
+"static gboolean\n"
+"message_queue_source_closure_callback (gpointer message,\n"
+" gpointer user_data)\n"
+"{\n"
+" GClosure *closure = user_data;\n"
+" GValue param_value = G_VALUE_INIT;\n"
+" GValue result_value = G_VALUE_INIT;\n"
+" gboolean retval;\n"
+"\n"
+" /* The invoked function is responsible for freeing @message. */\n"
+" g_value_init (&result_value, G_TYPE_BOOLEAN);\n"
+" g_value_init (&param_value, G_TYPE_POINTER);\n"
+" g_value_set_pointer (&param_value, message);\n"
+"\n"
+" g_closure_invoke (closure, &result_value, 1, &param_value, NULL);\n"
+" retval = g_value_get_boolean (&result_value);\n"
+"\n"
+" g_value_unset (&param_value);\n"
+" g_value_unset (&result_value);\n"
+"\n"
+" return retval;\n"
+"}\n"
+"\n"
+"static GSourceFuncs message_queue_source_funcs =\n"
+" {\n"
+" message_queue_source_prepare,\n"
+" NULL, /* check */\n"
+" message_queue_source_dispatch,\n"
+" message_queue_source_finalize,\n"
+" (GSourceFunc) message_queue_source_closure_callback,\n"
+" NULL,\n"
+" };\n"
+"\n"
+"/**\n"
+" * message_queue_source_new:\n"
+" * @queue: the queue to check\n"
+" * @destroy_message: (nullable): function to free a message, or %NULL\n"
+" * @cancellable: (nullable): a #GCancellable, or %NULL\n"
+" *\n"
+" * Create a new #MessageQueueSource, a type of #GSource which dispatches for\n"
+" * each message queued to it.\n"
+" *\n"
+" * If a callback function of type #MessageQueueSourceFunc is connected to the\n"
+" * returned #GSource using g_source_set_callback(), it will be invoked for each\n"
+" * message, with the message passed as its first argument. It is responsible for\n"
+" * freeing the message. If no callback is set, messages are automatically freed\n"
+" * as they are queued.\n"
+" *\n"
+" * Returns: (transfer full): a new #MessageQueueSource\n"
+" */\n"
+"GSource *\n"
+"message_queue_source_new (GAsyncQueue *queue,\n"
+" GDestroyNotify destroy_message,\n"
+" GCancellable *cancellable)\n"
+"{\n"
+" GSource *source; /* alias of @message_queue_source */\n"
+" MessageQueueSource *message_queue_source; /* alias of @source */\n"
+"\n"
+" g_return_val_if_fail (queue != NULL, NULL);\n"
+" g_return_val_if_fail (cancellable == NULL ||\n"
+" G_IS_CANCELLABLE (cancellable), NULL);\n"
+"\n"
+" source = g_source_new (&message_queue_source_funcs,\n"
+" sizeof (MessageQueueSource));\n"
+" message_queue_source = (MessageQueueSource *) source;\n"
+"\n"
+" /* The caller can overwrite this name with something more useful later. */\n"
+" g_source_set_name (source, \"MessageQueueSource\");\n"
+"\n"
+" message_queue_source->queue = g_async_queue_ref (queue);\n"
+" message_queue_source->destroy_message = destroy_message;\n"
+"\n"
+" /* Add a cancellable source. */\n"
+" if (cancellable != NULL)\n"
+" {\n"
+" GSource *cancellable_source;\n"
+"\n"
+" cancellable_source = g_cancellable_source_new (cancellable);\n"
+" g_source_set_dummy_callback (cancellable_source);\n"
+" g_source_add_child_source (source, cancellable_source);\n"
+" g_source_unref (cancellable_source);\n"
+" }\n"
+"\n"
+" return source;\n"
+"}\n"
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/custom-gsource.c.page:282
+#, fuzzy
+msgid "Further Examples"
+msgstr "Nenhuma outra ocorrência"
+
+#. (itstool) path: section/p
+#: C/custom-gsource.c.page:284
+msgid ""
+"Sources can be more complex than the example given above. In <link href="
+"\"http://nice.freedesktop.org/\">libnice</link>, a custom <code>GSource</"
+"code> is needed to poll a set of sockets which changes dynamically. The "
+"implementation is given as <code>ComponentSource</code> in <link href="
+"\"http://cgit.freedesktop.org/libnice/libnice/tree/agent/component."
+"c#n941\">component.c</link> and demonstrates a more complex use of the "
+"prepare function."
+msgstr ""
+
+#. (itstool) path: section/p
+#: C/custom-gsource.c.page:293
+msgid ""
+"Another example is a custom source to interface GnuTLS with GLib in its "
+"<code>GTlsConnection</code> implementation. <link href=\"https://git.gnome."
+"org/browse/glib-networking/tree/tls/gnutls/gtlsconnection-gnutls."
+"c#n871\"><code>GTlsConnectionGnutlsSource</code></link> synchronizes the "
+"main thread and a TLS worker thread which performs the blocking TLS "
+"operations."
+msgstr ""
+
+#~ msgid "How to set up your development environment"
+#~ msgstr "Como configurar o ambiente de desenvolvimento"
+
+#~ msgid "Get Involved"
+#~ msgstr "Contribua"
+
+#~ msgid ""
+#~ "\n"
+#~ "const WelcomeToTheGrid = new Lang.Class({\n"
+#~ " Name: 'Welcome to the Grid',\n"
+#~ "\n"
+#~ " // Create the application itself\n"
+#~ " _init: function() {\n"
+#~ " this.application = new Gtk.Application();\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"
+#~ msgstr ""
+#~ "\n"
+#~ "const WelcomeToTheGrid = new Lang.Class({\n"
+#~ " Name: 'Bem-vindo à Grid',\n"
+#~ "\n"
+#~ " // Cria o aplicativo em si\n"
+#~ " _init: function() {\n"
+#~ " this.application = new Gtk.Application();\n"
+#~ "\n"
+#~ " // Conecta os sinais 'activate' e 'startup' para as funções de "
+#~ "chamada\n"
+#~ " this.application.connect('activate', Lang.bind(this, this."
+#~ "_onActivate));\n"
+#~ " this.application.connect('startup', Lang.bind(this, this."
+#~ "_onStartup));\n"
+#~ " },\n"
+#~ "\n"
+#~ " // Função de chamada para o sinal 'activate' apresenta janelas quando "
+#~ "ativa\n"
+#~ " _onActivate: function() {\n"
+#~ " this._window.present();\n"
+#~ " },\n"
+#~ "\n"
+#~ " // Função de chamada para sinal 'startup' constrói a interface "
+#~ "gráfica\n"
+#~ " _onStartup: function() {\n"
+#~ " this._buildUI ();\n"
+#~ " },\n"
+
+#~ msgid "Help make <app>GNOME Developer Tutorials</app> better"
+#~ msgstr ""
+#~ "Ajudando a melhorar os <app>tutoriais de desenvolvimento do GNOME</app>"
+
+#~ msgid "Report a bug or suggest an improvement"
+#~ msgstr "Relatando um erro ou sugerindo uma melhora"
+
+#~ 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/\"/>."
+#~ msgstr ""
+#~ "Os <app>tutoriais de desenvolvimento do GNOME</app> são mantidos por uma "
+#~ "comunidade voluntária. Você está convidado para participar. Se você "
+#~ "identificar um problema, você pode preencher um <em>relatório de erro</"
+#~ "em>. Para isso, acesse o <link href=\"https://bugzilla.gnome.org/\"/>."
+
+#~ msgid ""
+#~ "This is a bug tracking system where users and developers can file details "
+#~ "about bugs, crashes and request enhancements."
+#~ msgstr ""
+#~ "Esse é um sistema de rastreamento de erros, no qual usuários e "
+#~ "desenvolvedores podem informar detalhes sobre erros, travamentos e "
+#~ "requisitar melhoras."
+
+# Bugzilla não está traduzido e, portanto, mantive "New Account" em inglês
+#~ 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 receive updates by e-mail about the status of your bug. If you "
+#~ "don't already have an account, just click on the <gui>New Account</gui> "
+#~ "link to create one."
+#~ msgstr ""
+#~ "Para participar, você precisa de uma conta que vai dar a você a "
+#~ "habilidade de acessar, preencher relatórios de erros e fazer comentários. "
+#~ "Além disso, você vai vai precisar registrar de forma que você possa "
+#~ "receber atualizações por e-mail sobre o estado de seus relatórios de "
+#~ "erros. Se você ainda não tiver uma conta, basta clicar no link <gui>New "
+#~ "Account</gui> para criar uma."
+
+#~ 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."
+#~ msgstr ""
+#~ "Assim que você tiver uma conta, inicie a sessão, clique em "
+#~ "<guiseq><gui>File a Bug</gui><gui>All</gui><gui>gnome-devel-docs</gui></"
+#~ "guiseq>. Antes de relatar um erro, por favor leia as <link href=\"https://"
+#~ "bugzilla.gnome.org/page.cgi?id=bug-writing.html\">diretrizes para relatar "
+#~ "de erros</link> e, por favor, <link href=\"https://bugzilla.gnome.org/"
+#~ "browse.cgi?product=gnome-games\">pesquisem</link> o erro para ver se um "
+#~ "relatório de erro já existe."
+
+#~ msgid ""
+#~ "To file your bug, choose the component <gui>platform-demos</gui> in the "
+#~ "<gui>Component</gui> menu."
+#~ msgstr ""
+#~ "Para relatar seu erro, escolha o componente <gui>platform-demos</gui> no "
+#~ "menu <gui>Component</gui>."
+
+#~ 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 ""
+#~ "Se você está requisitando uma nova funcionalidade, escolha "
+#~ "<gui>enhancement</gui> no menu de <gui>Severity</gui>. Preencha as seções "
+#~ "Summary e Description e clique em <gui>Commit</gui>."
+
+#~ 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 ""
+#~ "Seu relatório vai receber um número de ID e seu estado será atualizado "
+#~ "como sendo lidado. Obrigado por ajudar na melhoria dos <app>tutoriais de "
+#~ "desenvolvimento do GNOME</app>!"
+
+#~ msgid "Help develop"
+#~ msgstr "Ajudando a desenvolver"
+
+#~ msgid ""
+#~ "The <app>GNOME Developer Tutorials</app> are developed and maintained by "
+#~ "a volunteer community. You are welcome to participate."
+#~ msgstr ""
+#~ "Os <app>tutoriais de desenvolvimento do GNOME</app> são desenvolvidos e "
+#~ "mantido por uma comunidade voluntária. Você está convidado para "
+#~ "participar."
+
+#~ 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>."
+#~ msgstr ""
+#~ "Se você gostaria de <link href=\"https://live.gnome.org/"
+#~ "DocumentationProject/Tasks/DeveloperDocs\">ajudar a desenvolver os "
+#~ "<app>tutoriais de desenvolvimento do GNOME</app></link>, você pode entrar "
+#~ "em contato com os desenvolvedores usando o <link href=\"https://cbe005."
+#~ "chat.mibbit.com/?url=irc%3A%2F%2Firc.gnome.org%2Fdocs\">irc</link> ou via "
+#~ "nossa <link href=\"http://mail.gnome.org/mailman/listinfo/gnome-doc-devel-"
+#~ "list\">lista de discussão</link>."
+
+#~ msgctxt "link"
+#~ msgid "Install GNOME development tools"
+#~ msgstr "Instalando ferramentas de desenvolvimento do GNOME"
+
+#~ msgid "Getting ready for GNOME development"
+#~ msgstr "Se preparando para desenvolvimento do GNOME"
+
+#~ msgid "Install the required tools"
+#~ msgstr "Instalando as ferramentas necessárias"
+
+#~ 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 ""
+#~ "Antes que você possa começar a codificação, você terá que instalar as "
+#~ "ferramentas necessárias para o desenvolvimento do GNOME no seu "
+#~ "computador. Isso não deveria levar mais de dez minutos."
+
+#~ msgid "Automatic installation"
+#~ msgstr "Instalação automática"
+
+#~ 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 ""
+#~ "Em uma distribuição atualizada você deveria poder simplesmente instalar "
+#~ "os pacotes necessários clicando em <link href=\"media/gnome-devtools."
+#~ "catalog\">Instalar agora</link>."
+
+#~ msgid "Manual installation"
+#~ msgstr "Instalação manual"
+
+#~ msgid ""
+#~ "If you prefer manual installation you can find the instructions for the "
+#~ "various distributions in the <link href=\"http://live.gnome.org/"
+#~ "DeveloperTools/Installation\">GNOME wiki</link>. Click on the image to go "
+#~ "directly to the installation page for your distribution:"
+#~ msgstr ""
+#~ "Se você preferir instalação manual, você pode encontrar as instruções "
+#~ "para várias distribuições no <link href=\"http://live.gnome.org/"
+#~ "DeveloperTools/Installation\">wiki do GNOME</link>. Clique na imagem para "
+#~ "ir diretamente para a página de instalação de sua distribuição:"
+
+#~ msgid ""
+#~ "<link href=\"http://live.gnome.org/DeveloperTools/Installation/Ubuntu\"> "
+#~ "<media type=\"image\" mime=\"image/png\" src=\"media/ubuntu.png\">Ubuntu</"
+#~ "media> </link>"
+#~ msgstr ""
+#~ "<link href=\"http://live.gnome.org/DeveloperTools/Installation/Ubuntu\"> "
+#~ "<media type=\"image\" mime=\"image/png\" src=\"media/ubuntu.png\">Ubuntu</"
+#~ "media> </link>"
+
+#~ msgid ""
+#~ "<link href=\"http://live.gnome.org/DeveloperTools/Installation/Fedora\"> "
+#~ "<media type=\"image\" mime=\"image/png\" src=\"media/fedora.png\">Fedora</"
+#~ "media> </link>"
+#~ msgstr ""
+#~ "<link href=\"http://live.gnome.org/DeveloperTools/Installation/Fedora\"> "
+#~ "<media type=\"image\" mime=\"image/png\" src=\"media/fedora.png\">Fedora</"
+#~ "media> </link>"
+
+#~ msgid ""
+#~ "<link href=\"http://live.gnome.org/DeveloperTools/Installation/OpenSuSE"
+#~ "\"> <media type=\"image\" mime=\"image/png\" src=\"media/opensuse.png"
+#~ "\">OpenSuSE</media> </link>"
+#~ msgstr ""
+#~ "<link href=\"http://live.gnome.org/DeveloperTools/Installation/OpenSuSE"
+#~ "\"> <media type=\"image\" mime=\"image/png\" src=\"media/opensuse.png"
+#~ "\">OpenSuSE</media> </link>"
+
+#~ msgid "Required versions"
+#~ msgstr "Versões necessárias"
+
+#~ msgid ""
+#~ "The guides assume that you have at least the following versions of the "
+#~ "tools installed:"
+#~ msgstr ""
+#~ "Os guias presumem que você tem instaladas pelo menos as seguintes versões "
+#~ "das ferramentas instaladas:"
+
+#~ msgid "Anjuta - 3.0"
+#~ msgstr "Anjuta - 3.0"
+
+#~ msgid "Devhelp - 3.0"
+#~ msgstr "Devhelp - 3.0"
+
+#~ msgid "Glade - 3.10"
+#~ msgstr "Glade - 3.10"
+
+#~ 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 ""
+#~ "É claro, qualquer versão mais nova também vai funcionar. Agora, nós "
+#~ "desejamos a você muita diversão com as <link xref=\"index"
+#~ "\">Demonstrações</link>."
+
+#~ msgid ""
+#~ "\n"
+#~ "const HelloGNOME = new Lang.Class ({\n"
+#~ " Name: 'Hello GNOME',\n"
+#~ msgstr ""
+#~ "\n"
+#~ "const HelloGNOME = new Lang.Class ({\n"
+#~ " Name: 'Olá, GNOME',\n"
+
+#~ msgid "Help translate"
+#~ msgstr "Ajudando a traduzir"
+
+#~ msgid ""
+#~ "The <app>Tutorial Demos</app> are being translated by a world-wide "
+#~ "volunteer community. You are welcome to participate."
+#~ msgstr ""
+#~ "Os <app>tutoriais demonstrativos</app> estão sendo traduzidos por uma "
+#~ "comunidade voluntária por todo o mundo. Você está convidado para "
+#~ "participar."
+
+#~ msgid ""
+#~ "There are <link href=\"http://l10n.gnome.org/module/gnome-devel-docs/"
+#~ "\">many languages</link> for which translations are still needed."
+#~ msgstr ""
+#~ "Há <link href=\"http://l10n.gnome.org/module/gnome-devel-docs/\">muitos "
+#~ "idiomas</link> para os quais traduções ainda são necessárias."
+
+#~ 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 ""
+#~ "Para começar a traduzir, você precisará <link href=\"http://l10n.gnome.org"
+#~ "\">criar uma conta</link> e participar da <link href=\"http://l10n.gnome."
+#~ "org/teams/\">equipe de tradução</link> do seu idioma. Isso vai dar a você "
+#~ "a habilidade de enviar novas traduções."
+
+#~ 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 ""
+#~ "Você pode conversar com os tradutores do GNOME usando o <link href="
+#~ "\"https://cbe003.chat.mibbit.com/?url=irc%3A%2F%2Firc.gnome.org%2Fi18n"
+#~ "\">irc</link>. As pessoas no canal estão localizadas por todo o mundo, de "
+#~ "forma que você pode não obter uma resposta imediata como um resultado de "
+#~ "diferenças de fuso horário."
+
+#~ msgid ""
+#~ "Alternatively, you can contact the Internationalization Team using their "
+#~ "<link href=\"http://mail.gnome.org/mailman/listinfo/gnome-i18n\">mailing "
+#~ "list</link>."
+#~ msgstr ""
+#~ "Alternativamente, você pode contatar a equipe de internacionalização "
+#~ "usando a <link href=\"http://mail.gnome.org/mailman/listinfo/gnome-i18n"
+#~ "\">lista de discussão</link>."
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]