summaryrefslogtreecommitdiffstats
path: root/kbabel/common/catalogsettings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/common/catalogsettings.cpp')
-rw-r--r--kbabel/common/catalogsettings.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/kbabel/common/catalogsettings.cpp b/kbabel/common/catalogsettings.cpp
index 480f4cb9..4b87f522 100644
--- a/kbabel/common/catalogsettings.cpp
+++ b/kbabel/common/catalogsettings.cpp
@@ -43,19 +43,19 @@
#include <stdlib.h>
-#include <qfile.h>
-#include <qtextcodec.h>
-#include <qregexp.h>
+#include <tqfile.h>
+#include <tqtextcodec.h>
+#include <tqregexp.h>
#include <stdlib.h>
using namespace KBabel;
-QString KBabel::charsetString(const QTextCodec *codec)
+TQString KBabel::charsetString(const TQTextCodec *codec)
{
if(codec)
{
- QString encodingStr = codec->mimeName();
+ TQString encodingStr = codec->mimeName();
if ( encodingStr.startsWith("CP " ) )
encodingStr.remove( 2, 1 );
else if ( encodingStr.startsWith("IBM " ) )
@@ -63,14 +63,14 @@ QString KBabel::charsetString(const QTextCodec *codec)
return encodingStr;
}
else
- return QString::null;
+ return TQString::null;
}
-QString KBabel::GNUPluralForms(const QString& lang)
+TQString KBabel::GNUPluralForms(const TQString& lang)
{
KTempFile infile, outfile;
- QTextStream* str = infile.textStream();
+ TQTextStream* str = infile.textStream();
*str << "# SOME DESCRIPTIVE TITLE." << endl;
*str << "# Copyright (C) YEAR Free Software Foundation, Inc." << endl;
@@ -105,24 +105,24 @@ QString KBabel::GNUPluralForms(const QString& lang)
msginit.start( KProcess::Block );
- QString res("");
+ TQString res("");
if( msginit.normalExit() )
{
// parse out the plural form string
- QFile f(outfile.name());
+ TQFile f(outfile.name());
if( f.open (IO_ReadOnly) )
{
- QTextStream str(&f);
+ TQTextStream str(&f);
- QString line;
+ TQString line;
do {
line = str.readLine();
if( line.startsWith( "\"Plural-Forms:" ) )
{
kdDebug() << "Plural form line: " << line << endl;
- QRegExp re( "^\"Plural-Forms: *(.*)\\\\n\"" );
+ TQRegExp re( "^\"Plural-Forms: *(.*)\\\\n\"" );
re.search( line );
res = re.cap(1);
break;
@@ -141,15 +141,15 @@ QString KBabel::GNUPluralForms(const QString& lang)
return res;
}
-QString KBabel::charsetString(const int e)
+TQString KBabel::charsetString(const int e)
{
- QString encodingStr;
+ TQString encodingStr;
switch(e)
{
case ProjectSettingsBase::Locale:
{
- QTextCodec *codec=QTextCodec::codecForLocale();
+ TQTextCodec *codec=TQTextCodec::codecForLocale();
if(codec)
encodingStr=charsetString(codec);
else
@@ -172,36 +172,36 @@ QString KBabel::charsetString(const int e)
return encodingStr;
}
-QString Defaults::Identity::authorName()
+TQString Defaults::Identity::authorName()
{
KEMailSettings emSet;
return emSet.getSetting(KEMailSettings::RealName);
}
-QString Defaults::Identity::authorLocalizedName()
+TQString Defaults::Identity::authorLocalizedName()
{
return authorName();
}
-QString Defaults::Identity::authorEmail()
+TQString Defaults::Identity::authorEmail()
{
KEMailSettings emSet;
return emSet.getSetting(KEMailSettings::EmailAddress);
}
-QString Defaults::Identity::mailingList()
+TQString Defaults::Identity::mailingList()
{
- QString lang=Defaults::Identity::languageCode();
+ TQString lang=Defaults::Identity::languageCode();
int temp=lang.find("_");
lang=lang.left(temp);
return lang+"@li.org";
}
-QString Defaults::Identity::languageCode()
+TQString Defaults::Identity::languageCode()
{
// first try to get the language from KDE settings
KLocale *locale = KGlobal::locale();
- QString lang;
+ TQString lang;
if(locale)
{
lang=locale->languageList().first();
@@ -223,18 +223,18 @@ QString Defaults::Identity::languageCode()
return lang;
}
-QString Defaults::Identity::timezone()
+TQString Defaults::Identity::timezone()
{
- QString timezone=getenv("TIMEZONE");
+ TQString timezone=getenv("TIMEZONE");
if(timezone.isEmpty())
timezone="GMT";
return timezone;
}
-QStringList Defaults::Tag::tagExpressions()
+TQStringList Defaults::Tag::tagExpressions()
{
- QStringList list;
+ TQStringList list;
list.append("</[A-Za-z0-9\\n]+>");
list.append("<[A-Za-z0-9\\n]+[^>]*/?>");
@@ -246,9 +246,9 @@ QStringList Defaults::Tag::tagExpressions()
return list;
}
-QStringList Defaults::Tag::argExpressions()
+TQStringList Defaults::Tag::argExpressions()
{
- QStringList list;
+ TQStringList list;
list.append("%[ndioxXucsfeEgGp]");
list.append("%([0-9]+(\\$))?[-+'#0]?[0-9]*(.[0-9]+)?[hlL]?[dioxXucsfeEgGp]");