[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdeaccessibility/kttsd/filters/stringreplacer
From: Gary Cramblitt <garycramblitt () comcast ! net>
Date: 2006-06-10 17:26:09
Message-ID: 1149960369.934236.19125.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 550025 by cramblitt:
BUG:128938 CCMAIL:kde-i18n-doc New strings. Do not store translated strings in xml file.
M +5 -14 stringreplacerconf.cpp
M +0 -2 stringreplacerconf.h
--- branches/KDE/3.5/kdeaccessibility/kttsd/filters/stringreplacer/stringreplacerconf.cpp #550024:550025
@@ -231,10 +231,12 @@
if (prop.tagName() == "match") match = prop.text();
if (prop.tagName() == "subst") subst = prop.text();
}
+ QString wordTypeStr =
+ (wordType=="RegExp"?i18n("Abbreviation for 'Regular Expression'", "RegExp"):i18n("Word"));
if (!item)
- item = new KListViewItem(m_widget->substLView, wordType, match, subst);
+ item = new KListViewItem(m_widget->substLView, wordTypeStr, match, subst);
else
- item = new KListViewItem(m_widget->substLView, item, wordType, match, subst);
+ item = new KListViewItem(m_widget->substLView, item, wordTypeStr, match, subst);
}
return QString::null;
@@ -323,7 +325,7 @@
root.appendChild( wordTag );
QDomElement propTag = doc.createElement( "type" );
wordTag.appendChild( propTag);
- QDomText t = doc.createTextNode( item->text(0) );
+ QDomText t = doc.createTextNode( item->text(0)==i18n("Word")?"Word":"RegExp" );
propTag.appendChild( t );
propTag = doc.createElement( "match" );
@@ -403,17 +405,6 @@
return instName;
}
-// Converts a Substitution Type to displayable string.
-QString StringReplacerConf::substitutionTypeToString(const int substitutionType)
-{
- switch (substitutionType)
- {
- case stWord: return i18n("Word");
- case stRegExp: return "RegExp";
- }
- return i18n("Error");
-}
-
void StringReplacerConf::slotLanguageBrowseButton_clicked()
{
// Create a QHBox to host KListView.
--- branches/KDE/3.5/kdeaccessibility/kttsd/filters/stringreplacer/stringreplacerconf.h #550024:550025
@@ -136,8 +136,6 @@
void enableDisableButtons();
private:
- // Converts a Substitution Type to displayable string.
- QString substitutionTypeToString(const int substitutionType);
// Displays the add/edit string replacement dialog.
void addOrEditSubstitution(bool isAdd);
// Loads word list and settings from a file. Clearing configuration if clear is True.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic