Possible Detailed Ancestor Report bug

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Possible Detailed Ancestor Report bug

Stefan Björk
No matter how I do, I can't get the Detailed Ancestor Report to write
anything else but that "Stefan is the child of...". Never "Stefan is
the son of" or "Jenny is the daughter of".

I know these strings exists, because I have translated them. I have
tried to track down the possible error i DetAncestorReport.py and
ReportUtils.py, but I lack the overall knowledge of the Gramps source
and is quite unused to Python.

Stefan

--
Stefan Björk, student                http://www.acc.umu.se/~skalman/
Umeå Universitet                                      +46-70-6222437

attachment0 (192 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Possible Detailed Ancestor Report bug

Alex Roitman
Stefan,

On Thu, 2006-04-27 at 08:19 +0200, Stefan Björk wrote:
> No matter how I do, I can't get the Detailed Ancestor Report to write
> anything else but that "Stefan is the child of...". Never "Stefan is
> the son of" or "Jenny is the daughter of".
>
> I know these strings exists, because I have translated them. I have
> tried to track down the possible error i DetAncestorReport.py and
> ReportUtils.py, but I lack the overall knowledge of the Gramps source
> and is quite unused to Python.

It seems that we have two kinds of strings:
   He is the son of ...
and
   %(male_name)s is the child of ...

So if you check the option called
   Use nickname for common name
in the report dialog then it will use the first kind.
Otherwise it will use the second kind.
At the moment, there's no way to use the kind you want to.

I don't quite remember why it is this way, probably
because of otherwise repetitive strings. We may change
it around to using exclusively son and daughter when
the gender is known. I see no reason for not doing it.
However, it's too late to push this into 2.0.11.
I wish we caught it earlier... Oh well.

Alex

--
Alexander Roitman   http://www.gramps-project.org

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Possible Detailed Ancestor Report bug

Stefan Björk
Alex,

> So if you check the option called
>    Use nickname for common name
> in the report dialog then it will use the first kind.
> Otherwise it will use the second kind.
> At the moment, there's no way to use the kind you want to.

Not true. With the "use nickname for common name" checked, I get:

  "Stefan is the child of..."
 
With the same option unchecked, I get:

  "Bo Erik Stefan is the child of..."


Stefan


--
Stefan Björk, student                http://www.acc.umu.se/~skalman/
Umeå Universitet                                      +46-70-6222437

attachment0 (192 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Possible Detailed Ancestor Report bug

Alex Roitman
On Fri, 2006-04-28 at 08:24 +0200, Stefan Björk wrote:

> Alex,
>
> > So if you check the option called
> >    Use nickname for common name
> > in the report dialog then it will use the first kind.
> > Otherwise it will use the second kind.
> > At the moment, there's no way to use the kind you want to.
>
> Not true. With the "use nickname for common name" checked, I get:
>
>   "Stefan is the child of..."
>  
> With the same option unchecked, I get:
>
>   "Bo Erik Stefan is the child of..."
OK, you got me there :-)

The truth however is, we don't have the strings
   "%(name)s is the son... of", only
"%(name)s is the child of..." and "He is the son of..."

Alex

--
Alexander Roitman   http://www.gramps-project.org

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Possible Detailed Ancestor Report bug

Stefan Björk
On Fri, Apr 28, 2006 at 08:59:21AM -0700, Alex Roitman wrote:

> The truth however is, we don't have the strings
>    "%(name)s is the son... of", only
> "%(name)s is the child of..." and "He is the son of..."

I want the Detailed Ancestor Report to write "son" or "daughter"
instead of "child". If it says "Stefan" or "he" does not really matter.

Stefan

attachment0 (196 bytes) Download Attachment