Make list parameter in effects translatable

svn path=/trunk/kdenlive/; revision=5288
parent a9c93fb2
......@@ -14,7 +14,7 @@ else
kde_inc=""
fi
$EXTRACTRC --tag=name --tag=description --tag=label --tag=comment effects/*.xml data/*.rc >> rc.cpp || exit 11
$EXTRACTRC --tag=name --tag=description --tag=label --tag=comment --tag=paramlistdisplay effects/*.xml data/*.rc >> rc.cpp || exit 11
$EXTRACTRC `find $kdenlive_subdirs -name \*.ui` >> rc.cpp || exit 11
$EXTRACTRC `find $kdenlive_subdirs -name \*.rc` >> rc.cpp || exit 11
......
......@@ -3,8 +3,8 @@
<name>Pan</name>
<description>Adjust the left/right spread of a channel</description>
<author>Dan Dennedy</author>
<parameter type="list" name="channel" default="0" paramlist="0,1"
paramlistdisplay="Left,Right">
<parameter type="list" name="channel" default="0" paramlist="0,1">
<paramlistdisplay>Left,Right</paramlistdisplay>
<name>Channel</name>
</parameter>
<parameter type="keyframe" name="start" max="1000" min="0" default="500" factor="1000">
......
......@@ -3,10 +3,12 @@
<name>Mono to stereo</name>
<description>Copy one channel to another</description>
<author>Dan Dennedy</author>
<parameter type="list" name="from" default="0" paramlist="0,1" paramlistdisplay="Left,Right">
<parameter type="list" name="from" default="0" paramlist="0,1">
<paramlistdisplay>Left,Right</paramlistdisplay>
<name>From</name>
</parameter>
<parameter type="list" name="to" default="1" paramlist="0,1" paramlistdisplay="Left,Right">
<parameter type="list" name="to" default="1" paramlist="0,1">
<paramlistdisplay>Left,Right</paramlistdisplay>
<name>To</name>
</parameter>
</effect>
......@@ -4,8 +4,8 @@
<description>Display and manipulation of the alpha channel</description>
<author>Marko Cebokli</author>
<parameter type="list" name="Display" default="0.0" paramlist="0.0,0.21,0.36,0.50,0.64,0.79,1.0"
paramlistdisplay="Image,Alpha as gray,Gray + red,Selection on black,Selection on gray,Selection on white,Selection on checkers">
<parameter type="list" name="Display" default="0.0" paramlist="0.0,0.21,0.36,0.50,0.64,0.79,1.0">
<paramlistdisplay>Image,Alpha as gray,Gray + red,Selection on black,Selection on gray,Selection on white,Selection on checkers</paramlistdisplay>
<name>Display</name>
</parameter>
......@@ -13,8 +13,8 @@
<name>Display input alpha</name>
</parameter>
<parameter type="list" name="Operation" default="0.0" paramlist="0.0,0.21,0.36,0.50,0.64,0.79,1.0"
paramlistdisplay="NO OP,Shave,Shrink hard,Shrink soft,Grow hard,Grow soft,Threshold">
<parameter type="list" name="Operation" default="0.0" paramlist="0.0,0.21,0.36,0.50,0.64,0.79,1.0">
<paramlistdisplay>NO OP,Shave,Shrink hard,Shrink soft,Grow hard,Grow soft,Threshold</paramlistdisplay>
<name>Operation</name>
</parameter>
......
......@@ -25,8 +25,8 @@
<name>Max</name>
</parameter>
<parameter type="list" name="Operation" default="0.0" paramlist="0.0,0.3,0.5,0.7,1.0"
paramlistdisplay="Write on clear, Max, Min, Add, Subtract">
<parameter type="list" name="Operation" default="0.0" paramlist="0.0,0.3,0.5,0.7,1.0">
<paramlistdisplay>Write on clear,Max,Min,Add,Subtract</paramlistdisplay>
<name>Operation</name>
</parameter>
......
......@@ -5,8 +5,8 @@
<author>Marko Cebokli</author>
<parameter type="list" name="Shape" default="0.0" paramlist="0.0,0.38,0.62,1.0"
paramlistdisplay="Rectangle,Ellipse,Triangle,Diamond">
<parameter type="list" name="Shape" default="0.0" paramlist="0.0,0.38,0.62,1.0">
<paramlistdisplay>Rectangle,Ellipse,Triangle,Diamond</paramlistdisplay>
<name>Shape</name>
</parameter>
......@@ -42,8 +42,8 @@
<name>Max</name>
</parameter>
<parameter type="list" name="Operation" default="0.0" paramlist="0.0,0.3,0.5,0.7,1.0"
paramlistdisplay="Write on clear, Max, Min, Add, Subtract">
<parameter type="list" name="Operation" default="0.0" paramlist="0.0,0.3,0.5,0.7,1.0">
<paramlistdisplay>Write on clear, Max, Min, Add, Subtract</paramlistdisplay>
<name>Operation</name>
</parameter>
......
......@@ -4,11 +4,13 @@
<description>Color curves adjustment</description>
<author>Till Theato, Maksim Golovkin</author>
<parameter type="list" name="Channel" default="0.5" paramlist="0.5,0,0.1,0.2,0.3,0.4,0.6,0.71" paramlistdisplay="RGB,Red,Green,Blue,Alpha,Luma,Hue,Saturation">
<parameter type="list" name="Channel" default="0.5" paramlist="0.5,0,0.1,0.2,0.3,0.4,0.6,0.71">
<paramlistdisplay>RGB,Red,Green,Blue,Alpha,Luma,Hue,Saturation</paramlistdisplay>
<name>Channel</name>
</parameter>
<parameter type="list" name="Luma formula" default="1" paramlist="0,1" paramlistdisplay="Rec. 601,Rec. 709">
<parameter type="list" name="Luma formula" default="1" paramlist="0,1">
<paramlistdisplay>Rec. 601,Rec. 709</paramlistdisplay>
<name>Luma formula</name>
</parameter>
......
......@@ -54,8 +54,8 @@
<name>Stretch Y</name>
</parameter>
<parameter type="list" name="Interpolator" default="0.166" paramlist="0,0.166,0.333,0.5,0.666,0.833,1.0"
paramlistdisplay="nearest neighbor,bilinear,bicubic smooth,bicibic sharp,spline 4x4,spline 6x6,lanczos">
<parameter type="list" name="Interpolator" default="0.166" paramlist="0,0.166,0.333,0.5,0.666,0.833,1.0">
<paramlistdisplay>Nearest neighbor,Bilinear,Bicubic smooth,Bicubic sharp,Spline 4x4,Spline 6x6,Lanczos</paramlistdisplay>
<name>Interpolator</name>
</parameter>
......
......@@ -16,8 +16,8 @@
<name>B</name>
</parameter>
<parameter type="list" name="Action" default="0.5" paramlist="0.0,0.5,1.0"
paramlistdisplay="Add constant,Change gamma,Multiply">
<parameter type="list" name="Action" default="0.5" paramlist="0.0,0.5,1.0">
<paramlistdisplay>Add constant,Change gamma,Multiply</paramlistdisplay>
<name>Action</name>
</parameter>
......@@ -29,8 +29,8 @@
<name>Alpha controlled</name>
</parameter>
<parameter type="list" name="Luma formula" default="1.0" paramlist="0.0,1.0"
paramlistdisplay="rec 601,rec 709">
<parameter type="list" name="Luma formula" default="1.0" paramlist="0.0,1.0">
<paramlistdisplay>Rec. 601,Rec. 709</paramlistdisplay>
<name>Luma formula</name>
</parameter>
......
......@@ -3,10 +3,12 @@
<name>Curves</name>
<description>Color curves adjustment</description>
<author>Maksim Golovkin</author>
<parameter type="list" name="Channel" default="0" paramlist="0,1,2,3" paramlistdisplay="Red,Green,Blue,Luma">
<parameter type="list" name="Channel" default="0" paramlist="0,1,2,3">
<paramlistdisplay>Red,Green,Blue,Luma</paramlistdisplay>
<name>Channel</name>
</parameter>
<parameter type="list" name="Luma formula" default="1" paramlist="0,1" paramlistdisplay="Rec. 601,Rec. 709">
<parameter type="list" name="Luma formula" default="1" paramlist="0,1">
<paramlistdisplay>Rec. 601,Rec. 709</paramlistdisplay>
<name>Luma formula</name>
</parameter>
......@@ -51,7 +53,8 @@
<parameter type="bool" name="Show curves" default="0">
<name>Show graph in picture</name>
</parameter>
<parameter type="list" name="Graph position" default="3" paramlist="0,1,2,3" paramlistdisplay="Top Left,Top Right,Bottom Left,Bottom Right">
<parameter type="list" name="Graph position" default="3" paramlist="0,1,2,3">
<paramlistdisplay>Top Left,Top Right,Bottom Left,Bottom Right</paramlistdisplay>
<name>Graph position</name>
</parameter>
</effect>
......@@ -9,23 +9,23 @@
<parameter type="bool" name="DeFish" default="1">
<name>DeFish</name>
</parameter>
<parameter type="list" name="Type" default="0.666" paramlist="0,0.333,0.666,1.0"
paramlistdisplay="equidistant,orthographic,equiarea,stereographic">
<parameter type="list" name="Type" default="0.666" paramlist="0,0.333,0.666,1.0">
<paramlistdisplay>Equidistant,Orthographic,Equiarea,Stereographic</paramlistdisplay>
<name>Type</name>
</parameter>
<parameter type="list" name="Scaling" default="0" paramlist="0,0.333,0.666,1.0"
paramlistdisplay="fill,center,fit,manual">
<parameter type="list" name="Scaling" default="0" paramlist="0,0.333,0.666,1.0">
<paramlistdisplay>Fill,Center,Fit,Manual</paramlistdisplay>
<name>Scaling</name>
</parameter>
<parameter type="constant" name="Manual Scale" default="500" min="0" max="1000" factor="1000">
<name>Manual Scale</name>
</parameter>
<parameter type="list" name="Interpolator" default="0.166" paramlist="0,0.166,0.333,0.5,0.666,0.833,1.0"
paramlistdisplay="nearest neighbor,bilinear,bicubic smooth,bicibic sharp,spline 4x4,spline 6x6,lanczos">
<parameter type="list" name="Interpolator" default="0.166" paramlist="0,0.166,0.333,0.5,0.666,0.833,1.0">
<paramlistdisplay>Nearest neighbor,Bilinear,Bicubic smooth,Bicubic sharp,Spline 4x4,Spline 6x6,Lanczos</paramlistdisplay>
<name>Interpolator</name>
</parameter>
<parameter type="list" name="Aspect type" default="0" paramlist="0,0.25,0.5,0.75,1.0"
paramlistdisplay="square,PAL DV,NTSC DV,HDV,manual">
<parameter type="list" name="Aspect type" default="0" paramlist="0,0.25,0.5,0.75,1.0">
<paramlistdisplay>Square,PAL DV,NTSC DV,HDV,Manual</paramlistdisplay>
<name>Aspect type</name>
</parameter>
<parameter type="constant" name="Manual Aspect" default="500" min="0" max="1000" factor="1000">
......
......@@ -3,7 +3,8 @@
<name>Levels</name>
<description>Adjust levels</description>
<author>Maksim Golovkin</author>
<parameter type="list" name="Channel" default="0" paramlist="0,1,2,3" paramlistdisplay="Red,Green,Blue,Luma">
<parameter type="list" name="Channel" default="0" paramlist="0,1,2,3">
<paramlistdisplay>Red,Green,Blue,Luma</paramlistdisplay>
<name>Channel</name>
</parameter>
<parameter type="simplekeyframe" name="Input black level" default="0" min="0" max="1000" factor="1000">
......@@ -24,7 +25,8 @@
<parameter type="bool" name="Show histogram" default="0">
<name>Show histogram</name>
</parameter>
<parameter type="list" name="Histogram position" default="3" paramlist="0,1,2,3" paramlistdisplay="Top Left,Top Right,Bottom Left,Bottom Right">
<parameter type="list" name="Histogram position" default="3" paramlist="0,1,2,3">
<paramlistdisplay>Top Left,Top Right,Bottom Left,Bottom Right</paramlistdisplay>
<name>Histogram position</name>
</parameter>
</effect>
......@@ -4,8 +4,8 @@
<description>Measure video values</description>
<author>Marko Cebokli</author>
<parameter type="list" name="Measurement" default="0.0" paramlist="0.0,0.3,0.5,0.7,1.0"
paramlistdisplay="RGB,Y'PbPr - rec 601,Y'PbPr - rec 709,HSV,HSL">
<parameter type="list" name="Measurement" default="0.0" paramlist="0.0,0.3,0.5,0.7,1.0">
<paramlistdisplay>RGB,Y'PbPr - rec. 601,Y'PbPr - rec. 709,HSV,HSL</paramlistdisplay>
<name>Measurement</name>
</parameter>
......
......@@ -20,8 +20,8 @@
<name>Length</name>
</parameter>
<parameter type="list" name="Channel" default="0.5" paramlist="0.0,0.2,0.4,0.5,0.6,0.8,1.0"
paramlistdisplay="R,G,B,Y',Pr,Pb,alpha">
<parameter type="list" name="Channel" default="0.5" paramlist="0.0,0.2,0.4,0.5,0.6,0.8,1.0">
<paramlistdisplay>R,G,B,Y',Pr,Pb,Alpha</paramlistdisplay>
<name>Channel</name>
</parameter>
......@@ -81,8 +81,8 @@
<name>256 scale</name>
</parameter>
<parameter type="list" name="Color" default="0.0" paramlist="0.0,1.0"
paramlistdisplay="CCIR rec 601,CCIR rec 709">
<parameter type="list" name="Color" default="0.0" paramlist="0.0,1.0">
<paramlistdisplay>CCIR rec. 601,CCIR rec. 709</paramlistdisplay>
<name>Color</name>
</parameter>
......
......@@ -24,23 +24,23 @@
<name>Delta B / I / I</name>
</parameter>
<parameter type="list" name="Selection subspace" default="0.0" paramlist="0.0,0.5,1.0"
paramlistdisplay="RGB,ABI,HCI">
<parameter type="list" name="Selection subspace" default="0.0" paramlist="0.0,0.5,1.0">
<paramlistdisplay>RGB,ABI,HCI</paramlistdisplay>
<name>Selection subspace</name>
</parameter>
<parameter type="list" name="Subspace shape" default="0.0" paramlist="0.0,0.5,1.0"
paramlistdisplay="Box,Ellipsoid,Diamond">
<parameter type="list" name="Subspace shape" default="0.0" paramlist="0.0,0.5,1.0">
<paramlistdisplay>Box,Ellipsoid,Diamond</paramlistdisplay>
<name>Subspace shape</name>
</parameter>
<parameter type="list" name="Edge mode" default="0.0" paramlist="0.0,0.35,0.60,1.0"
paramlistdisplay="Hard,Fat,Normal,Skiny">
<parameter type="list" name="Edge mode" default="0.0" paramlist="0.0,0.35,0.60,1.0">
<paramlistdisplay>Hard,Fat,Normal,Skiny</paramlistdisplay>
<name>Edge mode</name>
</parameter>
<parameter type="list" name="Operation" default="0.0" paramlist="0.0,0.3,0.5,0.7,1.0"
paramlistdisplay="Write on clear, Max, Min, Add, Subtract">
<parameter type="list" name="Operation" default="0.0" paramlist="0.0,0.3,0.5,0.7,1.0">
<paramlistdisplay>Write on clear,Max,Min,Add,Substract</paramlistdisplay>
<name>Operation</name>
</parameter>
......
......@@ -260,7 +260,10 @@ void EffectStackEdit::transferParamDesc(const QDomElement d, int pos, int in, in
Listval *lsval = new Listval;
lsval->setupUi(toFillin);
QStringList listitems = pa.attribute("paramlist").split(',');
QStringList listitemsdisplay = pa.attribute("paramlistdisplay").split(',');
QDomElement list = pa.firstChildElement("paramlistdisplay");
QStringList listitemsdisplay;
if (!list.isNull()) listitemsdisplay = i18n(list.text().toUtf8().data()).split(',');
else listitemsdisplay = i18n(pa.attribute("paramlistdisplay").toUtf8().data()).split(',');
if (listitemsdisplay.count() != listitems.count())
listitemsdisplay = listitems;
lsval->list->setIconSize(QSize(30, 30));
......
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