[wp-trac] [WordPress Trac] #37789: Strange results in comment number declension

WordPress Trac noreply at wordpress.org
Fri Sep 23 07:16:25 UTC 2016


#37789: Strange results in comment number declension
--------------------------+-------------------------
 Reporter:  pavelevap     |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  I18N          |     Version:
 Severity:  normal        |  Resolution:  worksforme
 Keywords:                |     Focuses:
--------------------------+-------------------------

Comment (by pavelevap):

 Thank you, @SergeyBiryukov! I did not realize `sprintf()` hack to hide `%`
 :-)

 Current solution is probably OK even if there are some edgecases. My only
 idea was to check if passed string is gettexted to prevent these
 situations, but I am not sure if it is possible somehow?

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


More information about the wp-trac mailing list