Add "dummy" contexts to two i18np

gettext complained that there's another string with the same text but
not plural and that is bad, so add a dummy context to make gettext happy

xgettext: warning: msgid 'Remove Podcast' is used without plural and with plural.
             ./qml/FeedListDelegate.qml:279: Here is the occurrence without plural.
             ./qml/FeedListPage.qml:249: Here is the occurrence with plural.
          Workaround: If the msgid is a sentence, change the wording of the sentence; otherwise, use contexts for disambiguation.
xgettext: warning: msgid 'Delete Download' is used without plural and with plural.
             ./qml/GenericEntryDelegate.qml:294: Here is the occurrence without plural.
             ./qml/GenericEntryListView.qml:207: Here is the occurrence with plural.
          Workaround: If the msgid is a sentence, change the wording of the sentence; otherwise, use contexts for disambiguation.
This commit is contained in:
Albert Astals Cid 2021-09-30 22:43:49 +02:00
parent 0b272313ed
commit c0dc8cee6a
2 changed files with 2 additions and 2 deletions

View File

@ -246,7 +246,7 @@ Kirigami.ScrollablePage {
property var deleteFeedAction: Kirigami.Action {
iconName: "delete"
text: i18np("Remove Podcast", "Remove Podcasts", feedList.selectionForContextMenu.length)
text: i18ncp("context menu action", "Remove Podcast", "Remove Podcasts", feedList.selectionForContextMenu.length)
visible: feedList.selectionModel.hasSelection
onTriggered: {
// First get an array of pointers to the feeds to be deleted

View File

@ -204,7 +204,7 @@ ListView {
}
property var deleteEnclosureAction: Kirigami.Action {
text: i18np("Delete Download", "Delete Downloads", selectionForContextMenu.length)
text: i18ncp("context menu action", "Delete Download", "Delete Downloads", selectionForContextMenu.length)
icon.name: "delete"
visible: listView.selectionModel.hasSelection && (singleSelectedEntry ? (singleSelectedEntry.hasEnclosure ? singleSelectedEntry.enclosure.status !== Enclosure.Downloadable : false) : true)
onTriggered: {