]> Git trees. - libqmvoc.git/commitdiff
Add i18nc comments for word types.
authorFrederik Gladhorn <gladhorn@kde.org>
Fri, 7 Sep 2007 15:15:32 +0000 (15:15 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Fri, 7 Sep 2007 15:15:32 +0000 (15:15 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=709476

keduvocdocument/keduvockvtmlcompability.cpp
keduvocdocument/keduvocwordtype.cpp

index cb68bee6323526e41ce978e5ae097c327717614b..3897b97b3ea6309c7606033f3788bd5f9923d090 100644 (file)
@@ -122,33 +122,34 @@ QSet< QString > KEduVocKvtmlCompability::documentUsages() const
 ////////////////// TYPES /////////////////////////////////////////
 void KEduVocKvtmlCompability::initOldTypeLists()
 {
+
     m_oldMainTypeNames.clear();
-    m_oldMainTypeNames.insert( "v", i18n( "Verb" ) );
-    m_oldMainTypeNames.insert( "n", i18n( "Noun" ) );
-    m_oldMainTypeNames.insert( "nm", i18n( "Name" ) );
-    m_oldMainTypeNames.insert( "ar", i18n( "Article" ) );
-    m_oldMainTypeNames.insert( "aj", i18n( "Adjective" ) );
-    m_oldMainTypeNames.insert( "av", i18n( "Adverb" ) );
-    m_oldMainTypeNames.insert( "pr", i18n( "Pronoun" ) );
-    m_oldMainTypeNames.insert( "ph", i18n( "Phrase" ) );
-    m_oldMainTypeNames.insert( "num", i18n( "Numeral" ) );
-    m_oldMainTypeNames.insert( "con", i18n( "Conjunction" ) );
-    m_oldMainTypeNames.insert( "pre", i18n( "Preposition" ) );
-    m_oldMainTypeNames.insert( "qu", i18n( "Question" ) );
+    m_oldMainTypeNames.insert( "v", i18nc( "@item:inlistbox The grammatical type of a word", "Verb" ) );
+    m_oldMainTypeNames.insert( "n", i18nc( "@item:inlistbox The grammatical type of a word", "Noun" ) );
+    m_oldMainTypeNames.insert( "nm", i18nc( "@item:inlistbox The grammatical type of a word", "Name" ) );
+    m_oldMainTypeNames.insert( "ar", i18nc( "@item:inlistbox The grammatical type of a word", "Article" ) );
+    m_oldMainTypeNames.insert( "aj", i18nc( "@item:inlistbox The grammatical type of a word", "Adjective" ) );
+    m_oldMainTypeNames.insert( "av", i18nc( "@item:inlistbox The grammatical type of a word", "Adverb" ) );
+    m_oldMainTypeNames.insert( "pr", i18nc( "@item:inlistbox The grammatical type of a word", "Pronoun" ) );
+    m_oldMainTypeNames.insert( "ph", i18nc( "@item:inlistbox The grammatical type of an entry", "Phrase" ) );
+    m_oldMainTypeNames.insert( "num", i18nc( "@item:inlistbox The grammatical type of a word", "Numeral" ) );
+    m_oldMainTypeNames.insert( "con", i18nc( "@item:inlistbox The grammatical type of a word", "Conjunction" ) );
+    m_oldMainTypeNames.insert( "pre", i18nc( "@item:inlistbox The grammatical type of a word", "Preposition" ) );
+    m_oldMainTypeNames.insert( "qu", i18nc( "@item:inlistbox The grammatical type of an entry", "Question" ) );
 
-    m_oldSubTypeNames.clear();
-    m_oldSubTypeNames.insert( "ord", i18n( "Ordinal" ) );
-    m_oldSubTypeNames.insert( "crd", i18n( "Cardinal" ) );
-    m_oldSubTypeNames.insert( "def", i18n( "Definite" ) );
-    m_oldSubTypeNames.insert( "ind", i18n( "Indefinite" ) );
-    m_oldSubTypeNames.insert( "re", i18n( "Regular" ) );
-    m_oldSubTypeNames.insert( "ir", i18n( "Irregular" ) );
-    m_oldSubTypeNames.insert( "pos", i18n( "Possessive" ) );
-    m_oldSubTypeNames.insert( "per", i18n( "Personal" ) );
-    m_oldSubTypeNames.insert( "m", i18n( "Male" ) );
-    m_oldSubTypeNames.insert( "f", i18n( "Female" ) );
-    m_oldSubTypeNames.insert( "s", i18n( "Neutral" ) );
 
+    m_oldSubTypeNames.clear();
+    m_oldSubTypeNames.insert( "ord", i18nc( "@item:inlistbox A subtype of the grammatical word type: Numeral Ordinal  (one, two, three, ...)","Ordinal" ) );
+    m_oldSubTypeNames.insert( "crd", i18nc( "@item:inlistbox A subtype of the grammatical word type: Numeral Cardinal (first, second, third, ...)","Cardinal" ) );
+    m_oldSubTypeNames.insert( "def", i18nc( "@item:inlistbox A subtype of the grammatical word type: Article (the)","Definite" ) );
+    m_oldSubTypeNames.insert( "ind", i18nc( "@item:inlistbox A subtype of the grammatical word type: Article (a)","Indefinite" ) );
+    m_oldSubTypeNames.insert( "re", i18nc( "@item:inlistbox A subtype of the grammatical word type: Verb with regular conjugation","Regular" ) );
+    m_oldSubTypeNames.insert( "ir", i18nc( "@item:inlistbox A subtype of the grammatical word type: Verb with irregular conjugation","Irregular" ) );
+    m_oldSubTypeNames.insert( "pos", i18nc( "@item:inlistbox A subtype of the grammatical word type: Pronoun (my, your, his, her...)", "Possessive" ) );
+    m_oldSubTypeNames.insert( "per", i18nc( "@item:inlistbox A subtype of the grammatical word type: Pronoun (I, you, he...)", "Personal" ) );
+    m_oldSubTypeNames.insert( "m", i18nc( "@item:inlistbox A subtype of the grammatical word type: Noun", "Male" ) );
+    m_oldSubTypeNames.insert( "f", i18nc( "@item:inlistbox A subtype of the grammatical word type: Noun", "Female" ) );
+    m_oldSubTypeNames.insert( "s", i18nc( "@item:inlistbox A subtype of the grammatical word type: Noun", "Neutral" ) );
 }
 
 
index b055b06ff2ebc3900fff0c3dd1cd45ff776275e7..1191a1454db91fa88ac692dc4373785773231ab5 100644 (file)
@@ -181,46 +181,64 @@ QString KEduVocWordType::oldType(const QString & mainType, const QString & subTy
 void KEduVocWordType::createDefaultWordTypes()
 {
     // first the special types which cannot be deleted:
-    addType( i18n( "Noun" ), d->WORDTYPE_NOUN, d->WORDTYPE_NOUN_EXPLANATION );
-
-    addSubType( i18n( "Noun" ), i18n( "Male" ), d->WORDTYPE_NOUN_MALE, d->WORDTYPE_NOUN_MALE_EXPLANATION );
-
-    addSubType( i18n( "Noun" ), i18n( "Female" ), d->WORDTYPE_NOUN_FEMALE, d->WORDTYPE_NOUN_FEMALE_EXPLANATION );
-
-    addSubType( i18n( "Noun" ), i18n( "Neutral" ), d->WORDTYPE_NOUN_NEUTRAL, d->WORDTYPE_NOUN_NEUTRAL_EXPLANATION );
-
-    addType( i18n( "Verb" ), d->WORDTYPE_VERB, d->WORDTYPE_VERB_EXPLANATION );
-
-    addSubType( i18n( "Verb" ), i18n( "Regular" ), d->WORDTYPE_VERB_REGULAR, d->WORDTYPE_VERB_REGULAR_EXPLANATION );
-
-    addSubType( i18n( "Verb" ), i18n( "Irregular" ), d->WORDTYPE_VERB_IRREGULAR, d->WORDTYPE_VERB_IRREGULAR_EXPLANATION );
-
-    addType( i18n( "Adjective" ), d->WORDTYPE_ADJECTIVE, d->WORDTYPE_ADJECTIVE_EXPLANATION );
-
-    addType( i18n( "Adverb" ), d->WORDTYPE_ADVERB, d->WORDTYPE_ADVERB_EXPLANATION );
-
-    addType( i18n( "Question" ) );
-    addType( i18n( "Name" ) );
-    addType( i18n( "Article" ) );
-    addSubType( i18n( "Article" ), i18n( "Definite" ) );
-    addSubType( i18n( "Article" ), i18n( "Indefinite" ) );
-
-    addType( i18n( "Pronoun" ) );
-    addSubType( i18n( "Pronoun" ), i18n( "Possessive" ) );
-    addSubType( i18n( "Pronoun" ), i18n( "Personal" ) );
-
-    addType( i18n( "Phrase" ) );
-    addType( i18n( "Numeral" ) );
-    addSubType( i18n( "Numeral" ), i18n( "Ordinal" ) );
-    addSubType( i18n( "Numeral" ), i18n( "Cardinal" ) );
-
-    addType( i18n( "Conjunction" ) );
-    addType( i18n( "Preposition" ) );
-    addType( i18n( "Informal" ) );
-    addType( i18n( "Figuratively" ) );
+    addType( i18nc( "@item:inlistbox The grammatical type of a word", "Noun" ),
+        d->WORDTYPE_NOUN, d->WORDTYPE_NOUN_EXPLANATION );
+
+    addSubType( i18nc( "@item:inlistbox The grammatical type of a word", "Noun" ),
+        i18nc( "@item:inlistbox A subtype of the grammatical word type: Noun", "Male" ),
+        d->WORDTYPE_NOUN_MALE, d->WORDTYPE_NOUN_MALE_EXPLANATION );
+
+    addSubType( i18nc( "@item:inlistbox The grammatical type of a word", "Noun" ),
+        i18nc( "@item:inlistbox A subtype of the grammatical word type: Noun", "Female" ),
+        d->WORDTYPE_NOUN_FEMALE, d->WORDTYPE_NOUN_FEMALE_EXPLANATION );
+
+    addSubType( i18nc( "@item:inlistbox The grammatical type of a word", "Noun" ),
+        i18nc( "@item:inlistbox A subtype of the grammatical word type: Noun", "Neutral" ),
+        d->WORDTYPE_NOUN_NEUTRAL, d->WORDTYPE_NOUN_NEUTRAL_EXPLANATION );
+
+    addType( i18nc( "@item:inlistbox The grammatical type of a word", "Verb" ),
+        d->WORDTYPE_VERB, d->WORDTYPE_VERB_EXPLANATION );
+
+    addSubType( i18nc( "@item:inlistbox The grammatical type of a word", "Verb" ),
+        i18nc( "@item:inlistbox A subtype of the grammatical word type: Verb with regular conjugation","Regular" ),
+        d->WORDTYPE_VERB_REGULAR, d->WORDTYPE_VERB_REGULAR_EXPLANATION );
+
+    addSubType( i18nc( "@item:inlistbox The grammatical type of a word", "Verb" ),
+        i18nc( "@item:inlistbox A subtype of the grammatical word type: Verb with irregular conjugation","Irregular" ),
+        d->WORDTYPE_VERB_IRREGULAR, d->WORDTYPE_VERB_IRREGULAR_EXPLANATION );
+
+    addType(  i18nc( "@item:inlistbox The grammatical type of a word", "Adjective" ) ,
+        d->WORDTYPE_ADJECTIVE, d->WORDTYPE_ADJECTIVE_EXPLANATION );
+
+    addType(  i18nc( "@item:inlistbox The grammatical type of a word", "Adverb" ),
+        d->WORDTYPE_ADVERB, d->WORDTYPE_ADVERB_EXPLANATION );
+
+
+    addType( i18nc( "@item:inlistbox The grammatical type of an entry", "Question" ) );
+    addType( i18nc( "@item:inlistbox The grammatical type of a word", "Name" ) );
+    addType( i18nc( "@item:inlistbox The grammatical type of a word", "Article" ) );
+    addSubType( i18nc( "@item:inlistbox The grammatical type of a word", "Article" ),
+        i18nc( "@item:inlistbox A subtype of the grammatical word type: Article (the)","Definite" ) );
+    addSubType( i18nc( "@item:inlistbox The grammatical type of a word", "Article" ),
+        i18nc( "@item:inlistbox A subtype of the grammatical word type: Article (a)","Indefinite" ) );
+
+    addType( i18nc( "@item:inlistbox The grammatical type of a word", "Pronoun" ) );
+    addSubType( i18nc( "@item:inlistbox The grammatical type of a word", "Pronoun" ),
+         i18nc( "@item:inlistbox A subtype of the grammatical word type: Pronoun (my, your, his, her...)", "Possessive" ) );
+    addSubType( i18nc( "@item:inlistbox The grammatical type of a word", "Pronoun" ),
+        i18nc( "@item:inlistbox A subtype of the grammatical word type: Pronoun (I, you, he...)", "Personal" ) );
+
+    addType( i18nc( "@item:inlistbox The grammatical type of an entry", "Phrase" ) );
+    addType( i18nc( "@item:inlistbox The grammatical type of a word", "Numeral" ) );
+    addSubType( i18nc( "@item:inlistbox The grammatical type of a word", "Numeral" ),
+        i18nc( "@item:inlistbox A subtype of the grammatical word type: Numeral Ordinal  (one, two, three, ...)","Ordinal" ) );
+    addSubType( i18nc( "@item:inlistbox The grammatical type of a word", "Numeral" ),
+        i18nc( "@item:inlistbox A subtype of the grammatical word type: Numeral Cardinal (first, second, third, ...)","Cardinal" ) );
+
+    addType( i18nc( "@item:inlistbox The grammatical type of a word", "Conjunction" ) );
+    addType( i18nc( "@item:inlistbox The grammatical type of a word", "Preposition" ) );
 }
 
-
 QString KEduVocWordType::mainTypeName( int index ) const
 {
     return d->m_wordTypeList[index].m_typeName;