diff -r 9db3eaa21237 -r 10f3d35dcbad main.cpp --- a/main.cpp Tue Feb 08 14:07:19 2005 +0000 +++ b/main.cpp Sat Feb 19 17:14:33 2005 +0000 @@ -1,6 +1,8 @@ #include #include #include +#include +#include #include "settings.h" #include "options.h" @@ -102,9 +104,17 @@ QApplication app(argc,argv); + // Use /usr/share/vym or /usr/local/share/vym or . + QDir shareDir; + shareDir.setPath ("/usr/share/vym"); + if (!shareDir.exists()) + shareDir.setPath ("/usr/local/share/vym"); + if (!shareDir.exists()) + shareDir.setPath("."); + // Initialize translations QTranslator translator (0); - translator.load( "vym_de", "." ); + translator.load( QString("vym_")+QTextCodec::locale(), shareDir + "/lang"); app.installTranslator( &translator ); // Initializing the row of system flags