From: Frederik Gladhorn Date: Mon, 24 Sep 2007 21:59:57 +0000 (+0000) Subject: Write tags for male/female have different conjugations and also interpret them correc... X-Git-Tag: v3.94.0~14 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=7c1ae508021c5385fda26a3b669e6f44f0f969d7;p=libqmvoc.git Write tags for male/female have different conjugations and also interpret them correctly in the pronouns page. svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=716552 --- diff --git a/keduvocdocument/keduvockvtml2writer.cpp b/keduvocdocument/keduvockvtml2writer.cpp index eb7ea0e..7d0a354 100644 --- a/keduvocdocument/keduvockvtml2writer.cpp +++ b/keduvocdocument/keduvockvtml2writer.cpp @@ -629,6 +629,12 @@ bool KEduVocKvtml2Writer::writePersonalPronoun(QDomElement & pronounElement, con number.appendChild( newTextElement( KVTML_THIRD_FEMALE, third_female ) ); number.appendChild( newTextElement( KVTML_THIRD_NEUTER_COMMON, third_neutral ) ); + if ( pronoun.maleFemaleDifferent() ) { + number.appendChild( m_domDoc.createElement( KVTML_THIRD_PERSON_MALE_FEMALE_DIFFERENT ) ); + } + if ( pronoun.neuterExists() ) { + number.appendChild( m_domDoc.createElement( KVTML_THIRD_PERSON_NEUTER_EXISTS ) ); + } pronounElement.appendChild( number ); } }