Skip to content

Commit

Permalink
Fix wording of "You are not authorized to access this page"
Browse files Browse the repository at this point in the history
  • Loading branch information
sheabunge committed Feb 23, 2015
1 parent 0e5bd5e commit 4abc686
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion includes/edit/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function code_snippets_load_single_menu() {

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

/* Create the snippet tables if they don't exist */
Expand Down
2 changes: 1 addition & 1 deletion includes/manage/manage.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function code_snippets_load_manage_menu() {

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

/* Load stylesheet for this page */
Expand Down
Binary file modified languages/code-snippets-ru_RU.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion languages/code-snippets-ru_RU.po
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ msgid "Import snippets from a Code Snippets export file"
msgstr "Импортировать сниппеты из файла экспорта плагина \"Code Snippets\"."

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

#: includes/class-admin.php:288 includes/class-admin.php:695
Expand Down
Binary file modified languages/code-snippets-sk_SK.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion languages/code-snippets-sk_SK.po
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ msgid "Import snippets from a Code Snippets export file"
msgstr "Importovať snippety zo súboru Code Snippets"

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

#: ../includes/class-admin.php:288 ../includes/class-admin.php:695
Expand Down
11 changes: 7 additions & 4 deletions languages/code-snippets.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: code-snippets 2.0.0-dev\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-02-23 22:26+1030\n"
"POT-Creation-Date: 2015-02-23 22:28+1030\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -267,9 +267,8 @@ msgstr ""
msgid "Delete"
msgstr ""

#: includes/edit/edit.php:83 includes/import/import.php:92
#: includes/manage/manage.php:67
msgid "You are not access this page."
#: includes/edit/edit.php:83 includes/manage/manage.php:67
msgid "You are not authorized to access this page."
msgstr ""

#: includes/edit/edit.php:176 includes/manage/class-list-table.php:242
Expand Down Expand Up @@ -377,6 +376,10 @@ msgstr ""
msgid "Import"
msgstr ""

#: includes/import/import.php:92
msgid "You are not access this page."
msgstr ""

#: includes/manage/admin-help.php:17
msgid ""
"Snippets are similar to plugins - they both extend and expand the "
Expand Down

0 comments on commit 4abc686

Please sign in to comment.