Skip to content

Use reverse-DNS keys syntax to disambiguate "Dismiss" translations – 1 of many#19136

Merged
mokagio merged 12 commits into
trunkfrom
use-reverse-dns-for-dismiss-keys
Aug 3, 2022
Merged

Use reverse-DNS keys syntax to disambiguate "Dismiss" translations – 1 of many#19136
mokagio merged 12 commits into
trunkfrom
use-reverse-dns-for-dismiss-keys

Conversation

@mokagio

@mokagio mokagio commented Aug 2, 2022

Copy link
Copy Markdown
Contributor

See #19028 for details on why we ought to use reverse-DNS keys in this particular instance, but also moving forward.

Notice the title says "1 of many". This PR does not address all "Dismiss" instance but I decided to open a PR with what I got so far to avoid having diffs that are too big.

Warning
The build is currently failing because of an issue in the virtual machines.


@momo-ozawa @dvdchr I asked for your review as per GitHub suggestion.


Regression Notes

  1. Potential unintended areas of impact – How "Dismiss" appears on screen, so I'd appreciate a double check to make sure I didn't commit typos
  2. What I did to test those areas of impact (or what existing automated tests I relied on) – N.A.
  3. What automated tests I added (or what prevented me from doing so) – N.A.

  • I have completed the Regression Notes. – N.A
  • I have considered adding unit tests for my changes. N.A.
  • I have considered adding accessibility improvements for my changes. N.A.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary. N.A.

@objc lazy var closeButton: UIBarButtonItem = {
let button = UIBarButtonItem(image: .gridicon(.cross), style: .plain, target: self, action: #selector(WebKitViewController.close))
button.title = NSLocalizedString("Dismiss", comment: "Dismiss a view. Verb")
button.title = NSLocalizedString("webKit.button.dismiss", value: "Dismiss", comment: "Verb. Dismiss the web view screen.")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I update the comment too here because now the string is specialized to WebKitViewController.

}

//Dimiss the fullscreen view, once it has fully closed process the saving if needed
// Dismiss the fullscreen view, once it has fully closed process the saving if needed

@mokagio mokagio Aug 2, 2022

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Bumped into this while looking for typos in "dismiss". It's just a comment, but it was useful to fix it so it didn't add noise to the search results.

@mokagio
mokagio force-pushed the use-reverse-dns-for-dismiss-keys branch from 5dfae85 to 73081ec Compare August 3, 2022 04:49
@mokagio
mokagio enabled auto-merge August 3, 2022 04:49
@mokagio

mokagio commented Aug 3, 2022

Copy link
Copy Markdown
Contributor Author

I forced pushed with a different commit message, one not using backticks, to hopefully get CI to pass. Sorry for the spam.

@mokagio
mokagio force-pushed the use-reverse-dns-for-dismiss-keys branch from 73081ec to 1b7699a Compare August 3, 2022 04:51
…ViewController`

Notice I also updated the comment. I started with removing the
`AlertView` reference, because that's an implementation detail that
should be irrelevant for translators. Replacing it with 'alert view'
seemed too generic, so I added more explanation.
@mokagio
mokagio force-pushed the use-reverse-dns-for-dismiss-keys branch from 1b7699a to 0b8f113 Compare August 3, 2022 05:00
@wpmobilebot

Copy link
Copy Markdown
Contributor
You can test the changes in Jetpack from this Pull Request by:
  • Clicking here or scanning the QR code below to access App Center
  • Then installing the build number pr19136-0b8f113 on your iPhone

If you need access to App Center, please ask a maintainer to add you.

@wpmobilebot

Copy link
Copy Markdown
Contributor
You can test the changes in WordPress from this Pull Request by:
  • Clicking here or scanning the QR code below to access App Center
  • Then installing the build number pr19136-0b8f113 on your iPhone

If you need access to App Center, please ask a maintainer to add you.

@mokagio
mokagio merged commit c027ccf into trunk Aug 3, 2022
@mokagio
mokagio deleted the use-reverse-dns-for-dismiss-keys branch August 3, 2022 05: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.

3 participants