-rw-r--r-- | kabc/addresseeview.cpp | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/kabc/addresseeview.cpp b/kabc/addresseeview.cpp index 202a718..7c70ab1 100644 --- a/kabc/addresseeview.cpp +++ b/kabc/addresseeview.cpp @@ -230,8 +230,18 @@ void AddresseeView::setAddressee( const KABC::Addressee& mAddressee ) "<tr><td align=\"right\"><b>%1</b></td>" "<td align=\"left\"><a href=\"notAllDetails\">%4</a></td></tr>" ) - .arg( i18n("Details:") ) - .arg( i18n("Click here to hide!") ); + .arg( i18n("Details") ) + .arg( i18n("Hide!") ); - QString tempX = mAddressee.secrecy().asString(); + QString tempX = mAddressee.custom( "KADDRESSBOOK", "X-Gender" ); + if ( !tempX.isEmpty() ) { + notes += QString( + "<tr><td align=\"right\"><b>%1</b></td>" + "<td align=\"left\">%2</td></tr>" ) + .arg( i18n( "" ) ) + .arg( i18n(tempX) ); + } + + + tempX = mAddressee.secrecy().asString(); notes += QString( @@ -241,5 +251,5 @@ void AddresseeView::setAddressee( const KABC::Addressee& mAddressee ) .arg( tempX ); - + tempX = mAddressee.categories().join(" - "); if ( !tempX.isEmpty() ) { @@ -314,12 +324,5 @@ void AddresseeView::setAddressee( const KABC::Addressee& mAddressee ) .arg( tempX ); } - tempX = mAddressee.custom( "KADDRESSBOOK", "X-Gender" ); - if ( !tempX.isEmpty() ) { - notes += QString( - "<tr><td align=\"right\"><b>%1</b></td>" - "<td align=\"left\">%2</td></tr>" ) - .arg( i18n( "Gender" ) ) - .arg( i18n(tempX) ); - } + tempX = mAddressee.custom( "KADDRESSBOOK", "X-Anniversary" ); if ( !tempX.isEmpty() ) { @@ -363,6 +366,6 @@ void AddresseeView::setAddressee( const KABC::Addressee& mAddressee ) "<tr><td align=\"right\"><b>%1</b></td>" "<td align=\"left\"><a href=\"allDetails\">%4</a></td></tr>" ) - .arg( i18n("Details:") ) - .arg( i18n("Click here to show!") ); + .arg( i18n("Details") ) + .arg( i18n("Show!") ); |