Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Discover
Commits
939b1edf
Commit
939b1edf
authored
Nov 30, 2020
by
Aleix Pol Gonzalez
🐧
Browse files
Properly encode u009C on C++
parent
434d3155
Changes
1
Hide whitespace changes
Inline
Side-by-side
libdiscover/resources/AbstractResource.cpp
View file @
939b1edf
...
...
@@ -242,14 +242,14 @@ QString AbstractResource::upgradeText() const
return
i18n
(
"Update to version %1"
,
available
);
}
else
if
(
!
installed
.
isEmpty
()
&&
!
available
.
isEmpty
())
{
// Old and new version numbers
// This thing with \
x
9C is a fancy feature in QML text handling:
// This thing with \
u00
9C is a fancy feature in QML text handling:
// when the string will be elided, it shows the string after
// the last \
x
9C. This allows us to show a smaller string
// the last \
u00
9C. This allows us to show a smaller string
// when there's now enough room
// All of this is mostly for the benefit of KDE Neon users,
// since the version strings there are really really long
return
i18nc
(
"Do not translate or alter
\\
x
9C"
,
"%1 → %2
\
x
9C
%1 → %2
\
x
9C
%2"
,
installed
,
available
);
return
i18nc
(
"Do not translate or alter
\\
u00
9C"
,
"%1 → %2\
u00
9C%1 → %2\
u00
9C%2"
,
installed
,
available
);
}
else
{
// Available version only, for when the installed version
// isn't available for some reason
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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