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
Utilities
Kate
Commits
c682038e
Commit
c682038e
authored
Apr 24, 2021
by
Christoph Cullmann
🍨
Browse files
proper i18n arguments
parent
0ead4941
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/project/kateprojectplugin.cpp
View file @
c682038e
...
@@ -217,7 +217,7 @@ bool KateProjectPlugin::closeProject(KateProject *project)
...
@@ -217,7 +217,7 @@ bool KateProjectPlugin::closeProject(KateProject *project)
projectDocuments
.
push_back
(
documents
[
i
]);
projectDocuments
.
push_back
(
documents
[
i
]);
const
QString
title
=
i18n
(
"Confirm project closing: %1"
,
project
->
name
());
const
QString
title
=
i18n
(
"Confirm project closing: %1"
,
project
->
name
());
const
QString
text
=
i18n
(
"Do you want to close the project %1 and the related %
1
open documents?"
,
project
->
name
(),
projectDocuments
.
size
());
const
QString
text
=
i18n
(
"Do you want to close the project %1 and the related %
2
open documents?"
,
project
->
name
(),
projectDocuments
.
size
());
if
(
QMessageBox
::
Yes
==
QMessageBox
::
question
(
window
,
title
,
text
,
QMessageBox
::
No
|
QMessageBox
::
Yes
,
QMessageBox
::
Yes
))
{
if
(
QMessageBox
::
Yes
==
QMessageBox
::
question
(
window
,
title
,
text
,
QMessageBox
::
No
|
QMessageBox
::
Yes
,
QMessageBox
::
Yes
))
{
for
(
int
i
=
0
;
i
<
projectDocuments
.
size
();
i
++
)
for
(
int
i
=
0
;
i
<
projectDocuments
.
size
();
i
++
)
KTextEditor
::
Editor
::
instance
()
->
application
()
->
closeDocument
(
projectDocuments
[
i
]);
KTextEditor
::
Editor
::
instance
()
->
application
()
->
closeDocument
(
projectDocuments
[
i
]);
...
...
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