From a5743e5d6cbca3ddc7a0ce9b38fda7565dea8303 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20H=C3=A4ber?= Date: Sun, 1 Oct 2006 03:05:16 +0000 Subject: [PATCH] fixed spelling (EBN) pronounciation -> pronunciation in const, vars, functions etc. pp svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=590836 --- kdeeducore/keduvocexpression.cpp | 20 ++++++++++---------- kdeeducore/keduvocexpression.h | 12 ++++++------ kdeeducore/keduvockvtmlreader.cpp | 4 ++-- kdeeducore/keduvockvtmlwriter.cpp | 8 ++++---- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/kdeeducore/keduvocexpression.cpp b/kdeeducore/keduvocexpression.cpp index f9cb23b..df81b5c 100644 --- a/kdeeducore/keduvocexpression.cpp +++ b/kdeeducore/keduvocexpression.cpp @@ -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)); diff --git a/kdeeducore/keduvocexpression.h b/kdeeducore/keduvocexpression.h index 1a82d3e..4ab93e1 100644 --- a/kdeeducore/keduvocexpression.h +++ b/kdeeducore/keduvocexpression.h @@ -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 m_grades; QList m_reverseGrades; QList m_queryCounts; diff --git a/kdeeducore/keduvockvtmlreader.cpp b/kdeeducore/keduvockvtmlreader.cpp index 899dfc5..4660be7 100644 --- a/kdeeducore/keduvockvtmlreader.cpp +++ b/kdeeducore/keduvockvtmlreader.cpp @@ -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() ) diff --git a/kdeeducore/keduvockvtmlwriter.cpp b/kdeeducore/keduvockvtmlwriter.cpp index eb9edde..c77b8d8 100644 --- a/kdeeducore/keduvockvtmlwriter.cpp +++ b/kdeeducore/keduvockvtmlwriter.cpp @@ -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)); -- 2.47.3