Skip to content

Test translation context suggestions for Android strings - #16302

Draft
iangmaia wants to merge 5 commits into
trunkfrom
test/translation-context-plugin-v2
Draft

Test translation context suggestions for Android strings#16302
iangmaia wants to merge 5 commits into
trunkfrom
test/translation-context-plugin-v2

Conversation

@iangmaia

@iangmaia iangmaia commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Description

This is a do-not-merge integration test for the translation_context_checker from Automattic/dangermattic#112. It pins that branch, adds three deliberately under-described strings.xml resources with Kotlin usages, and requests inline translation suggestions.

The fixtures represent the Save button in an order editor, the status shown while that order is processing, and the hint for adding an internal order note. This description is intentionally self-contained because pull request title and description context is enabled by default.

Test Steps

  1. Wait for the Danger PR check to complete.
  2. Confirm the shared Danger environment bootstraps i18n-context-generator 0.5.1 and loads the complete plugin from the Dangermattic branch.
  3. Confirm it suggests translator comments inline on all three changed XML entries without duplicating them in the PR summary.
  4. Confirm the suggestions reflect the order-editor meanings described above.

Images/gif

N/A

  • I have considered if this change warrants release notes and have added them to RELEASE-NOTES.txt if necessary. Use the "[Internal]" label for non-user-facing changes.

@dangermattic

dangermattic commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator
1 Message
📖 This PR is still a Draft: some checks will be skipped.

Generated by 🚫 Danger

@iangmaia iangmaia added type: task An internally driven task. status: do not merge Dependent on another PR, ready for review but not ready for merge. labels Jul 24, 2026
@iangmaia iangmaia added this to the 25.4 milestone Jul 24, 2026
@iangmaia iangmaia added category: tooling Anything that involves building & maintaining the project, including scripts, `Fastfile`, etc. category: i18n Related to localization/internationalization. labels Jul 24, 2026
@wpmobilebot

wpmobilebot commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

App Icon📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.

App NameWooCommerce Android
Platform📱 Mobile
FlavorJalapeno
Build TypeDebug
Build Number774
Version25.2-rc-2
Application IDcom.woocommerce.android.prealpha
Commit78d386d
Installation URL561q4ijbd2lg0
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

<string name="error_site_url_certificate_validity" a8c-src-lib="module:login">We couldn\'t establish a secure connection. Check that your device date and time are correct, then try again.</string>
<string name="error_site_url_remote_certificate" a8c-src-lib="module:login">We couldn\'t verify this site\'s security certificate. Contact your hosting provider or site administrator, then try again.</string>
<string name="translation_context_test_order_save_button">Save</string>
<string name="translation_context_test_order_processing_status">Processing</string>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
<string name="translation_context_test_order_processing_status">Processing</string>
<!-- A status label displayed in the order editor screen indicating that an order is currently being processed. -->
<string name="translation_context_test_order_processing_status">Processing</string>

Generated by 🚫 Danger

<string name="error_site_url_remote_certificate" a8c-src-lib="module:login">We couldn\'t verify this site\'s security certificate. Contact your hosting provider or site administrator, then try again.</string>
<string name="translation_context_test_order_save_button">Save</string>
<string name="translation_context_test_order_processing_status">Processing</string>
<string name="translation_context_test_order_note_hint">Add a note</string>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
<string name="translation_context_test_order_note_hint">Add a note</string>
<!-- Placeholder hint text shown inside a text input field in an order editor screen, prompting the user to type an internal note for the order. -->
<string name="translation_context_test_order_note_hint">Add a note</string>

Generated by 🚫 Danger

<string name="ai_assistant_confirmation_product_variation_update_title_with_name" a8c-src-lib="module:ai-assistant-feature">Update variation %1$s (#%2$s) for product #%3$s</string>
<string name="error_site_url_certificate_validity" a8c-src-lib="module:login">We couldn\'t establish a secure connection. Check that your device date and time are correct, then try again.</string>
<string name="error_site_url_remote_certificate" a8c-src-lib="module:login">We couldn\'t verify this site\'s security certificate. Contact your hosting provider or site administrator, then try again.</string>
<string name="translation_context_test_order_save_button">Save</string>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
<string name="translation_context_test_order_save_button">Save</string>
<!-- A button label in an order editor screen that saves the current order when tapped. -->
<string name="translation_context_test_order_save_button">Save</string>

Generated by 🚫 Danger

@wpmobilebot

Copy link
Copy Markdown
Collaborator

Version 25.4 has now entered code-freeze, so the milestone of this PR has been updated to 25.5.

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

Labels

category: i18n Related to localization/internationalization. category: tooling Anything that involves building & maintaining the project, including scripts, `Fastfile`, etc. status: do not merge Dependent on another PR, ready for review but not ready for merge. type: task An internally driven task.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants