gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] Automatic patient 'titles' (Mr, Ms) redundant to assi


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] Automatic patient 'titles' (Mr, Ms) redundant to assigned
Date: Mon, 28 Nov 2011 15:03:34 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun, Nov 27, 2011 at 11:23:32AM +0100, Karsten Hilbert wrote:

> > > > Also, if you *are* going to include a title, the sequence (format)
> > > > should be
> > > > 
> > > > 
> > > >         Surname, Title Firstnames 'Nicknames'
> > > > 
> > > > or
> > > > 
> > > > 
> > > >         Title Firstnames 'Nicknames' Surname
> > > > 
> > > > not
> > > > 
> > > > 
> > > >         Title Surnames …
> 
> Rules in German are different (and I bet other languages use
> different rules yet).
> 
> We'll see what can be done. I'll try to factor out the
> order to translators.

GNUmed now does this:

        #--------------------------------------------------------
        def get_description_gender(self):
                return _(u'%(last)s,%(title)s %(first)s%(nick)s (%(sex)s)') % {
                        'last': self._payload[self._idx['lastnames']],
                        'title': 
gmTools.coalesce(self._payload[self._idx['title']], u'', u' %s'),
                        'first': self._payload[self._idx['firstnames']],
                        'nick': 
gmTools.coalesce(self._payload[self._idx['preferred']], u'', u" '%s'"),
                        'sex': self.gender_symbol
                }
        #--------------------------------------------------------

Karsten
-- 
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



reply via email to

[Prev in Thread] Current Thread [Next in Thread]