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
PIM
KMail
Commits
0496b1bd
Commit
0496b1bd
authored
Nov 22, 2021
by
Laurent Montel
😁
Browse files
Fix i18n
parent
ff54b64c
Pipeline
#99843
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/configuredialog/configureappearancepage.cpp
View file @
0496b1bd
...
...
@@ -648,7 +648,13 @@ AppearancePageHeadersTab::AppearancePageHeadersTab(QWidget *parent)
QString
buttonLabel
;
if
(
QString
::
fromLatin1
(
label
).
contains
(
QLatin1String
(
"%1"
)))
{
#if KI18N_VERSION < QT_VERSION_CHECK(5, 89, 0)
buttonLabel
=
i18n
(
label
,
DateFormatter
::
formatCurrentDate
(
dateDisplayConfig
[
i
].
dateDisplay
));
#else
buttonLabel
=
KLocalizedString
(
dateDisplayConfig
[
i
].
displayName
)
.
subs
(
DateFormatter
::
formatCurrentDate
(
dateDisplayConfig
[
i
].
dateDisplay
))
.
toString
();
// i18n(label, DateFormatter::formatCurrentDate(dateDisplayConfig[i].dateDisplay));
#endif
}
else
{
buttonLabel
=
i18n
(
label
);
}
...
...
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