[wp-trac] [WordPress Trac] #50442: Add prefixes to all admin notices (Warning, Error, Success, Info)
    WordPress Trac 
    noreply at wordpress.org
       
    Fri Mar 26 08:45:30 UTC 2021
    
    
  
#50442: Add prefixes to all admin notices (Warning, Error, Success, Info)
----------------------------+------------------------------
 Reporter:  kebbet          |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  ui, ui-copy
----------------------------+------------------------------
Description changed by sabernhardt:
Old description:
> This is a continuation #47656
>
> From @aferica comment
> (https://core.trac.wordpress.org/ticket/47656#comment:47)
> - Make sure all the Error and Warning notices use respectively an
> "Error:" and "Warning:" text prefix
> - Further discuss whether also the "Success" and "Info" notices should
> use a similar text prefix
> - Update documentation related to admin notices, for example:
> https://codex.wordpress.org/Plugin_API/Action_Reference/admin_notices and
> https://developer.wordpress.org/reference/hooks/admin_notices/
> - Create a new issue on the Gutenberg GitHub to add text prefixes for the
> editor notices: right now, none of them uses a prefix (see screenshot
> below)
>
> I would like to add
>  - Combine strings constructed like __('Error:') . __('any string') into
> one string for better context for translators.
New description:
 This is a continuation #47656
 From @afercia comment (ticket:47656#comment:47)
 - Make sure all the Error and Warning notices use respectively an "Error:"
 and "Warning:" text prefix
 - Further discuss whether also the "Success" and "Info" notices should use
 a similar text prefix
 - Update documentation related to admin notices, for example:
 https://codex.wordpress.org/Plugin_API/Action_Reference/admin_notices and
 https://developer.wordpress.org/reference/hooks/admin_notices/
 - Create a new issue on the Gutenberg GitHub to add text prefixes for the
 editor notices: right now, none of them uses a prefix (see screenshot
 below)
 I would like to add
  - Combine strings constructed like `__('Error:') . __('any string')` into
 one string for better context for translators.
--
-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50442#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list