equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Prompt Dialog implementation |
14 * Description: Prompt Dialog implementation |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #include <QTranslator> |
18 #include <HbTranslator> |
19 #include <QLocale> |
19 #include <QLocale> |
20 #include <QList> |
20 #include <QList> |
21 #include <HbLabel> |
21 #include <HbLabel> |
22 #include <HbDialog> |
22 #include <HbDialog> |
23 #include <HbDocumentLoader> |
23 #include <HbDocumentLoader> |
43 CellularPromptDialog::CellularPromptDialog(const QVariantMap ¶meters) |
43 CellularPromptDialog::CellularPromptDialog(const QVariantMap ¶meters) |
44 { |
44 { |
45 OstTraceFunctionEntry0( CELLULARPROMPTDIALOG_CELLULARPROMPTDIALOG_ENTRY ); |
45 OstTraceFunctionEntry0( CELLULARPROMPTDIALOG_CELLULARPROMPTDIALOG_ENTRY ); |
46 |
46 |
47 // Install localization |
47 // Install localization |
48 QTranslator *translator = new QTranslator(this); |
48 HbTranslator *translator(new HbTranslator("cellularpromptdialog")); |
49 QString lang = QLocale::system().name(); |
49 |
50 QString path = "Z:/resource/qt/translations/"; |
|
51 translator->load("cellularpromptdialog_" + lang, path); |
|
52 qApp->installTranslator(translator); |
|
53 |
|
54 createDialog(parameters); |
50 createDialog(parameters); |
55 mClose = false; |
51 mClose = false; |
56 |
52 |
57 OstTraceFunctionExit0( CELLULARPROMPTDIALOG_CELLULARPROMPTDIALOG_EXIT ); |
53 OstTraceFunctionExit0( CELLULARPROMPTDIALOG_CELLULARPROMPTDIALOG_EXIT ); |
58 } |
54 } |