Commit 73425fa5 authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Use i18n for QML

parent 334a58da
Pipeline #4292 passed with stage
in 18 minutes and 37 seconds
......@@ -331,7 +331,7 @@ Rectangle {
property bool isDisplayed: false
MenuItem {
id: favMenu
text: assetContextMenu.isItemFavorite ? "Remove from favorites" : "Add to favorites"
text: assetContextMenu.isItemFavorite ? i18n("Remove from favorites") : i18n("Add to favorites")
property url thumbSource
onTriggered: {
assetlist.setFavorite(sel.currentIndex, !assetContextMenu.isItemFavorite)
......@@ -345,7 +345,7 @@ Rectangle {
}
}
TableViewColumn { role: "identifier"; title: "Name"; }
TableViewColumn { role: "identifier"; title: ш18т("Name"); }
model: assetListModel
Keys.onDownPressed: {
......
......@@ -27,7 +27,7 @@ Rectangle {
EffectSlider {
id: slider1
sliderIcon: 'speedometer'
sliderLabel: 'Speed'
sliderLabel: i18n("Speed")
paramName: 'speed'
slider_max: 300
slider_def: 100
......
......@@ -18,7 +18,7 @@ Rectangle {
id: fullscreenButton
objectName: "fullScreen"
iconName: "view-fullscreen"
tooltip: "Switch Full Screen"
tooltip: i18n("Switch Full Screen")
onClicked: controller.triggerAction('monitor_fullscreen')
}
ToolButton {
......@@ -30,23 +30,23 @@ Rectangle {
ToolButton {
objectName: "prevKeyframe"
iconName: "go-previous"
tooltip: "Go to Previous Keyframe"
tooltip: i18n("Go to Previous Keyframe")
onClicked: controller.seekPreviousKeyframe()
}
ToolButton {
objectName: "addKeyframe"
iconName: "list-add"
tooltip: "Add/Remove Keyframe"
tooltip: i18n("Add/Remove Keyframe")
onClicked: controller.addRemoveKeyframe()
}
ToolButton {
iconName: "zoom-in"
tooltip: "Zoom in"
tooltip: i18n("Zoom in")
onClicked: controller.triggerAction('monitor_zoomin')
}
ToolButton {
iconName: "zoom-out"
tooltip: "Zoom out"
tooltip: i18n("Zoom out")
onClicked: controller.triggerAction('monitor_zoomout')
}
}
......
......@@ -19,7 +19,7 @@ Rectangle {
id: fullscreenButton
objectName: "fullScreen"
iconName: "view-fullscreen"
tooltip: "Switch Full Screen"
tooltip: i18n("Switch Full Screen")
onClicked: {
controller.activateClipMonitor(root.isClipMonitor)
controller.triggerAction('monitor_fullscreen')
......@@ -28,14 +28,14 @@ Rectangle {
ToolButton {
objectName: "switchOverlay"
iconName: "view-grid"
tooltip: "Change Overlay"
tooltip: i18n("Change Overlay")
onClicked: {
root.switchOverlay()
}
}
ToolButton {
iconName: "zoom-in"
tooltip: "Zoom in"
tooltip: i18n("Zoom in")
onClicked: {
controller.activateClipMonitor(root.isClipMonitor)
controller.triggerAction('monitor_zoomin')
......@@ -43,7 +43,7 @@ Rectangle {
}
ToolButton {
iconName: "zoom-out"
tooltip: "Zoom out"
tooltip: i18n("Zoom out")
onClicked: {
controller.activateClipMonitor(root.isClipMonitor)
controller.triggerAction('monitor_zoomout')
......@@ -52,7 +52,7 @@ Rectangle {
ToolButton {
objectName: "addMarker"
iconName: "list-add"
tooltip: root.isClipMonitor ? "Add Marker" : "Add Guide"
tooltip: root.isClipMonitor ? i18n("Add Marker") : i18n("Add Guide")
onClicked: {
controller.activateClipMonitor(root.isClipMonitor)
controller.triggerAction('add_marker_guide_quickly')
......@@ -61,7 +61,7 @@ Rectangle {
ToolButton {
objectName: "removeMarker"
iconName: "list-remove"
tooltip: root.isClipMonitor ? "Remove Marker" : "Remove Guide"
tooltip: root.isClipMonitor ? i18n("Remove Marker") : i18n("Remove Guide")
onClicked: {
controller.activateClipMonitor(root.isClipMonitor)
root.isClipMonitor ? controller.triggerAction('delete_clip_marker') : controller.triggerAction('delete_guide')
......
......@@ -171,7 +171,7 @@ Item {
color: root.dropped ? "red" : "white"
style: Text.Outline;
styleColor: "black"
text: root.fps + "fps"
text: i18n("%1 fps", root.fps)
visible: root.showFps
anchors {
right: timecode.visible ? timecode.left : parent.right
......@@ -237,13 +237,13 @@ Item {
ToolButton {
id: videoDragButton
iconName: "kdenlive-show-video"
tooltip: "Video only drag"
tooltip: i18n("Video only drag")
enabled: false
}
ToolButton {
id: audioDragButton
iconName: "audio-volume-medium"
tooltip: "Audio only drag"
tooltip: i18n("Audio only drag")
enabled: false
}
}
......
......@@ -135,7 +135,7 @@ Item {
color: root.dropped ? "red" : "white"
style: Text.Outline;
styleColor: "black"
text: root.fps + "fps"
text: i18n("%1 fps", root.fps)
visible: root.showFps
anchors {
right: timecode.visible ? timecode.left : parent.right
......
......@@ -20,7 +20,7 @@ Item {
border.width: 1
color: trimmode == 1 ? "darkRed" : "darkBlue"
Text {
text: 'Ripple'
text: i18n("Ripple")
color: "white"
anchors.centerIn: parent
}
......@@ -40,7 +40,7 @@ Item {
border.width: 1
color: trimmode == 2 ? "darkRed" : "darkBlue"
Text {
text: 'Rolling'
text: i18n("Rolling")
color: "white"
anchors.centerIn: parent
}
......@@ -60,7 +60,7 @@ Item {
border.width: 1
color: trimmode == 3 ? "darkRed" : "darkBlue"
Text {
text: 'Slip'
text: i18n("Slip")
color: "white"
anchors.centerIn: parent
}
......@@ -80,7 +80,7 @@ Item {
border.width: 1
color: trimmode == 4 ? "darkRed" : "darkBlue"
Text {
text: 'Slide'
text: i18n("Slide")
color: "white"
anchors.centerIn: parent
}
......@@ -114,7 +114,7 @@ Item {
height: root.height / 2 - info.height
color: "darkGreen"
Text {
text: 'close'
text: i18n("close")
color: "white"
anchors.centerIn: parent
}
......
......@@ -72,7 +72,7 @@ Item {
color: "red"
visible: false
Text {
text: 'Effect'
text: i18n("Effect")
color: "red"
anchors {
right: parent.left
......
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