Skip to content

Commit 1820688

Browse files
committed
Update POT for translators
1 parent 5e011ee commit 1820688

1 file changed

Lines changed: 81 additions & 42 deletions

File tree

translations/PythonGTK3Tutorial.pot

Lines changed: 81 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2021-05-03 22:49+0200\n"
11+
"POT-Creation-Date: 2021-05-29 18:05+0200\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -284,12 +284,12 @@ msgstr ""
284284
#: ../../source/builder.txt:3
285285
msgid ""
286286
"The :class:`Gtk.Builder` class offers you the opportunity to design user "
287-
"interfaces without writing a single line of code. This is possible through "
288-
"describing the interface by an XML file and then loading the XML description "
289-
"at runtime and create the objects automatically, which the Builder class "
290-
"does for you. For the purpose of not needing to write the XML manually the "
291-
"`Glade <https://glade.gnome.org/>`_ application lets you create the user "
292-
"interface in a WYSIWYG (what you see is what you get) manner"
287+
"interfaces without writing a single line of code. This is achieved by "
288+
"defining the interface in an XML file and then loading that XML UI "
289+
"definition at runtime using the Builder class which creates the objects "
290+
"automatically. To avoid writing the XML manually use the `Glade <https://"
291+
"glade.gnome.org/>`_ application which lets you create the user interface in "
292+
"a WYSIWYG (what you see is what you get) manner"
293293
msgstr ""
294294

295295
#: ../../source/builder.txt:7
@@ -421,6 +421,35 @@ msgstr ""
421421
msgid "The final code of the example"
422422
msgstr ""
423423

424+
#: ../../source/builder.txt:125
425+
msgid "Gtk.Template"
426+
msgstr ""
427+
428+
#: ../../source/builder.txt:126
429+
msgid ""
430+
":class:`Gtk.WidgetClass` allows UI definition files to be used to extend a "
431+
"widget, PyGObject provides :doc:`guide/gtk_template` as a way of accessing "
432+
"this from Python."
433+
msgstr ""
434+
435+
#: ../../source/builder.txt:129
436+
msgid ""
437+
"The UI definition file used in the example needs a small change to include a "
438+
"*<template>* element:"
439+
msgstr ""
440+
441+
#: ../../source/builder.txt:134
442+
msgid ""
443+
"Then it can be used to implement the example with a :class:`Gtk.Window` "
444+
"subclass:"
445+
msgstr ""
446+
447+
#: ../../source/builder.txt:139
448+
msgid ""
449+
"More information can be found at the `PyGObject <https://pygobject."
450+
"readthedocs.io/en/latest/guide/gtk_template.html>`_ website."
451+
msgstr ""
452+
424453
#: ../../source/button_widgets.txt:2
425454
msgid "Button Widgets"
426455
msgstr ""
@@ -2994,11 +3023,11 @@ msgid "The following are some of the common styles applied to text:"
29943023
msgstr ""
29953024

29963025
#: ../../source/textview.txt:101
2997-
msgid "Background colour (\"foreground\" property)"
3026+
msgid "Background colour (\"background\" property)"
29983027
msgstr ""
29993028

30003029
#: ../../source/textview.txt:102
3001-
msgid "Foreground colour (\"background\" property)"
3030+
msgid "Foreground colour (\"foreground\" property)"
30023031
msgstr ""
30033032

30043033
#: ../../source/textview.txt:103
@@ -3198,125 +3227,135 @@ msgstr ""
31983227
#: ../../source/treeview.txt:156
31993228
msgid ""
32003229
"Once the :class:`Gtk.TreeView` widget has a model, it will need to know how "
3201-
"to display the model. It does this with columns and cell renderers."
3230+
"to display the model. It does this with columns and cell renderers. :data:"
3231+
"`headers_visible <Gtk.TreeView.props.headers_visible>` controls whether it "
3232+
"displays column headers."
32023233
msgstr ""
32033234

3204-
#: ../../source/treeview.txt:159
3235+
#: ../../source/treeview.txt:161
32053236
msgid ""
3206-
"Cell renderers are used to draw the data in the tree model in a way. There "
3207-
"are a number of cell renderers that come with GTK+, for instance :class:`Gtk."
3208-
"CellRendererText`, :class:`Gtk.CellRendererPixbuf` and :class:`Gtk."
3209-
"CellRendererToggle`. In addition, it is relatively easy to write a custom "
3210-
"renderer yourself."
3237+
"Cell renderers are used to draw the data in the tree model in a specific "
3238+
"way. There are a number of cell renderers that come with GTK+, for instance :"
3239+
"class:`Gtk.CellRendererText`, :class:`Gtk.CellRendererPixbuf` and :class:"
3240+
"`Gtk.CellRendererToggle`. In addition, it is relatively easy to write a "
3241+
"custom renderer yourself by subclassing a :class:`Gtk.CellRenderer`, and "
3242+
"adding properties with :func:`GObject.Property`."
32113243
msgstr ""
32123244

3213-
#: ../../source/treeview.txt:165
3245+
#: ../../source/treeview.txt:169
32143246
msgid ""
32153247
"A :class:`Gtk.TreeViewColumn` is the object that :class:`Gtk.TreeView` uses "
3216-
"to organize the vertical columns in the tree view. It needs to know the name "
3217-
"of the column to label for the user, what type of cell renderer to use, and "
3218-
"which piece of data to retrieve from the model for a given row."
3248+
"to organize the vertical columns in the tree view and hold one or more cell "
3249+
"renderers. Each column may have a :data:`title <Gtk.TreeViewColumn.props."
3250+
"title>` that will be visible if the :class:`Gtk.TreeView` is showing column "
3251+
"headers. The model is mapped to the column by using keyword arguments with "
3252+
"properties of the renderer as the identifiers and indexes of the model "
3253+
"columns as the arguments."
32193254
msgstr ""
32203255

3221-
#: ../../source/treeview.txt:176
3256+
#: ../../source/treeview.txt:182
3257+
msgid "Positional arguments can be used for the column title and renderer."
3258+
msgstr ""
3259+
3260+
#: ../../source/treeview.txt:190
32223261
msgid ""
32233262
"To render more than one model column in a view column, you need to create a :"
32243263
"class:`Gtk.TreeViewColumn` instance and use :meth:`Gtk.TreeViewColumn."
32253264
"pack_start` to add the model columns to it."
32263265
msgstr ""
32273266

3228-
#: ../../source/treeview.txt:196
3267+
#: ../../source/treeview.txt:210
32293268
msgid "The Selection"
32303269
msgstr ""
32313270

3232-
#: ../../source/treeview.txt:197
3271+
#: ../../source/treeview.txt:211
32333272
msgid ""
32343273
"Most applications will need to not only deal with displaying data, but also "
32353274
"receiving input events from users. To do this, simply get a reference to a "
32363275
"selection object and connect to the \"changed\" signal."
32373276
msgstr ""
32383277

3239-
#: ../../source/treeview.txt:206
3278+
#: ../../source/treeview.txt:220
32403279
msgid "Then to retrieve data for the row selected:"
32413280
msgstr ""
32423281

3243-
#: ../../source/treeview.txt:215
3282+
#: ../../source/treeview.txt:229
32443283
msgid ""
32453284
"You can control what selections are allowed by calling :meth:`Gtk."
32463285
"TreeSelection.set_mode`. :meth:`Gtk.TreeSelection.get_selected` does not "
32473286
"work if the selection mode is set to :attr:`Gtk.SelectionMode.MULTIPLE`, "
32483287
"use :meth:`Gtk.TreeSelection.get_selected_rows` instead."
32493288
msgstr ""
32503289

3251-
#: ../../source/treeview.txt:222
3290+
#: ../../source/treeview.txt:236
32523291
msgid "Sorting"
32533292
msgstr ""
32543293

3255-
#: ../../source/treeview.txt:223
3294+
#: ../../source/treeview.txt:237
32563295
msgid ""
32573296
"Sorting is an important feature for tree views and is supported by the "
32583297
"standard tree models (:class:`Gtk.TreeStore` and :class:`Gtk.ListStore`), "
32593298
"which implement the :class:`Gtk.TreeSortable` interface."
32603299
msgstr ""
32613300

3262-
#: ../../source/treeview.txt:226
3301+
#: ../../source/treeview.txt:240
32633302
msgid "Sorting by clicking on columns"
32643303
msgstr ""
32653304

3266-
#: ../../source/treeview.txt:227
3305+
#: ../../source/treeview.txt:241
32673306
msgid ""
32683307
"A column of a :class:`Gtk.TreeView` can easily made sortable with a call to :"
32693308
"meth:`Gtk.TreeViewColumn.set_sort_column_id`. Afterwards the column can be "
32703309
"sorted by clicking on its header."
32713310
msgstr ""
32723311

3273-
#: ../../source/treeview.txt:230
3312+
#: ../../source/treeview.txt:244
32743313
msgid ""
32753314
"First we need a simple :class:`Gtk.TreeView` and a :class:`Gtk.ListStore` as "
32763315
"a model."
32773316
msgstr ""
32783317

3279-
#: ../../source/treeview.txt:249
3318+
#: ../../source/treeview.txt:263
32803319
msgid ""
32813320
"The next step is to enable sorting. Note that the *column_id* (``0`` in the "
32823321
"example) refers to the column of the model and **not** to the TreeView's "
32833322
"column."
32843323
msgstr ""
32853324

3286-
#: ../../source/treeview.txt:256
3325+
#: ../../source/treeview.txt:270
32873326
msgid "Setting a custom sort function"
32883327
msgstr ""
32893328

3290-
#: ../../source/treeview.txt:257
3329+
#: ../../source/treeview.txt:271
32913330
msgid ""
32923331
"It is also possible to set a custom comparison function in order to change "
32933332
"the sorting behaviour. As an example we will create a comparison function "
32943333
"that sorts case-sensitive. In the example above the sorted list looked like::"
32953334
msgstr ""
32963335

3297-
#: ../../source/treeview.txt:270
3336+
#: ../../source/treeview.txt:284
32983337
msgid "The case-sensitive sorted list will look like::"
32993338
msgstr ""
33003339

3301-
#: ../../source/treeview.txt:281
3340+
#: ../../source/treeview.txt:295
33023341
msgid ""
33033342
"First of all a comparison function is needed. This function gets two rows "
33043343
"and has to return a negative integer if the first one should come before the "
33053344
"second one, zero if they are equal and a positive integer if the second one "
33063345
"should come before the second one."
33073346
msgstr ""
33083347

3309-
#: ../../source/treeview.txt:297
3348+
#: ../../source/treeview.txt:311
33103349
msgid ""
33113350
"Then the sort function has to be set by :meth:`Gtk.TreeSortable."
33123351
"set_sort_func`."
33133352
msgstr ""
33143353

3315-
#: ../../source/treeview.txt:304
3354+
#: ../../source/treeview.txt:318
33163355
msgid "Filtering"
33173356
msgstr ""
33183357

3319-
#: ../../source/treeview.txt:305
3358+
#: ../../source/treeview.txt:319
33203359
msgid ""
33213360
"Unlike sorting, filtering is not handled by the two models we previously "
33223361
"saw, but by the :class:`Gtk.TreeModelFilter` class. This class, like :class:"
@@ -3330,29 +3369,29 @@ msgid ""
33303369
"TreeModelSort` instances."
33313370
msgstr ""
33323371

3333-
#: ../../source/treeview.txt:307
3372+
#: ../../source/treeview.txt:321
33343373
msgid ""
33353374
"You can create a new instance of a :class:`Gtk.TreeModelFilter` and give it "
33363375
"a model to filter, but the easiest way is to spawn it directly from the "
33373376
"filtered model, using the :meth:`Gtk.TreeModel.filter_new` method."
33383377
msgstr ""
33393378

3340-
#: ../../source/treeview.txt:313
3379+
#: ../../source/treeview.txt:327
33413380
msgid ""
33423381
"In the same way the sorting function works, the :class:`Gtk.TreeModelFilter` "
33433382
"uses a \"visibility\" function, which, given a row from the underlying "
33443383
"model, will return a boolean indicating if this row should be filtered out "
33453384
"or not. It's set by :meth:`Gtk.TreeModelFilter.set_visible_func`:"
33463385
msgstr ""
33473386

3348-
#: ../../source/treeview.txt:319
3387+
#: ../../source/treeview.txt:333
33493388
msgid ""
33503389
"The alternative to a \"visibility\" function is to use a boolean column in "
33513390
"the model to specify which rows to filter. Choose which column with :meth:"
33523391
"`Gtk.TreeModelFilter.set_visible_column`."
33533392
msgstr ""
33543393

3355-
#: ../../source/treeview.txt:321
3394+
#: ../../source/treeview.txt:335
33563395
msgid ""
33573396
"Let's look at a full example which uses the whole :class:`Gtk.ListStore` - :"
33583397
"class:`Gtk.TreeModelFilter` - :class:`Gtk.TreeModelFilter` - :class:`Gtk."

0 commit comments

Comments
 (0)