From 1bbc67a4ff2ec9e16964017445d390d334e6efcd Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 23 Sep 2002 00:18:23 +0000 Subject: [PATCH] try --- main.cpp | 15 ++++++++++++--- xca.dsp | 3 ++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/main.cpp b/main.cpp index 019ed3c8..00b1b7be 100644 --- a/main.cpp +++ b/main.cpp @@ -52,12 +52,15 @@ #include #include #include +#include +#include #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(); diff --git a/xca.dsp b/xca.dsp index e870bfb8..39e3e921 100644 --- a/xca.dsp +++ b/xca.dsp @@ -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