[wp-trac] [WordPress Trac] #52696: Add a way to determine whether a translation exists
WordPress Trac
noreply at wordpress.org
Mon May 27 15:07:27 UTC 2024
#52696: Add a way to determine whether a translation exists
-------------------------------------------------+-------------------------
Reporter: drzraf | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future
| Release
Component: I18N | Version:
Severity: minor | Resolution:
Keywords: good-first-bug has-patch needs- | Focuses:
testing needs-unit-tests |
-------------------------------------------------+-------------------------
Changes (by swissspidy):
* keywords: good-first-bug has-patch needs-testing => good-first-bug has-
patch needs-testing needs-unit-tests
Comment:
Thanks, that's a great starting point!
To make collaboration and code review easier, I recommend creating a PR on
GitHub. It will also make it easier to address PHPCS issues and work on
unit tests.
Functionality-wise, we don't need the `null === $locale` check in the
`has_translation()` function as
`WP_Translation_Controller::has_translation()` already does that. So it's
redundant.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52696#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list