summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurkhard Lück <[email protected]>2016-12-12 14:14:51 +0100
committerBurkhard Lück <[email protected]>2016-12-12 14:14:51 +0100
commit9c5e978f42f70d90af2217d776518d87e898b689 (patch)
tree6779c4221cf2c4777fc4cedc6b040cba7520c6dd
parent6544cc4df049119e4ba4c97838336baf228ca1cf (diff)
i18n fix for plasmate
load translation catalog use ki18n_wrap_ui() for xgettext extraction
-rw-r--r--plasmate/CMakeLists.txt4
-rw-r--r--plasmate/app/CMakeLists.txt2
-rw-r--r--plasmate/app/main.cpp1
3 files changed, 4 insertions, 3 deletions
diff --git a/plasmate/CMakeLists.txt b/plasmate/CMakeLists.txt
index 6116b42..088ff80 100644
--- a/plasmate/CMakeLists.txt
+++ b/plasmate/CMakeLists.txt
@@ -30,7 +30,7 @@ set (PlasmaRemoteInstaller_SRC
publisher/remoteinstaller/standalone/plasmaremoteinstaller.cpp
)
-qt5_wrap_ui (PlasmaRemoteInstaller_SRC
+ki18n_wrap_ui (PlasmaRemoteInstaller_SRC
publisher/remoteinstaller/remoteinstaller.ui
)
@@ -71,7 +71,7 @@ set(plasmakconfigxt_SRCS
editors/kconfigxt/standalone/main.cpp
)
-qt5_wrap_ui (plasmakconfigxt_SRCS
+ki18n_wrap_ui (plasmakconfigxt_SRCS
editors/kconfigxt/kconfigxteditor.ui
)
diff --git a/plasmate/app/CMakeLists.txt b/plasmate/app/CMakeLists.txt
index 230f24a..9df5932 100644
--- a/plasmate/app/CMakeLists.txt
+++ b/plasmate/app/CMakeLists.txt
@@ -8,7 +8,7 @@ set(startpage_SRCS
startpage/projectmanager.cpp
)
-qt5_wrap_ui(startpage_SRCS
+ki18n_wrap_ui(startpage_SRCS
startpage/startpage.ui
)
diff --git a/plasmate/app/main.cpp b/plasmate/app/main.cpp
index 72acff2..e0e5902 100644
--- a/plasmate/app/main.cpp
+++ b/plasmate/app/main.cpp
@@ -31,6 +31,7 @@ static const char version[] = PROJECT_VERSION;
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
+ KLocalizedString::setApplicationDomain("plasmate");
app.setApplicationVersion(version);
KAboutData aboutData(QStringLiteral("plasmate"), i18n("Plasmate"), version,