Commit ab231622 authored by Yuri Chornoivan's avatar Yuri Chornoivan

Fix i18n for QML

parent 6df2ff23
Pipeline #4253 passed with stage
in 19 minutes and 48 seconds
#!bin/sh
#!/bin/sh
kdenlive_subdirs="plugins renderer data src src/ui"
$EXTRACTRC --tag=name --tag=description --tag=label --tag=comment --tag=paramlistdisplay data/effects/*.xml data/kdenliveeffectscategory.rc >> rc.cpp
$EXTRACTRC `find $kdenlive_subdirs -name \*.rc -a ! -name encodingprofiles.rc -a ! -name camcorderfilters.rc -o -name \*.ui` >> rc.cpp
$XGETTEXT `find $kdenlive_subdirs -name \*.cpp -o -name \*.h` *.cpp -o $podir/kdenlive.pot
$XGETTEXT `find $kdenlive_subdirs -name \*.cpp -o -name \*.h -o -name \*.qml` *.cpp -o $podir/kdenlive.pot
rm -f rc.cpp
......@@ -67,7 +67,7 @@ Rectangle {
id: searchList
iconName: "edit-find"
checkable: true
tooltip: isEffectList ? i18n('Find effect') : i18n('Find composition')
tooltip: isEffectList ? i18n("Find effect") : i18n("Find composition")
onCheckedChanged: {
searchInput.visible = searchList.checked
searchInput.focus = searchList.checked
......@@ -83,7 +83,7 @@ Rectangle {
checkable: true
checked: true
exclusiveGroup: filterGroup
tooltip: i18n('Main %1', assetType())
tooltip: i18n("Main %1", assetType())
onClicked: {
assetlist.setFilterType("")
}
......@@ -95,7 +95,7 @@ Rectangle {
iconSource: 'qrc:///pics/kdenlive-show-video.svgz'
checkable:true
exclusiveGroup: filterGroup
tooltip: i18n('Show all video effects')
tooltip: i18n("Show all video effects")
onClicked: {
assetlist.setFilterType("video")
}
......@@ -107,7 +107,7 @@ Rectangle {
iconSource: 'qrc:///pics/kdenlive-show-audio.svgz'
checkable:true
exclusiveGroup: filterGroup
tooltip: i18n('Show all audio effects')
tooltip: i18n("Show all audio effects")
onClicked: {
assetlist.setFilterType("audio")
}
......@@ -118,7 +118,7 @@ Rectangle {
iconName: "kdenlive-custom-effect"
checkable:true
exclusiveGroup: filterGroup
tooltip: i18n('Show all custom effects')
tooltip: i18n("Show all custom effects")
onClicked: {
assetlist.setFilterType("custom")
}
......@@ -128,7 +128,7 @@ Rectangle {
iconName: "favorite"
checkable:true
exclusiveGroup: filterGroup
tooltip: i18n('Show favorite items')
tooltip: i18n("Show favorite items")
onClicked: {
assetlist.setFilterType("favorites")
}
......@@ -137,7 +137,7 @@ Rectangle {
id: downloadTransitions
visible: !isEffectList
iconName: "edit-download"
tooltip: i18n('Download New Wipes...')
tooltip: i18n("Download New Wipes...")
onClicked: {
assetlist.downloadNewLumas()
}
......@@ -152,7 +152,7 @@ Rectangle {
id: showDescription
iconName: "help-about"
checkable:true
tooltip: i18n('Show/hide description of the ') + assetType()
tooltip: i18n("Show/hide description of the %1", assetType())
onCheckedChanged:{
assetlist.showDescription = checked
}
......
......@@ -212,7 +212,7 @@ Item {
opacity: 0.8
Text {
id: label
text: i18n('Click to add points,\nright click to close shape.')
text: i18n("Click to add points,\nright click to close shape.")
font.pointSize: root.baseUnit
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
......
......@@ -76,19 +76,19 @@ Window {
spacing: 100
Text {
color: "white"
text: i18n('Website')
text: i18n("Website")
font.bold: true
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
}
Text {
color: "white"
text: i18n('Donate')
text: i18n("Donate")
font.bold: true
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
}
Text {
color: "white"
text: i18n('Forum')
text: i18n("Forum")
font.bold: true
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
}
......@@ -107,7 +107,7 @@ Window {
Text {
id:txtProject
color: "#f38577"
text: i18n('Recent Projects')
text: i18n("Recent Projects")
anchors.top: parent.top
anchors.left: parent.left
anchors.topMargin: 50
......@@ -177,7 +177,7 @@ Window {
}
}
label: Text {
text: i18n('Hide on startup')
text: i18n("Hide on startup")
color: "white"
}
}
......@@ -189,14 +189,14 @@ Window {
visible: !splashing
Button {
iconSource:"image://icon/document-new"
text:i18n('New')
text:i18n("New")
//style: CustomButton {
// backColor: splashContent.color
// }
}
Button {
iconSource:"image://icon/document-open"
text:i18n('Open')
text:i18n("Open")
//style: CustomButton {
// backColor: splashContent.color
// }
......
......@@ -359,7 +359,7 @@ Rectangle {
}
contentItem: Label {
color: activePalette.text
text: i18n('Offset') + (positionOffset < 0 ? ( ': -' + timeline.timecode(-positionOffset)) : ': ' + timeline.timecode(positionOffset))
text: i18n("Offset") + (positionOffset < 0 ? ( ': -' + timeline.timecode(-positionOffset)) : ': ' + timeline.timecode(positionOffset))
}
}
Text {
......@@ -538,7 +538,7 @@ Rectangle {
}
contentItem: Label {
color: activePalette.text
text: i18n('Click to add composition')
text: i18n("Click to add composition")
}
}
}
......@@ -589,7 +589,7 @@ Rectangle {
}
contentItem: Label {
color: activePalette.text
text: i18n('Click to add composition')
text: i18n("Click to add composition")
}
}
}
......@@ -923,11 +923,11 @@ Rectangle {
/*MenuItem {
id: mergeItem
text: i18n('Merge with next clip')
text: i18n("Merge with next clip")
onTriggered: timeline.mergeClipWithNext(trackIndex, index, false)
}
MenuItem {
text: i18n('Rebuild Audio Waveform')
text: i18n("Rebuild Audio Waveform")
onTriggered: timeline.remakeAudioLevels(trackIndex, index)
}*/
/*onPopupVisibleChanged: {
......
......@@ -21,7 +21,7 @@ Menu {
}
MenuItem {
text: i18n('Copy')
text: i18n("Copy")
iconName: 'edit-copy'
onTriggered: {
root.copiedClip = clipId
......@@ -30,18 +30,18 @@ Menu {
}
MenuItem {
visible: canBeGrouped
text: i18n('Group')
text: i18n("Group")
iconName: 'object-group'
onTriggered: timeline.triggerAction('group_clip')
}
MenuItem {
visible: grouped
text: i18n('Ungroup')
text: i18n("Ungroup")
iconName: 'object-ungroup'
onTriggered: timeline.unGroupSelection(clipId)
}
MenuItem {
text: i18n('Edit Duration')
text: i18n("Edit Duration")
iconName: 'measure'
onTriggered: {
timeline.editItemDuration(clipId)
......@@ -49,7 +49,7 @@ Menu {
}
MenuItem {
visible: root.copiedClip != -1 && root.copiedClip != clipId
text: i18n('Paste Effects')
text: i18n("Paste Effects")
iconName: 'edit-paste'
onTriggered: timeline.pasteEffects(clipId)
}
......@@ -57,56 +57,56 @@ Menu {
visible: true
}
MenuItem {
text: i18n('Split Audio')
text: i18n("Split Audio")
onTriggered: timeline.splitAudio(clipId)
visible: !grouped && canBeAudio && clipStatus == ClipState.VideoOnly
}
MenuItem {
text: i18n('Split Video')
text: i18n("Split Video")
onTriggered: timeline.splitVideo(clipId)
visible: !grouped && canBeVideo && clipStatus == ClipState.AudioOnly
}
Menu {
title: i18n('Markers')
title: i18n("Markers")
MenuItem {
text: i18n('Add Marker')
text: i18n("Add Marker")
onTriggered: timeline.addMarker(clipId)
}
MenuItem {
text: i18n('Add Marker/Guide quickly')
text: i18n("Add Marker/Guide quickly")
onTriggered: timeline.addQuickMarker(clipId)
}
MenuItem {
text: i18n('Edit Marker')
text: i18n("Edit Marker")
onTriggered: timeline.editMarker(clipId)
}
MenuItem {
text: i18n('Delete Marker')
text: i18n("Delete Marker")
onTriggered: timeline.deleteMarker(clipId)
}
MenuItem {
text: i18n('Delete All Markers')
text: i18n("Delete All Markers")
onTriggered: timeline.deleteAllMarkers(clipId)
}
}
MenuItem {
text: i18n('Set Audio Reference')
text: i18n("Set Audio Reference")
onTriggered: timeline.setAudioRef(clipId)
visible: canBeAudio
}
MenuItem {
text: i18n('Align Audio')
text: i18n("Align Audio")
onTriggered: timeline.alignAudio(clipId)
visible: canBeAudio
}
MenuItem {
text: i18n('Remove')
text: i18n("Remove")
iconName: 'edit-delete'
onTriggered: timeline.triggerAction('delete_timeline_clip')
}
MenuItem {
visible: true
text: i18n('Extract')
text: i18n("Extract")
onTriggered: timeline.extract(clipId)
}
MenuSeparator {
......@@ -114,35 +114,35 @@ Menu {
}
MenuItem {
visible: true
text: i18n('Change Speed')
text: i18n("Change Speed")
onTriggered: {
timeline.changeItemSpeed(clipId, -1)
}
}
MenuItem {
text: i18n('Clip in Project Bin')
text: i18n("Clip in Project Bin")
onTriggered: timeline.triggerAction('clip_in_project_tree')
}
MenuItem {
visible: true
text: i18n('Split At Playhead')
text: i18n("Split At Playhead")
onTriggered: timeline.triggerAction('cut_timeline_clip')
}
MenuItem {
visible: true
text: clipStatus != ClipState.Disabled ? i18n('Disable clip') : i18n('Enable clip')
text: clipStatus != ClipState.Disabled ? i18n("Disable clip") : i18n("Enable clip")
onTriggered: timeline.switchEnableState(clipId)
}
AssetMenu {
title: i18n('Insert an effect...')
title: i18n("Insert an effect...")
menuModel: effectModel
onAssetSelected: {
timeline.addEffectToClip(assetId, clipId)
}
}
AssetMenu {
title: i18n('Insert a composition...')
title: i18n("Insert a composition...")
menuModel: transitionModel
isTransition: true
onAssetSelected: {
......
......@@ -18,18 +18,18 @@ Menu {
}
MenuItem {
visible: !grouped && timeline.selection.length > 1
text: i18n('Group')
text: i18n("Group")
iconName: 'object-group'
onTriggered: timeline.groupSelection()
}
MenuItem {
visible: grouped
text: i18n('Ungroup')
text: i18n("Ungroup")
iconName: 'object-ungroup'
onTriggered: timeline.unGroupSelection(clipId)
}
MenuItem {
text: i18n('Edit Duration')
text: i18n("Edit Duration")
iconName: 'measure'
onTriggered: {
timeline.editItemDuration(clipId)
......@@ -37,7 +37,7 @@ Menu {
}
MenuItem {
visible: true
text: i18n('Copy')
text: i18n("Copy")
iconName: 'edit-copy'
onTriggered: {
root.copiedClip = clipId
......@@ -45,7 +45,7 @@ Menu {
}
}
MenuItem {
text: i18n('Remove')
text: i18n("Remove")
iconName: 'edit-delete'
onTriggered: timeline.triggerAction('delete_timeline_clip')
}
......
......@@ -149,7 +149,7 @@ Rectangle {
}
contentItem: Label {
color: activePalette.text
text: i18n('Click to toggle track as target. Target tracks will receive the inserted clips')
text: i18n("Click to toggle track as target. Target tracks will receive the inserted clips")
}
}
state: 'normalTarget'
......@@ -197,7 +197,7 @@ Rectangle {
onClicked: {
trackHeadRoot.myTrackHeight = trackHeadRoot.collapsed ? Math.max(collapsedHeight * 1.5, controller.getTrackProperty(trackId, "kdenlive:trackheight")) : collapsedHeight
}
tooltip: trackLabel.visible? i18n('Minimize') : i18n('Expand')
tooltip: trackLabel.visible? i18n("Minimize") : i18n("Expand")
}
Item {
width: trackTag.contentWidth + 4
......@@ -236,7 +236,7 @@ Rectangle {
}
contentItem: Label {
color: activePalette.text
text: i18n('Click to make track active/inactive. Active tracks will react to insert/remove operations')
text: i18n("Click to make track active/inactive. Active tracks will react to insert/remove operations")
}
}
state: 'normalled'
......@@ -305,7 +305,7 @@ Rectangle {
iconName: isAudio ? (isDisabled ? 'kdenlive-hide-audio' : 'kdenlive-show-audio') : (isDisabled ? 'kdenlive-hide-video' : 'kdenlive-show-video')
iconSource: isAudio ? (isDisabled ? 'qrc:///pics/kdenlive-hide-audio.svgz' : 'qrc:///pics/kdenlive-show-audio.svgz') : (isDisabled ? 'qrc:///pics/kdenlive-hide-video.svgz' : 'qrc:///pics/kdenlive-show-video.svgz')
onClicked: controller.setTrackProperty(trackId, "hide", isDisabled ? (isAudio ? '1' : '2') : '3')
tooltip: isAudio ? (isDisabled? i18n('Unmute') : i18n('Mute')) : (isDisabled? i18n('Show') : i18n('Hide'))
tooltip: isAudio ? (isDisabled? i18n("Unmute") : i18n("Mute")) : (isDisabled? i18n("Show") : i18n("Hide"))
}
ToolButton {
......@@ -315,7 +315,7 @@ Rectangle {
iconName: isLocked ? 'kdenlive-lock' : 'kdenlive-unlock'
iconSource: isLocked ? 'qrc:///pics/kdenlive-lock.svg' : 'qrc:///pics/kdenlive-unlock.svg'
onClicked: controller.setTrackLockedState(trackId, !isLocked)
tooltip: isLocked? i18n('Unlock track') : i18n('Lock track')
tooltip: isLocked? i18n("Unlock track") : i18n("Lock track")
SequentialAnimation {
id: flashLock
......@@ -395,7 +395,7 @@ Rectangle {
id: placeHolder
visible: false
enabled: false
text: i18n('Edit track name')
text: i18n("Edit track name")
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: 4
......
......@@ -481,7 +481,7 @@ Rectangle {
editGuideMenu.visible = false
}
OLD.MenuItem {
text: i18n('Paste')
text: i18n("Paste")
iconName: 'edit-paste'
visible: copiedClip != -1
onTriggered: {
......@@ -491,7 +491,7 @@ Rectangle {
}
}
OLD.MenuItem {
text: i18n('Insert Space')
text: i18n("Insert Space")
onTriggered: {
var track = Logic.getTrackIdFromPos(menu.clickedY - ruler.height + scrollView.flickableItem.contentY)
var frame = Math.floor((menu.clickedX + scrollView.flickableItem.contentX) / timeline.scaleFactor)
......@@ -499,7 +499,7 @@ Rectangle {
}
}
OLD.MenuItem {
text: i18n('Remove Space On Active Track')
text: i18n("Remove Space On Active Track")
onTriggered: {
var track = Logic.getTrackIdFromPos(menu.clickedY - ruler.height + scrollView.flickableItem.contentY)
var frame = Math.floor((menu.clickedX + scrollView.flickableItem.contentX) / timeline.scaleFactor)
......@@ -507,7 +507,7 @@ Rectangle {
}
}
OLD.MenuItem {
text: i18n('Remove Space')
text: i18n("Remove Space")
onTriggered: {
var track = Logic.getTrackIdFromPos(menu.clickedY - ruler.height + scrollView.flickableItem.contentY)
var frame = Math.floor((menu.clickedX + scrollView.flickableItem.contentX) / timeline.scaleFactor)
......@@ -516,13 +516,13 @@ Rectangle {
}
OLD.MenuItem {
id: addGuideMenu
text: i18n('Add Guide')
text: i18n("Add Guide")
onTriggered: {
timeline.switchGuide(timeline.position);
}
}
GuidesMenu {
title: i18n('Go to guide...')
title: i18n("Go to guide...")
menuModel: guidesModel
enabled: guidesDelegateModel.count > 0
onGuideSelected: {
......@@ -532,14 +532,14 @@ Rectangle {
}
OLD.MenuItem {
id: editGuideMenu
text: i18n('Edit Guide')
text: i18n("Edit Guide")
visible: false
onTriggered: {
timeline.editGuide(timeline.position);
}
}
AssetMenu {
title: i18n('Insert a composition...')
title: i18n("Insert a composition...")
menuModel: transitionModel
isTransition: true
onAssetSelected: {
......@@ -554,10 +554,10 @@ Rectangle {
onAboutToShow: {
if (guidesModel.hasMarker(timeline.position)) {
// marker at timeline position
addGuideMenu.text = i18n('Remove Guide')
addGuideMenu.text = i18n("Remove Guide")
editGuideMenu.visible = true
} else {
addGuideMenu.text = i18n('Add Guide')
addGuideMenu.text = i18n("Add Guide")
}
console.log("pop menu")
}
......@@ -572,13 +572,13 @@ Rectangle {
}
OLD.MenuItem {
id: addGuideMenu2
text: i18n('Add Guide')
text: i18n("Add Guide")
onTriggered: {
timeline.switchGuide(timeline.position);
}
}
GuidesMenu {
title: i18n('Go to guide...')
title: i18n("Go to guide...")
menuModel: guidesModel
enabled: guidesDelegateModel.count > 0
onGuideSelected: {
......@@ -588,7 +588,7 @@ Rectangle {
}
OLD.MenuItem {
id: editGuideMenu2
text: i18n('Edit Guide')
text: i18n("Edit Guide")
visible: false
onTriggered: {
timeline.editGuide(timeline.position);
......@@ -596,7 +596,7 @@ Rectangle {
}
OLD.MenuItem {
id: addProjectNote
text: i18n('Add Project Note')
text: i18n("Add Project Note")
onTriggered: {
timeline.triggerAction('add_project_note')
}
......@@ -604,10 +604,10 @@ Rectangle {
onAboutToShow: {
if (guidesModel.hasMarker(timeline.position)) {
// marker at timeline position
addGuideMenu2.text = i18n('Remove Guide')
addGuideMenu2.text = i18n("Remove Guide")
editGuideMenu2.visible = true
} else {
addGuideMenu2.text = i18n('Add Guide')
addGuideMenu2.text = i18n("Add Guide")
}
console.log("pop menu")
}
......@@ -629,13 +629,13 @@ Rectangle {
timeline.ungrabHack()
}
OLD.MenuItem {
text: i18n('Add Track')
text: i18n("Add Track")
onTriggered: {
timeline.addTrack(timeline.activeTrack)
}
}
OLD.MenuItem {
text: i18n('Delete Track')
text: i18n("Delete Track")
onTriggered: {
timeline.deleteTrack(timeline.activeTrack)
}
......@@ -643,7 +643,7 @@ Rectangle {
OLD.MenuItem {
visible: headerMenu.audioTrack
id: showRec
text: "Show Record Controls"
text: i18n("Show Record Controls")
onTriggered: {
controller.setTrackProperty(headerMenu.trackId, "kdenlive:audio_rec", showRec.checked ? '1' : '0')
}
......@@ -653,24 +653,24 @@ Rectangle {
OLD.MenuItem {
visible: headerMenu.audioTrack
id: configRec
text: "Configure Recording"
text: i18n("Configure Recording")
onTriggered: {
timeline.showConfig(4,2)
}
}
OLD.Menu {
title: i18n('Track thumbnails')
title: i18n("Track thumbnails")
visible: !headerMenu.audioTrack
OLD.ExclusiveGroup { id: thumbStyle }
OLD.MenuItem {
text: "In frame"
text: i18n("In frame")
id: inFrame
onTriggered:controller.setTrackProperty(headerMenu.trackId, "kdenlive:thumbs_format", 2)
checkable: true
exclusiveGroup: thumbStyle
}
OLD.MenuItem {
text: "In / out frames"
text: i18n("In / out frames")
id: inOutFrame
onTriggered:controller.setTrackProperty(headerMenu.trackId, "kdenlive:thumbs_format", 0)
checkable: true
......@@ -678,14 +678,14 @@ Rectangle {
exclusiveGroup: thumbStyle
}
OLD.MenuItem {
text: "All frames"
text: i18n("All frames")
id: allFrame
onTriggered:controller.setTrackProperty(headerMenu.trackId, "kdenlive:thumbs_format", 1)
checkable: true
exclusiveGroup: thumbStyle
}
OLD.MenuItem {
text: "No thumbnails"
text: i18n("No thumbnails")
id: noFrame
onTriggered:controller.setTrackProperty(headerMenu.trackId, "kdenlive:thumbs_format", 3)
checkable: true
......
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