From ddb87e77a813b36857a0c7bca6f293db7f739d6d Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Thu, 28 Jan 2010 04:51:51 +0000 Subject: [PATCH] =?UTF-8?q?Update=20to=20polish=20translation=20from=20?= =?UTF-8?q?=C5=81ukasz=20Rymarczyk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn: r14151 --- po/pl.po | 2 +- src/plugins/rel/rel_pl.py | 42 ++++++++++++++++++++++++++++++++++++++- 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/po/pl.po b/po/pl.po index 65fbf9639..2e6f27ac9 100644 --- a/po/pl.po +++ b/po/pl.po @@ -12112,7 +12112,7 @@ msgstr "Raport relacji rodzinnych dla %s" #: ../src/plugins/textreport/KinshipReport.py:136 #, python-format msgid "spouses of %s" -msgstr "konkubenci %s" +msgstr "małżonkowie %s" #: ../src/plugins/textreport/KinshipReport.py:344 msgid "The maximum number of descendant generations" diff --git a/src/plugins/rel/rel_pl.py b/src/plugins/rel/rel_pl.py index 9c37eb962..3d6e1fbd0 100644 --- a/src/plugins/rel/rel_pl.py +++ b/src/plugins/rel/rel_pl.py @@ -799,7 +799,47 @@ class RelationshipCalculator(Relationship.RelationshipCalculator): rel_str = "nieokreślony stopień pokrewieństwa" return rel_str - + + def get_plural_relationship_string(self, Ga, Gb, + reltocommon_a='', reltocommon_b='', + only_birth=True, + in_law_a=False, in_law_b=False): + """ + Generate a text with information, how far away is a group of persons + from a main person + """ + + if Ga == Gb == 0: + return 'ta sama osoba' + if 0 == Ga: + if 1 == Gb: + return 'Dzieci' + if 2 == Gb: + return 'Wnuki' + if 3 == Gb: + return 'Prawnuki' + if 4 == Gb: + return 'Praprawnuki' + return 'Praprapra(n)wnuki' + if 0 == Gb: + if 1 == Ga: + return 'Rodzice' + if 2 == Ga: + return 'Dziadkowie' + if 3 == Ga: + return 'Pradziadkowie' + if 4 == Ga: + return 'Praprapradziadkowie' + return 'Praprapra(n)dziadkowie' + if 1 == Ga == Gb: + return 'Rodzeństwo' + if 1 == Gb and Ga > 1: + return 'Wujowie/stryjowie i ciocie' + if 1 < Gb and 1 == Ga: + return 'bratankowie(ice)/siostrzeńcy(nice)' + if 1 < Ga and 1 < Gb: + return 'dalsza rodzina' + return 'relacja nieznana' def get_sibling_relationship_string(self, sib_type, gender_a, gender_b, in_law_a=False, in_law_b=False):