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
PIM
Akonadi
Commits
3e33eb67
Commit
3e33eb67
authored
Oct 09, 2022
by
Antoni Bella Pérez
🚲
Browse files
l10n improves: Revision and add more semantic markup
parent
7246d1ff
Pipeline
#244671
passed with stage
in 13 minutes and 27 seconds
Changes
8
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/widgets/agentactionmanager.cpp
View file @
3e33eb67
...
...
@@ -54,7 +54,7 @@ public:
setContextText
(
AgentActionManager
::
CreateAgentInstance
,
AgentActionManager
::
ErrorMessageText
,
ki18n
(
"Could not create agent instance: %1"
));
setContextText
(
AgentActionManager
::
CreateAgentInstance
,
AgentActionManager
::
ErrorMessageTitle
,
i18n
(
"Agent
i
nstance
c
reation
f
ailed"
));
setContextText
(
AgentActionManager
::
CreateAgentInstance
,
AgentActionManager
::
ErrorMessageTitle
,
i18n
c
(
"@title:window"
,
"Agent
I
nstance
C
reation
F
ailed"
));
setContextText
(
AgentActionManager
::
DeleteAgentInstance
,
AgentActionManager
::
MessageBoxTitle
,
i18nc
(
"@title:window"
,
"Delete Agent Instance?"
));
...
...
src/widgets/agentconfigurationdialog.cpp
View file @
3e33eb67
...
...
@@ -53,7 +53,7 @@ AgentConfigurationDialog::AgentConfigurationDialog(const AgentInstance &instance
:
QDialog
(
parent
)
,
d
(
new
AgentConfigurationDialogPrivate
(
this
))
{
setWindowTitle
(
i18nc
(
"%1 = agent name"
,
"%1 Configuration"
,
instance
.
name
()));
setWindowTitle
(
i18nc
(
"
@title:window,
%1 = agent name"
,
"%1 Configuration"
,
instance
.
name
()));
setWindowIcon
(
instance
.
type
().
icon
());
auto
l
=
new
QVBoxLayout
(
this
);
...
...
src/widgets/collectiondialog.cpp
View file @
3e33eb67
...
...
@@ -282,7 +282,7 @@ void CollectionDialogPrivate::slotAddChildCollection()
void
CollectionDialogPrivate
::
slotCollectionCreationResult
(
KJob
*
job
)
{
if
(
job
->
error
())
{
QMessageBox
::
critical
(
mParent
,
i18n
(
"Folder
c
reation
f
ailed"
),
i18n
(
"Could not create folder: %1"
,
job
->
errorString
()));
QMessageBox
::
critical
(
mParent
,
i18n
c
(
"@title:window"
,
"Folder
C
reation
F
ailed"
),
i18n
(
"Could not create folder: %1"
,
job
->
errorString
()));
}
}
...
...
src/widgets/collectionrequester.cpp
View file @
3e33eb67
...
...
@@ -140,7 +140,7 @@ void CollectionRequesterPrivate::init()
collectionDialog
=
new
CollectionDialog
(
q
);
collectionDialog
->
setWindowIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"akonadi"
)));
collectionDialog
->
setWindowTitle
(
i18nc
(
"@title:window"
,
"Select a
c
ollection"
));
collectionDialog
->
setWindowTitle
(
i18nc
(
"@title:window"
,
"Select a
C
ollection"
));
collectionDialog
->
setSelectionMode
(
QAbstractItemView
::
SingleSelection
);
collectionDialog
->
changeCollectionDialogOptions
(
CollectionDialog
::
KeepTreeExpanded
);
}
...
...
src/widgets/selftestdialog.cpp
View file @
3e33eb67
...
...
@@ -647,7 +647,7 @@ void SelfTestDialog::saveReport()
QFile
file
(
fileName
);
if
(
!
file
.
open
(
QFile
::
ReadWrite
))
{
QMessageBox
::
critical
(
this
,
i18n
(
"Error"
),
i18n
(
"Could not open file '%1'"
,
fileName
));
QMessageBox
::
critical
(
this
,
i18n
c
(
"@title:window"
,
"Error"
),
i18n
(
"Could not open file '%1'"
,
fileName
));
return
;
}
...
...
src/widgets/standardactionmanager.cpp
View file @
3e33eb67
...
...
@@ -348,7 +348,7 @@ public:
setContextText
(
StandardActionManager
::
CreateCollection
,
StandardActionManager
::
DialogTitle
,
i18nc
(
"@title:window"
,
"New Folder"
));
setContextText
(
StandardActionManager
::
CreateCollection
,
StandardActionManager
::
DialogText
,
i18nc
(
"@label:textbox name of Akonadi folder"
,
"Name"
));
setContextText
(
StandardActionManager
::
CreateCollection
,
StandardActionManager
::
ErrorMessageText
,
ki18n
(
"Could not create folder: %1"
));
setContextText
(
StandardActionManager
::
CreateCollection
,
StandardActionManager
::
ErrorMessageTitle
,
i18n
(
"Folder
c
reation
f
ailed"
));
setContextText
(
StandardActionManager
::
CreateCollection
,
StandardActionManager
::
ErrorMessageTitle
,
i18n
c
(
"@title:window"
,
"Folder
C
reation
F
ailed"
));
setContextText
(
StandardActionManager
::
DeleteCollections
,
...
...
@@ -356,25 +356,25 @@ public:
ki18np
(
"Do you really want to delete this folder and all its sub-folders?"
,
"Do you really want to delete %1 folders and all their sub-folders?"
));
setContextText
(
StandardActionManager
::
DeleteCollections
,
StandardActionManager
::
MessageBoxTitle
,
ki18ncp
(
"@title:window"
,
"Delete
f
older?"
,
"Delete
f
olders?"
));
ki18ncp
(
"@title:window"
,
"Delete
F
older?"
,
"Delete
F
olders?"
));
setContextText
(
StandardActionManager
::
DeleteCollections
,
StandardActionManager
::
ErrorMessageText
,
ki18n
(
"Could not delete folder: %1"
));
setContextText
(
StandardActionManager
::
DeleteCollections
,
StandardActionManager
::
ErrorMessageTitle
,
i18n
(
"Folder
d
eletion
f
ailed"
));
setContextText
(
StandardActionManager
::
DeleteCollections
,
StandardActionManager
::
ErrorMessageTitle
,
i18n
c
(
"@title:window"
,
"Folder
D
eletion
F
ailed"
));
setContextText
(
StandardActionManager
::
CollectionProperties
,
StandardActionManager
::
DialogTitle
,
ki18nc
(
"@title:window"
,
"Properties of Folder %1"
));
setContextText
(
StandardActionManager
::
DeleteItems
,
StandardActionManager
::
MessageBoxText
,
ki18np
(
"Do you really want to delete the selected item?"
,
"Do you really want to delete %1 items?"
));
setContextText
(
StandardActionManager
::
DeleteItems
,
StandardActionManager
::
MessageBoxTitle
,
ki18ncp
(
"@title:window"
,
"Delete
i
tem?"
,
"Delete
i
tems?"
));
setContextText
(
StandardActionManager
::
DeleteItems
,
StandardActionManager
::
MessageBoxTitle
,
ki18ncp
(
"@title:window"
,
"Delete
I
tem?"
,
"Delete
I
tems?"
));
setContextText
(
StandardActionManager
::
DeleteItems
,
StandardActionManager
::
ErrorMessageText
,
ki18n
(
"Could not delete item: %1"
));
setContextText
(
StandardActionManager
::
DeleteItems
,
StandardActionManager
::
ErrorMessageTitle
,
i18n
(
"Item
d
eletion
f
ailed"
));
setContextText
(
StandardActionManager
::
DeleteItems
,
StandardActionManager
::
ErrorMessageTitle
,
i18n
c
(
"@title:window"
,
"Item
D
eletion
F
ailed"
));
setContextText
(
StandardActionManager
::
RenameFavoriteCollection
,
StandardActionManager
::
DialogTitle
,
i18nc
(
"@title:window"
,
"Rename Favorite"
));
setContextText
(
StandardActionManager
::
RenameFavoriteCollection
,
StandardActionManager
::
DialogText
,
i18nc
(
"@label:textbox name of the folder"
,
"Name:"
));
setContextText
(
StandardActionManager
::
CreateResource
,
StandardActionManager
::
DialogTitle
,
i18nc
(
"@title:window"
,
"New Resource"
));
setContextText
(
StandardActionManager
::
CreateResource
,
StandardActionManager
::
ErrorMessageText
,
ki18n
(
"Could not create resource: %1"
));
setContextText
(
StandardActionManager
::
CreateResource
,
StandardActionManager
::
ErrorMessageTitle
,
i18n
(
"Resource
c
reation
f
ailed"
));
setContextText
(
StandardActionManager
::
CreateResource
,
StandardActionManager
::
ErrorMessageTitle
,
i18n
c
(
"@title:window"
,
"Resource
C
reation
F
ailed"
));
setContextText
(
StandardActionManager
::
DeleteResources
,
StandardActionManager
::
MessageBoxText
,
...
...
@@ -384,7 +384,7 @@ public:
ki18ncp
(
"@title:window"
,
"Delete Resource?"
,
"Delete Resources?"
));
setContextText
(
StandardActionManager
::
Paste
,
StandardActionManager
::
ErrorMessageText
,
ki18n
(
"Could not paste data: %1"
));
setContextText
(
StandardActionManager
::
Paste
,
StandardActionManager
::
ErrorMessageTitle
,
i18n
(
"Paste
f
ailed"
));
setContextText
(
StandardActionManager
::
Paste
,
StandardActionManager
::
ErrorMessageTitle
,
i18n
c
(
"@title:window"
,
"Paste
F
ailed"
));
mDelayedUpdateTimer
.
setSingleShot
(
true
);
QObject
::
connect
(
&
mDelayedUpdateTimer
,
&
QTimer
::
timeout
,
q
,
[
this
]()
{
...
...
@@ -736,11 +736,11 @@ public:
}
if
(
name
.
contains
(
QLatin1Char
(
'/'
)))
{
KMessageBox
::
error
(
parentWidget
,
i18n
(
"We can not add
\"
/
\"
in folder name."
),
i18n
(
"Create
n
ew
f
older
e
rror"
));
KMessageBox
::
error
(
parentWidget
,
i18n
(
"We can not add
\"
/
\"
in folder name."
),
i18n
c
(
"@title:window"
,
"Create
N
ew
F
older
E
rror"
));
return
;
}
if
(
name
.
startsWith
(
QLatin1Char
(
'.'
))
||
name
.
endsWith
(
QLatin1Char
(
'.'
)))
{
KMessageBox
::
error
(
parentWidget
,
i18n
(
"We can not add
\"
.
\"
at begin or end of folder name."
),
i18n
(
"Create
n
ew
f
older
e
rror"
));
KMessageBox
::
error
(
parentWidget
,
i18n
(
"We can not add
\"
.
\"
at begin or end of folder name."
),
i18n
c
(
"@title:window"
,
"Create
N
ew
F
older
E
rror"
));
return
;
}
...
...
src/widgets/subscriptiondialog.cpp
View file @
3e33eb67
...
...
@@ -90,7 +90,7 @@ public:
QObject
::
connect
(
job
,
&
SubscriptionJob
::
result
,
q
,
[
this
](
KJob
*
job
)
{
if
(
job
->
error
())
{
qCWarning
(
AKONADIWIDGETS_LOG
)
<<
job
->
errorString
();
KMessageBox
::
error
(
q
,
i18n
(
"Failed to update subscription: %1"
,
job
->
errorString
()),
i18nc
(
"@title"
,
"Subscription Error"
));
KMessageBox
::
error
(
q
,
i18n
(
"Failed to update subscription: %1"
,
job
->
errorString
()),
i18nc
(
"@title
:window
"
,
"Subscription Error"
));
q
->
reject
();
}
q
->
accept
();
...
...
src/widgets/tageditwidget.cpp
View file @
3e33eb67
...
...
@@ -113,7 +113,7 @@ void TagEditWidgetPrivate::slotCreateTag()
void
TagEditWidgetPrivate
::
slotCreateTagFinished
(
KJob
*
job
)
{
if
(
job
->
error
())
{
KMessageBox
::
error
(
d
,
i18n
(
"Failed to create a new tag"
),
i18n
(
"An
e
rror
o
ccurred while
c
reating a
n
ew
t
ag"
));
KMessageBox
::
error
(
d
,
i18n
(
"Failed to create a new tag"
),
i18n
c
(
"@title:window"
,
"An
E
rror
O
ccurred while
C
reating a
N
ew
T
ag"
));
}
ui
.
newTagEdit
->
setEnabled
(
true
);
...
...
@@ -162,7 +162,7 @@ void TagEditWidgetPrivate::deleteTag()
Q_ASSERT
(
m_deleteCandidate
.
isValid
());
const
auto
tag
=
m_deleteCandidate
.
data
(
Akonadi
::
TagModel
::
TagRole
).
value
<
Akonadi
::
Tag
>
();
const
QString
text
=
xi18nc
(
"@info"
,
"Do you really want to remove the tag <resource>%1</resource>?"
,
tag
.
name
());
const
QString
caption
=
i18nc
(
"@title"
,
"Delete
t
ag"
);
const
QString
caption
=
i18nc
(
"@title
:window
"
,
"Delete
T
ag"
);
if
(
KMessageBox
::
questionYesNo
(
d
,
text
,
caption
,
KStandardGuiItem
::
del
(),
KStandardGuiItem
::
cancel
())
==
KMessageBox
::
Yes
)
{
new
TagDeleteJob
(
tag
,
this
);
}
...
...
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