Unverified Commit 4c8bd6ec authored by Jonah Brüchert's avatar Jonah Brüchert 🌳

Update for translations

parent cd23ca4f
project(plasma-camera)
cmake_minimum_required(VERSION 2.8.10.1)
cmake_minimum_required(VERSION 2.8.12)
include(CPack)
include(FeatureSummary)
......@@ -19,11 +19,11 @@ include(KDECompilerSettings)
# find_package(Qt5 REQUIRED NO_MODULE COMPONENTS Core Quick Test Gui)
set (QT_MIN_VERSION "5.4.0")
set (QT_MIN_VERSION "5.9.0")
find_package(KF5Kirigami2 REQUIRED)
find_package(KF5 REQUIRED COMPONENTS
Package)
Package)
kpackage_install_package(package org.kde.phone.camera genericqml)
kpackage_install_bundled_package(package org.kde.phone.camera genericqml)
install(FILES package/metadata.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} RENAME org.kde.phone.camera.desktop)
......@@ -57,41 +57,41 @@ Kirigami.Page {
id: captureAction
text: {
if (camera.captureMode == Camera.CaptureStillImage)
return qsTr("Capture photo")
return i18n("Capture photo")
else if (camera.videoRecorder.recorderStatus == CameraRecorder.RecordingStatus)
return qsTr("Stop recording video")
return i18n("Stop recording video")
else if (camera.captureMode == Camera.CaptureVideo)
return qsTr("Start recording video")
return i18n("Start recording video")
}
iconName: {
if (camera.captureMode == Camera.CaptureStillImage)
return qsTr("camera-photo")
return i18n("camera-photo")
else if (camera.videoRecorder.recorderStatus == CameraRecorder.RecordingStatus)
return qsTr("window-close")
return i18n("window-close")
else if (camera.captureMode == Camera.CaptureVideo)
return qsTr("video-mp4")
return i18n("video-mp4")
}
onTriggered: {
if (camera.captureMode == Camera.CaptureStillImage) {
camera.imageCapture.capture()
showPassiveNotification(qsTr("Took a photo"))
showPassiveNotification(i18n("Took a photo"))
}
else if (camera.videoRecorder.recorderStatus == CameraRecorder.RecordingStatus) {
camera.videoRecorder.stop()
recordingFeedback.visible = false
showPassiveNotification(qsTr("Stopped recording"))
showPassiveNotification(i18n("Stopped recording"))
}
else if (camera.captureMode == Camera.CaptureVideo) {
camera.videoRecorder.record()
recordingFeedback.visible = true
showPassiveNotification(qsTr("Started recording"))
showPassiveNotification(i18n("Started recording"))
}
}
}
leftAction: Kirigami.Action {
id: switchAction
text: qsTr("Switch mode")
text: i18n("Switch mode")
iconName: "document-swap"
onTriggered: {
if (camera.captureMode == Camera.CaptureStillImage)
......
......@@ -45,7 +45,7 @@ import QtMultimedia 5.8
Kirigami.GlobalDrawer {
actions: [
Kirigami.Action {
text: qsTr("Camera")
text: i18n("Camera")
iconName: "camera-photo"
DelegateModel {
model: QtMultimedia.availableCameras
......@@ -56,7 +56,7 @@ Kirigami.GlobalDrawer {
}
},
Kirigami.Action {
text: qsTr("Video resolution")
text: i18n("Video resolution")
iconName: "ratiocrop"
DelegateModel {
model: applicationWindow().cameraPage.camera.videoRecorder.supportedResolutions
......@@ -67,7 +67,7 @@ Kirigami.GlobalDrawer {
}
},
Kirigami.Action {
text: qsTr("Photo resolution")
text: i18n("Photo resolution")
iconName: "ratiocrop"
DelegateModel {
model: applicationWindow().cameraPage.camera.imageCapture.supportedResolutions
......@@ -78,7 +78,7 @@ Kirigami.GlobalDrawer {
}
},
Kirigami.Action {
text: qsTr("White balance")
text: i18n("White balance")
iconName: "whitebalance"
DelegateModel {
model: ListModel {
......
......@@ -53,7 +53,7 @@ Kirigami.ApplicationWindow {
Component {id: cameraPage; CameraPage {}}
id: root
title: "Camera"
title: i18n("Camera")
globalDrawer: GlobalDrawer {}
Component.onCompleted: pageStack.push(cameraPage)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment