diff --git a/po/pl.po b/po/pl.po index f15183dba..25f42fe18 100644 --- a/po/pl.po +++ b/po/pl.po @@ -9,7 +9,7 @@ msgstr "" "Project-Id-Version: GRAMPS 3.1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-11-24 07:53+0100\n" -"PO-Revision-Date: 2009-11-25 22:53+0100\n" +"PO-Revision-Date: 2010-01-27 22:48+0100\n" "Last-Translator: Łukasz Rymarczyk \n" "Language-Team: Łukasz Rymarczyk \n" "MIME-Version: 1.0\n" @@ -10928,7 +10928,7 @@ msgstr "Raport relacji rodzinnych dla %s" #: ../src/plugins/textreport/KinshipReport.py:133 #, python-format msgid "spouses of %s" -msgstr "konkubenci %s" +msgstr "małżonkowie %s" #: ../src/plugins/textreport/KinshipReport.py:343 msgid "The maximum number of descendant generations" diff --git a/src/plugins/rel/rel_pl.py b/src/plugins/rel/rel_pl.py index c9b27e98a..8758f9833 100644 --- a/src/plugins/rel/rel_pl.py +++ b/src/plugins/rel/rel_pl.py @@ -810,7 +810,45 @@ class RelationshipCalculator(Relationship.RelationshipCalculator): rel_str ="nieokreślony stopień pokrewieństwa" return rel_str - + + + def get_plural_relationship_string(self, Ga, Gb): + """ + 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):