[wp-trac] [WordPress Trac] #48244: script-loader.php Need to use _n() when more than one results are found

WordPress Trac noreply at wordpress.org
Tue Oct 3 17:58:30 UTC 2023


#48244: script-loader.php Need to use _n() when more than one results are found
-------------------------------------------------+-------------------------
 Reporter:  tobifjellner                         |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  reviewing
 Priority:  normal                               |   Milestone:  6.4
Component:  Editor                               |     Version:  4.5
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing changes-     |     Focuses:  javascript
  requested needs-testing-info                   |
-------------------------------------------------+-------------------------

Comment (by tobifjellner):

 Testing is tricky, since it would need to be tested by running JavaScript,
 having a test language with test translation configured.

 One simple way to solve this would be to change the steering in line 937

                       'manyResults'  => __( '%d results found. Use up and
 down arrow keys to navigate.' ),

 To something like:
 Number of results found: %d. Use up and down...

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


More information about the wp-trac mailing list