aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addons/resource.language.en_gb/resources/strings.po9
-rw-r--r--xbmc/video/dialogs/GUIDialogVideoInfo.cpp5
-rw-r--r--xbmc/video/windows/GUIWindowVideoNav.cpp3
3 files changed, 12 insertions, 5 deletions
diff --git a/addons/resource.language.en_gb/resources/strings.po b/addons/resource.language.en_gb/resources/strings.po
index e4505faddf..3d93bb3af5 100644
--- a/addons/resource.language.en_gb/resources/strings.po
+++ b/addons/resource.language.en_gb/resources/strings.po
@@ -2073,7 +2073,7 @@ msgid "Remove movie from library"
msgstr ""
msgctxt "#433"
-msgid "Would you really like to remove '{0:s}' from library?"
+msgid "Would you really like to remove '{0:s}' from the library?"
msgstr ""
#. From <wind dir.> at <speed> <unit>
@@ -23917,7 +23917,12 @@ msgctxt "#40020"
msgid "Are you sure to remove version \"{0:s}\"?"
msgstr ""
-#empty string with id 40021
+#. Remove item from library text if item has multiple versions
+#: xbmc/video/windows/GUIWindowVideoNav.cpp
+#: xbmc/video/dialogs/GUIDialogVideoInfo.cpp
+msgctxt "#40021"
+msgid "Would you really like to remove '{0:s}' and all its versions from the library?"
+msgstr ""
#. Manage video version dialog title
#: xbmc/video/dialogs/GUIDialogVideoManager.cpp
diff --git a/xbmc/video/dialogs/GUIDialogVideoInfo.cpp b/xbmc/video/dialogs/GUIDialogVideoInfo.cpp
index 0f838f1f01..d022217371 100644
--- a/xbmc/video/dialogs/GUIDialogVideoInfo.cpp
+++ b/xbmc/video/dialogs/GUIDialogVideoInfo.cpp
@@ -1375,8 +1375,9 @@ bool CGUIDialogVideoInfo::DeleteVideoItemFromDatabase(const std::shared_ptr<CFil
}
else
{
- pDialog->SetLine(0,
- CVariant{StringUtils::Format(g_localizeStrings.Get(433), item->GetLabel())});
+ pDialog->SetLine(
+ 0, CVariant{StringUtils::Format(
+ g_localizeStrings.Get(item->HasVideoVersions() ? 40021 : 433), item->GetLabel())});
pDialog->SetLine(1, CVariant{""});
}
pDialog->SetLine(2, CVariant{""});
diff --git a/xbmc/video/windows/GUIWindowVideoNav.cpp b/xbmc/video/windows/GUIWindowVideoNav.cpp
index f6b6612e06..4f246ba181 100644
--- a/xbmc/video/windows/GUIWindowVideoNav.cpp
+++ b/xbmc/video/windows/GUIWindowVideoNav.cpp
@@ -686,7 +686,8 @@ void CGUIWindowVideoNav::OnDeleteItem(const CFileItemPtr& pItem)
return;
pDialog->SetHeading(CVariant{432});
- std::string strLabel = StringUtils::Format(g_localizeStrings.Get(433), pItem->GetLabel());
+ std::string strLabel = StringUtils::Format(
+ g_localizeStrings.Get(pItem->HasVideoVersions() ? 40021 : 433), pItem->GetLabel());
pDialog->SetLine(1, CVariant{std::move(strLabel)});
pDialog->SetLine(2, CVariant{""});
pDialog->Open();