|
a/src/qtgui/confgui/main.cpp |
|
b/src/qtgui/confgui/main.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: main.cpp,v 1.5 2007-10-09 11:08:17 dockes Exp $ (C) 2005 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: main.cpp,v 1.6 2008-11-24 15:23:12 dockes Exp $ (C) 2005 J.F.Dockes";
|
3 |
#endif
|
3 |
#endif
|
4 |
/*
|
4 |
/*
|
5 |
* This program is free software; you can redistribute it and/or modify
|
5 |
* This program is free software; you can redistribute it and/or modify
|
6 |
* it under the terms of the GNU General Public License as published by
|
6 |
* it under the terms of the GNU General Public License as published by
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
|
... |
|
... |
82 |
#include "execmd.h"
|
82 |
#include "execmd.h"
|
83 |
#include "conflinkrcl.h"
|
83 |
#include "conflinkrcl.h"
|
84 |
|
84 |
|
85 |
using namespace confgui;
|
85 |
using namespace confgui;
|
86 |
|
86 |
|
87 |
const string recoll_datadir = RECOLL_DATADIR;
|
|
|
88 |
|
|
|
89 |
static const char *thisprog;
|
87 |
static const char *thisprog;
|
90 |
static int op_flags;
|
88 |
static int op_flags;
|
91 |
#define OPT_MOINS 0x1
|
89 |
#define OPT_MOINS 0x1
|
92 |
#define OPT_h 0x4
|
90 |
#define OPT_h 0x4
|
93 |
#define OPT_c 0x20
|
91 |
#define OPT_c 0x20
|
|
... |
|
... |
149 |
QTranslator qt( 0 );
|
147 |
QTranslator qt( 0 );
|
150 |
qt.load( QString( "qt_" ) + QTextCodec::locale(), "." );
|
148 |
qt.load( QString( "qt_" ) + QTextCodec::locale(), "." );
|
151 |
app.installTranslator( &qt );
|
149 |
app.installTranslator( &qt );
|
152 |
|
150 |
|
153 |
// Translations for Recoll
|
151 |
// Translations for Recoll
|
154 |
string translatdir = path_cat(recoll_datadir, "translations");
|
152 |
string translatdir = path_cat(config->getDatadir(), "translations");
|
155 |
QTranslator translator( 0 );
|
153 |
QTranslator translator( 0 );
|
156 |
// QTextCodec::locale() returns $LANG
|
154 |
// QTextCodec::locale() returns $LANG
|
157 |
translator.load( QString("recoll_") + QTextCodec::locale(),
|
155 |
translator.load( QString("recoll_") + QTextCodec::locale(),
|
158 |
translatdir.c_str() );
|
156 |
translatdir.c_str() );
|
159 |
app.installTranslator( &translator );
|
157 |
app.installTranslator( &translator );
|