From dc39360017a72ab60c1c9e23bb248c651f8bf1ae Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Mon, 29 Apr 2013 22:10:18 +0000 Subject: [PATCH] make the name consistent, across gramps svn: r22121 --- gramps/gen/lib/eventtype.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/gen/lib/eventtype.py b/gramps/gen/lib/eventtype.py index 1a67f646f..f776807b2 100644 --- a/gramps/gen/lib/eventtype.py +++ b/gramps/gen/lib/eventtype.py @@ -333,18 +333,18 @@ class EventType(GrampsType): return self.value == event_type[0][0] # first one, the code return False - def get_abbreviation(self, trans_text=glocale.translation.sgettext): + def get_abbreviation(self, trans_text_=glocale.translation.sgettext): """ Returns the abbreviation for this event. Uses the explicitly given abbreviations, or first letter of each word, or the first three letters. Appends a period after the abbreviation, but not if string is in _ABBREVIATIONS. - If trans_text is passed in (a glocale.translation.sgettext) + If trans_text_ is passed in (a glocale.translation.sgettext) then the translated abbreviation will be returned instead. """ if self.value in self._ABBREVIATIONS: - return trans_text(self._ABBREVIATIONS[self.value]) + return trans_text_(self._ABBREVIATIONS[self.value]) else: abbrev = cuni(self) if " " in abbrev: