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

partially revert 4c8bd6ec

parent 4c8bd6ec
......@@ -57,41 +57,41 @@ Kirigami.Page {
id: captureAction
text: {
if (camera.captureMode == Camera.CaptureStillImage)
return i18n("Capture photo")
return qsTr("Capture photo")
else if (camera.videoRecorder.recorderStatus == CameraRecorder.RecordingStatus)
return i18n("Stop recording video")
return qsTr("Stop recording video")
else if (camera.captureMode == Camera.CaptureVideo)
return i18n("Start recording video")
return qsTr("Start recording video")
}
iconName: {
if (camera.captureMode == Camera.CaptureStillImage)
return i18n("camera-photo")
return qsTr("camera-photo")
else if (camera.videoRecorder.recorderStatus == CameraRecorder.RecordingStatus)
return i18n("window-close")
return qsTr("window-close")
else if (camera.captureMode == Camera.CaptureVideo)
return i18n("video-mp4")
return qsTr("video-mp4")
}
onTriggered: {
if (camera.captureMode == Camera.CaptureStillImage) {
camera.imageCapture.capture()
showPassiveNotification(i18n("Took a photo"))
showPassiveNotification(qsTr("Took a photo"))
}
else if (camera.videoRecorder.recorderStatus == CameraRecorder.RecordingStatus) {
camera.videoRecorder.stop()
recordingFeedback.visible = false
showPassiveNotification(i18n("Stopped recording"))
showPassiveNotification(qsTr("Stopped recording"))
}
else if (camera.captureMode == Camera.CaptureVideo) {
camera.videoRecorder.record()
recordingFeedback.visible = true
showPassiveNotification(i18n("Started recording"))
showPassiveNotification(qsTr("Started recording"))
}
}
}
leftAction: Kirigami.Action {
id: switchAction
text: i18n("Switch mode")
text: qsTr("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: i18n("Camera")
text: qsTr("Camera")
iconName: "camera-photo"
DelegateModel {
model: QtMultimedia.availableCameras
......@@ -56,7 +56,7 @@ Kirigami.GlobalDrawer {
}
},
Kirigami.Action {
text: i18n("Video resolution")
text: qsTr("Video resolution")
iconName: "ratiocrop"
DelegateModel {
model: applicationWindow().cameraPage.camera.videoRecorder.supportedResolutions
......@@ -67,7 +67,7 @@ Kirigami.GlobalDrawer {
}
},
Kirigami.Action {
text: i18n("Photo resolution")
text: qsTr("Photo resolution")
iconName: "ratiocrop"
DelegateModel {
model: applicationWindow().cameraPage.camera.imageCapture.supportedResolutions
......@@ -78,7 +78,7 @@ Kirigami.GlobalDrawer {
}
},
Kirigami.Action {
text: i18n("White balance")
text: qsTr("White balance")
iconName: "whitebalance"
DelegateModel {
model: ListModel {
......
......@@ -53,7 +53,7 @@ Kirigami.ApplicationWindow {
Component {id: cameraPage; CameraPage {}}
id: root
title: i18n("Camera")
title: qsTr("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