Skip to content

Commit d5e72d0

Browse files
Nick-HallGaryGriffin
authored andcommitted
Add a couple of translation comments
1 parent abcda62 commit d5e72d0

File tree

3 files changed

+32
-28
lines changed

3 files changed

+32
-28
lines changed

DescendantSpaceTree/DescendantSpaceTree.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,7 @@ def _i18n_html(self, proto):
910910
"___HELP_TEXT4___",
911911
html.escape(
912912
_(
913+
# Translators: Please do not translate ___HELP_RESET_BUTTON___.
913914
"Click on the reset button ___HELP_RESET_BUTTON___ to "
914915
"reset back to the starting descendant."
915916
)
@@ -970,6 +971,7 @@ def _i18n_html(self, proto):
970971
"___HELP_TEXT10___",
971972
html.escape(
972973
_(
974+
# Translators: Please do not translate ___NAV_BUTTON_CONTINUE___ or ___NAV_BUTTON_ALT___.
973975
"A person may occur in different branches. This is "
974976
"usually because of inter-family marriages (such as "
975977
"that of cousins.) In this case, a button will also "

DescendantSpaceTree/po/template.pot

Lines changed: 29 additions & 27 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: 2025-08-13 17:43+0100\n"
11+
"POT-Creation-Date: 2025-08-13 18:19+0100\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -170,13 +170,14 @@ msgstr ""
170170
msgid "Click and drag anywhere on the viewer to position the descendant tree."
171171
msgstr ""
172172

173-
#: DescendantSpaceTree/DescendantSpaceTree.py:913
173+
#. Translators: Please do not translate ___HELP_RESET_BUTTON___.
174+
#: DescendantSpaceTree/DescendantSpaceTree.py:914
174175
msgid ""
175176
"Click on the reset button ___HELP_RESET_BUTTON___ to reset back to the "
176177
"starting descendant."
177178
msgstr ""
178179

179-
#: DescendantSpaceTree/DescendantSpaceTree.py:922
180+
#: DescendantSpaceTree/DescendantSpaceTree.py:923
180181
msgid ""
181182
"Search for a person by typing into the search box. At least three "
182183
"characters are required to search. Click on any of the suggestions to "
@@ -185,31 +186,32 @@ msgid ""
185186
"spouse."
186187
msgstr ""
187188

188-
#: DescendantSpaceTree/DescendantSpaceTree.py:935
189+
#: DescendantSpaceTree/DescendantSpaceTree.py:936
189190
msgid ""
190191
"A descendant and any spouses are listed in the same node. Children of all "
191192
"of the descendant's families are grouped together."
192193
msgstr ""
193194

194-
#: DescendantSpaceTree/DescendantSpaceTree.py:945
195+
#: DescendantSpaceTree/DescendantSpaceTree.py:946
195196
msgid ""
196197
"Persons born after a specified date may not display their birth or death "
197198
"dates."
198199
msgstr ""
199200

200-
#: DescendantSpaceTree/DescendantSpaceTree.py:954
201+
#: DescendantSpaceTree/DescendantSpaceTree.py:955
201202
msgid ""
202203
"Person nodes are colored to indicate the number of children, the deeper tint "
203204
"of the coloring, the greater number of children."
204205
msgstr ""
205206

206-
#: DescendantSpaceTree/DescendantSpaceTree.py:964
207+
#: DescendantSpaceTree/DescendantSpaceTree.py:965
207208
msgid ""
208209
"The currently selected descendant and all of the ancestors of that person "
209210
"are highlighted in yellow."
210211
msgstr ""
211212

212-
#: DescendantSpaceTree/DescendantSpaceTree.py:973
213+
#. Translators: Please do not translate ___NAV_BUTTON_CONTINUE___ or ___NAV_BUTTON_ALT___.
214+
#: DescendantSpaceTree/DescendantSpaceTree.py:975
213215
msgid ""
214216
"A person may occur in different branches. This is usually because of inter-"
215217
"family marriages (such as that of cousins.) In this case, a button will "
@@ -218,82 +220,82 @@ msgid ""
218220
"expand descendants of this person. "
219221
msgstr ""
220222

221-
#: DescendantSpaceTree/DescendantSpaceTree.py:987
223+
#: DescendantSpaceTree/DescendantSpaceTree.py:989
222224
msgid ""
223225
"The following open source projects are used in building this viewer, see "
224226
"source code LICENSE*.txt files for complete licenses and required notices."
225227
msgstr ""
226228

227-
#: DescendantSpaceTree/DescendantSpaceTree.py:1014
229+
#: DescendantSpaceTree/DescendantSpaceTree.py:1016
228230
msgid "Search. . ."
229231
msgstr ""
230232

231-
#: DescendantSpaceTree/DescendantSpaceTree.py:1070
233+
#: DescendantSpaceTree/DescendantSpaceTree.py:1072
232234
msgid "Report Options"
233235
msgstr ""
234236

235-
#: DescendantSpaceTree/DescendantSpaceTree.py:1074
237+
#: DescendantSpaceTree/DescendantSpaceTree.py:1076
236238
msgid "Center Person"
237239
msgstr ""
238240

239-
#: DescendantSpaceTree/DescendantSpaceTree.py:1075
241+
#: DescendantSpaceTree/DescendantSpaceTree.py:1077
240242
msgid "The center person for the report"
241243
msgstr ""
242244

243-
#: DescendantSpaceTree/DescendantSpaceTree.py:1080
245+
#: DescendantSpaceTree/DescendantSpaceTree.py:1082
244246
msgid "Include Generations"
245247
msgstr ""
246248

247-
#: DescendantSpaceTree/DescendantSpaceTree.py:1083
249+
#: DescendantSpaceTree/DescendantSpaceTree.py:1085
248250
msgid "The number of generations to include in the report"
249251
msgstr ""
250252

251-
#: DescendantSpaceTree/DescendantSpaceTree.py:1089
253+
#: DescendantSpaceTree/DescendantSpaceTree.py:1091
252254
msgid "Branch to expand when duplicated"
253255
msgstr ""
254256

255-
#: DescendantSpaceTree/DescendantSpaceTree.py:1100
257+
#: DescendantSpaceTree/DescendantSpaceTree.py:1102
256258
msgid ""
257259
"When a descendant appears more than once, prefer the selected lineage to "
258260
"expand descendancy line"
259261
msgstr ""
260262

261-
#: DescendantSpaceTree/DescendantSpaceTree.py:1108
263+
#: DescendantSpaceTree/DescendantSpaceTree.py:1110
262264
msgid "Maximum display birth year"
263265
msgstr ""
264266

265-
#: DescendantSpaceTree/DescendantSpaceTree.py:1111
267+
#: DescendantSpaceTree/DescendantSpaceTree.py:1113
266268
msgid "Birth/death dates will not be displayed after this year"
267269
msgstr ""
268270

269-
#: DescendantSpaceTree/DescendantSpaceTree.py:1116
271+
#: DescendantSpaceTree/DescendantSpaceTree.py:1118
270272
msgid "Theme preference"
271273
msgstr ""
272274

273-
#: DescendantSpaceTree/DescendantSpaceTree.py:1123
275+
#: DescendantSpaceTree/DescendantSpaceTree.py:1125
274276
msgid "Theme color preference for Space Tree"
275277
msgstr ""
276278

277-
#: DescendantSpaceTree/DescendantSpaceTree.py:1128
279+
#: DescendantSpaceTree/DescendantSpaceTree.py:1130
278280
msgid "Destination"
279281
msgstr ""
280282

281-
#: DescendantSpaceTree/DescendantSpaceTree.py:1130
283+
#: DescendantSpaceTree/DescendantSpaceTree.py:1132
282284
msgid "The destination path for generated files."
283285
msgstr ""
284286

285-
#: DescendantSpaceTree/DescendantSpaceTree.py:1136
287+
#: DescendantSpaceTree/DescendantSpaceTree.py:1138
286288
msgid "Destination File"
287289
msgstr ""
288290

289-
#: DescendantSpaceTree/DescendantSpaceTree.py:1138
291+
#: DescendantSpaceTree/DescendantSpaceTree.py:1140
290292
msgid "The destination file name for the report."
291293
msgstr ""
292294

293-
#: DescendantSpaceTree/DescendantSpaceTree.py:1142
295+
#: DescendantSpaceTree/DescendantSpaceTree.py:1144
294296
msgid "Open with default viewer"
295297
msgstr ""
296298

297-
#: DescendantSpaceTree/DescendantSpaceTree.py:1144
299+
#: DescendantSpaceTree/DescendantSpaceTree.py:1146
298300
msgid "Open generated HTML file with default browser."
299301
msgstr ""

make.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def register(ptype, **kwargs):
403403
fnames = " ".join(glob.glob(f"{addon}/*.py"))
404404
system(
405405
f"xgettext --language=Python --keyword=_ --keyword=N_"
406-
f" --from-code=UTF-8"
406+
f" --from-code=UTF-8 --add-comments=Translators"
407407
f' -o "{addon}/po/template.pot" {fnames} '
408408
)
409409
fnames = " ".join(glob.glob("%s/*.glade" % addon))

0 commit comments

Comments
 (0)