[wp-trac] [WordPress Trac] #52696: Add a way to determine whether a translation exists

WordPress Trac noreply at wordpress.org
Tue May 28 08:39:09 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                       |
-------------------------------------------------+-------------------------

Comment (by swissspidy):

 Not sure I follow. You mean you want to utilize
 `WP_Translation_Controller's` in `__()` & co? That seems like an entirely
 different change (with potential backward compatibility implications). And
 not sure how that would address this ticket.

 But I might be misunderstanding your request. In that case, feel free to
 open a PR with a suggested code change or so.

 FWIW no one is ''required'' to use both functions. I consider
 `has_translation()` an edge case that rarely ever someone truly needs.
 Most of the time you should just translate.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52696#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list