[wp-trac] [WordPress Trac] #50292: Change 'post updated' notification text to '[post type name] updated'

WordPress Trac noreply at wordpress.org
Tue Jul 28 01:33:30 UTC 2020


#50292: Change 'post updated' notification text to '[post type name] updated'
-------------------------------+------------------------------
 Reporter:  ninetyninew        |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  close              |     Focuses:
-------------------------------+------------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:2 ninetyninew]:
 > I wonder if there is any appetite for an additional simpler function
 here which could be used instead of the standard label set to define the
 post type singular and plural name as opposed to the entire label set and
 then all these get populated for you - to save instances of this where
 some new label for a post type maybe added later you'd already have those
 populated correctly?

 Unfortunately, just inserting a post type name into a generic string like
 `%s updated` is not translatable, hence the need for a full array of
 various labels.

 A general best practice in WordPress is to avoid post type and taxonomy
 names in generic strings due to i18n concerns and structural differences
 in languages. For reference, see:
  * comment:3:ticket:17609
  * comment:1:ticket:19099
  * #37895

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


More information about the wp-trac mailing list