45
|
1 |
/*
|
|
2 |
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
* Bio control for Provisioning documents.
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
#include <hbapplication.h>
|
|
20 |
#include <CpQtSpMainWindow.h>
|
|
21 |
#include <QTranslator>
|
|
22 |
#include <QString>
|
|
23 |
#include <QLocale>
|
|
24 |
|
|
25 |
int main(int argc, char **argv)
|
|
26 |
{
|
|
27 |
HbApplication a( argc, argv );
|
|
28 |
|
|
29 |
QTranslator *translator = new QTranslator();
|
|
30 |
QString lang = QLocale::system().name();
|
|
31 |
QString path = "Z:/resource/qt/translations/";
|
|
32 |
bool fine = translator->load("deviceupdates_en.qm", path);
|
|
33 |
if (fine)
|
|
34 |
qApp->installTranslator(translator);
|
|
35 |
|
|
36 |
QTranslator *commontranslator = new QTranslator();
|
|
37 |
fine = commontranslator->load("common_" + lang, path);
|
|
38 |
if (fine)
|
|
39 |
qApp->installTranslator(commontranslator);
|
|
40 |
|
|
41 |
CpQtSpMainWindow mainWindow;
|
|
42 |
mainWindow.show();
|
|
43 |
return a.exec();
|
|
44 |
}
|
|
45 |
|