* src/plugins/FamilyGroup.py: Remove setup() call.
* src/plugins/IndivSummary.py: Enable translation for an event type. * src/plugins/FtmStyleAncestors.py: Space after full stop. * src/const.py.in (display_pevent): Try translating string if not found in the _pe_e2l dictionary. Useful for translating Birth and Death events which are not in the dictionary as non-editable events. Seems harmless in the display function ; (display_fevent, display_event, display_pattr, display_fattr, display_attr, display_frel): Likewise. Might be useful in some cases and seems totally harmless. svn: r1973
This commit is contained in:
@ -226,7 +226,7 @@ def display_fevent(st):
|
||||
if _fe_e2l.has_key(st):
|
||||
return _fe_e2l[st]
|
||||
else:
|
||||
return st
|
||||
return _(st)
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@ -335,7 +335,7 @@ def display_pevent(st):
|
||||
if _pe_e2l.has_key(st):
|
||||
return _pe_e2l[st]
|
||||
else:
|
||||
return st
|
||||
return _(st)
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@ -360,7 +360,7 @@ def display_event(st):
|
||||
elif _fe_e2l.has_key(st):
|
||||
return _fe_e2l[st]
|
||||
else:
|
||||
return st
|
||||
return _(st)
|
||||
|
||||
def save_event(st):
|
||||
if _pe_l2e.has_key(st):
|
||||
@ -404,7 +404,7 @@ def display_pattr(st):
|
||||
if _pa_e2l.has_key(st):
|
||||
return _pa_e2l[st]
|
||||
else:
|
||||
return st
|
||||
return _(st)
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@ -443,7 +443,7 @@ def display_fattr(st):
|
||||
if _fa_e2l.has_key(st):
|
||||
return _fa_e2l[st]
|
||||
else:
|
||||
return st
|
||||
return _(st)
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@ -468,7 +468,7 @@ def display_attr(st):
|
||||
elif _fa_e2l.has_key(st):
|
||||
return _fa_e2l[st]
|
||||
else:
|
||||
return st
|
||||
return _(st)
|
||||
|
||||
def save_attr(st):
|
||||
if _pa_l2e.has_key(st):
|
||||
@ -524,7 +524,7 @@ def display_frel(st):
|
||||
if _fr_e2l.has_key(st):
|
||||
return _fr_e2l[st]
|
||||
else:
|
||||
return st
|
||||
return _(st)
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
Reference in New Issue
Block a user