Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@seadowg
Copy link
Member

@seadowg seadowg commented Sep 10, 2025

Why is this the best possible solution? Were any other approaches considered?

The advantage of implementing the delete dialog message this way is that the "delete" trigger can be translated for users that wouldn't be able to easily type it with their soft keyboard. Additionally, I've changed extracted the HTML parts of the message to our view code so that translators don't have to deal with it.

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

Do we need any specific form for testing your changes? If so, please attach one.

Does this change require updates to documentation? If so, please file an issue here and include the link below.

Before submitting this PR, please make sure you have:

  • added or modified tests for any new or changed behavior
  • run ./gradlew connectedAndroidTest (or ./gradlew testLab) and confirmed all checks still pass
  • added a comment above any new strings describing it for translators
  • added any new strings with date formatting to DateFormatsTest
  • verified that any code or assets from external sources are properly credited in comments and/or in the about file.
  • verified that any new UI elements use theme colors. UI Components Style guidelines

@seadowg seadowg added the high priority Should be looked at before other PRs/issues label Sep 10, 2025
@seadowg seadowg requested a review from lognaturel September 10, 2025 12:12
@seadowg seadowg marked this pull request as ready for review September 10, 2025 12:12
return """
$message:<br/>
<br/>
$formDefinitions<br/>
Copy link
Member

Choose a reason for hiding this comment

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

I'm curious to see how this will look with a RTL language! I think if it's not great we can file it as a low-priority issue.

@lognaturel lognaturel merged commit 9bc7c72 into getodk:master Sep 10, 2025
6 checks passed
@seadowg seadowg deleted the delete-translate branch September 10, 2025 16:50
@dbemke
Copy link

dbemke commented Sep 12, 2025

Tested with Success!

Verified on Android 10

Verified cases:

  • delete project in LTR and RTL alignment
  • regression checks in delete project

@WKobus
Copy link

WKobus commented Sep 12, 2025

Tested with Success!

Verified on Android 16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

behavior verified high priority Should be looked at before other PRs/issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants