From 648d0b4a521c9ff823a5985f04076a2d0afe2e9c Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Mon, 24 Jul 2006 18:30:42 +0000 Subject: [PATCH] * src/DisplayTabs/_BackRefModel.py (BackRefModel.load_model): Translate displayed object type. svn: r7067 --- ChangeLog | 2 ++ src/DisplayTabs/_BackRefModel.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4790f950a..a799b58eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,6 @@ 2006-07-24 Alex Roitman + * src/DisplayTabs/_BackRefModel.py (BackRefModel.load_model): + Translate displayed object type. * debian/control (Build-Depends-Indep): Add python-central; (XS-Python-Version): Add. diff --git a/src/DisplayTabs/_BackRefModel.py b/src/DisplayTabs/_BackRefModel.py index bc80d2e13..110a44d21 100644 --- a/src/DisplayTabs/_BackRefModel.py +++ b/src/DisplayTabs/_BackRefModel.py @@ -92,6 +92,8 @@ class BackRefModel(gtk.ListStore): gid = p.gramps_id handle = p.handle - self.append(row=[dtype, gid, name, handle]) + # dtype is the class name, i.e. is English + # We need to use localized string in the model. + self.append(row=[_(dtype), gid, name, handle]) yield True yield False