Skip to content

Commit 4abc686

Browse files
committed
Fix wording of "You are not authorized to access this page"
1 parent 0e5bd5e commit 4abc686

File tree

7 files changed

+11
-8
lines changed

7 files changed

+11
-8
lines changed

includes/edit/edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function code_snippets_load_single_menu() {
8080

8181
/* Make sure the user has permission to be here */
8282
if ( ! current_user_can( get_snippets_cap() ) ) {
83-
wp_die( __( 'You are not access this page.', 'code-snippets' ) );
83+
wp_die( __( 'You are not authorized to access this page.', 'code-snippets' ) );
8484
}
8585

8686
/* Create the snippet tables if they don't exist */

includes/manage/manage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function code_snippets_load_manage_menu() {
6464

6565
/* Make sure the user has permission to be here */
6666
if ( ! current_user_can( get_snippets_cap() ) ) {
67-
wp_die( __( 'You are not access this page.', 'code-snippets' ) );
67+
wp_die( __( 'You are not authorized to access this page.', 'code-snippets' ) );
6868
}
6969

7070
/* Load stylesheet for this page */

languages/code-snippets-ru_RU.mo

14 Bytes
Binary file not shown.

languages/code-snippets-ru_RU.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ msgid "Import snippets from a Code Snippets export file"
433433
msgstr "Импортировать сниппеты из файла экспорта плагина \"Code Snippets\"."
434434

435435
#: includes/class-admin.php:246
436-
msgid "You are not access this page."
436+
msgid "You are not authorized to access this page."
437437
msgstr "У вас нет доступа к этой странице."
438438

439439
#: includes/class-admin.php:288 includes/class-admin.php:695

languages/code-snippets-sk_SK.mo

14 Bytes
Binary file not shown.

languages/code-snippets-sk_SK.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ msgid "Import snippets from a Code Snippets export file"
421421
msgstr "Importovať snippety zo súboru Code Snippets"
422422

423423
#: ../includes/class-admin.php:246
424-
msgid "You are not access this page."
424+
msgid "You are not authorized to access this page."
425425
msgstr "Nemáte prístup na túto stránku."
426426

427427
#: ../includes/class-admin.php:288 ../includes/class-admin.php:695

languages/code-snippets.pot

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: code-snippets 2.0.0-dev\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2015-02-23 22:26+1030\n"
11+
"POT-Creation-Date: 2015-02-23 22:28+1030\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -267,9 +267,8 @@ msgstr ""
267267
msgid "Delete"
268268
msgstr ""
269269

270-
#: includes/edit/edit.php:83 includes/import/import.php:92
271-
#: includes/manage/manage.php:67
272-
msgid "You are not access this page."
270+
#: includes/edit/edit.php:83 includes/manage/manage.php:67
271+
msgid "You are not authorized to access this page."
273272
msgstr ""
274273

275274
#: includes/edit/edit.php:176 includes/manage/class-list-table.php:242
@@ -377,6 +376,10 @@ msgstr ""
377376
msgid "Import"
378377
msgstr ""
379378

379+
#: includes/import/import.php:92
380+
msgid "You are not access this page."
381+
msgstr ""
382+
380383
#: includes/manage/admin-help.php:17
381384
msgid ""
382385
"Snippets are similar to plugins - they both extend and expand the "

0 commit comments

Comments
 (0)