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
e5576773
Commit
e5576773
authored
Mar 05, 2022
by
Julius Künzel
Browse files
Seperate HTML and translatable strings
parent
96026871
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/project/dialogs/profilewidget.cpp
View file @
e5576773
...
...
@@ -188,16 +188,22 @@ void ProfileWidget::fillDescriptionPanel(const QString &profile_path)
}
else
{
std
::
unique_ptr
<
ProfileModel
>
&
profile
=
ProfileRepository
::
get
()
->
getProfile
(
profile_path
);
description
+=
i18n
(
"<h5>Video Settings</h5>"
);
description
+=
i18n
(
"<p style='font-size:small'>Frame size: %1 x %2 (%3:%4)<br/>"
,
profile
->
width
(),
profile
->
height
(),
profile
->
display_aspect_num
(),
profile
->
display_aspect_den
());
description
+=
i18n
(
"Frame rate: %1 fps<br/>"
,
profile
->
fps
());
description
+=
i18n
(
"Pixel aspect ratio: %1<br/>"
,
profile
->
sar
());
description
+=
i18n
(
"Color space: %1<br/>"
,
profile
->
colorspaceDescription
());
description
+=
i18n
(
"Interlaced: %1</p>"
,
profile
->
progressive
()
?
i18n
(
"no"
)
:
i18n
(
"yes"
));
description
+=
QStringLiteral
(
"<h5>%1</h5>"
).
arg
(
i18n
(
"Video Settings"
));
description
+=
QStringLiteral
(
"<p style='font-size:small'>%1<br/>"
)
.
arg
(
i18n
(
"Frame size: %1 x %2 (%3:%4)"
,
profile
->
width
(),
profile
->
height
(),
profile
->
display_aspect_num
(),
profile
->
display_aspect_den
()));
description
+=
i18n
(
"Frame rate: %1 fps"
,
profile
->
fps
());
description
+=
QStringLiteral
(
"<br/>"
);
description
+=
i18n
(
"Pixel aspect ratio: %1"
,
profile
->
sar
());
description
+=
QStringLiteral
(
"<br/>"
);
description
+=
i18n
(
"Color space: %1"
,
profile
->
colorspaceDescription
());
description
+=
QStringLiteral
(
"<br/>"
);
description
+=
i18n
(
"Interlaced: %1"
,
profile
->
progressive
()
?
i18n
(
"no"
)
:
i18n
(
"yes"
));
if
(
!
profile
->
progressive
())
{
description
+=
i18n
(
"Field order: %1</p>"
,
profile
->
bottom_field_first
()
?
i18n
(
"Bottom field first"
)
:
i18n
(
"Top field first"
));
description
+=
QStringLiteral
(
"<br/>"
);
description
+=
i18n
(
"Field order: %1"
,
profile
->
bottom_field_first
()
?
i18n
(
"Bottom field first"
)
:
i18n
(
"Top field first"
));
}
description
+=
QStringLiteral
(
"</p>"
);
}
m_descriptionPanel
->
setHtml
(
description
);
}
...
...
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