summaryrefslogtreecommitdiffstats
path: root/kbabel/commonui/roughtransdlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit0813b39aed2cf4c84157a22c4c9594336d93d412 (patch)
tree0f6157f9c9ecc6ed26cb98f058219a8021d3f4a6 /kbabel/commonui/roughtransdlg.cpp
parent35dc58791106d7a1864264063df5f3ee3f1f0f15 (diff)
downloadtdesdk-0813b39aed2cf4c84157a22c4c9594336d93d412.tar.gz
tdesdk-0813b39aed2cf4c84157a22c4c9594336d93d412.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbabel/commonui/roughtransdlg.cpp')
-rw-r--r--kbabel/commonui/roughtransdlg.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kbabel/commonui/roughtransdlg.cpp b/kbabel/commonui/roughtransdlg.cpp
index 046ad2de..135b2794 100644
--- a/kbabel/commonui/roughtransdlg.cpp
+++ b/kbabel/commonui/roughtransdlg.cpp
@@ -292,7 +292,7 @@ void RoughTransDlg::translate()
if( catalog->pluralForm(i) == NoPluralForm )
{
TQString origTrans = catalog->msgstr(i).first();
- if(msg.tqfind("_: NAME OF TRANSLATORS\\n")==0)
+ if(msg.find("_: NAME OF TRANSLATORS\\n")==0)
{
TQString authorName;
if( !catalog->identitySettings().authorLocalizedName.isEmpty() )
@@ -302,24 +302,24 @@ void RoughTransDlg::translate()
authorName = catalog->identitySettings().authorName;
else continue; // there is no name to be inserted
- if( !TQStringList::split(',', origTrans).tqcontains(authorName) )
+ if( !TQStringList::split(',', origTrans).contains(authorName) )
{
if(origTrans.isEmpty() ) translation=authorName;
else translation+=origTrans+","+authorName;
}
}
- else if(msg.tqfind("_: EMAIL OF TRANSLATORS\\n")==0)
+ else if(msg.find("_: EMAIL OF TRANSLATORS\\n")==0)
{
// skip, if email is not specified in settings
if( catalog->identitySettings().authorEmail.isEmpty() ) continue;
- if( !TQStringList::split(',', origTrans).tqcontains(catalog->identitySettings().authorEmail) )
+ if( !TQStringList::split(',', origTrans).contains(catalog->identitySettings().authorEmail) )
{
if(origTrans.isEmpty() ) translation=catalog->identitySettings().authorEmail;
else translation=origTrans+","+catalog->identitySettings().authorEmail;
}
}
- else if (msg.tqfind("ROLES_OF_TRANSLATORS") == 0)
+ else if (msg.find("ROLES_OF_TRANSLATORS") == 0)
{
TQString temp = "<othercredit role=\\\"translator\\\">\n<firstname></firstname>"
"<surname></surname>\n<affiliation><address><email>" +
@@ -327,10 +327,10 @@ void RoughTransDlg::translate()
"</affiliation><contrib></contrib></othercredit>";
if (origTrans.isEmpty( ))
translation = temp;
- else if (origTrans.tqfind(catalog->identitySettings( ).authorEmail) < 0)
+ else if (origTrans.find(catalog->identitySettings( ).authorEmail) < 0)
translation = origTrans + "\n" + temp;
}
- else if (msg.tqfind("CREDIT_FOR_TRANSLATORS") == 0)
+ else if (msg.find("CREDIT_FOR_TRANSLATORS") == 0)
{
TQString authorName;
if (!catalog->identitySettings( ).authorLocalizedName.isEmpty( ))
@@ -341,8 +341,8 @@ void RoughTransDlg::translate()
catalog->identitySettings( ).authorEmail + "</email></para>";
if (origTrans.isEmpty( ))
translation = temp;
- else if (origTrans.tqfind(authorName) < 0 &&
- origTrans.tqfind(catalog->identitySettings( ).authorEmail) < 0)
+ else if (origTrans.find(authorName) < 0 &&
+ origTrans.find(catalog->identitySettings( ).authorEmail) < 0)
translation = origTrans + "\n" + temp;
}
}
@@ -350,8 +350,8 @@ void RoughTransDlg::translate()
else // not kdeSpecific
{
// skip KDE specific texts
- if( msg.tqfind("_: EMAIL OF TRANSLATORS\\n")==0 || msg.tqfind("_: NAME OF TRANSLATORS\\n")==0 ||
- msg.tqfind("ROLES_OF_TRANSLATORS")==0 || msg.tqfind("CREDIT_FOR_TRANSLATORS")==0)
+ if( msg.find("_: EMAIL OF TRANSLATORS\\n")==0 || msg.find("_: NAME OF TRANSLATORS\\n")==0 ||
+ msg.find("ROLES_OF_TRANSLATORS")==0 || msg.find("CREDIT_FOR_TRANSLATORS")==0)
continue;
}
@@ -364,9 +364,9 @@ void RoughTransDlg::translate()
totalTried++;
- if(msg.tqcontains(contextReg))
+ if(msg.contains(contextReg))
{
- msg.tqreplace(contextReg,"");
+ msg.replace(contextReg,"");
}
// try exact translation
@@ -442,7 +442,7 @@ void RoughTransDlg::translate()
TQStringList wordList;
TQChar accel;
TQString endingPunctuation;
- int pos = msg.tqfindRev(endPunctReg);
+ int pos = msg.findRev(endPunctReg);
if(pos >= 0)
{
endingPunctuation = msg.right(msg.length()-pos);
@@ -475,7 +475,7 @@ void RoughTransDlg::translate()
}
else if(!word.isEmpty() )
{
- if(!word.tqcontains(digitReg))
+ if(!word.contains(digitReg))
wordList.append(word);
word=TQString();
@@ -483,7 +483,7 @@ void RoughTransDlg::translate()
}
else if(!word.isEmpty())
{
- if(!word.tqcontains(digitReg))
+ if(!word.contains(digitReg))
wordList.append(word);
word=TQString();
@@ -500,7 +500,7 @@ void RoughTransDlg::translate()
{
if(msg[index+1]=='n' && msg[index+2].isSpace())
{
- if(!word.isEmpty() && !word.tqcontains(digitReg))
+ if(!word.isEmpty() && !word.contains(digitReg))
wordList.append(word);
word=TQString();
@@ -510,7 +510,7 @@ void RoughTransDlg::translate()
}
else if(!word.isEmpty() )
{
- if(!word.tqcontains(digitReg))
+ if(!word.contains(digitReg))
wordList.append(word);
word=TQString();
@@ -518,7 +518,7 @@ void RoughTransDlg::translate()
}
else if(!word.isEmpty())
{
- if(!word.tqcontains(digitReg))
+ if(!word.contains(digitReg))
wordList.append(word);
word=TQString();
@@ -526,7 +526,7 @@ void RoughTransDlg::translate()
}
else if(!word.isEmpty())
{
- if(!word.tqcontains(digitReg)) {
+ if(!word.contains(digitReg)) {
wordList.append(word);
}
@@ -582,7 +582,7 @@ void RoughTransDlg::translate()
// try to set the correct keyboard accelerator
if(!accel.isNull())
{
- int index = translation.tqfind(accel,0,false);
+ int index = translation.find(accel,0,false);
if(index >= 0)
{
translation.insert(index,accelMarker);
@@ -717,7 +717,7 @@ void RoughTransDlg::msgButtonClicked(int id)
if(!transButton->isChecked() && !untransButton->isChecked()
&& !fuzzyButton->isChecked())
{
- TQButton *button = whatBox->tqfind(id);
+ TQButton *button = whatBox->find(id);
if(button == transButton)
{
transButton->setChecked(true);