summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRagnar Thomsen <[email protected]>2015-06-06 17:46:06 +0200
committerRagnar Thomsen <[email protected]>2015-06-06 17:46:06 +0200
commitf4c28e3b16d1a65754db14b7eac23ad29bf60ebb (patch)
tree03e7bc349839b0789dd3208b9e658681da681c0c
parent233e11633bf11c6d745514a0842e9d1d16b65d79 (diff)
libarchive: Use xi18n() or xi18nc() calls when message contains tags
In several places i18n() or i18nc() calls were being used for KMessageBoxes containing messages with tags, resulting in the tags being displayed.
-rw-r--r--plugins/libarchive/libarchivehandler.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/libarchive/libarchivehandler.cpp b/plugins/libarchive/libarchivehandler.cpp
index 598cbec..5879a73 100644
--- a/plugins/libarchive/libarchivehandler.cpp
+++ b/plugins/libarchive/libarchivehandler.cpp
@@ -129,7 +129,7 @@ bool LibArchiveInterface::list()
m_abortOperation = false;
if (result != ARCHIVE_EOF) {
- emit error(i18nc("@info", "The archive reading failed with the following error: <message>%1</message>",
+ emit error(xi18nc("@info", "The archive reading failed with the following error: <message>%1</message>",
QLatin1String( archive_error_string(arch_reader.data()))));
return false;
}
@@ -387,7 +387,7 @@ bool LibArchiveInterface::addFiles(const QStringList& files, const CompressionOp
// before close()'ing the file descriptor).
QSaveFile tempFile(filename());
if (!tempFile.open(QIODevice::WriteOnly | QIODevice::Unbuffered)) {
- emit error(i18nc("@info", "Failed to create a temporary file to compress <filename>%1</filename>.", filename()));
+ emit error(xi18nc("@info", "Failed to create a temporary file to compress <filename>%1</filename>.", filename()));
return false;
}
@@ -423,7 +423,7 @@ bool LibArchiveInterface::addFiles(const QStringList& files, const CompressionOp
}
if (ret != ARCHIVE_OK) {
- emit error(i18nc("@info", "Setting the compression method failed with the following error: <message>%1</message>",
+ emit error(xi18nc("@info", "Setting the compression method failed with the following error: <message>%1</message>",
QLatin1String(archive_error_string(arch_writer.data()))));
return false;
@@ -451,14 +451,14 @@ bool LibArchiveInterface::addFiles(const QStringList& files, const CompressionOp
}
if (ret != ARCHIVE_OK) {
- emit error(i18nc("@info", "Setting the compression method failed with the following error: <message>%1</message>", QLatin1String(archive_error_string(arch_writer.data()))));
+ emit error(xi18nc("@info", "Setting the compression method failed with the following error: <message>%1</message>", QLatin1String(archive_error_string(arch_writer.data()))));
return false;
}
}
ret = archive_write_open_fd(arch_writer.data(), tempFile.handle());
if (ret != ARCHIVE_OK) {
- emit error(i18nc("@info", "Opening the archive for writing failed with the following error: <message>%1</message>", QLatin1String(archive_error_string(arch_writer.data()))));
+ emit error(xi18nc("@info", "Opening the archive for writing failed with the following error: <message>%1</message>", QLatin1String(archive_error_string(arch_writer.data()))));
return false;
}
@@ -566,7 +566,7 @@ bool LibArchiveInterface::deleteFiles(const QVariantList& files)
// before close()'ing the file descriptor).
QSaveFile tempFile(filename());
if (!tempFile.open(QIODevice::WriteOnly | QIODevice::Unbuffered)) {
- emit error(i18nc("@info", "Failed to create a temporary file to compress <filename>%1</filename>.", filename()));
+ emit error(xi18nc("@info", "Failed to create a temporary file to compress <filename>%1</filename>.", filename()));
return false;
}
@@ -602,13 +602,13 @@ bool LibArchiveInterface::deleteFiles(const QVariantList& files)
}
if (ret != ARCHIVE_OK) {
- emit error(i18nc("@info", "Setting the compression method failed with the following error: <message>%1</message>", QLatin1String(archive_error_string(arch_writer.data()))));
+ emit error(xi18nc("@info", "Setting the compression method failed with the following error: <message>%1</message>", QLatin1String(archive_error_string(arch_writer.data()))));
return false;
}
ret = archive_write_open_fd(arch_writer.data(), tempFile.handle());
if (ret != ARCHIVE_OK) {
- emit error(i18nc("@info", "Opening the archive for writing failed with the following error: <message>%1</message>", QLatin1String(archive_error_string(arch_writer.data()))));
+ emit error(xi18nc("@info", "Opening the archive for writing failed with the following error: <message>%1</message>", QLatin1String(archive_error_string(arch_writer.data()))));
return false;
}