Do not need to translate variables

svn: r14041
This commit is contained in:
Jérôme Rapinat 2010-01-12 10:51:36 +00:00
parent 263c87ff87
commit 9ccdb167cd
3 changed files with 8 additions and 9 deletions

View File

@ -24,7 +24,6 @@ src/gramps.py
src/ImgManip.py src/ImgManip.py
src/ListModel.py src/ListModel.py
src/ManagedWindow.py src/ManagedWindow.py
src/Navigation.py
src/PlaceUtils.py src/PlaceUtils.py
src/QuestionDialog.py src/QuestionDialog.py
src/QuickReports.py src/QuickReports.py

View File

@ -99,13 +99,13 @@ class DescendantGramplet(Gramplet):
if birth: if birth:
if birth_place: if birth_place:
self.append_text(_("%(event_abbrev)s %(birth_date)s - %(place)s") % { self.append_text("%(event_abbrev)s %(birth_date)s - %(place)s" % {
'event_abbrev': birth.type.get_abbreviation(), 'event_abbrev': birth.type.get_abbreviation(),
'birth_date' : birth_date, 'birth_date' : birth_date,
'place' : birth_place, 'place' : birth_place,
}) })
else: else:
self.append_text(_("%(event_abbrev)s %(birth_date)s") % { self.append_text("%(event_abbrev)s %(birth_date)s" % {
'event_abbrev': birth.type.get_abbreviation(), 'event_abbrev': birth.type.get_abbreviation(),
'birth_date' : birth_date 'birth_date' : birth_date
}) })
@ -114,13 +114,13 @@ class DescendantGramplet(Gramplet):
if birth: if birth:
self.append_text(', ') self.append_text(', ')
if death_place: if death_place:
self.append_text(_("%(event_abbrev)s %(death_date)s - %(place)s") % { self.append_text("%(event_abbrev)s %(death_date)s - %(place)s" % {
'event_abbrev': death.type.get_abbreviation(), 'event_abbrev': death.type.get_abbreviation(),
'death_date' : death_date, 'death_date' : death_date,
'place' : death_place, 'place' : death_place,
}) })
else: else:
self.append_text(_("%(event_abbrev)s %(death_date)s") % { self.append_text("%(event_abbrev)s %(death_date)s" % {
'event_abbrev': death.type.get_abbreviation(), 'event_abbrev': death.type.get_abbreviation(),
'death_date' : death_date 'death_date' : death_date
}) })

View File

@ -95,13 +95,13 @@ class DescendantReport(Report):
if bplace_handle: if bplace_handle:
birth_place = self.database.get_place_from_handle( birth_place = self.database.get_place_from_handle(
bplace_handle).get_title() bplace_handle).get_title()
self.doc.write_text(_("%(event_abbrev)s %(birth_date)s - %(place)s") % { self.doc.write_text("%(event_abbrev)s %(birth_date)s - %(place)s" % {
'event_abbrev': birth.type.get_abbreviation(), 'event_abbrev': birth.type.get_abbreviation(),
'birth_date' : birth_date, 'birth_date' : birth_date,
'place' : birth_place, 'place' : birth_place,
}) })
else: else:
self.doc.write_text(_("%(event_abbrev)s %(birth_date)s") % { self.doc.write_text("%(event_abbrev)s %(birth_date)s" % {
'event_abbrev': birth.type.get_abbreviation(), 'event_abbrev': birth.type.get_abbreviation(),
'birth_date' : birth_date 'birth_date' : birth_date
}) })
@ -114,13 +114,13 @@ class DescendantReport(Report):
if dplace_handle: if dplace_handle:
death_place = self.database.get_place_from_handle( death_place = self.database.get_place_from_handle(
dplace_handle).get_title() dplace_handle).get_title()
self.doc.write_text(_("%(event_abbrev)s %(death_date)s - %(place)s") % { self.doc.write_text("%(event_abbrev)s %(death_date)s - %(place)s" % {
'event_abbrev': death.type.get_abbreviation(), 'event_abbrev': death.type.get_abbreviation(),
'death_date' : death_date, 'death_date' : death_date,
'place' : death_place, 'place' : death_place,
}) })
else: else:
self.doc.write_text(_("%(event_abbrev)s %(death_date)s") % { self.doc.write_text("%(event_abbrev)s %(death_date)s" % {
'event_abbrev': death.type.get_abbreviation(), 'event_abbrev': death.type.get_abbreviation(),
'death_date' : death_date 'death_date' : death_date
}) })