Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
a438a5c3
Commit
a438a5c3
authored
Jun 12, 2019
by
Yuri Chornoivan
Browse files
Fix XML translation for Generators
parent
9f353c19
Pipeline
#4265
passed with stage
in 23 minutes and 1 second
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Messages.sh
View file @
a438a5c3
...
...
@@ -2,7 +2,7 @@
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
--tag
=
name
--tag
=
description
--tag
=
label
--tag
=
comment
--tag
=
paramlistdisplay data/effects/
*
.xml
data/generators/
*
.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
-o
-name
\*
.qml
`
*
.cpp
-o
$podir
/kdenlive.pot
...
...
src/assets/model/assetparametermodel.cpp
View file @
a438a5c3
...
...
@@ -113,7 +113,7 @@ AssetParameterModel::AssetParameterModel(std::unique_ptr<Mlt::Properties> asset,
continue
;
}
currentRow
.
value
=
value
;
QString
title
=
currentParameter
.
firstChildElement
(
QStringLiteral
(
"name"
)).
text
();
QString
title
=
i18n
(
currentParameter
.
firstChildElement
(
QStringLiteral
(
"name"
)).
text
()
.
toUtf8
().
data
())
;
currentRow
.
name
=
title
.
isEmpty
()
?
name
:
title
;
m_params
[
name
]
=
currentRow
;
m_rows
.
push_back
(
name
);
...
...
src/bin/generators/generators.cpp
View file @
a438a5c3
...
...
@@ -58,7 +58,7 @@ Generators::Generators(Monitor *monitor, const QString &path, QWidget *parent)
QDomElement
base
=
doc
.
documentElement
();
if
(
base
.
tagName
()
==
QLatin1String
(
"generator"
))
{
QString
generatorTag
=
base
.
attribute
(
QStringLiteral
(
"tag"
));
setWindowTitle
(
base
.
firstChildElement
(
QStringLiteral
(
"name"
)).
text
());
setWindowTitle
(
i18n
(
base
.
firstChildElement
(
QStringLiteral
(
"name"
)).
text
()
.
toUtf8
().
data
())
);
auto
*
lay
=
new
QVBoxLayout
(
this
);
m_preview
=
new
QLabel
;
m_preview
->
setMinimumSize
(
1
,
1
);
...
...
@@ -127,7 +127,7 @@ void Generators::getGenerators(const QStringList &producers, QMenu *menu)
for
(
const
QString
&
fname
:
filesnames
)
{
QPair
<
QString
,
QString
>
result
=
parseGenerator
(
directory
.
absoluteFilePath
(
fname
),
producers
);
if
(
!
result
.
first
.
isEmpty
())
{
QAction
*
action
=
menu
->
addAction
(
result
.
first
);
QAction
*
action
=
menu
->
addAction
(
i18n
(
result
.
first
.
toUtf8
().
data
())
);
action
->
setData
(
result
.
second
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment