Permalink
Browse files

Added templates for translations

  • Loading branch information...
1 parent 6ea06e0 commit dce5516ccb9ce173bf6f18d3dd04566489a6d8ba @sebp committed Aug 10, 2012
Showing with 5,088 additions and 0 deletions.
  1. BIN translations/.doctrees/basics.doctree
  2. BIN translations/.doctrees/builder.doctree
  3. BIN translations/.doctrees/button_widgets.doctree
  4. BIN translations/.doctrees/cellrenderers.doctree
  5. BIN translations/.doctrees/clipboard.doctree
  6. BIN translations/.doctrees/combobox.doctree
  7. BIN translations/.doctrees/dialogs.doctree
  8. BIN translations/.doctrees/drag_and_drop.doctree
  9. BIN translations/.doctrees/entry.doctree
  10. BIN translations/.doctrees/environment.pickle
  11. BIN translations/.doctrees/iconview.doctree
  12. BIN translations/.doctrees/index.doctree
  13. BIN translations/.doctrees/install.doctree
  14. BIN translations/.doctrees/introduction.doctree
  15. BIN translations/.doctrees/label.doctree
  16. BIN translations/.doctrees/layout.doctree
  17. BIN translations/.doctrees/menus.doctree
  18. BIN translations/.doctrees/objects.doctree
  19. BIN translations/.doctrees/progressbar.doctree
  20. BIN translations/.doctrees/spinner.doctree
  21. BIN translations/.doctrees/stock.doctree
  22. BIN translations/.doctrees/textview.doctree
  23. BIN translations/.doctrees/treeview.doctree
  24. BIN translations/.doctrees/unicode.doctree
  25. +88 −0 translations/templates/basics.pot
  26. +183 −0 translations/templates/builder.pot
  27. +316 −0 translations/templates/button_widgets.pot
  28. +258 −0 translations/templates/cellrenderers.pot
  29. +108 −0 translations/templates/clipboard.pot
  30. +118 −0 translations/templates/combobox.pot
  31. +482 −0 translations/templates/dialogs.pot
  32. +303 −0 translations/templates/drag_and_drop.pot
  33. +128 −0 translations/templates/entry.pot
  34. +373 −0 translations/templates/iconview.pot
  35. +68 −0 translations/templates/index.pot
  36. +103 −0 translations/templates/install.pot
  37. +103 −0 translations/templates/introduction.pot
  38. +123 −0 translations/templates/label.pot
  39. +312 −0 translations/templates/layout.pot
  40. +373 −0 translations/templates/menus.pot
  41. +308 −0 translations/templates/objects.pot
  42. +98 −0 translations/templates/progressbar.pot
  43. +53 −0 translations/templates/spinner.pot
  44. +98 −0 translations/templates/stock.pot
  45. +388 −0 translations/templates/textview.pot
  46. +549 −0 translations/templates/treeview.pot
  47. +155 −0 translations/templates/unicode.pot
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,88 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) GNU Free Documentation License 1.3
+# This file is distributed under the same license as the Python GTK+ 3 Tutorial package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: Python GTK+ 3 Tutorial 3.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-08-10 09:47\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../source/basics.txt:4
+# 24b2f9d48b8e45bd859945b0860953ff
+msgid "Basics"
+msgstr ""
+
+#: ../source/basics.txt:5
+# 9db7f5bec09a41f384f19c77be527e38
+msgid "This section will introduce some of the most important aspects of GTK+."
+msgstr ""
+
+#: ../source/basics.txt:12
+# 6554ff54acd24984a89a55e5f009b8df
+msgid "Main loop and Signals"
+msgstr ""
+
+#: ../source/basics.txt:13
+# 798f7a779c44413caca68c8a81d13ad3
+msgid "Like most GUI toolkits, GTK+ uses an event-driven programming model. When the user is doing nothing, GTK+ sits in the main loop and waits for input. If the user performs some action - say, a mouse click - then the main loop \"wakes up\" and delivers an event to GTK+."
+msgstr ""
+
+#: ../source/basics.txt:18
+# b0cde78dd2054458ba6fb7a48d3d48e6
+msgid "When widgets receive an event, they frequently emit one or more signals. Signals notify your program that \"something interesting happened\" by invoking functions you've connected to the signal. Such functions are commonly known as *callbacks*. When your callbacks are invoked, you would typically take some action - for example, when an Open button is clicked you might display a file chooser dialog. After a callback finishes, GTK+ will return to the main loop and await more user input."
+msgstr ""
+
+#: ../source/basics.txt:28
+# f4cbd7ea24ba48c598d555447174c9fb
+msgid "A generic example is:"
+msgstr ""
+
+#: ../source/basics.txt:34
+# 972f44f8e7b8421980087239922b3322
+msgid "Firstly, *widget* is an instance of a widget we created earlier. Next, the event we are interested in. Each widget has its own particular events which can occur. For instance, if you have a button you usually want to connect to the \"clicked\" event. This means that when the button is clicked, the signal is issued. Thirdly, the *callback* argument is the name of the callback function. It contains the code which runs when signals of the specified type are issued. Finally, the *data* argument includes any data which should be passed when the signal is issued. However, this argument is completely optional and can be left out if not required."
+msgstr ""
+
+#: ../source/basics.txt:46
+# 267da506661044239ff7a68a0d6ce2b6
+msgid "The function returns a number that identifies this particular signal-callback pair. It is required to disconnect from a signal such that the callback function will not be called during any future or currently ongoing emissions of the signal it has been connected to."
+msgstr ""
+
+#: ../source/basics.txt:56
+# 70d627ed3a8d4fccb205b1182be57641
+msgid "Almost all applications will connect to the \"delete-event\" signal of the top-level window. It is emitted if a user requests that a toplevel window is closed. The default handler for this signal destroys the window, but does not terminate the application. Connecting the \"delete-event\" signal to the function :func:`Gtk.main_quit` will result in the desired behaviour."
+msgstr ""
+
+#: ../source/basics.txt:66
+# 72755f64dedf4e4abff5358fc148d04c
+msgid "Calling :func:`Gtk.main_quit` makes the main loop inside of :func:`Gtk.main` return."
+msgstr ""
+
+#: ../source/basics.txt:69
+# 8bd75530e6cc4e7ba47d6035a5a19513
+msgid "Properties"
+msgstr ""
+
+#: ../source/basics.txt:70
+# cd07ae732a92407dbd541935ad23c64c
+msgid "Properties describe the configuration and state of widgets. As for signals, each widget has its own particular set of properties. For example, a button has the property \"label\" which contains the text of the label widget inside the button. You can specify the name and value of any number of properties as keyword arguments when creating an instance of a widget. To create a label aligned to the right with the text \"Hello World\" and an angle of 25 degrees, use:"
+msgstr ""
+
+#: ../source/basics.txt:81
+# 388e665c8a7b44678d9b42d0621939a7
+msgid "which is equivalent to"
+msgstr ""
+
+#: ../source/basics.txt:90
+# 4f4a608797b74529bc040cef30c4f00e
+msgid "Instead of using getters and setters you can also get and set the properties with ``widget.get_property(\"prop-name\")`` and ``widget.set_property(\"prop-name\", value)``, respectively."
+msgstr ""
+
@@ -0,0 +1,183 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) GNU Free Documentation License 1.3
+# This file is distributed under the same license as the Python GTK+ 3 Tutorial package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: Python GTK+ 3 Tutorial 3.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-08-10 09:47\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../source/builder.txt:2
+# 28ca3c75cdb340899b12cf47418fc71e
+msgid "Glade and Gtk.Builder"
+msgstr ""
+
+#: ../source/builder.txt:3
+# 06669688aeb5443b83473f575003f826
+msgid "The :class:`Gtk.Builder` class offers you the opportunity to design user interfaces without writing a single line of code. This is possible through describing the interface by a XML file and then loading the XML description at runtime and create the objects automatically, which the Builder class does for you. For the purpose of not needing to write the XML manually the `Glade <http://glade.gnome.org/>`_ application lets you create the user interface in a WYSIWYG (what you see is what you get) manner"
+msgstr ""
+
+#: ../source/builder.txt:7
+# 2cec3b59c96542f19eb496b1fbc15fa4
+msgid "This method has several advantages:"
+msgstr ""
+
+#: ../source/builder.txt:9
+# 2dac0f84567b48e1afb79bb691ac3cdf
+msgid "Less code needs to be written."
+msgstr ""
+
+#: ../source/builder.txt:10
+# 77ad0d8c916c4325a64d2a8bbb6c775e
+msgid "UI changes can be seen more quickly, so UIs are able to improve."
+msgstr ""
+
+#: ../source/builder.txt:11
+# 8b1060046ae740dcb49a4401be2959c0
+msgid "Designers without programming skills can create and edit UIs."
+msgstr ""
+
+#: ../source/builder.txt:12
+# 8095890fb54447d4957981358c082f1e
+msgid "The description of the user interface is independent from the programming language being used."
+msgstr ""
+
+#: ../source/builder.txt:14
+# aff51f4bc9324ac38bc9922e4f1d8efa
+msgid "There is still code required for handling interface changes triggered by the user, but :class:`Gtk.Builder` allows you to focus on implementing that functionality."
+msgstr ""
+
+#: ../source/builder.txt:17
+# bf38dacf70354936a1acb487a9f3ce8f
+msgid "Creating and loading the .glade file"
+msgstr ""
+
+#: ../source/builder.txt:18
+# 0ec8abf6b3d34ef7937f96d237f413bd
+msgid "First of all you have to download and install Glade. There are `several tutorials <https://live.gnome.org/Glade/Tutorials>`_ about Glade, so this is not explained here in detail. Let's start by creating a window with a button in it and saving it to a file named *example.glade*. The resulting XML file should look like this."
+msgstr ""
+
+#: ../source/builder.txt:42
+# a2b0403ac7624dfa921ee8de8e612d30
+msgid "To load this file in Python we need a :class:`Gtk.Builder` object."
+msgstr ""
+
+#: ../source/builder.txt:49
+# d01b99680c3a45479b03f9bb78413144
+msgid "The second line loads all objects defined in *example.glade* into the Builder object."
+msgstr ""
+
+#: ../source/builder.txt:51
+# 3495170aedf645e4bc9cfac39ce347ac
+msgid "It is also possible to load only some of the objects. The following line would add only the objects (and their child objects) given in the tuple."
+msgstr ""
+
+#: ../source/builder.txt:58
+# bb75873dc7e549248fe07849a978725c
+msgid "These two methods exist also for loading from a string rather than a file. Their corresponding names are :meth:`Gtk.Builder.add_from_string` and :meth:`Gtk.Builder.add_objects_from_string` and they simply take a XML string instead of a file name."
+msgstr ""
+
+#: ../source/builder.txt:62
+# b3e5ad3b88d446fdaa9ea73edf9b6669
+msgid "Accessing widgets"
+msgstr ""
+
+#: ../source/builder.txt:63
+# 80c841df300f4ab8abcbf0ed26c7e21c
+msgid "Now that the window and the button are loaded we also want to show them. Therefore the :meth:`Gtk.Window.show_all` method has to be called on the window. But how do we access the associated object?"
+msgstr ""
+
+#: ../source/builder.txt:72
+# 1a305b730d0a4f6d88f800d8ab8977be
+msgid "Every widget can be retrieved from the builder by the :meth:`Gtk.Builder.get_object` method and the widget's *id*. It is really *that* simple."
+msgstr ""
+
+#: ../source/builder.txt:75
+# 54a79d0b126d44d4a1465c4dd6d71deb
+msgid "It is also possible to get a list of all objects with"
+msgstr ""
+
+#: ../source/builder.txt:82
+# 65625b20737a41f59db984a84619bea9
+msgid "Connecting Signals"
+msgstr ""
+
+#: ../source/builder.txt:83
+# 7eed47e6ca894168ada4bcbca8cae77a
+msgid "Glade also makes it possible to define signals which you can connect to handlers in your code without extracting every object from the builder and connecting to the signals manually. The first thing to do is to declare the signal names in Glade. For this example we will act when the window should be closed and when the button was pressed, so we give the name \"onDeleteWindow\" to the \"delete-event\" signal of the window and \"onButtonPressed\" to the \"pressed\" signal of the button. Now the XML file should look like this."
+msgstr ""
+
+#: ../source/builder.txt:91
+# 9292eb192ff04954b42717db41a59f19
+msgid "Now we have to define the handler functions in our code. The *onDeleteWindow* should simply result in a call to :meth:`Gtk.main_quit`. When the button is pressed we would like to print the string \"Hello World!\", so we define the handler as follows"
+msgstr ""
+
+#: ../source/builder.txt:100
+# aaa14cd878c443ef9febfd0f0296fac2
+msgid "Next, we have to connect the signals and the handler functions. The easiest way to do this is to define a *dict* with a mapping from the names to the handlers and then pass it to the :meth:`Gtk.Builder.connect_signals` method."
+msgstr ""
+
+#: ../source/builder.txt:111
+# b0dfdd3bbba04ee2be94223d595bd7c3
+msgid "An alternative approach is to create a class which has methods that are called like the signals. In our example the last code snippet could be rewritten as:"
+msgstr ""
+
+#: ../source/builder.txt:119
+# 2d948c1b5bee41cb8140352b5cc584b7
+msgid "Builder Objects"
+msgstr ""
+
+#: ../source/builder.txt:124
+# ed80c5d9620446f9aed172c913f2fc57
+msgid "Loads and parses the given file and merges it with the current contents of builder."
+msgstr ""
+
+#: ../source/builder.txt:128
+# 2cda72ebc85f41dcbcf878778a9833a1
+msgid "Parses the given string and merges it with the current contents of builder.."
+msgstr ""
+
+#: ../source/builder.txt:132
+# 053061f497514ab58661abde222d53b7
+msgid "Same as :meth:`Gtk.Builder.add_from_file`, but loads only the objects with the ids given in the *object_ids* list."
+msgstr ""
+
+#: ../source/builder.txt:136
+# dae942bfeff34bcd9cb423ae922828a0
+msgid "Same as :meth:`Gtk.Builder.add_from_string`, but loads only the objects with the ids given in the *object_ids* list."
+msgstr ""
+
+#: ../source/builder.txt:140
+# 3243bb7f31034ef9bd770607537088ec
+msgid "Retrieves the widget with the id *object_id* from the loaded objects in the builder."
+msgstr ""
+
+#: ../source/builder.txt:144
+# ebb26787b6934b34a70d87efff20c5e3
+msgid "Returns all loaded objects."
+msgstr ""
+
+#: ../source/builder.txt:148
+# e9a126ca6c934e2e853cc06e84f6a09d
+msgid "Connects the signals to the methods given in the *handler_object*. The *handler_object* can be any object which contains keys or attributes that are called like the signal handler names given in the interface description, e.g. a class or a dict."
+msgstr ""
+
+#: ../source/builder.txt:152
+# 0e4cf26d6bba4ec0bdd4f7caded78cf2
+msgid "Example"
+msgstr ""
+
+#: ../source/builder.txt:153
+# e467a8fa24734891b413c05913455413
+msgid "The final code of the example"
+msgstr ""
+
Oops, something went wrong.

0 comments on commit dce5516

Please sign in to comment.