summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-02-09 21:01:05 (UTC)
committer zautrix <zautrix>2005-02-09 21:01:05 (UTC)
commit38c6a7b6ae1e98cba0fdf2d0fba59ad4b9060940 (patch) (side-by-side diff)
tree1c171d9b0d4477810e68576e1954db0c8b68c668
parentab7725c4517a1f6c145075edcff0bdafe105f0ea (diff)
downloadkdepimpi-38c6a7b6ae1e98cba0fdf2d0fba59ad4b9060940.zip
kdepimpi-38c6a7b6ae1e98cba0fdf2d0fba59ad4b9060940.tar.gz
kdepimpi-38c6a7b6ae1e98cba0fdf2d0fba59ad4b9060940.tar.bz2
fix of fix
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--microkde/kdecore/klocale.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/microkde/kdecore/klocale.cpp b/microkde/kdecore/klocale.cpp
index aec74fa..7f31ab1 100644
--- a/microkde/kdecore/klocale.cpp
+++ b/microkde/kdecore/klocale.cpp
@@ -1,59 +1,59 @@
#include <qregexp.h>
#include <qapplication.h>
#include "kdebug.h"
#include "kcalendarsystemgregorian.h"
#include "klocale.h"
#include <qstringlist.h>
-#define COLLECT_TRANSLATION
+//#define COLLECT_TRANSLATION
QDict<QString> *mLocaleDict = 0;
void setLocaleDict( QDict<QString> * dict )
{
mLocaleDict = dict;
}
#ifdef COLLECT_TRANSLATION
QStringList missingTrans;
QStringList existingTrans1;
QStringList existingTrans2;
void addMissing(const char *text)
{
QString mis ( text );
if ( !missingTrans.contains( mis ) )
missingTrans.append(mis);
}
void addExist(const char *text,QString trans )
{
//return;
QString mis ( text );
if ( !existingTrans1.contains( mis ) ) {
existingTrans1.append(mis);
existingTrans2.append(trans);
}
}
#include <qfile.h>
#include <qtextstream.h>
#include <qtextcodec.h>
#endif
void dumpMissing()
{
#ifdef COLLECT_TRANSLATION
QString fileName = "/tmp/usernewtrans.txt";
QFile file( fileName );
if (!file.open( IO_WriteOnly ) ) {
return ;
}
QTextStream ts( &file );