4
4
# (Gramps - the genealogy software suite built on GTK+/GNOME)
5
5
#
6
6
# Copyright (C) 2008 Reinhard Mueller
7
- # Copyright (C) 2010 Jakim Friant
8
- # Copyright (C) 2023 Brian McCullough
7
+ # Copyright (C) 2010 Jakim Friant
8
+ # Copyright (C) 2023 Brian McCullough
9
9
#
10
10
# This program is free software; you can redistribute it and/or modify
11
11
# it under the terms of version 2 of the GNU General Public License as
37
37
from gramps .gen .const import GRAMPS_LOCALE as glocale
38
38
_ = glocale .translation .sgettext
39
39
40
- initial_message = _ ("\n ⛔ A local Genealogical Tree database has not yet been"
40
+ initial_message = _ (" ⛔ A local Genealogical Tree database has not yet been"
41
41
" loaded."
42
- "\n \n 👣 Next Steps:"
42
+ "\n \n 👣 Next Steps:"
43
43
"\n • From the \" Family Trees\" menu,"
44
44
" use the \" Manage Family Trees...\" option to"
45
45
" create a New (or to select an existing) Tree database."
@@ -174,6 +174,9 @@ def db_changed(self):
174
174
self .connect (self .dbstate .db , 'family-add' , self .update )
175
175
self .connect (self .dbstate .db , 'family-delete' , self .update )
176
176
self .connect (self .dbstate .db , 'family-update' , self .update )
177
+ self .connect (self .dbstate .db , 'person-rebuild' , self .update )
178
+ self .connect (self .dbstate .db , 'event-rebuild' , self .update )
179
+ self .connect (self .dbstate .db , 'family-rebuild' , self .update )
177
180
178
181
def _no_db (self ):
179
182
super ()._no_db ()
@@ -196,8 +199,8 @@ def main(self):
196
199
if not people :
197
200
# Set padding/margin
198
201
199
- self .set_text (_ ("\n ⛔ The current Tree database contains no people."
200
- "\n \n 👣 Next Steps:"
202
+ self .set_text (_ (" ⛔ The current Tree database contains no people."
203
+ "\n \n 👣 Next Steps:"
201
204
"\n Add a Family and a person in that family:"
202
205
"\n • A Family may be added via the \" Add\" menu"
203
206
"\n • A person may be added by pressing the \" +\" "
@@ -222,8 +225,8 @@ def main(self):
222
225
# complain if no Home Person
223
226
default_person = self .dbstate .db .get_default_person ()
224
227
if default_person is None :
225
- self .set_text (_ ("\n ⛔ No Person has been set as the focal Home Person."
226
- "\n \n 👣 Next Steps:"
228
+ self .set_text (_ (" ⛔ No Person has been set as the focal Home Person."
229
+ "\n \n 👣 Next Steps:"
227
230
"\n In the People view,"
228
231
" select someone to make them the \" Active Person\" , and set"
229
232
" them as the focal \" Home Person\" via the Edit menu." ))
0 commit comments