Skip to content

Commit

Permalink
Reconstruct strings for Reviewer-actions' feedback
Browse files Browse the repository at this point in the history
Reconstruct the strings for the feedback-toast message to Reviewer actions

Basically, use strings on Anki Desktop instead of the current ones. Create new ones as needed.
For Bury and Suspend, I set the style described in the following comment as a goal:
  #12446 (comment)

------------------------------

- Replace `<string name="buried_card">Card buried</string>`
        with `<string name="card_buried">Card buried.</string>`

- Remove `<string name="buried_note">Note buried</string>`
   (Instead of the string, its counterpart on Anki Desktop will work on the toast.)

- Remove `<string name="deleted_note">Note deleted</string>`
   (Instead of the string, its counterpart on Anki Desktop will work on the toast.)

- Remove `<string name="suspended_card">Card suspended</string>`
   (Instead of the string, its counterpart on Anki Desktop will work on the toast.)

- Replace `<string name="suspended_note">Note suspended</string>`
        with the following code:
                `<plurals name="note_suspended"
                        <item quantity="one">%d card suspended.</item>
                        <item quantity="other">%d cards suspended.</item>
                 </plurals>`

------------------------------
  • Loading branch information
snowtimeglass authored and mikehardy committed Mar 26, 2023
1 parent 44bff3d commit 629d878
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions AnkiDroid/src/main/res/values/02-strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -382,12 +382,13 @@
<string name="search_using_deck_name">Search using deck name</string>
<string name="home">Home</string>

<!-- Reviewer actions -->
<string name="buried_card">Card buried</string>
<string name="buried_note">Note buried</string>
<string name="deleted_note">Note deleted</string>
<string name="suspended_card">Card suspended</string>
<string name="suspended_note">Note suspended</string>
<!-- Reviewer actions
Each of these strings ends with a period, following the notation of Anki Desktop -->
<string name="card_buried">Card buried.</string>
<plurals name="note_suspended">
<item quantity="one">%d card suspended.</item>
<item quantity="other">%d cards suspended.</item>
</plurals>

<!-- Note Editor Toggle Sticky -->
<string name="note_editor_toggle_sticky">Make field %s sticky</string>
Expand Down

0 comments on commit 629d878

Please sign in to comment.