a069686eb8
2005-04-10 * QNetWalk 1.2 released. * Added German translation by Thomas Loeber * Added Spanish translation by Ismael Asensio * Added Polish translation by Aleksander Wojdyga * Added Brazilian Portuguese translation by Paulo Vitor * Added the desktop file.
20 lines
853 B
Text
20 lines
853 B
Text
$NetBSD: patch-ab,v 1.2 2005/10/13 18:01:27 wiz Exp $
|
|
|
|
--- main.cpp.orig 2004-12-10 03:32:00.000000000 +0600
|
|
+++ main.cpp
|
|
@@ -30,11 +30,12 @@ int main(int argc, char ** argv)
|
|
qInstallPathTranslations());
|
|
app.installTranslator(&qtranslator);
|
|
|
|
- QString appdir = app.applicationDirPath();
|
|
+ //QString appdir = app.applicationDirPath();
|
|
QString filename = QString("qnetwalk_") + QTextCodec::locale();
|
|
QTranslator translator(&app);
|
|
- if(!translator.load(filename, appdir + "/translations/"))
|
|
- translator.load(filename, appdir + "/../share/qnetwalk/translations/");
|
|
+ //if(!translator.load(filename, appdir + "/translations/"))
|
|
+ //translator.load(filename, appdir + "/../share/qnetwalk/translations/");
|
|
+ translator.load(filename, "@QNETWALK_TR@");
|
|
app.installTranslator(&translator);
|
|
|
|
MainWindow window;
|