OSDN Git Service

ark: adjust to KLocalizedString changes
authorIvailo Monev <xakepa10@gmail.com>
Thu, 17 Aug 2023 20:41:32 +0000 (23:41 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Thu, 17 Aug 2023 20:41:32 +0000 (23:41 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
ark/part/arkviewer.cpp
ark/part/part.cpp

index b4e0d4d..1490da8 100644 (file)
@@ -116,7 +116,7 @@ void ArkViewer::view(const QString& fileName, QWidget *parent)
             // application/octet-stream.  So it could be viewable as
             // plain text, ask the user.
             response = KMessageBox::warningContinueCancel(parent,
-                i18n("The internal viewer cannot preview this type of file<nl/>(%1).<nl/><nl/>Do you want to try to view it as plain text?", mimeType->name()),
+                i18n("The internal viewer cannot preview this type of file<br/>(%1).<br/><br/>Do you want to try to view it as plain text?", mimeType->name()),
                 i18nc("@title:window", "Cannot Preview File"),
                 KGuiItem(i18nc("@action:button", "Preview as Text"), KIcon(QLatin1String("text-plain"))),
                 KStandardGuiItem::cancel(),
@@ -127,7 +127,7 @@ void ArkViewer::view(const QString& fileName, QWidget *parent)
             // text, so ask the user.  Not the same as the message/question
             // above, because the wording and default are different.
             response = KMessageBox::warningContinueCancel(parent,
-                i18n("The internal viewer cannot preview this unknown type of file.<nl/><nl/>Do you want to try to view it as plain text?"),
+                i18n("The internal viewer cannot preview this unknown type of file.<br/><br/>Do you want to try to view it as plain text?"),
                 i18nc("@title:window", "Cannot Preview File"),
                 KGuiItem(i18nc("@action:button", "Preview as Text"), KIcon(QLatin1String("text-plain"))),
                 KStandardGuiItem::cancel(),
index e43905f..f422d1e 100644 (file)
@@ -446,16 +446,17 @@ bool Part::openFile()
         QString item;
 
         if (creatingNewArchive) {
-            item = KInputDialog::getItem(i18nc("@title:window", "Invalid Archive Type"),
-                                         i18nc("@info", "Ark cannot create archives of the type you have chosen.<nl/><nl/>Please choose another archive type below."),
-                                         mimeComments, 0, false, &ok);
+            item = KInputDialog::getItem(
+                i18nc("@title:window", "Invalid Archive Type"),
+                i18nc("@info", "Ark cannot create archives of the type you have chosen.<br/><br/>Please choose another archive type below."),
+                mimeComments, 0, false, &ok
+            );
         } else {
-            item = KInputDialog::getItem(i18nc("@title:window", "Unable to Determine Archive Type"),
-                                         i18nc("@info", "Ark was unable to determine the archive type of the filename.<nl/><nl/>Please choose the correct archive type below."),
-                                         mimeComments,
-                                         0,
-                                         false,
-                                         &ok);
+            item = KInputDialog::getItem(
+                i18nc("@title:window", "Unable to Determine Archive Type"),
+                i18nc("@info", "Ark was unable to determine the archive type of the filename.<br/><br/>Please choose the correct archive type below."),
+                mimeComments, 0, false, &ok
+            );
         }
 
         if ((!ok) || (item.isEmpty())) {