Skip to content

Move hard-coded dialog strings into string resources - #66

Merged
hameno merged 2 commits into
masterfrom
feature/dialog_string_resources
Oct 10, 2026
Merged

hameno merged 2 commits into
masterfrom
feature/dialog_string_resources

Conversation

@hameno

@hameno hameno commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

Depends on #64 and #65. This branch is based on #65 with #64 merged in, so until both land the diff also shows their commits. Merge them first.

The following were hard-coded English and are now string resources with German translations. The English text is unchanged.

  • Analytics opt-in: dialog title, body, buttons, and the thank-you snackbar.
  • Delete-profile confirmation: title and question.
  • Profile-in-use error dialog.
  • Filter dialogs: the "Error: …" line in all three.
  • Single titles and messages: "Select color", the ListPreference default "Select option", and the activity chooser's "This app has no activities" toast.

The delete-profile dialog moves out of WidgetProfilesScreen into DeleteProfileDialog, unchanged in behavior. DialogStringResourcesTest renders each dialog under a German locale and checks the German text. #65's TranslationCompletenessTest covers the snackbar and toast strings.

Not included: "Play Store" and "GitHub" on the About screen stay hard-coded as product names.

Titles: three dialogs now use the descriptive strings that were already defined and translated but unused: the delete-profile dialog uses delete_profile ("Delete profile?"), the profile-in-use error uses error_profile_in_use, and the color picker uses pick_widget_color. They replace the generic "Confirm", "Error" and "Select color".

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Test Results

47 tests  +6   47 ✅ +6   23s ⏱️ -4s
10 suites +1    0 💤 ±0 
10 files   +1    0 ❌ ±0 

Results for commit ff9a5ad. ± Comparison against base commit 8a8e0fa.

♻️ This comment has been updated with latest results.

@hameno
hameno force-pushed the feature/dialog_string_resources branch from 2070a32 to 47f2650 Compare October 10, 2026 13:08
hameno and others added 2 commits October 10, 2026 15:17
The analytics opt-in dialog and snackbar, the delete-profile and
profile-in-use dialogs, the color picker title, the list preference
default title, the filter dialogs' error line and the activity
chooser's toast were hard-coded English. They now use string resources
with German translations. The English text is unchanged.

The delete-profile dialog is extracted into DeleteProfileDialog so
DialogStringResourcesTest can render it alongside the others.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The delete-profile, profile-in-use and color selection dialogs now use
the delete_profile, error_profile_in_use and pick_widget_color strings,
which were already defined (and translated) but unused, instead of the
generic "Confirm", "Error" and "Select color". Those three strings are
removed again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hameno
hameno force-pushed the feature/dialog_string_resources branch from 47f2650 to ff9a5ad Compare October 10, 2026 13:18
@hameno
hameno enabled auto-merge (rebase) October 10, 2026 13:18
@hameno
hameno merged commit 21f22eb into master Oct 10, 2026
2 checks passed
@hameno
hameno deleted the feature/dialog_string_resources branch October 10, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant