equal
deleted
inserted
replaced
15 * Control Panel WLAN AP plugin implementation. |
15 * Control Panel WLAN AP plugin implementation. |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 // System includes |
19 // System includes |
20 #include <QtCore> |
20 #include <HbTranslator> |
21 #include <cmmanager_shim.h> |
21 #include <cmmanager_shim.h> |
22 #include <cmconnectionmethod_shim.h> |
22 #include <cmconnectionmethod_shim.h> |
23 |
23 |
24 // User includes |
24 // User includes |
25 #include "cpwlanapplugin.h" |
25 #include "cpwlanapplugin.h" |
44 |
44 |
45 /*! |
45 /*! |
46 Constructor. |
46 Constructor. |
47 */ |
47 */ |
48 CpWlanApPlugin::CpWlanApPlugin() : |
48 CpWlanApPlugin::CpWlanApPlugin() : |
49 mTranslator(0), |
49 mTranslator(new HbTranslator("cpapplugin")), |
50 mCmManager(0), |
50 mCmManager(0), |
51 mCmConnectionMethod(0) |
51 mCmConnectionMethod(0) |
52 { |
52 { |
53 OstTraceFunctionEntry0(CPWLANAPPLUGIN_CPWLANAPPLUGIN_ENTRY); |
53 OstTraceFunctionEntry0(CPWLANAPPLUGIN_CPWLANAPPLUGIN_ENTRY); |
54 |
54 |
55 // Install localization |
|
56 QString lang = QLocale::system().name(); |
|
57 QString path = "z:/resource/qt/translations/"; |
|
58 mTranslator = new QTranslator(this); |
|
59 mTranslator->load(path + "cpapplugin_" + lang); |
|
60 qApp->installTranslator(mTranslator); |
|
61 |
|
62 OstTraceFunctionExit0(CPWLANAPPLUGIN_CPWLANAPPLUGIN_EXIT); |
55 OstTraceFunctionExit0(CPWLANAPPLUGIN_CPWLANAPPLUGIN_EXIT); |
63 } |
56 } |
64 |
57 |
65 /*! |
58 /*! |
66 Destructor. |
59 Destructor. |