equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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 * |
|
16 */ |
|
17 |
|
18 #include <QTranslator> |
|
19 #include <QtGlobal> |
|
20 #include <QLocale> |
|
21 |
|
22 #include <hbapplication.h> |
|
23 |
|
24 #include "HelpCommon.h" |
|
25 #include "HelpMainWindow.h" |
|
26 |
|
27 int main(int argc, char *argv[]) |
|
28 { |
|
29 HbApplication app(argc, argv); |
|
30 |
|
31 QString lang = QLocale::system().name(); |
|
32 |
|
33 // init translator with current system language |
|
34 QTranslator* translatorCommon = new QTranslator(); |
|
35 translatorCommon->load("common_"+lang, PATH_TRANSLATIONS); |
|
36 qApp->installTranslator(translatorCommon); |
|
37 |
|
38 QTranslator* translatorSelf = new QTranslator(); |
|
39 translatorSelf->load("userguide_"+lang, PATH_TRANSLATIONS); |
|
40 qApp->installTranslator(translatorSelf); |
|
41 |
|
42 HelpMainWindow mainWindow; |
|
43 mainWindow.show(); |
|
44 |
|
45 return app.exec(); |
|
46 } |
|
47 |
|
48 // end of file |