New User Approve - Version 1.2.1

Version Description

  • check for the existence of the login_header function to make compatible with functions that remove it
  • added "Other Notes" page in readme.txt with localization information.
  • added belarusian translation files
Download this release

Release Info

Developer picklewagon
Plugin Icon 128x128 New User Approve
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2 to 1.2.1

localization/new-user-approve-be_BY.mo ADDED
Binary file
localization/new-user-approve-be_BY.po ADDED
@@ -0,0 +1,200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR Josh Harrison
3
+ # This file is distributed under the same license as the PACKAGE package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: NUA\n"
9
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/new-user-approve\n"
10
+ "POT-Creation-Date: 2009-10-29 08:32+0000\n"
11
+ "PO-Revision-Date: 2010-01-08 21:59+0200\n"
12
+ "Last-Translator: Fat Cow <zhr@tut.by>\n"
13
+ "Language-Team: FatCow <zhr@tut.by>\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=utf-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "X-Poedit-Language: Belarusian\n"
18
+ "X-Poedit-Country: BELARUS\n"
19
+ "X-Poedit-SourceCharset: utf-8\n"
20
+
21
+ #: new-user-approve.php:126
22
+ msgid "Approve New Users"
23
+ msgstr "Утверждение новых пользователей"
24
+
25
+ #: new-user-approve.php:140
26
+ msgid "Settings"
27
+ msgstr "Настройки"
28
+
29
+ #: new-user-approve.php:183
30
+ msgid "Users"
31
+ msgstr "Пользователи"
32
+
33
+ #: new-user-approve.php:219
34
+ msgid "User successfully updated."
35
+ msgstr "Пользователь обновлен. "
36
+
37
+ #: new-user-approve.php:223
38
+ msgid "User Registration Approval"
39
+ msgstr "Регистрация пользователя Утверждение"
40
+
41
+ #: new-user-approve.php:225
42
+ msgid "User Management"
43
+ msgstr "Управление пользователями"
44
+
45
+ #: new-user-approve.php:228
46
+ msgid "Users Pending Approval"
47
+ msgstr "Ожидание утверждения пользователя"
48
+
49
+ #: new-user-approve.php:229
50
+ msgid "Approved Users"
51
+ msgstr "Утверждение пользователей"
52
+
53
+ #: new-user-approve.php:230
54
+ msgid "Denied Users"
55
+ msgstr "Запрет пользователей"
56
+
57
+ #: new-user-approve.php:255
58
+ msgid "ID"
59
+ msgstr "ID"
60
+
61
+ #: new-user-approve.php:256
62
+ msgid "Username"
63
+ msgstr "Имя пользователя"
64
+
65
+ #: new-user-approve.php:257
66
+ msgid "Name"
67
+ msgstr "Имя"
68
+
69
+ #: new-user-approve.php:258
70
+ msgid "E-mail"
71
+ msgstr "E-mail"
72
+
73
+ #: new-user-approve.php:260
74
+ #: new-user-approve.php:262
75
+ msgid "Actions"
76
+ msgstr "Действия"
77
+
78
+ #: new-user-approve.php:296
79
+ msgid "email:"
80
+ msgstr "email:"
81
+
82
+ #: new-user-approve.php:298
83
+ msgid "Approve"
84
+ msgstr "Утверждение"
85
+
86
+ #: new-user-approve.php:301
87
+ msgid "Deny"
88
+ msgstr "Запрет"
89
+
90
+ #: new-user-approve.php:313
91
+ msgid "approved"
92
+ msgstr "разрешено"
93
+
94
+ #: new-user-approve.php:315
95
+ msgid "denied"
96
+ msgstr "запрещено"
97
+
98
+ #: new-user-approve.php:317
99
+ msgid "pending"
100
+ msgstr "рассматриваемый"
101
+
102
+ #: new-user-approve.php:320
103
+ #, php-format
104
+ msgid "There are no users with a status of %s"
105
+ msgstr "Нет пользователей со статусом %s"
106
+
107
+ #: new-user-approve.php:332
108
+ msgid "User name already exists"
109
+ msgstr "Имя пользователя уже существует"
110
+
111
+ #: new-user-approve.php:335
112
+ #, php-format
113
+ msgid "%1$s (%2$s) has requested a username at %3$s"
114
+ msgstr "%1$s (%2$s) просил имени пользователя на %3$s"
115
+
116
+ #: new-user-approve.php:337
117
+ #, php-format
118
+ msgid "To approve or deny this user access to %s go to"
119
+ msgstr "Чтобы утвердить или опровергнуть эту доступа пользователей к %s перейти к"
120
+
121
+ #: new-user-approve.php:341
122
+ #, php-format
123
+ msgid "[%s] User Approval"
124
+ msgstr "[%s] пользователь утвержден"
125
+
126
+ #: new-user-approve.php:372
127
+ #, php-format
128
+ msgid "You have been approved to access %s"
129
+ msgstr "Вы утвердили доступ для %s"
130
+
131
+ #: new-user-approve.php:373
132
+ #, php-format
133
+ msgid "Username: %s"
134
+ msgstr "Имя пользователя: %s"
135
+
136
+ #: new-user-approve.php:374
137
+ #, php-format
138
+ msgid "Password: %s"
139
+ msgstr "Пароль: %s"
140
+
141
+ #: new-user-approve.php:378
142
+ #, php-format
143
+ msgid "[%s] Registration Approved"
144
+ msgstr "[%s] Регистрация утверждена"
145
+
146
+ #: new-user-approve.php:397
147
+ #, php-format
148
+ msgid "You have been denied access to %s"
149
+ msgstr "Был запрещен доступ к%s"
150
+
151
+ #: new-user-approve.php:400
152
+ #, php-format
153
+ msgid "[%s] Registration Denied"
154
+ msgstr "[%s] регистрация запрещена"
155
+
156
+ #: new-user-approve.php:413
157
+ msgid "An email has been sent to the site administrator. The administrator will review the information that has been submitted and either approve or deny your request."
158
+ msgstr "Электронное сообщение было отправлено администратору сайта. Администратор будет рассматривать информацию, которая была представлена и либо утвердить или отклонить ваш запрос."
159
+
160
+ #: new-user-approve.php:414
161
+ msgid "You will receive an email with instructions on what you will need to do next. Thanks for your patience."
162
+ msgstr "Вы получите письмо с инструкциями о том, что вам нужно сделать следующее. Спасибо за ваше терпение."
163
+
164
+ #: new-user-approve.php:418
165
+ msgid "Pending Approval"
166
+ msgstr "В ожидании утверждения"
167
+
168
+ #: new-user-approve.php:418
169
+ msgid "Registration successful."
170
+ msgstr "Регистрация успешно завершена."
171
+
172
+ #: new-user-approve.php:466
173
+ #, php-format
174
+ msgid "Welcome to %s. This site is accessible to approved users only. To be approved, you must first register."
175
+ msgstr "Приветствуем на %s. Этот сайт доступен только для регистрированных пользователей. Для одобрения вы должны сначала зарегистрироваться."
176
+
177
+ #: new-user-approve.php:471
178
+ msgid "After you register, your request will be sent to the site administrator for approval. You will then receive an email with further instructions."
179
+ msgstr "После регистрации, ваша заявка будет отправлена администратору сайта для утверждения. После этого Вы получите письмо с дальнейшими инструкциями."
180
+
181
+ #. Plugin Name of an extension
182
+ msgid "New User Approve"
183
+ msgstr "Утверждение нового пользователя"
184
+
185
+ #. Plugin URI of an extension
186
+ msgid "http://www.picklewagon.com/wordpress/new-user-approve"
187
+ msgstr "http://www.picklewagon.com/wordpress/new-user-approve"
188
+
189
+ #. Description of an extension
190
+ msgid "This plugin allows administrators to approve users once they register. Only approved users will be allowed to access the blog."
191
+ msgstr "Этот плагин позволяет администраторам утвердить пользователей после их регистрации. Только регистрированных пользователей будет разрешен доступ к блогу."
192
+
193
+ #. Author of an extension
194
+ msgid "Josh Harrison"
195
+ msgstr "Josh Harrison"
196
+
197
+ #. Author URI of an extension
198
+ msgid "http://www.picklewagon.com/"
199
+ msgstr "http://www.picklewagon.com/"
200
+
new-user-approve.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /*
3
  Plugin Name: New User Approve
4
- Plugin URI: http://www.picklewagon.com/wordpress/new-user-approve
5
  Description: This plugin allows administrators to approve users once they register. Only approved users will be allowed to access the blog.
6
  Author: Josh Harrison
7
- Version: 1.2
8
  Author URI: http://www.picklewagon.com/
9
  */
10
 
@@ -272,7 +272,7 @@ if (!class_exists('pw_new_user_approve')) {
272
  } else {
273
  $edit_link = clean_url( add_query_arg( 'wp_http_referer', urlencode( clean_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), "user-edit.php?user_id=$user->ID" ) );
274
  }
275
- $edit = '<strong><a href="$edit_link">' . $user->user_login . '</a></strong><br />';
276
  } else {
277
  $edit = '<strong>' . $user->user_login . '</strong>';
278
  }
@@ -411,7 +411,9 @@ if (!class_exists('pw_new_user_approve')) {
411
 
412
  $errors->add('registration_required', $message, 'message');
413
 
414
- login_header(__('Pending Approval', $this->localizationDomain), '<p class="message register">' . __("Registration successful.", $this->localizationDomain) . '</p>', $errors);
 
 
415
 
416
  echo "<body></html>";
417
  exit();
1
  <?php
2
  /*
3
  Plugin Name: New User Approve
4
+ Plugin URI: http://www.picklewagon.com/wordpress/new-user-approve-wordpress-plugin/
5
  Description: This plugin allows administrators to approve users once they register. Only approved users will be allowed to access the blog.
6
  Author: Josh Harrison
7
+ Version: 1.2.1
8
  Author URI: http://www.picklewagon.com/
9
  */
10
 
272
  } else {
273
  $edit_link = clean_url( add_query_arg( 'wp_http_referer', urlencode( clean_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), "user-edit.php?user_id=$user->ID" ) );
274
  }
275
+ $edit = '<strong><a href="' . $edit_link . '">' . $user->user_login . '</a></strong><br />';
276
  } else {
277
  $edit = '<strong>' . $user->user_login . '</strong>';
278
  }
411
 
412
  $errors->add('registration_required', $message, 'message');
413
 
414
+ if (function_exists('login_header')) {
415
+ login_header(__('Pending Approval', $this->localizationDomain), '<p class="message register">' . __("Registration successful.", $this->localizationDomain) . '</p>', $errors);
416
+ }
417
 
418
  echo "<body></html>";
419
  exit();
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: picklewagon
3
  Donate link: http://www.picklewagon.com/wordpress/
4
  Tags: users, registration
5
  Requires at least: 2.6
6
- Tested up to: 2.9
7
- Stable tag: 1.2
8
 
9
  New User Approve is a Wordpress plugin that allows a blog administrator to
10
  approve a user before they are able to access and login to the blog.
@@ -42,6 +42,11 @@ email. Make sure your host is setup correctly to send email if this happens.
42
 
43
  == Changelog ==
44
 
 
 
 
 
 
45
  = 1.2 =
46
  * add localization support
47
  * add a changelog to readme.txt
@@ -74,3 +79,12 @@ email. Make sure your host is setup correctly to send email if this happens.
74
  * verify the user does not already exist before the process is started
75
  * add nonces to approve and deny actions
76
  * temporary fix for pagination bug
 
 
 
 
 
 
 
 
 
3
  Donate link: http://www.picklewagon.com/wordpress/
4
  Tags: users, registration
5
  Requires at least: 2.6
6
+ Tested up to: 2.9.1
7
+ Stable tag: 1.2.1
8
 
9
  New User Approve is a Wordpress plugin that allows a blog administrator to
10
  approve a user before they are able to access and login to the blog.
42
 
43
  == Changelog ==
44
 
45
+ = 1.2.1 =
46
+ * check for the existence of the login_header function to make compatible with functions that remove it
47
+ * added "Other Notes" page in readme.txt with localization information.
48
+ * added belarusian translation files
49
+
50
  = 1.2 =
51
  * add localization support
52
  * add a changelog to readme.txt
79
  * verify the user does not already exist before the process is started
80
  * add nonces to approve and deny actions
81
  * temporary fix for pagination bug
82
+
83
+ == Other Notes ==
84
+
85
+ = Translations =
86
+ The plugin has been prepared to be translated. If you want to help to translate
87
+ the plugin to your language, please have a look at the sitemap.pot file which
88
+ contains all defintions and may be used with a gettext editor like Poedit (Windows).
89
+
90
+ * Belarusian translation by <a href="http://www.fatcow.com/">Fat Cow</a>