]> Git trees. - libqmvoc.git/commitdiff
fixed spelling (EBN)
authorThomas Häber <thomas@haeber.de>
Sun, 1 Oct 2006 03:05:16 +0000 (03:05 +0000)
committerThomas Häber <thomas@haeber.de>
Sun, 1 Oct 2006 03:05:16 +0000 (03:05 +0000)
pronounciation -> pronunciation
in const, vars, functions etc. pp

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=590836

kdeeducore/keduvocexpression.cpp
kdeeducore/keduvocexpression.h
kdeeducore/keduvockvtmlreader.cpp
kdeeducore/keduvockvtmlwriter.cpp

index f9cb23b49dd10a13b5755566bf56225a3f971687..df81b5c08aa3ea7531c323de6c56f85111d915ea 100644 (file)
@@ -342,27 +342,27 @@ KEduVocMultipleChoice KEduVocExpression::multipleChoice (int idx) const
 }
 
 
-QString KEduVocExpression::pronounciation(int idx) const
+QString KEduVocExpression::pronunciation(int idx) const
 {
-  if (idx >= (int)m_pronounciations.size() || idx < 0) {
+  if (idx >= (int)m_pronunciations.size() || idx < 0) {
     return "";
   }
   else {
-    return m_pronounciations[idx];
+    return m_pronunciations[idx];
   }
 }
 
 
-void KEduVocExpression::setPronounciation(int idx, const QString & expr)
+void KEduVocExpression::setPronunciation(int idx, const QString & expr)
 {
   if ( idx < 0) return;
 
   // extend with empty strings if necessary
-  if ((int)m_pronounciations.size() <= idx )
-    for (int i = m_pronounciations.size(); i < idx+1; i++)
-      m_pronounciations.push_back ("");
+  if ((int)m_pronunciations.size() <= idx )
+    for (int i = m_pronunciations.size(); i < idx+1; i++)
+      m_pronunciations.push_back ("");
 
-  m_pronounciations[idx] = expr.simplified();
+  m_pronunciations[idx] = expr.simplified();
 }
 
 
@@ -430,8 +430,8 @@ void KEduVocExpression::removeTranslation (int idx)
    if (idx < (int)m_expressionTypes.size() )
      m_expressionTypes.removeAll(m_expressionTypes.at(idx - 1));
 
-   if (idx < (int)m_pronounciations.size() )
-     m_pronounciations.removeAll(m_pronounciations.at(idx - 1));
+   if (idx < (int)m_pronunciations.size() )
+     m_pronunciations.removeAll(m_pronunciations.at(idx - 1));
 
    if (idx < (int)m_grades.size() )
      m_grades.removeAll(m_grades.at(idx - 1));
index 1a82d3e5519195b62ac9b1532a5db072234f484c..4ab93e1590ea781c2294131ae3bed645cb301954 100644 (file)
@@ -150,19 +150,19 @@ public:
    */
   void setTranslation(int index, const QString & expression);
 
-  /** sets pronounciation of this expression
+  /** sets pronunciation of this expression
    *
    * @param index            index of expression
-   * @param expression       pronounciation of this index
+   * @param expression       pronunciation of this index
    */
-  void setPronounciation(int index, const QString & expression);
+  void setPronunciation(int index, const QString & expression);
 
-  /** returns pronounciation of this expression
+  /** returns pronunciation of this expression
    *
    * @param index            index of expression
    * @return                 pronunciation or "" if none available
    */
-  QString pronounciation(int index) const;
+  QString pronunciation(int index) const;
 
   /** returns remarks of this expression
    *
@@ -456,7 +456,7 @@ private:
   QStringList m_synonym;
   QStringList m_example;
   QStringList m_antonym;
-  QStringList m_pronounciations;
+  QStringList m_pronunciations;
   QList<grade_t> m_grades;
   QList<grade_t> m_reverseGrades;
   QList<count_t> m_queryCounts;
index 899dfc5ab8de0c550be5dc99b80bce6a63cb7478..4660be7884d2f5f17343b1e2a99c9e25cb444fec 100644 (file)
@@ -1195,7 +1195,7 @@ bool KEduVocKvtmlReader::readExpression(QDomElement &domElementParent)
   if (!remark.isEmpty() )
     expr.setRemark (0, remark);
   if (!pronunce.isEmpty() )
-    expr.setPronounciation(0, pronunce);
+    expr.setPronunciation(0, pronunce);
   if (!type.isEmpty() )
     expr.setType(0, type);
   if (!synonym.isEmpty() )
@@ -1392,7 +1392,7 @@ bool KEduVocKvtmlReader::readExpression(QDomElement &domElementParent)
     if (!remark.isEmpty() )
       expr.setRemark (count, remark);
     if (!pronunce.isEmpty() )
-      expr.setPronounciation(count, pronunce);
+      expr.setPronunciation(count, pronunce);
     if (!faux_ami_f.isEmpty() )
       expr.setFauxAmi (count, faux_ami_f, false);
     if (!faux_ami_t.isEmpty() )
index eb9edde5f5c83f98206c81de6c3b983028207872..c77b8d8f3f369e221bd37b82aaa906b82a6b0d36 100644 (file)
@@ -770,8 +770,8 @@ bool KEduVocKvtmlWriter::writeDoc(KEduVocDocument *doc, const QString &generator
     if (!(*first).antonym(0).isEmpty() )
       domElementOriginal.setAttribute(KV_ANTONYM, (*first).antonym(0));
 
-    if (!(*first).pronounciation(0).isEmpty() )
-      domElementOriginal.setAttribute(KV_PRONUNCE, (*first).pronounciation(0));
+    if (!(*first).pronunciation(0).isEmpty() )
+      domElementOriginal.setAttribute(KV_PRONUNCE, (*first).pronunciation(0));
 
     if (!(*first).uniqueType() && !(*first).type(0).isEmpty())
       domElementOriginal.setAttribute(KV_EXPRTYPE, (*first).type(0));
@@ -888,8 +888,8 @@ bool KEduVocKvtmlWriter::writeDoc(KEduVocDocument *doc, const QString &generator
       if (!(*first).antonym(trans).isEmpty() )
         domElementTranslation.setAttribute(KV_ANTONYM, (*first).antonym(trans));
 
-      if (!(*first).pronounciation(trans).isEmpty() )
-        domElementTranslation.setAttribute(KV_PRONUNCE, (*first).pronounciation(trans));
+      if (!(*first).pronunciation(trans).isEmpty() )
+        domElementTranslation.setAttribute(KV_PRONUNCE, (*first).pronunciation(trans));
 
       if (!(*first).uniqueType() && !(*first).type(trans).isEmpty())
         domElementTranslation.setAttribute(KV_EXPRTYPE, (*first).type(trans));