equal
deleted
inserted
replaced
21 #include <QRegExp> |
21 #include <QRegExp> |
22 #include <QFile> |
22 #include <QFile> |
23 #include <QStringList> |
23 #include <QStringList> |
24 #include <QGraphicsLinearLayout> |
24 #include <QGraphicsLinearLayout> |
25 |
25 |
|
26 #include <QTranslator> |
|
27 #include <QLocale> |
|
28 #include <hbapplication.h> |
26 #include <HbAction> |
29 #include <HbAction> |
27 #include <HbDialog> |
30 #include <HbDialog> |
28 #include <HbLabel> |
31 #include <HbLabel> |
29 #include <HbListView> |
32 #include <HbListView> |
30 #include <HbListViewItem> |
33 #include <HbListViewItem> |
54 ShareUiPrivate::ShareUiPrivate() |
57 ShareUiPrivate::ShareUiPrivate() |
55 { |
58 { |
56 mContentItemModel = 0; |
59 mContentItemModel = 0; |
57 mContentListView = 0; |
60 mContentListView = 0; |
58 mSharePopup = 0; |
61 mSharePopup = 0; |
|
62 |
|
63 QString locale = QLocale::system().name(); |
|
64 QString path = "z:/resource/qt/translations/"; |
|
65 |
|
66 mTranslator = new QTranslator(); |
|
67 mTranslator_comm = new QTranslator(); |
|
68 |
|
69 bool result = mTranslator->load(path + QString("share_") + locale); |
|
70 result = mTranslator_comm->load(path + QString("common_") + locale); |
|
71 qApp->installTranslator(mTranslator); |
|
72 qApp->installTranslator(mTranslator_comm); |
|
73 |
59 } |
74 } |
60 |
75 |
61 /** |
76 /** |
62 * Destructor. |
77 * Destructor. |
63 */ |
78 */ |
64 ShareUiPrivate::~ShareUiPrivate() |
79 ShareUiPrivate::~ShareUiPrivate() |
65 { |
80 { |
|
81 delete mTranslator; |
|
82 delete mTranslator_comm; |
66 } |
83 } |
67 |
84 |
68 /** |
85 /** |
69 * Clear the internal data structures |
86 * Clear the internal data structures |
70 */ |
87 */ |