Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Bug 1876610 - Minor Translations UI Adjustments #5305

Merged
merged 3 commits into from
Jan 29, 2024

Conversation

ohall-m
Copy link
Contributor

@ohall-m ohall-m commented Jan 25, 2024

This patch completes a few minor translations UI adjustments. Including updating mock data on the "never translate these sites" page and the "language settings" page.

Additionally, adds a content description on the toolbar for the translation icon.

Pull Request checklist

  • Quality: This PR builds and passes detekt/ktlint checks (A pre-push hook is recommended)
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry or does not need one
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features

After merge

  • Breaking Changes: If this is a breaking Android Components change, please push a draft PR on Reference Browser to address the breaking issues.

To download an APK when reviewing a PR (after all CI tasks finished running):

  1. Click on Checks at the top of the PR page.
  2. Click on the firefoxci-taskcluster group on the left to expand all tasks.
  3. Click on the build-apk-{fenix,focus,klar}-debug task you're interested in.
  4. Click on View task in Taskcluster in the new DETAILS section.
  5. The APK links should be on the right side of the screen, named for each CPU architecture.

GitHub Automation

https://bugzilla.mozilla.org/show_bug.cgi?id=1876610

websiteUrl = "expedia.ca",
),
)
add(
NeverTranslateSiteListItemPreference(
websiteUrl = "wikipedia.com",
websiteUrl = "mozilla.org",
Copy link
Member

Choose a reason for hiding this comment

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

Is this just a tmp list?

Copy link
Contributor Author

@ohall-m ohall-m Jan 25, 2024

Choose a reason for hiding this comment

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

Correct, wanting to open up for L10N review and thought we shouldn't have unaffiliated references.

@github-actions github-actions bot added approved PR that has been approved and removed 🕵️‍♀️ needs review PRs that need to be reviewed labels Jan 25, 2024
@ohall-m
Copy link
Contributor Author

ohall-m commented Jan 25, 2024

@gabrielluong Sorry, had a quick change right after approval, can you take a look again? I think I needed a new string for the content description. (Had a little bit of back and forth with myself, but I think where we will need a different one for when it opens, we should maybe have the toolbar string be a different reference than the browser string.) What do you think?

Comment on lines 249 to 250
<!-- Content description for the translate page toolbar button that opens the translations dialog when no translation has occurred. -->
<string name="browser_toolbar_translate">Translate page</string>
Copy link
Member

Choose a reason for hiding this comment

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

Let's move this below L236 since we have actually have a Browser Toolbar section and you probably want to add a new line to space out the sections.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, yeah totally didn't see <!-- Locale Settings Fragment --> stuck between the browser toolbar section and what I added. 🔎

Moved it up and made the spacing between sections more clear.

This patch completes a few minor translations UI adjustments. Including
updating mock data on the "never translate these sites" page and the
"language settings" page.

Additionally, adds a content description on the toolbar for the
translation icon.
@ohall-m ohall-m added the 🛬 needs landing PRs that are ready to land label Jan 29, 2024
@mergify mergify bot merged commit a7bdcea into mozilla-mobile:main Jan 29, 2024
23 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved PR that has been approved 🛬 needs landing PRs that are ready to land
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants