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
Utilities
Kate
Commits
c5f3cb06
Commit
c5f3cb06
authored
Feb 16, 2021
by
Christoph Cullmann
🐮
Browse files
fix i18n calls
parent
d51fd822
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/project/gitstatusmodel.cpp
View file @
c5f3cb06
...
...
@@ -78,13 +78,13 @@ QVariant GitStatusModel::data(const QModelIndex &index, int role) const
if
(
index
.
internalId
()
==
Root
)
{
if
(
role
==
Qt
::
DisplayRole
)
{
if
(
row
==
Staged
)
{
return
i18n
(
"Staged (%1)"
).
arg
(
m_nodes
[
Staged
].
count
());
return
i18n
(
"Staged (%1)"
,
m_nodes
[
Staged
].
count
());
}
else
if
(
row
==
Untrack
)
{
return
i18n
(
"Untracked (%1)"
).
arg
(
m_nodes
[
Untrack
].
count
());
return
i18n
(
"Untracked (%1)"
,
m_nodes
[
Untrack
].
count
());
}
else
if
(
row
==
Conflict
)
{
return
i18n
(
"Conflict (%1)"
).
arg
(
m_nodes
[
Conflict
].
count
());
return
i18n
(
"Conflict (%1)"
,
m_nodes
[
Conflict
].
count
());
}
else
if
(
row
==
Changed
)
{
return
i18n
(
"Modified (%1)"
).
arg
(
m_nodes
[
Changed
].
count
());
return
i18n
(
"Modified (%1)"
,
m_nodes
[
Changed
].
count
());
}
else
{
Q_UNREACHABLE
();
}
...
...
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