[wp-trac] [WordPress Trac] #34521: Translation strings - "You are not allowed to ..."

WordPress Trac noreply at wordpress.org
Sat Oct 31 11:14:29 UTC 2015


#34521: Translation strings - "You are not allowed to ..."
--------------------------+-----------------------------
 Reporter:  ramiy         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  I18N          |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Ok, so we have many many many types of error messages. In this ticket I
 will try to fix/unify the use of the `You are not allowed to ...` strings.

 See the strings:
 *
 [https://translate.wordpress.org/projects/wp/dev/he/default?filters%5Bterm%5D=You+are+not+allowed+to&filters%5Buser_login%5D=&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&sort%5Bby%5D=original&sort%5Bhow%5D=desc&sorts=Sort
 dev strings]
 *
 [https://translate.wordpress.org/projects/wp/dev/admin/he/default?filters%5Bterm%5D=not+allowed+to&filters%5Buser_login%5D=&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&sort%5Bby%5D=original&sort%5Bhow%5D=desc&sorts=Sort
 admin strings]
 *
 [https://translate.wordpress.org/projects/wp/dev/admin/network/he/default?filters%5Bterm%5D=not+allowed+to&filters%5Buser_login%5D=&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&sort%5Bby%5D=original&sort%5Bhow%5D=desc&sorts=Sort
 network strings]

 As you can see in the links above, the majority of the strings are using
 the `You are not allowed to ...` prefix. But some strings use other
 prefixes:
 * `You are not allowed to ...` - the most popular prefix
 * `Sorry, you are not allowed to ...`
 * `Sorry, you do not have the right to ...`
 * `Sorry, you cannot ...`

 I noticed that the `Sorry, ` prefix is used only in `class-wp-xmlrpc-
 server.php` file. In the attached patch, I've removed the `Sorry, ` prefix
 to create a unified error message changing and updating the different
 prefixes mentioned above.

 ----

 '''Note:''' WordPress has many types of error messages, in this ticket I'm
 trying to unify the error messages that you usually see after the `if ( !
 current_user_can( 'xxx' ) )` check.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34521>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list