Simplify multi deletion confirmation strings
This commit is contained in:
parent
f72daacae4
commit
6c4d6457fb
@ -22,11 +22,7 @@ browsing-change-to = Change { $val } to:
|
|||||||
browsing-clear-unused = Clear Unused
|
browsing-clear-unused = Clear Unused
|
||||||
browsing-clear-unused-tags = Clear Unused Tags
|
browsing-clear-unused-tags = Clear Unused Tags
|
||||||
browsing-confirm-saved-search-overwrite = A saved search with the name { $name } already exists. Do you want to overwrite it?
|
browsing-confirm-saved-search-overwrite = A saved search with the name { $name } already exists. Do you want to overwrite it?
|
||||||
browsing-confirm-saved-searches-deletion =
|
browsing-confirm-saved-searches-deletion = Are you sure you want to delete all selected saved searches?
|
||||||
{ $count ->
|
|
||||||
[one] Are you sure you want to delete the selected saved search?
|
|
||||||
*[other] Are you sure you want to delete the { $count } selected saved searches?
|
|
||||||
}
|
|
||||||
browsing-created = Created
|
browsing-created = Created
|
||||||
browsing-ctrlandshiftande = Ctrl+Shift+E
|
browsing-ctrlandshiftande = Ctrl+Shift+E
|
||||||
browsing-current-deck = Current Deck
|
browsing-current-deck = Current Deck
|
||||||
|
@ -2,7 +2,7 @@ decks-add-new-deck-ctrlandn = Add New Deck (Ctrl+N)
|
|||||||
decks-are-you-sure-you-wish-to = Are you sure you wish to delete { $val }?
|
decks-are-you-sure-you-wish-to = Are you sure you wish to delete { $val }?
|
||||||
decks-build = Build
|
decks-build = Build
|
||||||
decks-cards-selected-by = cards selected by
|
decks-cards-selected-by = cards selected by
|
||||||
decks-confirm-deletion = Are you sure you wish to delete { $deck_count } decks including { $card_count } cards?
|
decks-confirm-deletion = Are you sure you want to delete all selected decks including { $count } cards?
|
||||||
decks-create-deck = Create Deck
|
decks-create-deck = Create Deck
|
||||||
decks-custom-steps-in-minutes = Custom steps (in minutes)
|
decks-custom-steps-in-minutes = Custom steps (in minutes)
|
||||||
decks-deck = Deck
|
decks-deck = Deck
|
||||||
|
@ -313,9 +313,7 @@ class DeckBrowser:
|
|||||||
f"{tr(TR.DECKS_ARE_YOU_SURE_YOU_WISH_TO, val=decks[0]['name'])} {extra}"
|
f"{tr(TR.DECKS_ARE_YOU_SURE_YOU_WISH_TO, val=decks[0]['name'])} {extra}"
|
||||||
)
|
)
|
||||||
|
|
||||||
return askUser(
|
return askUser(tr(TR.DECKS_CONFIRM_DELETION, count=count))
|
||||||
tr(TR.DECKS_CONFIRM_DELETION, deck_count=len(dids), card_count=count)
|
|
||||||
)
|
|
||||||
|
|
||||||
def _delete(self, did: int) -> None:
|
def _delete(self, did: int) -> None:
|
||||||
if self.ask_delete_deck(did):
|
if self.ask_delete_deck(did):
|
||||||
|
@ -1267,7 +1267,7 @@ class SidebarTreeView(QTreeView):
|
|||||||
if len(selected) == 1:
|
if len(selected) == 1:
|
||||||
query = tr(TR.BROWSING_REMOVE_FROM_YOUR_SAVED_SEARCHES, val=selected[0])
|
query = tr(TR.BROWSING_REMOVE_FROM_YOUR_SAVED_SEARCHES, val=selected[0])
|
||||||
else:
|
else:
|
||||||
query = tr(TR.BROWSING_CONFIRM_SAVED_SEARCHES_DELETION, count=len(selected))
|
query = tr(TR.BROWSING_CONFIRM_SAVED_SEARCHES_DELETION)
|
||||||
if not askUser(query):
|
if not askUser(query):
|
||||||
return
|
return
|
||||||
conf = self._get_saved_searches()
|
conf = self._get_saved_searches()
|
||||||
|
Loading…
Reference in New Issue
Block a user