This commit is contained in:
chris 2002-09-23 00:18:23 +00:00
parent 53c84c5dff
commit 1bbc67a4ff
2 changed files with 14 additions and 4 deletions

View File

@ -52,12 +52,15 @@
#include <qapplication.h>
#include <qtranslator.h>
#include <qtextcodec.h>
#include <qdir.h>
#include <qstring.h>
#include "MainWindow.h"
int main( int argc, char *argv[] )
{
QApplication a( argc, argv );
QString path = "";
QApplication a( argc, argv );
MainWindow mw( NULL, "Main Widget");
mw.setCaption("X Certification Authority");
a.setMainWidget( &mw );
@ -67,8 +70,14 @@ int main( int argc, char *argv[] )
a.installTranslator( &qtTr );
//translation file for application strings
QTranslator xcaTr( 0 );
xcaTr.load( QString( "xca_" ) + QTextCodec::locale(), PREFIX );
a.installTranslator( &xcaTr );
#ifdef HAVE_CONFIG_H
xcaTr.load( QString( "xca_" ) + QTextCodec::locale(), PREFIX );
#else
path = "C:";
path += QDir::separator();
xcaTr.load( QString( "xca_" ) + QTextCodec::locale(), path + BASE_DIR );
#endif
a.installTranslator( &xcaTr );
mw.show();
return a.exec();

View File

@ -63,6 +63,7 @@ LINK32=link.exe
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD CPP /nologo /W3 /Gm /Zi /Od /I "$(QTDIR)\include" /I "$(QTDIR)\mkspecs\win32-msvc" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "UNICODE" /D "QT_DLL" /D "QT_THREAD_SUPPORT" /FD /GZ -Zm200 /c
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
@ -72,7 +73,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 /machine:IX86
# ADD LINK32 $(QTDIR)\lib\qteval304.lib $(QTDIR)\lib\qtmain.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib winspool.lib /nologo /subsystem:windows /incremental:no /debug /machine:IX86 /pdbtype:sept
# ADD LINK32 $(QTDIR)\lib\qt-mteval304.lib $(QTDIR)\lib\qtmain.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib winspool.lib SSLeay32.lib libeay32.lib libdb40d.lib /nologo /subsystem:windows /incremental:no /debug /machine:IX86 /pdbtype:sept
!ENDIF