From b620d6a03928b551fe063b9740c13e0935169642 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Tue, 5 Apr 2016 12:13:40 -0700 Subject: [PATCH] tweak Place details gramplet for alternative names: show language --- gramps/plugins/gramplet/placedetails.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/gramplet/placedetails.py b/gramps/plugins/gramplet/placedetails.py index 29d87dfbf..1bd8ddb95 100644 --- a/gramps/plugins/gramplet/placedetails.py +++ b/gramps/plugins/gramplet/placedetails.py @@ -125,7 +125,9 @@ class PlaceDetails(Gramplet): """ Display alternative names for the place. """ - alt_names = [name.get_value() for name in place.get_alternative_names()] + alt_names = ["%s (%s)" % (name.get_value(), name.get_language()) + if name.get_language() else name.get_value() + for name in place.get_alternative_names()] if len(alt_names) > 0: self.add_row(_('Alternative Names'), '\n'.join(alt_names))