From 1b70943814fa654725c9b8e6e8de90aa0fa22b2d Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Tue, 23 Oct 2007 21:22:33 +0000 Subject: [PATCH] * src/Relationship.py: internationalization of a string 2007-10-23 Benny Malengier svn: r9239 --- ChangeLog | 3 +++ src/Relationship.py | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 30903b416..aa0fb8e37 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-10-23 Benny Malengier + * src/Relationship.py: internationalization of a string + 2007-10-23 Benny Malengier * src/plugins/RelCalc.py: better comment, issue #1181 diff --git a/src/Relationship.py b/src/Relationship.py index 54a4fe6a8..4d7052ba9 100644 --- a/src/Relationship.py +++ b/src/Relationship.py @@ -807,7 +807,9 @@ class RelationshipCalculator: other_person.get_gender() ) if is_spouse: - return (is_spouse + ' and ' + rel_str, common) + return (_('%(spouse_relation)s and %(other_relation)s') % { + 'spouse_relation': is_spouse, + 'other_relation': rel_str} , common ) else: return (rel_str, common) ## #original programmer did a sick joke here, switching first with other!