Skip to content

refactor: move 10 strings to the backend translations #21090

Open
david-allison wants to merge 3 commits into
ankidroid:mainfrom
david-allison:backend-strings-2
Open

refactor: move 10 strings to the backend translations #21090
david-allison wants to merge 3 commits into
ankidroid:mainfrom
david-allison:backend-strings-2

Conversation

@david-allison
Copy link
Copy Markdown
Member

Note

Assisted-by: Claude Opus 4.7 - all

Purpose / Description

This means less work for our translators - especially as 01-core is required for a translation to be included in the app

How Has This Been Tested?

I opened the menu + bury/suspend submenus in the old/new study screen, API 29 emulator

Checklist

  • You have a descriptive commit message with a short title (first line, max 50 chars).
  • You have commented your code, particularly in hard-to-understand areas
  • You have performed a self-review of your own code
  • UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
  • UI Changes: You have tested your change using the Google Accessibility Scanner

Ensures backend strings are used for all actions

Assisted-by: Claude Opus 4.7
We want to use backend strings for most of these, better in `title`

Assisted-by: Claude Opus 4.7
Removes a number of strings from 01-core

With a primary focus on ViewerAction

Assisted-by: Claude Opus 4.7
@github-actions
Copy link
Copy Markdown
Contributor

Important

Maintainers: This PR contains Strings changes

  1. Sync Translations before merging this PR and wait for the action to complete
  2. Review and merge the auto-generated PR in order to sync all user-submitted translations
  3. Sync Translations again and merge the PR so the huge automated string changes caused by merging this PR are by themselves and easy to review

Copy link
Copy Markdown
Member

@lukstbit lukstbit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

findPreference<ControlPreference>(getString(R.string.remove_flag_command_key))?.let {
it.title = getString(R.string.gesture_flag_remove).toSentenceCase(R.string.sentence_gesture_flag_remove)
}
findPreference<ControlPreference>(getString(R.string.bury_card_command_key))?.let {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see why the other preferences' titles in this file are sentence case.

@lukstbit lukstbit added Needs Second Approval Has one approval, one more approval to merge and removed Needs Review labels May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Second Approval Has one approval, one more approval to merge Strings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants