From 0e10fda2e050694b53141b0b155cec63be61fa82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tinkl?= Date: Sat, 19 Jul 2014 11:43:53 +0200 Subject: [PATCH 1/2] set translation domain --- kioslave/applications/CMakeLists.txt | 2 ++ kioslave/remote/CMakeLists.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/kioslave/applications/CMakeLists.txt b/kioslave/applications/CMakeLists.txt index eff022891..2ffc328c1 100644 --- a/kioslave/applications/CMakeLists.txt +++ b/kioslave/applications/CMakeLists.txt @@ -1,3 +1,5 @@ +add_definitions(-DTRANSLATION_DOMAIN=\"kio_applications\") + add_library(kio_applications MODULE kio_applications.cpp) target_link_libraries(kio_applications KF5::KDELibs4Support KF5::KIOCore) diff --git a/kioslave/remote/CMakeLists.txt b/kioslave/remote/CMakeLists.txt index 6db6392db..ad59e458d 100644 --- a/kioslave/remote/CMakeLists.txt +++ b/kioslave/remote/CMakeLists.txt @@ -1,3 +1,5 @@ +add_definitions(-DTRANSLATION_DOMAIN=\"kio_remote\") + add_subdirectory( kdedmodule ) add_subdirectory( tests ) From 5bd7f39f28ee5b4d11cb2e453188ad9bd1d4a89a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tinkl?= Date: Sat, 19 Jul 2014 11:44:35 +0200 Subject: [PATCH 2/2] missing i18n() --- .../devicenotifier/package/contents/ui/configGeneral.qml | 6 +++--- applets/lock_logout/contents/ui/ConfigGeneral.qml | 2 +- applets/systemtray/package/contents/ui/ConfigEntries.qml | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/applets/devicenotifier/package/contents/ui/configGeneral.qml b/applets/devicenotifier/package/contents/ui/configGeneral.qml index ff686d31f..19500cd2a 100644 --- a/applets/devicenotifier/package/contents/ui/configGeneral.qml +++ b/applets/devicenotifier/package/contents/ui/configGeneral.qml @@ -41,17 +41,17 @@ Item { } Controls.RadioButton { id: removableOnly - text: "Removable devices only" + text: i18n("Removable devices only") exclusiveGroup: deviceFilter } Controls.RadioButton { id: nonRemovableOnly - text: "Non-removable devices only" + text: i18n("Non-removable devices only") exclusiveGroup: deviceFilter } Controls.RadioButton { id: allDevices - text: "All devices" + text: i18n("All devices") exclusiveGroup: deviceFilter } } diff --git a/applets/lock_logout/contents/ui/ConfigGeneral.qml b/applets/lock_logout/contents/ui/ConfigGeneral.qml index f6cabc137..05bc8617f 100644 --- a/applets/lock_logout/contents/ui/ConfigGeneral.qml +++ b/applets/lock_logout/contents/ui/ConfigGeneral.qml @@ -47,7 +47,7 @@ Item { id: pageColumn spacing: itemSizeLabel.height / 2 PlasmaExtras.Title { - text: i18n("SystemTray Settings") + text: i18n("Lock/Logout Settings") } Column { diff --git a/applets/systemtray/package/contents/ui/ConfigEntries.qml b/applets/systemtray/package/contents/ui/ConfigEntries.qml index 8c31b1b27..4f1be7aee 100644 --- a/applets/systemtray/package/contents/ui/ConfigEntries.qml +++ b/applets/systemtray/package/contents/ui/ConfigEntries.qml @@ -105,9 +105,9 @@ Item { } model: ListModel { id: cbItems - ListElement { text: "Auto"; val: 1 } - ListElement { text: "Shown"; val: 2 } - ListElement { text: "Hidden"; val: 0 } + ListElement { text: i18n("Auto"); val: 1 } + ListElement { text: i18n("Shown"); val: 2 } + ListElement { text: i18n("Hidden"); val: 0 } } } }