diff --git a/gramps/src/EditPerson.glade b/gramps/src/EditPerson.glade
index debff5183..4990bc5b4 100644
--- a/gramps/src/EditPerson.glade
+++ b/gramps/src/EditPerson.glade
@@ -888,7 +888,7 @@
GtkFrame
frame5
- Photo
+ Image
0
GTK_SHADOW_ETCHED_IN
@@ -2887,7 +2887,7 @@
editPerson
Sat, 09 Dec 2000 22:09:54 GMT
- Add Photo
+ Add Image
GTK_RELIEF_NORMAL
@@ -2902,7 +2902,7 @@
editPerson
Sun, 10 Dec 2000 03:48:08 GMT
- Delete Photo
+ Delete Image
GTK_RELIEF_NORMAL
diff --git a/gramps/src/EditPerson.py b/gramps/src/EditPerson.py
index 1090a36e5..67353e1a2 100644
--- a/gramps/src/EditPerson.py
+++ b/gramps/src/EditPerson.py
@@ -407,8 +407,8 @@ class EditPerson:
attr = "N"
if event.getSourceRef().getBase():
attr = attr + "S"
- self.event_list.append([event.getName(),event.getQuoteDate(),\
- event.getPlace(),attr])
+ self.event_list.append([const.display_pevent(event.getName()),\
+ event.getQuoteDate(), event.getPlace(),attr])
self.event_list.set_row_data(self.event_index,event)
self.event_index = self.event_index + 1
@@ -864,7 +864,7 @@ def on_event_select_row(obj,row,b,c):
edit_person_obj = obj.get_data(EDITPERSON)
edit_person_obj.event_date_field.set_text(event.getDate())
edit_person_obj.event_place_field.set_text(event.getPlace())
- edit_person_obj.event_name_field.set_text(event.getName())
+ edit_person_obj.event_name_field.set_text(const.display_pevent(event.getName()))
edit_person_obj.event_descr_field.set_text(event.getDescription())
#-------------------------------------------------------------------------
@@ -942,8 +942,8 @@ def update_event(event,name,date,place,desc):
event.setPlace(place)
utils.modified()
- if event.getName() != name:
- event.setName(name)
+ if event.getName() != const.save_pevent(name):
+ event.setName(const.save_pevent(name))
utils.modified()
if event.getDescription() != desc:
@@ -1289,11 +1289,11 @@ def on_photolist_button_press_event(obj,event):
menu = GtkMenu()
item = GtkTearoffMenuItem()
item.show()
- view = GtkMenuItem(_("View Photo"))
+ view = GtkMenuItem(_("View Image"))
view.set_data("m",myobj)
view.connect("activate",on_view_photo)
view.show()
- edit = GtkMenuItem(_("Edit Photo"))
+ edit = GtkMenuItem(_("Edit Image"))
edit.set_data("m",myobj)
edit.connect("activate",on_edit_photo)
edit.show()
diff --git a/gramps/src/EditSource.py b/gramps/src/EditSource.py
index 6f09fd659..c5f181aee 100644
--- a/gramps/src/EditSource.py
+++ b/gramps/src/EditSource.py
@@ -280,11 +280,11 @@ def on_photolist_button_press_event(obj,event):
menu = GtkMenu()
item = GtkTearoffMenuItem()
item.show()
- view = GtkMenuItem(_("View Photo"))
+ view = GtkMenuItem(_("View Image"))
view.set_data("m",myobj)
view.connect("activate",on_view_photo)
view.show()
- edit = GtkMenuItem(_("Edit Photo"))
+ edit = GtkMenuItem(_("Edit Image"))
edit.set_data("m",myobj)
edit.connect("activate",on_edit_photo)
edit.show()
diff --git a/gramps/src/Marriage.py b/gramps/src/Marriage.py
index 28ddea00e..1aa833b8b 100644
--- a/gramps/src/Marriage.py
+++ b/gramps/src/Marriage.py
@@ -240,10 +240,10 @@ class Marriage:
self.event_list.freeze()
self.event_list.clear()
- self.add_event("Marriage",self.family.getMarriage())
- self.add_event("Divorce",self.family.getDivorce())
+ self.add_event(const.display_fevent("Marriage"),self.family.getMarriage())
+ self.add_event(const.display_fevent("Divorce"),self.family.getDivorce())
for event in self.family.getEventList():
- self.add_event(event.getName(),event)
+ self.add_event(const.display_fevent(event.getName()),event)
current_row = self.event_list.get_data(INDEX)
if current_row == None:
@@ -395,7 +395,7 @@ def on_select_row(obj,row,b,c):
family_obj.date_field.set_text(event.getDate())
family_obj.place_field.set_text(event.getPlace())
- family_obj.name_field.set_text(event.getName())
+ family_obj.name_field.set_text(const.display_fevent(event.getName()))
family_obj.descr_field.set_text(event.getDescription())
#-------------------------------------------------------------------------
@@ -412,8 +412,8 @@ def update_event(event,name,date,place,desc):
event.setPlace(place)
utils.modified()
- if event.getName() != name:
- event.setName(name)
+ if event.getName() != const.save_fevent(name):
+ event.setName(const.save_fevent(name))
utils.modified()
if event.getDescription() != desc:
@@ -447,11 +447,11 @@ def on_photolist_button_press_event(obj,event):
menu = GtkMenu()
item = GtkTearoffMenuItem()
item.show()
- view = GtkMenuItem(_("View Photo"))
+ view = GtkMenuItem(_("View Image"))
view.set_data("m",myobj)
view.connect("activate",on_view_photo)
view.show()
- edit = GtkMenuItem(_("Edit Photo"))
+ edit = GtkMenuItem(_("Edit Image"))
edit.set_data("m",myobj)
edit.connect("activate",on_edit_photo)
edit.show()
diff --git a/gramps/src/const.py b/gramps/src/const.py
index e693a3b09..6d88f0b54 100644
--- a/gramps/src/const.py
+++ b/gramps/src/const.py
@@ -112,6 +112,11 @@ childRelations = [
"Other"
]
+#-------------------------------------------------------------------------
+#
+# Family event string mappings
+#
+#-------------------------------------------------------------------------
familyConstantEvents = {
"Annulment" : "ANUL",
"Divorce Filing" : "DIVF",
@@ -123,6 +128,48 @@ familyConstantEvents = {
"Marriage" : "MARR"
}
+_fe_e2l = {
+ "Annulment" : _("Annulment"),
+ "Divorce Filing" : _("Divorce Filing"),
+ "Divorce" : _("Divorce"),
+ "Engagement" : _("Engagement"),
+ "Marriage Contract" : _("Marriage Contract"),
+ "Marriage License" : _("Marriage License"),
+ "Marriage Settlement" : _("Marriage Settlement"),
+ "Marriage" : _("Marriage")
+ }
+
+_fe_l2e = {}
+for a in _fe_e2l.keys():
+ _fe_l2e[_fe_e2l[a]] = a
+
+#-------------------------------------------------------------------------
+#
+#
+#
+#-------------------------------------------------------------------------
+def display_fevent(st):
+ if _fe_e2l.has_key(st):
+ return _fe_e2l[st]
+ else:
+ return st
+
+#-------------------------------------------------------------------------
+#
+#
+#
+#-------------------------------------------------------------------------
+def save_fevent(st):
+ if _fe_l2e.has_key(st):
+ return _fe_l2e[st]
+ else:
+ return st
+
+#-------------------------------------------------------------------------
+#
+#
+#
+#-------------------------------------------------------------------------
personalConstantEvents = {
"Adopted" : "ADOP",
"Alternate Birth" : "BIRT",
@@ -153,6 +200,39 @@ personalConstantEvents = {
"Retirement" : "RETI"
}
+_pe_e2l = {
+ "Adopted" : _("Adopted"),
+ "Alternate Birth" : _("Alternate Birth"),
+ "Alternate Death" : _("Alternate Death"),
+ "Baptism (LDS)" : _("Baptism (LDS)"),
+ "Baptism" : _("Baptism"),
+ "Bar Mitzvah" : _("Bar Mitzvah"),
+ "Bas Mitzvah" : _("Bas Mitzvah"),
+ "Burial" : _("Burial"),
+ "Cause Of Death" : _("Cause Of Death"),
+ "Census" : _("Census"),
+ "Christening" : _("Christening"),
+ "Confirmation" : _("Confirmation"),
+ "Cremation" : _("Cremation"),
+ "Degree" : _("Degree"),
+ "Divorce Filing" : _("Divorce Filing"),
+ "Education" : _("Education"),
+ "Elected" : _("Elected"),
+ "Emigration" : _("Emigration"),
+ "Graduation" : _("Graduation"),
+ "Military Service" : _("_MILT"),
+ "Naturalization" : _("Naturalization"),
+ "Occupation" : _("Occupation"),
+ "Probate" : _("Probate"),
+ "Religion" : _("Religion"),
+ "Residence" : _("Residence"),
+ "Retirement" : _("Retirement"),
+ }
+
+_pe_l2e = {}
+for a in _pe_e2l.keys():
+ _pe_l2e[_pe_e2l[a]] = a
+
personalConstantAttributes = {
"Description" : "DSCR",
"Identification Number": "IDNO",
@@ -169,6 +249,28 @@ familyConstantRelations = [
"Unknown"
]
+#-------------------------------------------------------------------------
+#
+#
+#
+#-------------------------------------------------------------------------
+def display_pevent(st):
+ if _pe_e2l.has_key(st):
+ return _pe_e2l[st]
+ else:
+ return st
+
+#-------------------------------------------------------------------------
+#
+#
+#
+#-------------------------------------------------------------------------
+def save_pevent(st):
+ if _pe_l2e.has_key(st):
+ return _pe_l2e[st]
+ else:
+ return st
+
personalEvents = personalConstantEvents.keys()
personalEvents.sort()
diff --git a/gramps/src/filters/EventType.py b/gramps/src/filters/EventType.py
index 9ed8319a9..03e33a34e 100644
--- a/gramps/src/filters/EventType.py
+++ b/gramps/src/filters/EventType.py
@@ -26,7 +26,6 @@ import intl
_ = intl.gettext
class EventType(Filter.Filter):
- "People who have photos"
def match(self,person):
for event in person.getEventList():
diff --git a/gramps/src/filters/HavePhotos.py b/gramps/src/filters/HavePhotos.py
index 1fa71e695..b862fb1df 100644
--- a/gramps/src/filters/HavePhotos.py
+++ b/gramps/src/filters/HavePhotos.py
@@ -18,7 +18,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
-"People who have photos"
+"People who have images"
import Filter
import string
@@ -27,7 +27,7 @@ import intl
_ = intl.gettext
class HavePhotos(Filter.Filter):
- "People who have photos"
+ "People who have images"
def match(self,person):
return len(person.getPhotoList()) > 0
@@ -39,4 +39,4 @@ def need_qualifier():
return 0
def get_name():
- return _("People who have photos")
+ return _("People who have images")
diff --git a/gramps/src/gramps.glade b/gramps/src/gramps.glade
index ad2505423..8d010f97f 100644
--- a/gramps/src/gramps.glade
+++ b/gramps/src/gramps.glade
@@ -419,7 +419,7 @@
GtkButton
Toolbar:button
button24
- Display list of people
+ Display the list of people
clicked
on_person_list1_activate
@@ -3840,7 +3840,7 @@ Other
sourceEditor
Thu, 31 May 2001 14:39:32 GMT
- Add Photo
+ Add Image
GTK_RELIEF_NORMAL
@@ -3855,7 +3855,7 @@ Other
sourceEditor
Thu, 31 May 2001 14:39:16 GMT
- Delete Photo
+ Delete Image
GTK_RELIEF_NORMAL
diff --git a/gramps/src/gramps_main.py b/gramps/src/gramps_main.py
index 047a844a5..1e3af62ac 100755
--- a/gramps/src/gramps_main.py
+++ b/gramps/src/gramps_main.py
@@ -538,7 +538,7 @@ def on_choose_parents_clicked(obj):
#
#-------------------------------------------------------------------------
def on_new_clicked(obj):
- msg = _("Do you want to close the current database and create a new database?")
+ msg = _("Do you want to close the current database and create a new one?")
topWindow.question(msg,new_database_response)
#-------------------------------------------------------------------------
diff --git a/gramps/src/imagesel.glade b/gramps/src/imagesel.glade
index 33a5cc076..85a88ddd3 100644
--- a/gramps/src/imagesel.glade
+++ b/gramps/src/imagesel.glade
@@ -307,7 +307,7 @@
photosel
photoselect
10
-
Select a photo
+ Select an image
False
False
@@ -445,7 +445,7 @@
GtkLabel
label119
- Change Photo Description
+ Change Image Description
GTK_JUSTIFY_CENTER
False
0.5
diff --git a/gramps/src/locale/sv/LC_MESSAGES/gramps.mo b/gramps/src/locale/sv/LC_MESSAGES/gramps.mo
index a6cd11f7a..e5c6aa859 100644
Binary files a/gramps/src/locale/sv/LC_MESSAGES/gramps.mo and b/gramps/src/locale/sv/LC_MESSAGES/gramps.mo differ
diff --git a/gramps/src/marriage.glade b/gramps/src/marriage.glade
index d6e100a9e..7c4cfa044 100644
--- a/gramps/src/marriage.glade
+++ b/gramps/src/marriage.glade
@@ -1069,7 +1069,7 @@
marriageEditor
Thu, 29 Mar 2001 13:45:03 GMT
- Add Photo
+ Add Image
GTK_RELIEF_NORMAL
@@ -1084,7 +1084,7 @@
marriageEditor
Thu, 29 Mar 2001 13:45:15 GMT
- Delete Photo
+ Delete Image
GTK_RELIEF_NORMAL
@@ -1094,7 +1094,7 @@
GtkLabel
Notebook:tab
label201
- Photos
+ Images
GTK_JUSTIFY_CENTER
False
0.5
diff --git a/gramps/src/plugins/Check.py b/gramps/src/plugins/Check.py
index 77745b629..37fc64268 100644
--- a/gramps/src/plugins/Check.py
+++ b/gramps/src/plugins/Check.py
@@ -151,13 +151,13 @@ class CheckIntegrity:
elif efam > 1:
text = text + _("%d empty families were found\n") % efam
if fphotos == 1:
- text = text + _("1 broken family photo was found\n")
+ text = text + _("1 broken family image was found\n")
elif fphotos > 1:
- text = text + _("%d broken family photos were found\n") % fphotos
+ text = text + _("%d broken family images were found\n") % fphotos
if pphotos == 1:
- text = text + _("1 broken personal photo was found\n")
+ text = text + _("1 broken personal image was found\n")
elif pphotos > 1:
- text = text + _("%d broken personal photos were found\n") % pphotos
+ text = text + _("%d broken personal images were found\n") % pphotos
GnomeWarningDialog(string.strip(text))
diff --git a/gramps/src/plugins/Summary.py b/gramps/src/plugins/Summary.py
index ca23bbbf7..dae03277b 100644
--- a/gramps/src/plugins/Summary.py
+++ b/gramps/src/plugins/Summary.py
@@ -93,11 +93,11 @@ def report(database,person):
text = text + "%s : %d\n" % (_("Individuals with incomplete names"),incomp_names)
text = text + "%s : %d\n" % (_("Individuals missing birth dates"),missing_bday)
text = text + "%s : %d\n" % (_("Disconnected individuals"),disconnected)
- text = text + "\n%s\n" % _("Photos and files")
+ text = text + "\n%s\n" % _("Images and files")
text = text + "----------------------------\n"
- text = text + "%s : %d\n" % (_("Individuals with photos"),with_photos)
- text = text + "%s : %d\n" % (_("Total number of photos"),total_photos)
- text = text + "%s : %d %s\n" % (_("Total size of photos"),bytes,_("bytes"))
+ text = text + "%s : %d\n" % (_("Individuals with images"),with_photos)
+ text = text + "%s : %d\n" % (_("Total number of images"),total_photos)
+ text = text + "%s : %d %s\n" % (_("Total size of images"),bytes,_("bytes"))
text = text + "\n%s\n" % _("Family Information")
text = text + "----------------------------\n"
text = text + "%s : %d\n" % (_("Number of families"),len(familyList))
diff --git a/gramps/src/plugins/htmlreport.glade b/gramps/src/plugins/htmlreport.glade
index 35d71a474..eb43c1245 100644
--- a/gramps/src/plugins/htmlreport.glade
+++ b/gramps/src/plugins/htmlreport.glade
@@ -424,7 +424,7 @@
on_nophotos_toggled
Sat, 31 Mar 2001 21:59:36 GMT
- Do not use photographs
+ Do not use images
False
True
@@ -438,7 +438,7 @@
GtkCheckButton
restrict_photos
True
- Do not use photographs for living people
+ Do not use images for living people
False
True
diff --git a/gramps/src/plugins/webpage.glade b/gramps/src/plugins/webpage.glade
index 2c4444e43..a55be7beb 100644
--- a/gramps/src/plugins/webpage.glade
+++ b/gramps/src/plugins/webpage.glade
@@ -447,7 +447,7 @@
on_nophotos_toggled
Sat, 31 Mar 2001 21:59:36 GMT
- Do not use photographs
+ Do not use images
False
True
@@ -462,7 +462,7 @@
restrict_photos
3
True
- Do not use photographs for living people
+ Do not use images for living people
False
True