User Role Editor - Version 2.0

Version Description

  • 04.04.2010
  • Create New Role feature was added
  • Delete self-made not used role feature was added. You can not delete any WordPress standard role.
  • Change default role for new user feature was added
  • Administator role and users with Administrator role permision were hidden from "Users" and "Edit User" page. This is done in case of delegation of add_user, edit_user or delete_user capabilities to some role.
Download this release

Release Info

Developer shinephp
Plugin Icon 128x128 User Role Editor
Version 2.0
Comparing to
See all releases

Code changes from version 1.2 to 2.0

images/fullthrottle.png ADDED
Binary file
lang/ure-de_DE.mo CHANGED
Binary file
lang/ure-de_DE.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: User Role Editor v1.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2010-03-28 21:37+0600\n"
6
- "PO-Revision-Date: 2010-03-28 21:39+0600\n"
7
  "Last-Translator: Vladimir <vladimir@shinephp.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -18,6 +18,57 @@ msgstr ""
18
  "X-Textdomain-Support: yes\n"
19
  "X-Poedit-SearchPath-0: .\n"
20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  #: ../ure-options.php:15
22
  msgid "Editor"
23
  msgstr "Redakteur"
@@ -34,133 +85,161 @@ msgstr "Mitarbeiter"
34
  msgid "Subscriber"
35
  msgstr "Abonnent"
36
 
37
- #: ../ure-options.php:48
38
- msgid "Roles capabilities are restored from the backup data"
39
- msgstr "Rollenbefugnisse werden von der Sicherheitskopie wiederhergestellt"
40
-
41
- #: ../ure-options.php:53
42
- msgid "No backup data. It is created automatically before the first role data update."
43
- msgstr "Kein Backup-Daten. Es wird automatisch vor der ersten Rolle Aktualisierung von Daten erstellt."
44
-
45
- #: ../ure-options.php:128
46
  msgid "Backup record is created for the current role capabilities"
47
  msgstr "Sicherheitskopie der aktuellen Rollenbefugnisse wird erstellt"
48
 
49
- #: ../ure-options.php:145
50
- #, fuzzy
51
  msgid "Role"
52
  msgstr "Rolle "
53
 
54
- #: ../ure-options.php:145
55
- #, fuzzy
56
  msgid "is updated successfully"
57
- msgstr "ist erfolgreich aktualisiert worden"
58
 
59
- # @ ure
60
- #: ../ure-options.php:179
61
  msgid "About this Plugin:"
62
  msgstr "Über dieses Plugin:"
63
 
64
- # @ ure
65
- #: ../ure-options.php:180
66
  msgid "Author's website"
67
  msgstr "Webseite des Autors"
68
 
69
- # @ ure
70
- #: ../ure-options.php:181
71
  msgid "Plugin webpage"
72
  msgstr "Webseite des Plugins"
73
 
74
- # @ ure
75
- #: ../ure-options.php:182
76
- #: ../user-role-editor.php:103
77
  msgid "Changelog"
78
  msgstr "Änderungen"
79
 
80
- # @ ure
81
- #: ../ure-options.php:183
82
  msgid "FAQ"
83
  msgstr "FAQ"
84
 
85
- # @ ure
86
- #: ../ure-options.php:184
87
  msgid "Donate"
88
  msgstr "Spende"
89
 
90
- # @ ure
91
- #: ../ure-options.php:186
92
  msgid "Greetings:"
93
  msgstr "Grüße:"
94
 
95
- # @ ure
96
- #: ../ure-options.php:187
97
  msgid "It's me, the author"
98
  msgstr "Ich bin's, der Autor"
99
 
100
- #: ../ure-options.php:188
101
  msgid "For the help with French translation"
102
  msgstr "Für die Hilfe bei der Französisch-Übersetzung"
103
 
104
- #: ../ure-options.php:189
105
  msgid "For the help with German translation"
106
  msgstr "Für die Hilfe bei der Deutsch-Übersetzung"
107
 
108
- #: ../ure-options.php:190
109
  msgid "For the help with Spanish translation"
110
  msgstr "Für die Hilfe bei der Spanischen-Übersetzung"
111
 
112
- # @ ure
113
- #: ../ure-options.php:191
 
 
 
114
  msgid "Do you wish to see your name with link to your site here? You are welcome! Your help with translation and new ideas are very appreciated."
115
  msgstr "Möchten Sie hier Ihren Namen mit Link zu Ihrer Website sehen? Sehr gern! Für Ihre Hilfe bei der Übersetzung und neue Ideen sind wir dankbar."
116
 
117
- #: ../ure-options.php:202
118
- msgid ": Please confirm to continue"
119
- msgstr ": Zum Fortfahren bitte bestätigen"
 
 
 
 
 
 
 
 
 
 
 
 
 
120
 
121
- #: ../ure-options.php:218
 
 
 
 
 
 
 
 
 
122
  #, php-format
123
  msgid "Role \"%s\" update: please confirm to continue"
124
  msgstr "Aktualisierung der Rolle \"%s\": Zum Fortfahren bitte bestätigen"
125
 
126
- # @ ure
127
- #: ../ure-options.php:226
128
  msgid "Select Role and change its capabilities list"
129
  msgstr "Eine Rolle auswählen und ihre Befugnisse ändern"
130
 
131
- #: ../ure-options.php:230
132
  msgid "Select Role:"
133
  msgstr "Eine Rolle auswählen:"
134
 
135
- # @ ure
136
- #: ../ure-options.php:260
137
  msgid "Update"
138
  msgstr "Aktualisieren"
139
 
140
- # @ ure
141
- #: ../ure-options.php:260
142
  msgid "Save Changes"
143
  msgstr "Sichere Änderungen"
144
 
145
- # @ ure
146
- #: ../ure-options.php:261
147
  msgid "Cancel"
148
  msgstr "Abbrechen"
149
 
150
- # @ ure
151
- #: ../ure-options.php:261
152
  msgid "Cancel not saved changes"
153
  msgstr "Ungesicherte Änderungen verwerfen "
154
 
155
- # @ ure
156
- #: ../ure-options.php:262
157
  msgid "Reset"
158
  msgstr "Zurücksetzen"
159
 
160
- # @ ure
161
- #: ../ure-options.php:262
162
- msgid "Return to default WordPress user role capabilities"
163
- msgstr "Auf Standardwerte zurücksetzen"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
 
165
  #: ../user-role-editor.php:38
166
  msgid "User Role Editor requires WordPress 2.8 or newer."
@@ -170,13 +249,11 @@ msgstr "User Role Editor benötigt Wordpress 2.8 oder neuer"
170
  msgid "Please update!"
171
  msgstr "Bitte aktualisieren!"
172
 
173
- # @ ure
174
  #: ../user-role-editor.php:63
175
  msgid "User Role Editor"
176
  msgstr "Benutzerrollen-Editor"
177
 
178
- # @ ure
179
- #: ../user-role-editor.php:93
180
  msgid "Settings"
181
  msgstr "Einstellungen"
182
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: User Role Editor v. 2.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-04-04 10:20+0600\n"
6
+ "PO-Revision-Date: 2010-04-04 10:21+0600\n"
7
  "Last-Translator: Vladimir <vladimir@shinephp.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
18
  "X-Textdomain-Support: yes\n"
19
  "X-Poedit-SearchPath-0: .\n"
20
 
21
+ #: ../ure-lib.php:51
22
+ msgid "Error is occur. Please check the log file."
23
+ msgstr "Fehler auftreten. Bitte überprüfen Sie die Log-Datei."
24
+
25
+ #: ../ure-lib.php:107
26
+ msgid "Database operation error. Check log file."
27
+ msgstr "Datenbankbetriebsstörung. Überprüfen Sie Protokolldatei."
28
+
29
+ #: ../ure-lib.php:129
30
+ msgid "Roles capabilities are restored from the backup data"
31
+ msgstr "Rollenbefugnisse werden von der Sicherheitskopie wiederhergestellt"
32
+
33
+ #: ../ure-lib.php:131
34
+ msgid "No backup data. It is created automatically before the first role data update."
35
+ msgstr "Kein Backup-Daten. Es wird automatisch vor der ersten Rolle Aktualisierung von Daten erstellt."
36
+
37
+ #: ../ure-lib.php:172
38
+ msgid "Error: Role name must contain latin characters and digits only!"
39
+ msgstr "Fehler: Die Rolle Namen enthalten muss lateinischen Buchstaben und Ziffern nur!"
40
+
41
+ #: ../ure-lib.php:180
42
+ msgid "Roles list reading error is encountered"
43
+ msgstr "Rollen-Liste liest Fehler aufgetreten"
44
+
45
+ #: ../ure-lib.php:186
46
+ msgid "Error is encountered during new role create operation"
47
+ msgstr "Fehler ist während der neuen Rolle auftreten zu schaffen Betrieb"
48
+
49
+ #: ../ure-lib.php:188
50
+ #, php-format
51
+ msgid "Role %s is created successfully"
52
+ msgstr "Rolle %s wird erfolgreich verursacht"
53
+
54
+ #: ../ure-lib.php:272
55
+ msgid "Error encountered during role delete operation"
56
+ msgstr "Fehler, die während Rolle Löschvorgang"
57
+
58
+ #: ../ure-lib.php:274
59
+ #, php-format
60
+ msgid "Role %s is deleted successfully"
61
+ msgstr "Rolle %s wird erfolgreich gelöscht"
62
+
63
+ #: ../ure-lib.php:292
64
+ msgid "Error encountered during default role change operation"
65
+ msgstr "Fehler, die während der Operation standardmäßig Rolle wechseln"
66
+
67
+ #: ../ure-lib.php:298
68
+ #, php-format
69
+ msgid "Default role for new users is set to %s successfully"
70
+ msgstr "Default Rolle für neue Benutzer ist auf %s erfolgreich"
71
+
72
  #: ../ure-options.php:15
73
  msgid "Editor"
74
  msgstr "Redakteur"
85
  msgid "Subscriber"
86
  msgstr "Abonnent"
87
 
88
+ #: ../ure-options.php:112
 
 
 
 
 
 
 
 
89
  msgid "Backup record is created for the current role capabilities"
90
  msgstr "Sicherheitskopie der aktuellen Rollenbefugnisse wird erstellt"
91
 
92
+ #: ../ure-options.php:121
 
93
  msgid "Role"
94
  msgstr "Rolle "
95
 
96
+ #: ../ure-options.php:121
 
97
  msgid "is updated successfully"
98
+ msgstr "wird erfolgreich aktualisier"
99
 
100
+ #: ../ure-options.php:165
 
101
  msgid "About this Plugin:"
102
  msgstr "Über dieses Plugin:"
103
 
104
+ #: ../ure-options.php:166
 
105
  msgid "Author's website"
106
  msgstr "Webseite des Autors"
107
 
108
+ #: ../ure-options.php:167
 
109
  msgid "Plugin webpage"
110
  msgstr "Webseite des Plugins"
111
 
112
+ #: ../ure-options.php:168
113
+ #: ../user-role-editor.php:168
 
114
  msgid "Changelog"
115
  msgstr "Änderungen"
116
 
117
+ #: ../ure-options.php:169
 
118
  msgid "FAQ"
119
  msgstr "FAQ"
120
 
121
+ #: ../ure-options.php:170
 
122
  msgid "Donate"
123
  msgstr "Spende"
124
 
125
+ #: ../ure-options.php:172
 
126
  msgid "Greetings:"
127
  msgstr "Grüße:"
128
 
129
+ #: ../ure-options.php:173
 
130
  msgid "It's me, the author"
131
  msgstr "Ich bin's, der Autor"
132
 
133
+ #: ../ure-options.php:174
134
  msgid "For the help with French translation"
135
  msgstr "Für die Hilfe bei der Französisch-Übersetzung"
136
 
137
+ #: ../ure-options.php:175
138
  msgid "For the help with German translation"
139
  msgstr "Für die Hilfe bei der Deutsch-Übersetzung"
140
 
141
+ #: ../ure-options.php:176
142
  msgid "For the help with Spanish translation"
143
  msgstr "Für die Hilfe bei der Spanischen-Übersetzung"
144
 
145
+ #: ../ure-options.php:177
146
+ msgid "For the code to hide administrator role"
147
+ msgstr "Für den Code zu verstecken Administrator-Rolle"
148
+
149
+ #: ../ure-options.php:178
150
  msgid "Do you wish to see your name with link to your site here? You are welcome! Your help with translation and new ideas are very appreciated."
151
  msgstr "Möchten Sie hier Ihren Namen mit Link zu Ihrer Website sehen? Sehr gern! Für Ihre Hilfe bei der Übersetzung und neue Ideen sind wir dankbar."
152
 
153
+ #: ../ure-options.php:194
154
+ msgid "Role Name can not be empty!"
155
+ msgstr "Rolle Name darf nicht leer sein!"
156
+
157
+ #: ../ure-options.php:198
158
+ msgid "Role Name must contain latin characters and digits only!"
159
+ msgstr "Rolle Name muss lateinischen Buchstaben und Ziffern nur!"
160
+
161
+ #: ../ure-options.php:203
162
+ #: ../ure-options.php:295
163
+ msgid "Delete Role"
164
+ msgstr "Löschung-Rolle"
165
+
166
+ #: ../ure-options.php:205
167
+ msgid "Change Default Role"
168
+ msgstr "Change Default Role"
169
 
170
+ #: ../ure-options.php:207
171
+ #: ../ure-options.php:279
172
+ msgid "Restore Roles from backup copy"
173
+ msgstr "Restore von Backup-Kopie Rollen"
174
+
175
+ #: ../ure-options.php:209
176
+ msgid "Please confirm to continue"
177
+ msgstr "Bestätigen Sie bitte, um fortzufahren"
178
+
179
+ #: ../ure-options.php:234
180
  #, php-format
181
  msgid "Role \"%s\" update: please confirm to continue"
182
  msgstr "Aktualisierung der Rolle \"%s\": Zum Fortfahren bitte bestätigen"
183
 
184
+ #: ../ure-options.php:242
 
185
  msgid "Select Role and change its capabilities list"
186
  msgstr "Eine Rolle auswählen und ihre Befugnisse ändern"
187
 
188
+ #: ../ure-options.php:246
189
  msgid "Select Role:"
190
  msgstr "Eine Rolle auswählen:"
191
 
192
+ #: ../ure-options.php:277
 
193
  msgid "Update"
194
  msgstr "Aktualisieren"
195
 
196
+ #: ../ure-options.php:277
 
197
  msgid "Save Changes"
198
  msgstr "Sichere Änderungen"
199
 
200
+ #: ../ure-options.php:278
 
201
  msgid "Cancel"
202
  msgstr "Abbrechen"
203
 
204
+ #: ../ure-options.php:278
 
205
  msgid "Cancel not saved changes"
206
  msgstr "Ungesicherte Änderungen verwerfen "
207
 
208
+ #: ../ure-options.php:279
 
209
  msgid "Reset"
210
  msgstr "Zurücksetzen"
211
 
212
+ #: ../ure-options.php:285
213
+ msgid "Add New Role"
214
+ msgstr "Neue Rolle hinzufügen"
215
+
216
+ #: ../ure-options.php:290
217
+ msgid "Add"
218
+ msgstr "Hinzufügen"
219
+
220
+ #: ../ure-options.php:290
221
+ msgid "Add New User Role"
222
+ msgstr "Neuen Benutzer Rolle hinzufügen"
223
+
224
+ #: ../ure-options.php:300
225
+ msgid "Delete"
226
+ msgstr "Löschen"
227
+
228
+ #: ../ure-options.php:300
229
+ msgid "Delete User Role"
230
+ msgstr "Löschung-Benutzer-Rolle"
231
+
232
+ #: ../ure-options.php:305
233
+ msgid "Default Role for New User"
234
+ msgstr "Rückstellungs-Rolle für neuen Benutzer"
235
+
236
+ #: ../ure-options.php:310
237
+ msgid "Change"
238
+ msgstr "Änderung"
239
+
240
+ #: ../ure-options.php:310
241
+ msgid "Set as Default User Role"
242
+ msgstr "Stellen Sie als Rückstellungs-Benutzer-Rolle ein"
243
 
244
  #: ../user-role-editor.php:38
245
  msgid "User Role Editor requires WordPress 2.8 or newer."
249
  msgid "Please update!"
250
  msgstr "Bitte aktualisieren!"
251
 
 
252
  #: ../user-role-editor.php:63
253
  msgid "User Role Editor"
254
  msgstr "Benutzerrollen-Editor"
255
 
256
+ #: ../user-role-editor.php:158
 
257
  msgid "Settings"
258
  msgstr "Einstellungen"
259
 
lang/ure-es_ES.mo CHANGED
Binary file
lang/ure-es_ES.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Thank You Counter Button 1.0.02\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2010-03-28 21:37+0600\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Vladimir <vladimir@shinephp.com>\n"
8
  "Language-Team: ShinePHP.com <vladimir@shinephp.com>\n"
@@ -13,6 +13,57 @@ msgstr ""
13
  "X-Poedit-Country: RUSSIAN FEDERATION\n"
14
  "X-Poedit-SourceCharset: utf-8\n"
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  #: ../ure-options.php:15
17
  msgid "Editor"
18
  msgstr "Editor"
@@ -29,116 +80,161 @@ msgstr "Colaborador"
29
  msgid "Subscriber"
30
  msgstr "Suscriptor"
31
 
32
- #: ../ure-options.php:48
33
- msgid "Roles capabilities are restored from the backup data"
34
- msgstr "Las capacidades del rol han sido restauradas desde los datos de respaldo"
35
-
36
- #: ../ure-options.php:53
37
- msgid "No backup data. It is created automatically before the first role data update."
38
- msgstr "Ningunos datos de reserva. Se crea automáticamente antes de la primera actualización de los datos del papel."
39
-
40
- #: ../ure-options.php:128
41
  msgid "Backup record is created for the current role capabilities"
42
  msgstr "Ha sido creada una grabación de respaldo para este rol y sus capacidades"
43
 
44
- #: ../ure-options.php:145
45
- #, fuzzy
46
  msgid "Role"
47
- msgstr "Rol"
48
 
49
- #: ../ure-options.php:145
50
  msgid "is updated successfully"
51
  msgstr "se ha actualizado exitosamente"
52
 
53
- #: ../ure-options.php:179
54
  msgid "About this Plugin:"
55
  msgstr "Acerca de este plugin:"
56
 
57
- #: ../ure-options.php:180
58
  msgid "Author's website"
59
  msgstr "Sitio web del autor"
60
 
61
- #: ../ure-options.php:181
62
  msgid "Plugin webpage"
63
  msgstr "Página web del plugin"
64
 
65
- #: ../ure-options.php:182
66
- #: ../user-role-editor.php:103
67
  msgid "Changelog"
68
  msgstr "Registro de cambios"
69
 
70
- #: ../ure-options.php:183
71
  msgid "FAQ"
72
  msgstr "FAQ"
73
 
74
- #: ../ure-options.php:184
75
  msgid "Donate"
76
  msgstr "Donar"
77
 
78
- #: ../ure-options.php:186
79
  msgid "Greetings:"
80
  msgstr "Saludos:"
81
 
82
- #: ../ure-options.php:187
83
  msgid "It's me, the author"
84
  msgstr "Soy yo, el autor"
85
 
86
- #: ../ure-options.php:188
87
  msgid "For the help with French translation"
88
  msgstr "Para la ayuda con la traducción al francés"
89
 
90
- #: ../ure-options.php:189
91
  msgid "For the help with German translation"
92
  msgstr "Para la ayuda con la traducción al alemán"
93
 
94
- #: ../ure-options.php:190
95
  msgid "For the help with Spanish translation"
96
  msgstr "Para la ayuda con la traducción al español"
97
 
98
- #: ../ure-options.php:191
 
 
 
 
99
  msgid "Do you wish to see your name with link to your site here? You are welcome! Your help with translation and new ideas are very appreciated."
100
  msgstr "¿Deseas ver tu nombre enlazado a tu sitio web aquí? ¡Eres bienvenido! Tu ayuda en la traducción y nuevas ideas son bien apreciadas."
101
 
102
- #: ../ure-options.php:202
103
- msgid ": Please confirm to continue"
104
- msgstr "Por favor confirma para continuar"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
 
106
- #: ../ure-options.php:218
107
  #, php-format
108
  msgid "Role \"%s\" update: please confirm to continue"
109
  msgstr "Actualizar Rol \"%s\": Por favor confirma para actualizar"
110
 
111
- #: ../ure-options.php:226
112
  msgid "Select Role and change its capabilities list"
113
  msgstr "Selecciona el Rol para cambiar su lista de capacidades"
114
 
115
- #: ../ure-options.php:230
116
  msgid "Select Role:"
117
  msgstr "Selecciona el Rol:"
118
 
119
- #: ../ure-options.php:260
120
  msgid "Update"
121
  msgstr "Actualizar"
122
 
123
- #: ../ure-options.php:260
124
  msgid "Save Changes"
125
  msgstr "Guardar Cambios"
126
 
127
- #: ../ure-options.php:261
128
  msgid "Cancel"
129
  msgstr "Cancelar"
130
 
131
- #: ../ure-options.php:261
132
  msgid "Cancel not saved changes"
133
  msgstr "Cancelar cambios no guardados"
134
 
135
- #: ../ure-options.php:262
136
  msgid "Reset"
137
  msgstr "Reiniciar"
138
 
139
- #: ../ure-options.php:262
140
- msgid "Return to default WordPress user role capabilities"
141
- msgstr "Retornar las capacidades de rol de usuario predeterminadas de Wordpress"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
 
143
  #: ../user-role-editor.php:38
144
  msgid "User Role Editor requires WordPress 2.8 or newer."
@@ -152,10 +248,14 @@ msgstr "¡Por favor actualiza!"
152
  msgid "User Role Editor"
153
  msgstr "User Role Editor"
154
 
155
- #: ../user-role-editor.php:93
156
  msgid "Settings"
157
  msgstr "Opciones"
158
 
 
 
 
 
159
  #~ msgid "action"
160
  #~ msgstr "операции"
161
 
@@ -593,9 +693,6 @@ msgstr "Opciones"
593
  #~ msgid "Unknown Post!"
594
  #~ msgstr "Неизвестная статья!"
595
 
596
- #~ msgid "Default"
597
- #~ msgstr "По-умолчанию"
598
-
599
  #~ msgid "Submit"
600
  #~ msgstr "Отправить"
601
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: User Role Editor v. 2.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-04-04 10:20+0600\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Vladimir <vladimir@shinephp.com>\n"
8
  "Language-Team: ShinePHP.com <vladimir@shinephp.com>\n"
13
  "X-Poedit-Country: RUSSIAN FEDERATION\n"
14
  "X-Poedit-SourceCharset: utf-8\n"
15
 
16
+ #: ../ure-lib.php:51
17
+ msgid "Error is occur. Please check the log file."
18
+ msgstr "El error es ocurrir. Por favor, consulte el archivo de registro."
19
+
20
+ #: ../ure-lib.php:107
21
+ msgid "Database operation error. Check log file."
22
+ msgstr "Error de la operación de la base de datos. Compruebe el fichero de diario."
23
+
24
+ #: ../ure-lib.php:129
25
+ msgid "Roles capabilities are restored from the backup data"
26
+ msgstr "Las capacidades del rol han sido restauradas desde los datos de respaldo"
27
+
28
+ #: ../ure-lib.php:131
29
+ msgid "No backup data. It is created automatically before the first role data update."
30
+ msgstr "Ningunos datos de reserva. Se crea automáticamente antes de la primera actualización de los datos del papel."
31
+
32
+ #: ../ure-lib.php:172
33
+ msgid "Error: Role name must contain latin characters and digits only!"
34
+ msgstr "Error: ¡El nombre del papel debe contener los caracteres y los dígitos latinos solamente!"
35
+
36
+ #: ../ure-lib.php:180
37
+ msgid "Roles list reading error is encountered"
38
+ msgstr "Se encuentra el error de lectura de la lista de los papeles"
39
+
40
+ #: ../ure-lib.php:186
41
+ msgid "Error is encountered during new role create operation"
42
+ msgstr "El error se encuentra durante nuevo papel crea la operación"
43
+
44
+ #: ../ure-lib.php:188
45
+ #, php-format
46
+ msgid "Role %s is created successfully"
47
+ msgstr "Papel %s se crea correctamente"
48
+
49
+ #: ../ure-lib.php:272
50
+ msgid "Error encountered during role delete operation"
51
+ msgstr "Error encontrado durante la operación de la cancelación del papel"
52
+
53
+ #: ../ure-lib.php:274
54
+ #, php-format
55
+ msgid "Role %s is deleted successfully"
56
+ msgstr "Papel %s se elimina con éxito"
57
+
58
+ #: ../ure-lib.php:292
59
+ msgid "Error encountered during default role change operation"
60
+ msgstr "Error encontrado durante la operación del cambio del papel del defecto"
61
+
62
+ #: ../ure-lib.php:298
63
+ #, php-format
64
+ msgid "Default role for new users is set to %s successfully"
65
+ msgstr "Función por defecto para los nuevos usuarios se establece en %s con éxito"
66
+
67
  #: ../ure-options.php:15
68
  msgid "Editor"
69
  msgstr "Editor"
80
  msgid "Subscriber"
81
  msgstr "Suscriptor"
82
 
83
+ #: ../ure-options.php:112
 
 
 
 
 
 
 
 
84
  msgid "Backup record is created for the current role capabilities"
85
  msgstr "Ha sido creada una grabación de respaldo para este rol y sus capacidades"
86
 
87
+ #: ../ure-options.php:121
 
88
  msgid "Role"
89
+ msgstr "Papel"
90
 
91
+ #: ../ure-options.php:121
92
  msgid "is updated successfully"
93
  msgstr "se ha actualizado exitosamente"
94
 
95
+ #: ../ure-options.php:165
96
  msgid "About this Plugin:"
97
  msgstr "Acerca de este plugin:"
98
 
99
+ #: ../ure-options.php:166
100
  msgid "Author's website"
101
  msgstr "Sitio web del autor"
102
 
103
+ #: ../ure-options.php:167
104
  msgid "Plugin webpage"
105
  msgstr "Página web del plugin"
106
 
107
+ #: ../ure-options.php:168
108
+ #: ../user-role-editor.php:168
109
  msgid "Changelog"
110
  msgstr "Registro de cambios"
111
 
112
+ #: ../ure-options.php:169
113
  msgid "FAQ"
114
  msgstr "FAQ"
115
 
116
+ #: ../ure-options.php:170
117
  msgid "Donate"
118
  msgstr "Donar"
119
 
120
+ #: ../ure-options.php:172
121
  msgid "Greetings:"
122
  msgstr "Saludos:"
123
 
124
+ #: ../ure-options.php:173
125
  msgid "It's me, the author"
126
  msgstr "Soy yo, el autor"
127
 
128
+ #: ../ure-options.php:174
129
  msgid "For the help with French translation"
130
  msgstr "Para la ayuda con la traducción al francés"
131
 
132
+ #: ../ure-options.php:175
133
  msgid "For the help with German translation"
134
  msgstr "Para la ayuda con la traducción al alemán"
135
 
136
+ #: ../ure-options.php:176
137
  msgid "For the help with Spanish translation"
138
  msgstr "Para la ayuda con la traducción al español"
139
 
140
+ #: ../ure-options.php:177
141
+ msgid "For the code to hide administrator role"
142
+ msgstr "Para que el código para ocultar el papel de administrador"
143
+
144
+ #: ../ure-options.php:178
145
  msgid "Do you wish to see your name with link to your site here? You are welcome! Your help with translation and new ideas are very appreciated."
146
  msgstr "¿Deseas ver tu nombre enlazado a tu sitio web aquí? ¡Eres bienvenido! Tu ayuda en la traducción y nuevas ideas son bien apreciadas."
147
 
148
+ #: ../ure-options.php:194
149
+ msgid "Role Name can not be empty!"
150
+ msgstr "Nombre del papel no puede estar vacío!"
151
+
152
+ #: ../ure-options.php:198
153
+ msgid "Role Name must contain latin characters and digits only!"
154
+ msgstr "Nombre del papel puede contener caracteres latinos y sólo números!"
155
+
156
+ #: ../ure-options.php:203
157
+ #: ../ure-options.php:295
158
+ msgid "Delete Role"
159
+ msgstr "Eliminar Papel"
160
+
161
+ #: ../ure-options.php:205
162
+ msgid "Change Default Role"
163
+ msgstr "Cambio de función por defecto"
164
+
165
+ #: ../ure-options.php:207
166
+ #: ../ure-options.php:279
167
+ msgid "Restore Roles from backup copy"
168
+ msgstr "Restaurar las funciones de copia de seguridad"
169
+
170
+ #: ../ure-options.php:209
171
+ msgid "Please confirm to continue"
172
+ msgstr "Por favor, confirme a seguir"
173
 
174
+ #: ../ure-options.php:234
175
  #, php-format
176
  msgid "Role \"%s\" update: please confirm to continue"
177
  msgstr "Actualizar Rol \"%s\": Por favor confirma para actualizar"
178
 
179
+ #: ../ure-options.php:242
180
  msgid "Select Role and change its capabilities list"
181
  msgstr "Selecciona el Rol para cambiar su lista de capacidades"
182
 
183
+ #: ../ure-options.php:246
184
  msgid "Select Role:"
185
  msgstr "Selecciona el Rol:"
186
 
187
+ #: ../ure-options.php:277
188
  msgid "Update"
189
  msgstr "Actualizar"
190
 
191
+ #: ../ure-options.php:277
192
  msgid "Save Changes"
193
  msgstr "Guardar Cambios"
194
 
195
+ #: ../ure-options.php:278
196
  msgid "Cancel"
197
  msgstr "Cancelar"
198
 
199
+ #: ../ure-options.php:278
200
  msgid "Cancel not saved changes"
201
  msgstr "Cancelar cambios no guardados"
202
 
203
+ #: ../ure-options.php:279
204
  msgid "Reset"
205
  msgstr "Reiniciar"
206
 
207
+ #: ../ure-options.php:285
208
+ msgid "Add New Role"
209
+ msgstr "Añadir un nuevo pap"
210
+
211
+ #: ../ure-options.php:290
212
+ msgid "Add"
213
+ msgstr "Añadir"
214
+
215
+ #: ../ure-options.php:290
216
+ msgid "Add New User Role"
217
+ msgstr "Papel Agregar nuevo usuario"
218
+
219
+ #: ../ure-options.php:300
220
+ msgid "Delete"
221
+ msgstr "Borrar"
222
+
223
+ #: ../ure-options.php:300
224
+ msgid "Delete User Role"
225
+ msgstr "El papel del usuario Borrar"
226
+
227
+ #: ../ure-options.php:305
228
+ msgid "Default Role for New User"
229
+ msgstr "Rol por defecto para el nuevo usuario"
230
+
231
+ #: ../ure-options.php:310
232
+ msgid "Change"
233
+ msgstr "Cambio"
234
+
235
+ #: ../ure-options.php:310
236
+ msgid "Set as Default User Role"
237
+ msgstr "Establecer como papel de usuario predeterminado"
238
 
239
  #: ../user-role-editor.php:38
240
  msgid "User Role Editor requires WordPress 2.8 or newer."
248
  msgid "User Role Editor"
249
  msgstr "User Role Editor"
250
 
251
+ #: ../user-role-editor.php:158
252
  msgid "Settings"
253
  msgstr "Opciones"
254
 
255
+ #~ msgid "Return to default WordPress user role capabilities"
256
+ #~ msgstr ""
257
+ #~ "Retornar las capacidades de rol de usuario predeterminadas de Wordpress"
258
+
259
  #~ msgid "action"
260
  #~ msgstr "операции"
261
 
693
  #~ msgid "Unknown Post!"
694
  #~ msgstr "Неизвестная статья!"
695
 
 
 
 
696
  #~ msgid "Submit"
697
  #~ msgstr "Отправить"
698
 
lang/ure-fr_FR.mo CHANGED
Binary file
lang/ure-fr_FR.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: User Role Editor Plugin 1.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2010-03-28 21:37+0600\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Vladimir <vladimir@shinephp.com>\n"
8
  "Language-Team: Whiler <webmaster@blogs.wittwer.fr>\n"
@@ -12,6 +12,57 @@ msgstr ""
12
  "X-Poedit-Language: French\n"
13
  "X-Poedit-Country: FRANCE\n"
14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  #: ../ure-options.php:15
16
  msgid "Editor"
17
  msgstr "Editeur"
@@ -28,116 +79,161 @@ msgstr "Contributeur"
28
  msgid "Subscriber"
29
  msgstr "Abonné"
30
 
31
- #: ../ure-options.php:48
32
- msgid "Roles capabilities are restored from the backup data"
33
- msgstr "Les capacités des rôles sont restaurées depuis les données de sauvegarde"
34
-
35
- #: ../ure-options.php:53
36
- msgid "No backup data. It is created automatically before the first role data update."
37
- msgstr "Aucune donnée sauvegardée. La sauvegarde est automatique avant la première mise à jour des rôles."
38
-
39
- #: ../ure-options.php:128
40
  msgid "Backup record is created for the current role capabilities"
41
  msgstr "L'enregistrement de sauvegarde est créé pour les capacités du rôle actuel"
42
 
43
- #: ../ure-options.php:145
44
- #, fuzzy
45
  msgid "Role"
46
  msgstr "Rôle "
47
 
48
- #: ../ure-options.php:145
49
  msgid "is updated successfully"
50
  msgstr "a été correctement mis à jour"
51
 
52
- #: ../ure-options.php:179
53
  msgid "About this Plugin:"
54
  msgstr "A propos de cette extension&nbsp;:"
55
 
56
- #: ../ure-options.php:180
57
  msgid "Author's website"
58
  msgstr "Site Web de l'auteur"
59
 
60
- #: ../ure-options.php:181
61
  msgid "Plugin webpage"
62
  msgstr "Page Web de l'extension"
63
 
64
- #: ../ure-options.php:182
65
- #: ../user-role-editor.php:103
66
  msgid "Changelog"
67
  msgstr "Changelog"
68
 
69
- #: ../ure-options.php:183
70
  msgid "FAQ"
71
  msgstr "FAQ"
72
 
73
- #: ../ure-options.php:184
74
  msgid "Donate"
75
  msgstr "Faire un don"
76
 
77
- #: ../ure-options.php:186
78
  msgid "Greetings:"
79
  msgstr "Remerciements&nbsp;:"
80
 
81
- #: ../ure-options.php:187
82
  msgid "It's me, the author"
83
  msgstr "C'est moi, l'auteur"
84
 
85
- #: ../ure-options.php:188
86
  msgid "For the help with French translation"
87
  msgstr "Pour l'aide avec la traduction française"
88
 
89
- #: ../ure-options.php:189
90
  msgid "For the help with German translation"
91
  msgstr "Pour l'aide avec la traduction allemande"
92
 
93
- #: ../ure-options.php:190
94
  msgid "For the help with Spanish translation"
95
  msgstr "Pour l'aide avec la traduction espagnole"
96
 
97
- #: ../ure-options.php:191
 
 
 
 
98
  msgid "Do you wish to see your name with link to your site here? You are welcome! Your help with translation and new ideas are very appreciated."
99
  msgstr "Vous souhaitez voir votre nom avec votre lien vers votre site Web ici ? Avec plaisir ! Votre aide avec la traduction ou de nouvelles idées seront très appréciées."
100
 
101
- #: ../ure-options.php:202
102
- msgid ": Please confirm to continue"
103
- msgstr ": Veuilllez confirmer pour continuer"
 
 
 
 
 
 
 
 
 
 
 
 
 
104
 
105
- #: ../ure-options.php:218
 
 
 
 
 
 
 
 
 
106
  #, php-format
107
  msgid "Role \"%s\" update: please confirm to continue"
108
  msgstr "Mise à jour du Rôle \"%s\" : Veuillez confirmer pour continuer"
109
 
110
- #: ../ure-options.php:226
111
  msgid "Select Role and change its capabilities list"
112
  msgstr "Sélectionnez un Rôle et changez sa liste de capacités"
113
 
114
- #: ../ure-options.php:230
115
  msgid "Select Role:"
116
  msgstr "Sélectionnez un rôle&nbsp;:"
117
 
118
- #: ../ure-options.php:260
119
  msgid "Update"
120
  msgstr "Mettre à jour"
121
 
122
- #: ../ure-options.php:260
123
  msgid "Save Changes"
124
  msgstr "Enregistrer les modifications"
125
 
126
- #: ../ure-options.php:261
127
  msgid "Cancel"
128
  msgstr "Annuler"
129
 
130
- #: ../ure-options.php:261
131
  msgid "Cancel not saved changes"
132
  msgstr "Annuler les changements"
133
 
134
- #: ../ure-options.php:262
135
  msgid "Reset"
136
  msgstr "Réinitialiser"
137
 
138
- #: ../ure-options.php:262
139
- msgid "Return to default WordPress user role capabilities"
140
- msgstr "Remettre les capacités des utilisateurs par défaut de WordPress"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
 
142
  #: ../user-role-editor.php:38
143
  msgid "User Role Editor requires WordPress 2.8 or newer."
@@ -151,7 +247,9 @@ msgstr "Veuillez mettre à jour&nbsp;!"
151
  msgid "User Role Editor"
152
  msgstr "Extension \"User Role Editor\""
153
 
154
- #: ../user-role-editor.php:93
155
  msgid "Settings"
156
  msgstr "Réglages"
157
 
 
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: User Role Editor Plugin 2.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-04-04 10:20+0600\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Vladimir <vladimir@shinephp.com>\n"
8
  "Language-Team: Whiler <webmaster@blogs.wittwer.fr>\n"
12
  "X-Poedit-Language: French\n"
13
  "X-Poedit-Country: FRANCE\n"
14
 
15
+ #: ../ure-lib.php:51
16
+ msgid "Error is occur. Please check the log file."
17
+ msgstr "L'erreur est produit. S'il vous plaît vérifier le fichier log."
18
+
19
+ #: ../ure-lib.php:107
20
+ msgid "Database operation error. Check log file."
21
+ msgstr "Erreur d'opération de base de données. Vérifiez le fichier journal."
22
+
23
+ #: ../ure-lib.php:129
24
+ msgid "Roles capabilities are restored from the backup data"
25
+ msgstr "Les capacités des rôles sont restaurées depuis les données de sauvegarde"
26
+
27
+ #: ../ure-lib.php:131
28
+ msgid "No backup data. It is created automatically before the first role data update."
29
+ msgstr "Aucune donnée sauvegardée. La sauvegarde est automatique avant la première mise à jour des rôles."
30
+
31
+ #: ../ure-lib.php:172
32
+ msgid "Error: Role name must contain latin characters and digits only!"
33
+ msgstr "Erreur: le nom de rôle doit contenir des caractères latins et chiffres seulement!"
34
+
35
+ #: ../ure-lib.php:180
36
+ msgid "Roles list reading error is encountered"
37
+ msgstr "Rôles d'erreur est rencontrée liste de lecture"
38
+
39
+ #: ../ure-lib.php:186
40
+ msgid "Error is encountered during new role create operation"
41
+ msgstr "Erreur est rencontrée lors de l'opération de création nouveau rôle"
42
+
43
+ #: ../ure-lib.php:188
44
+ #, php-format
45
+ msgid "Role %s is created successfully"
46
+ msgstr "Rôle %s est créé avec succès"
47
+
48
+ #: ../ure-lib.php:272
49
+ msgid "Error encountered during role delete operation"
50
+ msgstr "Une erreur s'est produite lors de rôle operatio supprimer"
51
+
52
+ #: ../ure-lib.php:274
53
+ #, php-format
54
+ msgid "Role %s is deleted successfully"
55
+ msgstr "%s rôle est supprimé avec succès"
56
+
57
+ #: ../ure-lib.php:292
58
+ msgid "Error encountered during default role change operation"
59
+ msgstr "Une erreur s'est produite pendant le fonctionnement par défaut changement rôle"
60
+
61
+ #: ../ure-lib.php:298
62
+ #, php-format
63
+ msgid "Default role for new users is set to %s successfully"
64
+ msgstr "Rôle par défaut pour les nouveaux utilisateurs est fixé à %s avec succès"
65
+
66
  #: ../ure-options.php:15
67
  msgid "Editor"
68
  msgstr "Editeur"
79
  msgid "Subscriber"
80
  msgstr "Abonné"
81
 
82
+ #: ../ure-options.php:112
 
 
 
 
 
 
 
 
83
  msgid "Backup record is created for the current role capabilities"
84
  msgstr "L'enregistrement de sauvegarde est créé pour les capacités du rôle actuel"
85
 
86
+ #: ../ure-options.php:121
 
87
  msgid "Role"
88
  msgstr "Rôle "
89
 
90
+ #: ../ure-options.php:121
91
  msgid "is updated successfully"
92
  msgstr "a été correctement mis à jour"
93
 
94
+ #: ../ure-options.php:165
95
  msgid "About this Plugin:"
96
  msgstr "A propos de cette extension&nbsp;:"
97
 
98
+ #: ../ure-options.php:166
99
  msgid "Author's website"
100
  msgstr "Site Web de l'auteur"
101
 
102
+ #: ../ure-options.php:167
103
  msgid "Plugin webpage"
104
  msgstr "Page Web de l'extension"
105
 
106
+ #: ../ure-options.php:168
107
+ #: ../user-role-editor.php:168
108
  msgid "Changelog"
109
  msgstr "Changelog"
110
 
111
+ #: ../ure-options.php:169
112
  msgid "FAQ"
113
  msgstr "FAQ"
114
 
115
+ #: ../ure-options.php:170
116
  msgid "Donate"
117
  msgstr "Faire un don"
118
 
119
+ #: ../ure-options.php:172
120
  msgid "Greetings:"
121
  msgstr "Remerciements&nbsp;:"
122
 
123
+ #: ../ure-options.php:173
124
  msgid "It's me, the author"
125
  msgstr "C'est moi, l'auteur"
126
 
127
+ #: ../ure-options.php:174
128
  msgid "For the help with French translation"
129
  msgstr "Pour l'aide avec la traduction française"
130
 
131
+ #: ../ure-options.php:175
132
  msgid "For the help with German translation"
133
  msgstr "Pour l'aide avec la traduction allemande"
134
 
135
+ #: ../ure-options.php:176
136
  msgid "For the help with Spanish translation"
137
  msgstr "Pour l'aide avec la traduction espagnole"
138
 
139
+ #: ../ure-options.php:177
140
+ msgid "For the code to hide administrator role"
141
+ msgstr "Pour le code pour cacher rôle d'administrateur"
142
+
143
+ #: ../ure-options.php:178
144
  msgid "Do you wish to see your name with link to your site here? You are welcome! Your help with translation and new ideas are very appreciated."
145
  msgstr "Vous souhaitez voir votre nom avec votre lien vers votre site Web ici ? Avec plaisir ! Votre aide avec la traduction ou de nouvelles idées seront très appréciées."
146
 
147
+ #: ../ure-options.php:194
148
+ msgid "Role Name can not be empty!"
149
+ msgstr "Rôle Nom ne peut pas être vide"
150
+
151
+ #: ../ure-options.php:198
152
+ msgid "Role Name must contain latin characters and digits only!"
153
+ msgstr "Rôle Nom doit contenir que des caractères latins et chiffres seulement!"
154
+
155
+ #: ../ure-options.php:203
156
+ #: ../ure-options.php:295
157
+ msgid "Delete Role"
158
+ msgstr "Supprimer rôle"
159
+
160
+ #: ../ure-options.php:205
161
+ msgid "Change Default Role"
162
+ msgstr "Changer de rôle par défaut"
163
 
164
+ #: ../ure-options.php:207
165
+ #: ../ure-options.php:279
166
+ msgid "Restore Roles from backup copy"
167
+ msgstr "Rôles de restauration de la copie de sauvegarde"
168
+
169
+ #: ../ure-options.php:209
170
+ msgid "Please confirm to continue"
171
+ msgstr "S'il vous plaît confirmer pour continuer"
172
+
173
+ #: ../ure-options.php:234
174
  #, php-format
175
  msgid "Role \"%s\" update: please confirm to continue"
176
  msgstr "Mise à jour du Rôle \"%s\" : Veuillez confirmer pour continuer"
177
 
178
+ #: ../ure-options.php:242
179
  msgid "Select Role and change its capabilities list"
180
  msgstr "Sélectionnez un Rôle et changez sa liste de capacités"
181
 
182
+ #: ../ure-options.php:246
183
  msgid "Select Role:"
184
  msgstr "Sélectionnez un rôle&nbsp;:"
185
 
186
+ #: ../ure-options.php:277
187
  msgid "Update"
188
  msgstr "Mettre à jour"
189
 
190
+ #: ../ure-options.php:277
191
  msgid "Save Changes"
192
  msgstr "Enregistrer les modifications"
193
 
194
+ #: ../ure-options.php:278
195
  msgid "Cancel"
196
  msgstr "Annuler"
197
 
198
+ #: ../ure-options.php:278
199
  msgid "Cancel not saved changes"
200
  msgstr "Annuler les changements"
201
 
202
+ #: ../ure-options.php:279
203
  msgid "Reset"
204
  msgstr "Réinitialiser"
205
 
206
+ #: ../ure-options.php:285
207
+ msgid "Add New Role"
208
+ msgstr "Ajouter un nouveau rôle"
209
+
210
+ #: ../ure-options.php:290
211
+ msgid "Add"
212
+ msgstr "Ajouter"
213
+
214
+ #: ../ure-options.php:290
215
+ msgid "Add New User Role"
216
+ msgstr "Ajouter le rôle d'un nouvel utilisateur"
217
+
218
+ #: ../ure-options.php:300
219
+ msgid "Delete"
220
+ msgstr "Effacer"
221
+
222
+ #: ../ure-options.php:300
223
+ msgid "Delete User Role"
224
+ msgstr "Rôle de l'utilisateur Supprimer"
225
+
226
+ #: ../ure-options.php:305
227
+ msgid "Default Role for New User"
228
+ msgstr "Rôle par défaut pour les nouveaux utilisateurs"
229
+
230
+ #: ../ure-options.php:310
231
+ msgid "Change"
232
+ msgstr "Changement"
233
+
234
+ #: ../ure-options.php:310
235
+ msgid "Set as Default User Role"
236
+ msgstr "Définir comme rôle d'utilisateur par défaut"
237
 
238
  #: ../user-role-editor.php:38
239
  msgid "User Role Editor requires WordPress 2.8 or newer."
247
  msgid "User Role Editor"
248
  msgstr "Extension \"User Role Editor\""
249
 
250
+ #: ../user-role-editor.php:158
251
  msgid "Settings"
252
  msgstr "Réglages"
253
 
254
+ #~ msgid "Return to default WordPress user role capabilities"
255
+ #~ msgstr "Remettre les capacités des utilisateurs par défaut de WordPress"
lang/ure-ru_RU.mo CHANGED
Binary file
lang/ure-ru_RU.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Thank You Counter Button 1.0.02\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2010-03-28 21:37+0600\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Vladimir <vladimir@shinephp.com>\n"
8
  "Language-Team: ShinePHP.com <vladimir@shinephp.com>\n"
@@ -13,6 +13,57 @@ msgstr ""
13
  "X-Poedit-Country: RUSSIAN FEDERATION\n"
14
  "X-Poedit-SourceCharset: utf-8\n"
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  #: ../ure-options.php:15
17
  msgid "Editor"
18
  msgstr "Редактор"
@@ -29,115 +80,161 @@ msgstr "Ассистент"
29
  msgid "Subscriber"
30
  msgstr "Подписчик"
31
 
32
- #: ../ure-options.php:48
33
- msgid "Roles capabilities are restored from the backup data"
34
- msgstr "Роли восстановлены из резервной копии"
35
-
36
- #: ../ure-options.php:53
37
- msgid "No backup data. It is created automatically before the first role data update."
38
- msgstr "Нет резервной копии. Она создается автоматически перед первым изменением ролей."
39
-
40
- #: ../ure-options.php:128
41
  msgid "Backup record is created for the current role capabilities"
42
  msgstr "Для текущего распределения возможностей по ролям создана резервная копия"
43
 
44
- #: ../ure-options.php:145
45
  msgid "Role"
46
  msgstr "Роль"
47
 
48
- #: ../ure-options.php:145
49
  msgid "is updated successfully"
50
  msgstr "изменена успешно"
51
 
52
- #: ../ure-options.php:179
53
  msgid "About this Plugin:"
54
  msgstr "Об этом плагине"
55
 
56
- #: ../ure-options.php:180
57
  msgid "Author's website"
58
  msgstr "Вебсайт автора"
59
 
60
- #: ../ure-options.php:181
61
  msgid "Plugin webpage"
62
  msgstr "Страница плагина"
63
 
64
- #: ../ure-options.php:182
65
- #: ../user-role-editor.php:103
66
  msgid "Changelog"
67
  msgstr "Журнал изменений"
68
 
69
- #: ../ure-options.php:183
70
  msgid "FAQ"
71
  msgstr "Часто задаваемые вопросы"
72
 
73
- #: ../ure-options.php:184
74
  msgid "Donate"
75
  msgstr "Поддержать"
76
 
77
- #: ../ure-options.php:186
78
  msgid "Greetings:"
79
  msgstr "Приветствия"
80
 
81
- #: ../ure-options.php:187
82
  msgid "It's me, the author"
83
  msgstr "Это я, автор"
84
 
85
- #: ../ure-options.php:188
86
  msgid "For the help with French translation"
87
  msgstr "за помощь с французским переводом"
88
 
89
- #: ../ure-options.php:189
90
  msgid "For the help with German translation"
91
  msgstr "за помощь с немецким переводом"
92
 
93
- #: ../ure-options.php:190
94
  msgid "For the help with Spanish translation"
95
  msgstr "за помощь с испанским переводом"
96
 
97
- #: ../ure-options.php:191
 
 
 
 
98
  msgid "Do you wish to see your name with link to your site here? You are welcome! Your help with translation and new ideas are very appreciated."
99
  msgstr "Желаете увидеть свое имя и ссылку на Ваш сайт здесь? Добро пожаловать! Ваша помощь с переводом и новые идеи приветствуются."
100
 
101
- #: ../ure-options.php:202
102
- msgid ": Please confirm to continue"
103
- msgstr ": Пожалуйста, подтвердите продолжение "
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
 
105
- #: ../ure-options.php:218
106
  #, php-format
107
  msgid "Role \"%s\" update: please confirm to continue"
108
  msgstr "Изменение роли \"%s\": пожалуйста, подтвердите продолжение "
109
 
110
- #: ../ure-options.php:226
111
  msgid "Select Role and change its capabilities list"
112
  msgstr "Выбери Роль и измени список разрешённых операций"
113
 
114
- #: ../ure-options.php:230
115
  msgid "Select Role:"
116
  msgstr "Выбери Роль:"
117
 
118
- #: ../ure-options.php:260
119
  msgid "Update"
120
  msgstr "Сохранить"
121
 
122
- #: ../ure-options.php:260
123
  msgid "Save Changes"
124
  msgstr "Сохранить изменения"
125
 
126
- #: ../ure-options.php:261
127
  msgid "Cancel"
128
  msgstr "Отмена"
129
 
130
- #: ../ure-options.php:261
131
  msgid "Cancel not saved changes"
132
  msgstr "Отказ от сохранения изменений"
133
 
134
- #: ../ure-options.php:262
135
  msgid "Reset"
136
  msgstr "Сброс"
137
 
138
- #: ../ure-options.php:262
139
- msgid "Return to default WordPress user role capabilities"
140
- msgstr "Вернуться к исходному состоянию ролей WordPress"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
 
142
  #: ../user-role-editor.php:38
143
  msgid "User Role Editor requires WordPress 2.8 or newer."
@@ -151,10 +248,16 @@ msgstr "Пожалуйста, обновите!"
151
  msgid "User Role Editor"
152
  msgstr "Редактор ролей пользователей"
153
 
154
- #: ../user-role-editor.php:93
155
  msgid "Settings"
156
  msgstr "Установки"
157
 
 
 
 
 
 
 
158
  #~ msgid "action"
159
  #~ msgstr "операции"
160
 
@@ -592,9 +695,6 @@ msgstr "Установки"
592
  #~ msgid "Unknown Post!"
593
  #~ msgstr "Неизвестная статья!"
594
 
595
- #~ msgid "Default"
596
- #~ msgstr "По-умолчанию"
597
-
598
  #~ msgid "Submit"
599
  #~ msgstr "Отправить"
600
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: User Role Editor v.2.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-04-04 10:20+0600\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Vladimir <vladimir@shinephp.com>\n"
8
  "Language-Team: ShinePHP.com <vladimir@shinephp.com>\n"
13
  "X-Poedit-Country: RUSSIAN FEDERATION\n"
14
  "X-Poedit-SourceCharset: utf-8\n"
15
 
16
+ #: ../ure-lib.php:51
17
+ msgid "Error is occur. Please check the log file."
18
+ msgstr "Произошла ошибка. Проверьте лог-файл."
19
+
20
+ #: ../ure-lib.php:107
21
+ msgid "Database operation error. Check log file."
22
+ msgstr "Ошибка работы с базой данных. Проверьте лог-файл."
23
+
24
+ #: ../ure-lib.php:129
25
+ msgid "Roles capabilities are restored from the backup data"
26
+ msgstr "Роли восстановлены из резервной копии"
27
+
28
+ #: ../ure-lib.php:131
29
+ msgid "No backup data. It is created automatically before the first role data update."
30
+ msgstr "Нет резервной копии. Она создается автоматически перед первым изменением ролей."
31
+
32
+ #: ../ure-lib.php:172
33
+ msgid "Error: Role name must contain latin characters and digits only!"
34
+ msgstr "Ошибка: должно содержать только латинские буквы и цифры"
35
+
36
+ #: ../ure-lib.php:180
37
+ msgid "Roles list reading error is encountered"
38
+ msgstr "Ошибка чтения списка ролей!"
39
+
40
+ #: ../ure-lib.php:186
41
+ msgid "Error is encountered during new role create operation"
42
+ msgstr "Произошла ошибка при создании новой роли"
43
+
44
+ #: ../ure-lib.php:188
45
+ #, php-format
46
+ msgid "Role %s is created successfully"
47
+ msgstr "Роль %s создана успешно"
48
+
49
+ #: ../ure-lib.php:272
50
+ msgid "Error encountered during role delete operation"
51
+ msgstr "Произошла ошибка при удалении роли"
52
+
53
+ #: ../ure-lib.php:274
54
+ #, php-format
55
+ msgid "Role %s is deleted successfully"
56
+ msgstr "Роль %s удалена успешно"
57
+
58
+ #: ../ure-lib.php:292
59
+ msgid "Error encountered during default role change operation"
60
+ msgstr "Произошла ошибка при изменении роли по-умолчанию"
61
+
62
+ #: ../ure-lib.php:298
63
+ #, php-format
64
+ msgid "Default role for new users is set to %s successfully"
65
+ msgstr "Роль по-умолчанию для новых пользователй изменена на %s успешно."
66
+
67
  #: ../ure-options.php:15
68
  msgid "Editor"
69
  msgstr "Редактор"
80
  msgid "Subscriber"
81
  msgstr "Подписчик"
82
 
83
+ #: ../ure-options.php:112
 
 
 
 
 
 
 
 
84
  msgid "Backup record is created for the current role capabilities"
85
  msgstr "Для текущего распределения возможностей по ролям создана резервная копия"
86
 
87
+ #: ../ure-options.php:121
88
  msgid "Role"
89
  msgstr "Роль"
90
 
91
+ #: ../ure-options.php:121
92
  msgid "is updated successfully"
93
  msgstr "изменена успешно"
94
 
95
+ #: ../ure-options.php:165
96
  msgid "About this Plugin:"
97
  msgstr "Об этом плагине"
98
 
99
+ #: ../ure-options.php:166
100
  msgid "Author's website"
101
  msgstr "Вебсайт автора"
102
 
103
+ #: ../ure-options.php:167
104
  msgid "Plugin webpage"
105
  msgstr "Страница плагина"
106
 
107
+ #: ../ure-options.php:168
108
+ #: ../user-role-editor.php:168
109
  msgid "Changelog"
110
  msgstr "Журнал изменений"
111
 
112
+ #: ../ure-options.php:169
113
  msgid "FAQ"
114
  msgstr "Часто задаваемые вопросы"
115
 
116
+ #: ../ure-options.php:170
117
  msgid "Donate"
118
  msgstr "Поддержать"
119
 
120
+ #: ../ure-options.php:172
121
  msgid "Greetings:"
122
  msgstr "Приветствия"
123
 
124
+ #: ../ure-options.php:173
125
  msgid "It's me, the author"
126
  msgstr "Это я, автор"
127
 
128
+ #: ../ure-options.php:174
129
  msgid "For the help with French translation"
130
  msgstr "за помощь с французским переводом"
131
 
132
+ #: ../ure-options.php:175
133
  msgid "For the help with German translation"
134
  msgstr "за помощь с немецким переводом"
135
 
136
+ #: ../ure-options.php:176
137
  msgid "For the help with Spanish translation"
138
  msgstr "за помощь с испанским переводом"
139
 
140
+ #: ../ure-options.php:177
141
+ msgid "For the code to hide administrator role"
142
+ msgstr "За код, скрывающий роль администратора"
143
+
144
+ #: ../ure-options.php:178
145
  msgid "Do you wish to see your name with link to your site here? You are welcome! Your help with translation and new ideas are very appreciated."
146
  msgstr "Желаете увидеть свое имя и ссылку на Ваш сайт здесь? Добро пожаловать! Ваша помощь с переводом и новые идеи приветствуются."
147
 
148
+ #: ../ure-options.php:194
149
+ msgid "Role Name can not be empty!"
150
+ msgstr "Наименование роли не может быть пустым!"
151
+
152
+ #: ../ure-options.php:198
153
+ msgid "Role Name must contain latin characters and digits only!"
154
+ msgstr "Наименование роли должно содержать только латинские буквы и цифры."
155
+
156
+ #: ../ure-options.php:203
157
+ #: ../ure-options.php:295
158
+ msgid "Delete Role"
159
+ msgstr "Удалить Роль"
160
+
161
+ #: ../ure-options.php:205
162
+ msgid "Change Default Role"
163
+ msgstr "Установить как роль по-умолчанию"
164
+
165
+ #: ../ure-options.php:207
166
+ #: ../ure-options.php:279
167
+ msgid "Restore Roles from backup copy"
168
+ msgstr "Восстановить Роли из резервной копии"
169
+
170
+ #: ../ure-options.php:209
171
+ msgid "Please confirm to continue"
172
+ msgstr "Пожалуйста, подтвердите продолжение "
173
 
174
+ #: ../ure-options.php:234
175
  #, php-format
176
  msgid "Role \"%s\" update: please confirm to continue"
177
  msgstr "Изменение роли \"%s\": пожалуйста, подтвердите продолжение "
178
 
179
+ #: ../ure-options.php:242
180
  msgid "Select Role and change its capabilities list"
181
  msgstr "Выбери Роль и измени список разрешённых операций"
182
 
183
+ #: ../ure-options.php:246
184
  msgid "Select Role:"
185
  msgstr "Выбери Роль:"
186
 
187
+ #: ../ure-options.php:277
188
  msgid "Update"
189
  msgstr "Сохранить"
190
 
191
+ #: ../ure-options.php:277
192
  msgid "Save Changes"
193
  msgstr "Сохранить изменения"
194
 
195
+ #: ../ure-options.php:278
196
  msgid "Cancel"
197
  msgstr "Отмена"
198
 
199
+ #: ../ure-options.php:278
200
  msgid "Cancel not saved changes"
201
  msgstr "Отказ от сохранения изменений"
202
 
203
+ #: ../ure-options.php:279
204
  msgid "Reset"
205
  msgstr "Сброс"
206
 
207
+ #: ../ure-options.php:285
208
+ msgid "Add New Role"
209
+ msgstr "Добавить новую Роль"
210
+
211
+ #: ../ure-options.php:290
212
+ msgid "Add"
213
+ msgstr "Добавить"
214
+
215
+ #: ../ure-options.php:290
216
+ msgid "Add New User Role"
217
+ msgstr "Добавить новую Роль пользователя"
218
+
219
+ #: ../ure-options.php:300
220
+ msgid "Delete"
221
+ msgstr "Удалить"
222
+
223
+ #: ../ure-options.php:300
224
+ msgid "Delete User Role"
225
+ msgstr "Удалить Роль пользователя"
226
+
227
+ #: ../ure-options.php:305
228
+ msgid "Default Role for New User"
229
+ msgstr "Роль по-умолчанию"
230
+
231
+ #: ../ure-options.php:310
232
+ msgid "Change"
233
+ msgstr "Изменить"
234
+
235
+ #: ../ure-options.php:310
236
+ msgid "Set as Default User Role"
237
+ msgstr "Установить как роль по-умолчанию"
238
 
239
  #: ../user-role-editor.php:38
240
  msgid "User Role Editor requires WordPress 2.8 or newer."
248
  msgid "User Role Editor"
249
  msgstr "Редактор ролей пользователей"
250
 
251
+ #: ../user-role-editor.php:158
252
  msgid "Settings"
253
  msgstr "Установки"
254
 
255
+ #~ msgid "Return to default WordPress user role capabilities"
256
+ #~ msgstr "Вернуться к исходному состоянию ролей WordPress"
257
+
258
+ #~ msgid "Role Name must be just a single word without special characters!"
259
+ #~ msgstr "Наименование роли - одно слово без специальных символов! "
260
+
261
  #~ msgid "action"
262
  #~ msgstr "операции"
263
 
695
  #~ msgid "Unknown Post!"
696
  #~ msgstr "Неизвестная статья!"
697
 
 
 
 
698
  #~ msgid "Submit"
699
  #~ msgstr "Отправить"
700
 
lang/ure.mo CHANGED
Binary file
lang/ure.pot CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: User Role Editor 1.1.\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2010-03-28 21:37+0600\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Vladimir <vladimir@shinephp.com>\n"
8
  "Language-Team: ShinePHP.com <vladimir@shinephp.com>\n"
@@ -16,6 +16,57 @@ msgstr ""
16
  "X-Poedit-Basepath: .\n"
17
  "X-Poedit-SearchPath-0: ..\n"
18
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  #: ../ure-options.php:15
20
  msgid "Editor"
21
  msgstr ""
@@ -32,114 +83,160 @@ msgstr ""
32
  msgid "Subscriber"
33
  msgstr ""
34
 
35
- #: ../ure-options.php:48
36
- msgid "Roles capabilities are restored from the backup data"
37
- msgstr ""
38
-
39
- #: ../ure-options.php:53
40
- msgid "No backup data. It is created automatically before the first role data update."
41
- msgstr ""
42
-
43
- #: ../ure-options.php:128
44
  msgid "Backup record is created for the current role capabilities"
45
  msgstr ""
46
 
47
- #: ../ure-options.php:145
48
  msgid "Role"
49
  msgstr ""
50
 
51
- #: ../ure-options.php:145
52
  msgid "is updated successfully"
53
  msgstr ""
54
 
55
- #: ../ure-options.php:179
56
  msgid "About this Plugin:"
57
  msgstr ""
58
 
59
- #: ../ure-options.php:180
60
  msgid "Author's website"
61
  msgstr ""
62
 
63
- #: ../ure-options.php:181
64
  msgid "Plugin webpage"
65
  msgstr ""
66
 
67
- #: ../ure-options.php:182
68
- #: ../user-role-editor.php:103
69
  msgid "Changelog"
70
  msgstr ""
71
 
72
- #: ../ure-options.php:183
73
  msgid "FAQ"
74
  msgstr ""
75
 
76
- #: ../ure-options.php:184
77
  msgid "Donate"
78
  msgstr ""
79
 
80
- #: ../ure-options.php:186
81
  msgid "Greetings:"
82
  msgstr ""
83
 
84
- #: ../ure-options.php:187
85
  msgid "It's me, the author"
86
  msgstr ""
87
 
88
- #: ../ure-options.php:188
89
  msgid "For the help with French translation"
90
  msgstr ""
91
 
92
- #: ../ure-options.php:189
93
  msgid "For the help with German translation"
94
  msgstr ""
95
 
96
- #: ../ure-options.php:190
97
  msgid "For the help with Spanish translation"
98
  msgstr ""
99
 
100
- #: ../ure-options.php:191
 
 
 
 
101
  msgid "Do you wish to see your name with link to your site here? You are welcome! Your help with translation and new ideas are very appreciated."
102
  msgstr ""
103
 
104
- #: ../ure-options.php:202
105
- msgid ": Please confirm to continue"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  msgstr ""
107
 
108
- #: ../ure-options.php:218
109
  #, php-format
110
  msgid "Role \"%s\" update: please confirm to continue"
111
  msgstr ""
112
 
113
- #: ../ure-options.php:226
114
  msgid "Select Role and change its capabilities list"
115
  msgstr ""
116
 
117
- #: ../ure-options.php:230
118
  msgid "Select Role:"
119
  msgstr ""
120
 
121
- #: ../ure-options.php:260
122
  msgid "Update"
123
  msgstr ""
124
 
125
- #: ../ure-options.php:260
126
  msgid "Save Changes"
127
  msgstr ""
128
 
129
- #: ../ure-options.php:261
130
  msgid "Cancel"
131
  msgstr ""
132
 
133
- #: ../ure-options.php:261
134
  msgid "Cancel not saved changes"
135
  msgstr ""
136
 
137
- #: ../ure-options.php:262
138
  msgid "Reset"
139
  msgstr ""
140
 
141
- #: ../ure-options.php:262
142
- msgid "Return to default WordPress user role capabilities"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
  msgstr ""
144
 
145
  #: ../user-role-editor.php:38
@@ -154,7 +251,7 @@ msgstr ""
154
  msgid "User Role Editor"
155
  msgstr ""
156
 
157
- #: ../user-role-editor.php:93
158
  msgid "Settings"
159
  msgstr ""
160
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: User Role Editor 2.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-04-04 10:20+0600\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Vladimir <vladimir@shinephp.com>\n"
8
  "Language-Team: ShinePHP.com <vladimir@shinephp.com>\n"
16
  "X-Poedit-Basepath: .\n"
17
  "X-Poedit-SearchPath-0: ..\n"
18
 
19
+ #: ../ure-lib.php:51
20
+ msgid "Error is occur. Please check the log file."
21
+ msgstr ""
22
+
23
+ #: ../ure-lib.php:107
24
+ msgid "Database operation error. Check log file."
25
+ msgstr ""
26
+
27
+ #: ../ure-lib.php:129
28
+ msgid "Roles capabilities are restored from the backup data"
29
+ msgstr ""
30
+
31
+ #: ../ure-lib.php:131
32
+ msgid "No backup data. It is created automatically before the first role data update."
33
+ msgstr ""
34
+
35
+ #: ../ure-lib.php:172
36
+ msgid "Error: Role name must contain latin characters and digits only!"
37
+ msgstr ""
38
+
39
+ #: ../ure-lib.php:180
40
+ msgid "Roles list reading error is encountered"
41
+ msgstr ""
42
+
43
+ #: ../ure-lib.php:186
44
+ msgid "Error is encountered during new role create operation"
45
+ msgstr ""
46
+
47
+ #: ../ure-lib.php:188
48
+ #, php-format
49
+ msgid "Role %s is created successfully"
50
+ msgstr ""
51
+
52
+ #: ../ure-lib.php:272
53
+ msgid "Error encountered during role delete operation"
54
+ msgstr ""
55
+
56
+ #: ../ure-lib.php:274
57
+ #, php-format
58
+ msgid "Role %s is deleted successfully"
59
+ msgstr ""
60
+
61
+ #: ../ure-lib.php:292
62
+ msgid "Error encountered during default role change operation"
63
+ msgstr ""
64
+
65
+ #: ../ure-lib.php:298
66
+ #, php-format
67
+ msgid "Default role for new users is set to %s successfully"
68
+ msgstr ""
69
+
70
  #: ../ure-options.php:15
71
  msgid "Editor"
72
  msgstr ""
83
  msgid "Subscriber"
84
  msgstr ""
85
 
86
+ #: ../ure-options.php:112
 
 
 
 
 
 
 
 
87
  msgid "Backup record is created for the current role capabilities"
88
  msgstr ""
89
 
90
+ #: ../ure-options.php:121
91
  msgid "Role"
92
  msgstr ""
93
 
94
+ #: ../ure-options.php:121
95
  msgid "is updated successfully"
96
  msgstr ""
97
 
98
+ #: ../ure-options.php:165
99
  msgid "About this Plugin:"
100
  msgstr ""
101
 
102
+ #: ../ure-options.php:166
103
  msgid "Author's website"
104
  msgstr ""
105
 
106
+ #: ../ure-options.php:167
107
  msgid "Plugin webpage"
108
  msgstr ""
109
 
110
+ #: ../ure-options.php:168
111
+ #: ../user-role-editor.php:168
112
  msgid "Changelog"
113
  msgstr ""
114
 
115
+ #: ../ure-options.php:169
116
  msgid "FAQ"
117
  msgstr ""
118
 
119
+ #: ../ure-options.php:170
120
  msgid "Donate"
121
  msgstr ""
122
 
123
+ #: ../ure-options.php:172
124
  msgid "Greetings:"
125
  msgstr ""
126
 
127
+ #: ../ure-options.php:173
128
  msgid "It's me, the author"
129
  msgstr ""
130
 
131
+ #: ../ure-options.php:174
132
  msgid "For the help with French translation"
133
  msgstr ""
134
 
135
+ #: ../ure-options.php:175
136
  msgid "For the help with German translation"
137
  msgstr ""
138
 
139
+ #: ../ure-options.php:176
140
  msgid "For the help with Spanish translation"
141
  msgstr ""
142
 
143
+ #: ../ure-options.php:177
144
+ msgid "For the code to hide administrator role"
145
+ msgstr ""
146
+
147
+ #: ../ure-options.php:178
148
  msgid "Do you wish to see your name with link to your site here? You are welcome! Your help with translation and new ideas are very appreciated."
149
  msgstr ""
150
 
151
+ #: ../ure-options.php:194
152
+ msgid "Role Name can not be empty!"
153
+ msgstr ""
154
+
155
+ #: ../ure-options.php:198
156
+ msgid "Role Name must contain latin characters and digits only!"
157
+ msgstr ""
158
+
159
+ #: ../ure-options.php:203
160
+ #: ../ure-options.php:295
161
+ msgid "Delete Role"
162
+ msgstr ""
163
+
164
+ #: ../ure-options.php:205
165
+ msgid "Change Default Role"
166
+ msgstr ""
167
+
168
+ #: ../ure-options.php:207
169
+ #: ../ure-options.php:279
170
+ msgid "Restore Roles from backup copy"
171
+ msgstr ""
172
+
173
+ #: ../ure-options.php:209
174
+ msgid "Please confirm to continue"
175
  msgstr ""
176
 
177
+ #: ../ure-options.php:234
178
  #, php-format
179
  msgid "Role \"%s\" update: please confirm to continue"
180
  msgstr ""
181
 
182
+ #: ../ure-options.php:242
183
  msgid "Select Role and change its capabilities list"
184
  msgstr ""
185
 
186
+ #: ../ure-options.php:246
187
  msgid "Select Role:"
188
  msgstr ""
189
 
190
+ #: ../ure-options.php:277
191
  msgid "Update"
192
  msgstr ""
193
 
194
+ #: ../ure-options.php:277
195
  msgid "Save Changes"
196
  msgstr ""
197
 
198
+ #: ../ure-options.php:278
199
  msgid "Cancel"
200
  msgstr ""
201
 
202
+ #: ../ure-options.php:278
203
  msgid "Cancel not saved changes"
204
  msgstr ""
205
 
206
+ #: ../ure-options.php:279
207
  msgid "Reset"
208
  msgstr ""
209
 
210
+ #: ../ure-options.php:285
211
+ msgid "Add New Role"
212
+ msgstr ""
213
+
214
+ #: ../ure-options.php:290
215
+ msgid "Add"
216
+ msgstr ""
217
+
218
+ #: ../ure-options.php:290
219
+ msgid "Add New User Role"
220
+ msgstr ""
221
+
222
+ #: ../ure-options.php:300
223
+ msgid "Delete"
224
+ msgstr ""
225
+
226
+ #: ../ure-options.php:300
227
+ msgid "Delete User Role"
228
+ msgstr ""
229
+
230
+ #: ../ure-options.php:305
231
+ msgid "Default Role for New User"
232
+ msgstr ""
233
+
234
+ #: ../ure-options.php:310
235
+ msgid "Change"
236
+ msgstr ""
237
+
238
+ #: ../ure-options.php:310
239
+ msgid "Set as Default User Role"
240
  msgstr ""
241
 
242
  #: ../user-role-editor.php:38
251
  msgid "User Role Editor"
252
  msgstr ""
253
 
254
+ #: ../user-role-editor.php:158
255
  msgid "Settings"
256
  msgstr ""
257
 
readme.txt CHANGED
@@ -3,15 +3,17 @@ Contributors: ShinePHP
3
  Donate link: http://www.shinephp.com/donate/
4
  Tags: user, role, editor, security, access, permission, capability
5
  Requires at least: 2.8.
6
- Tested up to: 2.9.2
7
- Stable tag: 1.2
8
 
9
  User Role Editor WordPress plugin makes the role capabilities changing easy. You can change any standard WordPress user role (except administrator) with a few clicks.
10
 
11
  == Description ==
12
 
13
  User Role Editor WordPress plugin makes the role capabilities changing easy. You can change any standard WordPress user role (except administrator) with a few clicks.
14
- Just turn on check boxes of capabilities you wish to add to the selected role and click "Update" button to save your changes. That's done. In case you made some unneccessary change you always have the "Reset" button to return to the default state of WordPress user roles.
 
 
15
  To read more about 'User Role Editor' visit this link http://www.shinephp.com/user-role-editor-wordpress-plugin/
16
 
17
  == Installation ==
@@ -24,19 +26,25 @@ Installation procedure:
24
  4. Go to the "Settings"-"User Role Editor" menu item and change your WordPress standard roles capabilities according to your needs.
25
 
26
  == Frequently Asked Questions ==
27
- - coming soon with your help
 
 
 
 
 
28
 
29
  == Screenshots ==
30
  1. screenshot-1.png User Role Editor main form
31
 
32
  == Translations ==
33
- * German: [Peter](http://www.red-socks-reinbek.de)
34
  * French: [Whiler](http://blogs.wittwer.fr/whiler/)
 
35
  * Russian: [ShinePHP](http://shinephp.com)
36
  * Spanish: Dario
37
 
38
  Dear plugin User,
39
  if you wish to help me with this plugin translation I very appreciate it. Please send your language .po and .mo files to vladimir[at-sign]shinephp.com email. Do not forget include you site link in order I can show it with greetings for the translation help at shinephp.com, plugin settings page and in this readme.txt file.
 
40
 
41
  == Special Thanks to ==
42
  * [Whiler](http://blogs.wittwer.fr/whiler/) for the help with French translation, ideas, source code contributions.
@@ -46,17 +54,27 @@ if you wish to help me with this plugin translation I very appreciate it. Please
46
  You are welcome! Help me with plugin translation, share with me new ideas about it further development and link to your site will appear here.
47
 
48
  == Changelog ==
49
- = 1.2 = 28.03.2010
 
 
 
 
 
 
 
 
50
  * User Role Editor plugin menu item is moved to the Users menu
51
  * Roles in the dropdown list are translated
52
  * French translation is added
53
 
54
- = 1.1 = 24.03.2010
 
55
  * Critical bug is fixed. If you click 'Reset' button before any changes to the role data saved (that is click Update button) at least one time, you met with all roles data lost problem. Backup data created automatically before the 1st role data update. If no update - no backup. Special checking for that was added.
56
  * German translation is added.
57
  * Spanish translation is added.
58
 
59
- = 1.0 = 22.03.2010
 
60
  * 1st release.
61
 
62
  == Additional Documentation ==
3
  Donate link: http://www.shinephp.com/donate/
4
  Tags: user, role, editor, security, access, permission, capability
5
  Requires at least: 2.8.
6
+ Tested up to: 3.0
7
+ Stable tag: 2.0
8
 
9
  User Role Editor WordPress plugin makes the role capabilities changing easy. You can change any standard WordPress user role (except administrator) with a few clicks.
10
 
11
  == Description ==
12
 
13
  User Role Editor WordPress plugin makes the role capabilities changing easy. You can change any standard WordPress user role (except administrator) with a few clicks.
14
+ Just turn on check boxes of capabilities you wish to add to the selected role and click "Update" button to save your changes. That's done. In case you made some unneccessary change you always have the "Reset" button to restore roles state from the automatically made backup copy.
15
+ Add new roles and customize its capabilities according to your needs. Unnecessary self-made role can be deleted if there are no users whome such role is assigned.
16
+ Role assigned every new created user by default can be changed too.
17
  To read more about 'User Role Editor' visit this link http://www.shinephp.com/user-role-editor-wordpress-plugin/
18
 
19
  == Installation ==
26
  4. Go to the "Settings"-"User Role Editor" menu item and change your WordPress standard roles capabilities according to your needs.
27
 
28
  == Frequently Asked Questions ==
29
+ - Does it work with WordPress 3.0?
30
+ Yes it does. I tested it with WordPress 3.0 Beta 1.
31
+ - Does it work with WordPress MU?
32
+ Yes, it works with WordPress MU. I tested it with WPMU version 2.9.2.
33
+
34
+
35
 
36
  == Screenshots ==
37
  1. screenshot-1.png User Role Editor main form
38
 
39
  == Translations ==
 
40
  * French: [Whiler](http://blogs.wittwer.fr/whiler/)
41
+ * German: [Peter](http://www.red-socks-reinbek.de)
42
  * Russian: [ShinePHP](http://shinephp.com)
43
  * Spanish: Dario
44
 
45
  Dear plugin User,
46
  if you wish to help me with this plugin translation I very appreciate it. Please send your language .po and .mo files to vladimir[at-sign]shinephp.com email. Do not forget include you site link in order I can show it with greetings for the translation help at shinephp.com, plugin settings page and in this readme.txt file.
47
+ For version 2.0 I used online translators for some phrases in German, French and Spanish. If you have better translation, send it to me, please. You are welcome!
48
 
49
  == Special Thanks to ==
50
  * [Whiler](http://blogs.wittwer.fr/whiler/) for the help with French translation, ideas, source code contributions.
54
  You are welcome! Help me with plugin translation, share with me new ideas about it further development and link to your site will appear here.
55
 
56
  == Changelog ==
57
+ = 2.0 =
58
+ * 04.04.2010
59
+ * Create New Role feature was added
60
+ * Delete self-made not used role feature was added. You can not delete any WordPress standard role.
61
+ * Change default role for new user feature was added
62
+ * Administator role and users with Administrator role permision were hidden from "Users" and "Edit User" page. This is done in case of delegation of add_user, edit_user or delete_user capabilities to some role.
63
+
64
+ = 1.2 =
65
+ * 28.03.2010
66
  * User Role Editor plugin menu item is moved to the Users menu
67
  * Roles in the dropdown list are translated
68
  * French translation is added
69
 
70
+ = 1.1 =
71
+ * 24.03.2010
72
  * Critical bug is fixed. If you click 'Reset' button before any changes to the role data saved (that is click Update button) at least one time, you met with all roles data lost problem. Backup data created automatically before the 1st role data update. If no update - no backup. Special checking for that was added.
73
  * German translation is added.
74
  * Spanish translation is added.
75
 
76
+ = 1.0 =
77
+ * 22.03.2010
78
  * 1st release.
79
 
80
  == Additional Documentation ==
screenshot-1.png CHANGED
Binary file
ure-lib.php CHANGED
@@ -48,7 +48,7 @@ function ure_logEvent($message, $showMessage = false) {
48
  fclose($fh);
49
 
50
  if ($showMessage) {
51
- ure_showMessage('Error is occur. Please check the log file.');
52
  }
53
  }
54
  // end of ure_logEvent()
@@ -66,12 +66,246 @@ function ure_optionSelected($value, $etalon) {
66
 
67
  function ure_showMessage($message) {
68
 
69
- if ($message) {
70
- echo '<div class="updated" style="margin:0;">'.$message.'</div><br style="clear: both;"/>';
71
- }
 
 
 
 
 
72
 
73
  }
74
  // end of ure_showMessage()
75
 
76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  ?>
48
  fclose($fh);
49
 
50
  if ($showMessage) {
51
+ ure_showMessage('Error! '.__('Error is occur. Please check the log file.', 'ure'));
52
  }
53
  }
54
  // end of ure_logEvent()
66
 
67
  function ure_showMessage($message) {
68
 
69
+ if ($message) {
70
+ if (strpos(strtolower($message), 'error')===false) {
71
+ $class = 'updated fade';
72
+ } else {
73
+ $class = 'error';
74
+ }
75
+ echo '<div class="'.$class.'" style="margin:0;">'.$message.'</div><br style="clear: both;"/>';
76
+ }
77
 
78
  }
79
  // end of ure_showMessage()
80
 
81
 
82
+ function ure_getUserRoles() {
83
+ global $wpdb, $ure_OptionsTable;
84
+
85
+ $option_name = $wpdb->prefix.'user_roles';
86
+ $getRolesQuery = "select option_id, option_value
87
+ from $ure_OptionsTable
88
+ where option_name='$option_name'
89
+ limit 0, 1";
90
+ $record = $wpdb->get_results($getRolesQuery);
91
+ if ($wpdb->last_error) {
92
+ ure_logEvent($wpdb->last_error);
93
+ return;
94
+ }
95
+ $roles = unserialize($record[0]->option_value);
96
+
97
+ return $roles;
98
+ }
99
+ // end of getUserRoles()
100
+
101
+
102
+ // restores User Roles from the backup record
103
+ function restoreUserRoles() {
104
+
105
+ global $wpdb, $ure_OptionsTable;
106
+
107
+ $errorMessage = 'Error! '.__('Database operation error. Check log file.', 'ure');
108
+ $option_name = $wpdb->prefix.'user_roles';
109
+ $backup_option_name = $wpdb->prefix.'backup_user_roles';
110
+ $query = "select option_value
111
+ from $ure_OptionsTable
112
+ where option_name='$backup_option_name'
113
+ limit 0, 1";
114
+ $option_value = $wpdb->get_var($query);
115
+ if ($wpdb->last_error) {
116
+ ure_logEvent($wpdb->last_error, true);
117
+ return $errorMessage;
118
+ }
119
+ if ($option_value) {
120
+ $query = "update $ure_OptionsTable
121
+ set option_value='$option_value'
122
+ where option_name='$option_name'
123
+ limit 1";
124
+ $record = $wpdb->query($query);
125
+ if ($wpdb->last_error) {
126
+ ure_logEvent($wpdb->last_error, true);
127
+ return $errorMessage;
128
+ }
129
+ $mess = __('Roles capabilities are restored from the backup data', 'ure');
130
+ } else {
131
+ $mess = __('No backup data. It is created automatically before the first role data update.', 'ure');
132
+ }
133
+ if (isset($_REQUEST['user_role'])) {
134
+ unset($_REQUEST['user_role']);
135
+ }
136
+
137
+ return $mess;
138
+ }
139
+ // end of restorUserRoles()
140
+
141
+
142
+ // Save Roles to database
143
+ function ure_saveRolesToDb($roles) {
144
+ global $wpdb, $ure_OptionsTable;
145
+
146
+ $option_name = $wpdb->prefix.'user_roles';
147
+ $serialized_roles = serialize($roles);
148
+ $query = "update $ure_OptionsTable
149
+ set option_value='$serialized_roles'
150
+ where option_name='$option_name'
151
+ limit 1";
152
+ $record = $wpdb->query($query);
153
+ if ($wpdb->last_error) {
154
+ ure_logEvent($wpdb->last_error, true);
155
+ return false;
156
+ }
157
+
158
+ return true;
159
+ }
160
+ // end of saveRolesToDb()
161
+
162
+
163
+ // process new role create request
164
+ function ure_newRoleCreate(&$currentRole) {
165
+
166
+ $mess = '';
167
+ $currentRole = '';
168
+ if (isset($_GET['user_role']) && $_GET['user_role']) {
169
+ $user_role = utf8_decode(urldecode($_GET['user_role']));
170
+ // sanitize user input for security
171
+ if (!preg_match('/^[A-Za-z_][A-Za-z0-9_]*/', $user_role)) {
172
+ return 'Error! '.__('Error: Role name must contain latin characters and digits only!', 'ure');;
173
+ }
174
+
175
+ if ($user_role) {
176
+ $user_role = esc_html($user_role);
177
+ $user_role = mysql_real_escape_string($user_role);
178
+ $roles = ure_getUserRoles();
179
+ if (!$roles) {
180
+ return 'Error! '.__('Roles list reading error is encountered', 'ure');;
181
+ }
182
+ // add new role to the roles array
183
+ $currentRole = strtolower($user_role);
184
+ $result = add_role($currentRole, $user_role, array('read'=>1, 'level_0'=>1));
185
+ if (!isset($result) || !$result) {
186
+ $mess = 'Error! '.__('Error is encountered during new role create operation', 'ure');
187
+ } else {
188
+ $mess = sprintf(__('Role %s is created successfully', 'ure'), $user_role);
189
+ }
190
+ }
191
+ }
192
+ return $mess;
193
+ }
194
+ // end of newRoleCreate()
195
+
196
+
197
+ // define roles which we could delete, e.g self-created and not used with any blog user
198
+ function getRolesCanDelete($roles) {
199
+ global $wpdb;
200
+
201
+ $tableName = $wpdb->prefix.'usermeta';
202
+ $metaKey = $wpdb->prefix.'capabilities';
203
+ $defaultRole = get_option('default_role');
204
+ $standardRoles = array('administrator', 'editor', 'author', 'contributor', 'subscriber');
205
+ $rolesCanDelete = array();
206
+ foreach ($roles as $key=>$role) {
207
+ $canDelete = true;
208
+ // check if it is default role for new users
209
+ if ($key==$defaultRole) {
210
+ $canDelete = false;
211
+ continue;
212
+ }
213
+ // check if it is standard role
214
+ foreach ($standardRoles as $standardRole) {
215
+ if ($key==$standardRole) {
216
+ $canDelete = false;
217
+ break;
218
+ }
219
+ }
220
+ if (!$canDelete) {
221
+ continue;
222
+ }
223
+ // check if user with such role exists
224
+ $query = "SELECT meta_value
225
+ FROM $tableName
226
+ WHERE meta_key='$metaKey' AND meta_value like '%$key%'";
227
+ $rolesUsed = $wpdb->get_results($query);
228
+ if ($rolesUsed && count($rolesUsed>0)) {
229
+ foreach ($rolesUsed as $roleUsed) {
230
+ $roleName = unserialize($roleUsed->meta_value);
231
+ foreach ($roleName as $key1=>$value1) {
232
+ if ($key==$key1) {
233
+ $canDelete = false;
234
+ break;
235
+ }
236
+ }
237
+ if (!$canDelete) {
238
+ break;
239
+ }
240
+ }
241
+ }
242
+ if ($canDelete) {
243
+ $rolesCanDelete[$key] = $role['name'];
244
+ }
245
+ }
246
+
247
+ return $rolesCanDelete;
248
+ }
249
+ // end of getRolesCanDelete()
250
+
251
+
252
+ function ure_deleteRole() {
253
+ global $wp_roles;
254
+
255
+ $mess = '';
256
+ if (isset($_GET['user_role']) && $_GET['user_role']) {
257
+ $role = $_GET['user_role'];
258
+ //$result = remove_role($_GET['user_role']);
259
+ // use this modified code from remove_role() directly as remove_role() returns nothing to check
260
+ if (!isset($wp_roles)) {
261
+ $wp_roles = new WP_Roles();
262
+ }
263
+ if (isset($wp_roles->roles[$role])) {
264
+ unset($wp_roles->role_objects[$role]);
265
+ unset($wp_roles->role_names[$role]);
266
+ unset($wp_roles->roles[$role]);
267
+ $result = update_option($wp_roles->role_key, $wp_roles->roles);
268
+ } else {
269
+ $result = false;
270
+ }
271
+ if (!isset($result) || !$result) {
272
+ $mess = 'Error! '.__('Error encountered during role delete operation', 'ure');
273
+ } else {
274
+ $mess = sprintf(__('Role %s is deleted successfully', 'ure'), $role);
275
+ }
276
+ unset($_REQUEST['user_role']);
277
+ }
278
+
279
+ return $mess;
280
+ }
281
+ // end of ure_deleteRole()
282
+
283
+
284
+ function ure_changeDefaultRole() {
285
+ global $wp_roles;
286
+
287
+ $mess = '';
288
+ if (!isset($wp_roles)) {
289
+ $wp_roles = new WP_Roles();
290
+ }
291
+ if (isset($_GET['user_role']) && $_GET['user_role']) {
292
+ $errorMessage = 'Error! '.__('Error encountered during default role change operation', 'ure');
293
+ if (isset($wp_roles->role_objects[$_GET['user_role']])) {
294
+ $result = update_option('default_role', $_GET['user_role']);
295
+ if (!isset($result) || !$result) {
296
+ $mess = $errorMessage;
297
+ } else {
298
+ $mess = sprintf(__('Default role for new users is set to %s successfully', 'ure'), $wp_roles->role_names[$_GET['user_role']]);
299
+ }
300
+ } else {
301
+ $mess = $errorMessage;
302
+ }
303
+ unset($_REQUEST['user_role']);
304
+ }
305
+
306
+ return $mess;
307
+ }
308
+ // end of ure_changeDefaultRole()
309
+
310
+
311
  ?>
ure-options.php CHANGED
@@ -18,74 +18,58 @@ if (false) {
18
  __('Subscriber', 'ure');
19
  }
20
 
 
21
  $option_name = $wpdb->prefix.'user_roles';
22
 
23
- // restore roles capabilities from the backup record
24
- if (isset($_GET['action']) && $_GET['action']=='reset') {
25
- $backup_option_name = $wpdb->prefix.'backup_user_roles';
26
- $query = "select option_value
27
- from $ure_OptionsTable
28
- where option_name='$backup_option_name'
29
- limit 0, 1";
30
- $option_value = $wpdb->get_var($query);
31
- if ($wpdb->last_error) {
32
- ure_logEvent($wpdb->last_error, true);
33
- return;
34
- }
35
- if ($option_value) {
36
- $query = "update $ure_OptionsTable
37
- set option_value='$option_value'
38
- where option_name='$option_name'
39
- limit 1";
40
- $record = $wpdb->query($query);
41
- if ($wpdb->last_error) {
42
- ure_logEvent($wpdb->last_error, true);
43
- return;
44
- }
45
- if ($mess) {
46
- $mess .= '<br/';
47
- }
48
- $mess = __('Roles capabilities are restored from the backup data', 'ure');
49
- } else {
50
- if ($mess) {
51
- $mess .= '<br/';
52
- }
53
- $mess = __('No backup data. It is created automatically before the first role data update.', 'ure');
54
- }
55
- if (isset($_REQUEST['user_role'])) {
56
- $_REQUEST['user_role'] = null;
57
  }
58
  }
59
 
60
- $query = "select option_id, option_value
61
- from $ure_OptionsTable
62
- where option_name='$option_name'
63
- limit 0, 1";
64
- $record = $wpdb->get_results($query);
65
- if ($wpdb->last_error) {
66
- ure_logEvent($wpdb->last_error);
67
- return;
68
  }
69
- $roles = unserialize($record[0]->option_value);
70
 
71
  $rolesId = array();
72
  foreach ($roles as $key=>$value) {
73
  $rolesId[] = $key;
74
  }
75
 
76
- $currentRole = $rolesId[count($rolesId) - 1];
77
- if (isset($_REQUEST['user_role']) && $_REQUEST['user_role']) {
78
- $currentRole = $_REQUEST['user_role'];
 
 
79
  }
80
 
 
81
  $roleSelectHTML = '<select id="user_role" name="user_role" onchange="ure_Actions(\'role-change\', this.value);">';
82
  foreach ($roles as $key=>$value) {
83
- $selected = ure_optionSelected($key, $currentRole);
 
84
  if ($key!='administrator') {
85
- $roleSelectHTML .= '<option value="'.$key.'" '.$selected.'>'.__($value['name'], 'ure').'</option>';
 
86
  }
87
  }
88
  $roleSelectHTML .= '</select>';
 
89
 
90
  $fullCapabilities = array();
91
  $role = $roles['administrator'];
@@ -126,31 +110,33 @@ if (isset($_POST['action']) && $_POST['action']=='update' && isset($_POST['user_
126
  return;
127
  }
128
  $mess .= __('Backup record is created for the current role capabilities', 'ure');
129
- }
130
- // save role changes into the database
131
  $roles[$currentRole]['capabilities'] = $capabilityToSave;
132
- $serialized_roles = serialize($roles);
133
- $query = "update $ure_OptionsTable
134
- set option_value='$serialized_roles'
135
- where option_name='$option_name'
136
- limit 1";
137
- $record = $wpdb->query($query);
138
- if ($wpdb->last_error) {
139
- ure_logEvent($wpdb->last_error, true);
140
  return;
141
  }
142
  if ($mess) {
143
- $mess .= '<br/';
144
  }
145
  $mess = __('Role', 'ure').' <em>'.__($roles[$currentRole]['name'], 'ure').'</em> '.__('is updated successfully', 'ure');
146
  }
147
  }
148
 
 
 
 
 
 
 
 
 
 
 
149
 
150
  // options page display part
151
- function ure_displayBoxStart($title) {
152
  ?>
153
- <div class="postbox" style="float: left;">
154
  <h3 style="cursor:default;"><span><?php echo $title ?></span></h3>
155
  <div class="inside">
156
  <?php
@@ -188,6 +174,7 @@ ure_showMessage($mess);
188
  <a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL.'/images/whiler.png'; ?>)" target="_blank" title="<?php _e("For the help with French translation", 'ure'); ?>" href="http://blogs.wittwer.fr/whiler/">Whiler</a>
189
  <a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL.'/images/peter.png'; ?>)" target="_blank" title="<?php _e("For the help with German translation", 'ure'); ?>" href="http://www.red-socks-reinbek.de">Peter</a>
190
  <a class="ure_rsb_link" target="_blank" title="<?php _e("For the help with Spanish translation", 'ure'); ?>" href="#">Dario</a>
 
191
  <?php _e('Do you wish to see your name with link to your site here? You are welcome! Your help with translation and new ideas are very appreciated.', 'ure'); ?>
192
  <?php ure_displayBoxEnd(); ?>
193
  </div>
@@ -198,22 +185,51 @@ ure_showMessage($mess);
198
  function ure_Actions(action, value) {
199
  if (action=='cancel') {
200
  document.location = '<?php echo URE_WP_ADMIN_URL; ?>/users.php?page=user-role-editor.php';
201
- } else {
202
- if (action!='role-change' && !confirm(action +'<?php _e(': Please confirm to continue', 'ure'); ?>')) {
 
 
 
 
 
 
 
 
 
203
  return false;
204
  }
205
- if (action!='update') {
206
- $url = '<?php echo URE_WP_ADMIN_URL; ?>/users.php?page=user-role-editor.php&action='+ action;
207
- if (value!='') {
208
- $url = $url +'&user_role='+ value;
209
- }
210
- document.location = $url;
211
- } else {
212
- document.getElementById('ure-form').submit();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
213
  }
 
 
 
214
  }
 
215
  }
216
 
 
217
  function ure_onSubmit() {
218
  if (!confirm('<?php echo sprintf(__('Role "%s" update: please confirm to continue', 'ure'), __($roles[$currentRole]['name'], 'ure')); ?>')) {
219
  return false;
@@ -234,6 +250,7 @@ ure_showMessage($mess);
234
  <td style="vertical-align:top;">
235
  <?php
236
  $quant = count($fullCapabilities);
 
237
  $i = 0; $quantInCell = 0;
238
  while($i<$quant) {
239
  $checked = '';
@@ -245,7 +262,7 @@ ure_showMessage($mess);
245
  <input type="checkbox" name="<?php echo $fullCapabilities[$i]; ?>" id="<?php echo $fullCapabilities[$i]; ?>" value="<?php echo $fullCapabilities[$i]; ?>" <?php echo $checked; ?>/> <?php echo $fullCapabilities[$i]; ?><br/>
246
  <?php
247
  $i++; $quantInCell++;
248
- if ($quantInCell>=23) {
249
  $quantInCell = 0;
250
  echo '</td>
251
  <td style="vertical-align:top;">';
@@ -255,12 +272,47 @@ ure_showMessage($mess);
255
  </td>
256
  </tr>
257
  </table>
258
- <?php ure_displayBoxEnd();?>
259
  <div class="fli submit" style="padding-top: 0px;">
260
  <input type="submit" name="submit" value="<?php _e('Update', 'ure'); ?>" title="<?php _e('Save Changes', 'ure'); ?>" />
261
  <input type="button" name="cancel" value="<?php _e('Cancel', 'ure') ?>" title="<?php _e('Cancel not saved changes','ure');?>" onclick="ure_Actions('cancel');"/>
262
- <input type="button" name="default" value="<?php _e('Reset', 'ure') ?>" title="<?php _e('Return to default WordPress user role capabilities','ure');?>" onclick="ure_Actions('reset');"/>
263
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
264
  </div>
265
  </div>
266
  </div>
18
  __('Subscriber', 'ure');
19
  }
20
 
21
+
22
  $option_name = $wpdb->prefix.'user_roles';
23
 
24
+ if (isset($_GET['action'])) {
25
+ $action = $_GET['action'];
26
+ // restore roles capabilities from the backup record
27
+ if ($action=='reset') {
28
+ $mess = restoreUserRoles();
29
+ } else if ($action=='addnewrole') {
30
+ // process new role create request
31
+ $mess = ure_newRoleCreate($currentRole);
32
+ } else if ($action=='delete') {
33
+ $mess = ure_deleteRole();
34
+ } else if ($action=='default') {
35
+ $mess = ure_changeDefaultRole();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  }
37
  }
38
 
39
+ $defaultRole = get_option('default_role');
40
+
41
+ if (!isset($roles) || !$roles) {
42
+ // get roles data from database
43
+ $roles = ure_getUserRoles();
44
+ if (!$roles) {
45
+ return;
46
+ }
47
  }
 
48
 
49
  $rolesId = array();
50
  foreach ($roles as $key=>$value) {
51
  $rolesId[] = $key;
52
  }
53
 
54
+ if (!isset($currentRole) || !$currentRole) {
55
+ $currentRole = $rolesId[count($rolesId) - 1];
56
+ if (isset($_REQUEST['user_role']) && $_REQUEST['user_role']) {
57
+ $currentRole = $_REQUEST['user_role'];
58
+ }
59
  }
60
 
61
+ $roleDefaultHTML = '<select id="default_user_role" name="default_user_role" width="200" style="width: 200px">';
62
  $roleSelectHTML = '<select id="user_role" name="user_role" onchange="ure_Actions(\'role-change\', this.value);">';
63
  foreach ($roles as $key=>$value) {
64
+ $selected1 = ure_optionSelected($key, $currentRole);
65
+ $selected2 = ure_optionSelected($key, $defaultRole);
66
  if ($key!='administrator') {
67
+ $roleSelectHTML .= '<option value="'.$key.'" '.$selected1.'>'.__($value['name'], 'ure').'</option>';
68
+ $roleDefaultHTML .= '<option value="'.$key.'" '.$selected2.'>'.__($value['name'], 'ure').'</option>';
69
  }
70
  }
71
  $roleSelectHTML .= '</select>';
72
+ $roleDefaultHTML .= '</select>';
73
 
74
  $fullCapabilities = array();
75
  $role = $roles['administrator'];
110
  return;
111
  }
112
  $mess .= __('Backup record is created for the current role capabilities', 'ure');
113
+ }
 
114
  $roles[$currentRole]['capabilities'] = $capabilityToSave;
115
+ if (!ure_saveRolesToDb($roles)) {
 
 
 
 
 
 
 
116
  return;
117
  }
118
  if ($mess) {
119
+ $mess .= '<br/>';
120
  }
121
  $mess = __('Role', 'ure').' <em>'.__($roles[$currentRole]['name'], 'ure').'</em> '.__('is updated successfully', 'ure');
122
  }
123
  }
124
 
125
+ $rolesCanDelete = getRolesCanDelete($roles);
126
+ if ($rolesCanDelete && count($rolesCanDelete)>0) {
127
+ $roleDeleteHTML = '<select id="del_user_role" name="del_user_role" width="200" style="width: 200px">';
128
+ foreach ($rolesCanDelete as $key=>$value) {
129
+ $roleDeleteHTML .= '<option value="'.$key.'" '.$selected.'>'.__($value, 'ure').'</option>';
130
+ }
131
+ $roleDeleteHTML .= '</select>';
132
+ } else {
133
+ $roleDeleteHTML = '';
134
+ }
135
 
136
  // options page display part
137
+ function ure_displayBoxStart($title, $style='') {
138
  ?>
139
+ <div class="postbox" style="float: left; <?php echo $style; ?>">
140
  <h3 style="cursor:default;"><span><?php echo $title ?></span></h3>
141
  <div class="inside">
142
  <?php
174
  <a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL.'/images/whiler.png'; ?>)" target="_blank" title="<?php _e("For the help with French translation", 'ure'); ?>" href="http://blogs.wittwer.fr/whiler/">Whiler</a>
175
  <a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL.'/images/peter.png'; ?>)" target="_blank" title="<?php _e("For the help with German translation", 'ure'); ?>" href="http://www.red-socks-reinbek.de">Peter</a>
176
  <a class="ure_rsb_link" target="_blank" title="<?php _e("For the help with Spanish translation", 'ure'); ?>" href="#">Dario</a>
177
+ <a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL.'/images/fullthrottle.png'; ?>)" target="_blank" title="<?php _e("For the code to hide administrator role", 'ure'); ?>" href="http://fullthrottledevelopment.com/how-to-hide-the-adminstrator-on-the-wordpress-users-screen">FullThrottle</a>
178
  <?php _e('Do you wish to see your name with link to your site here? You are welcome! Your help with translation and new ideas are very appreciated.', 'ure'); ?>
179
  <?php ure_displayBoxEnd(); ?>
180
  </div>
185
  function ure_Actions(action, value) {
186
  if (action=='cancel') {
187
  document.location = '<?php echo URE_WP_ADMIN_URL; ?>/users.php?page=user-role-editor.php';
188
+ return;
189
+ }
190
+ if (action=='addnewrole') {
191
+ var el = document.getElementById('new_user_role');
192
+ value = el.value;
193
+ if (value=='') {
194
+ alert('<?php _e('Role Name can not be empty!','ure');?>');
195
+ return false;
196
+ }
197
+ if (!(/^[a-z$_][\w$]*$/i.test(value))) {
198
+ alert('<?php _e('Role Name must contain latin characters and digits only!','ure');?>');
199
  return false;
200
  }
201
+ } else if (action!='role-change') {
202
+ if (action=='delete') {
203
+ actionText = '<?php _e('Delete Role', 'ure'); ?>';
204
+ } else if (action=='default') {
205
+ actionText = '<?php _e('Change Default Role', 'ure'); ?>';
206
+ } else if (action=='reset') {
207
+ actionText = '<?php _e('Restore Roles from backup copy', 'ure'); ?>';
208
+ }
209
+ if (!confirm(actionText+': '+ "<?php _e('Please confirm to continue', 'ure'); ?>")) {
210
+ return false;
211
+ }
212
+ }
213
+ if (action!='update') {
214
+ url = '<?php echo URE_WP_ADMIN_URL; ?>/users.php?page=user-role-editor.php&action='+ action;
215
+ if (action=='delete') {
216
+ el = document.getElementById('del_user_role');
217
+ value = el.options[el.selectedIndex].value;
218
+ } else if (action=='default') {
219
+ el = document.getElementById('default_user_role');
220
+ value = el.options[el.selectedIndex].value;
221
+ }
222
+ if (value!='') {
223
+ url = url +'&user_role='+ escape(value);
224
  }
225
+ document.location = url;
226
+ } else {
227
+ document.getElementById('ure-form').submit();
228
  }
229
+
230
  }
231
 
232
+
233
  function ure_onSubmit() {
234
  if (!confirm('<?php echo sprintf(__('Role "%s" update: please confirm to continue', 'ure'), __($roles[$currentRole]['name'], 'ure')); ?>')) {
235
  return false;
250
  <td style="vertical-align:top;">
251
  <?php
252
  $quant = count($fullCapabilities);
253
+ $quantInColumn = (int) $quant/3;
254
  $i = 0; $quantInCell = 0;
255
  while($i<$quant) {
256
  $checked = '';
262
  <input type="checkbox" name="<?php echo $fullCapabilities[$i]; ?>" id="<?php echo $fullCapabilities[$i]; ?>" value="<?php echo $fullCapabilities[$i]; ?>" <?php echo $checked; ?>/> <?php echo $fullCapabilities[$i]; ?><br/>
263
  <?php
264
  $i++; $quantInCell++;
265
+ if ($quantInCell>=$quantInColumn) {
266
  $quantInCell = 0;
267
  echo '</td>
268
  <td style="vertical-align:top;">';
272
  </td>
273
  </tr>
274
  </table>
275
+ <hr/>
276
  <div class="fli submit" style="padding-top: 0px;">
277
  <input type="submit" name="submit" value="<?php _e('Update', 'ure'); ?>" title="<?php _e('Save Changes', 'ure'); ?>" />
278
  <input type="button" name="cancel" value="<?php _e('Cancel', 'ure') ?>" title="<?php _e('Cancel not saved changes','ure');?>" onclick="ure_Actions('cancel');"/>
279
+ <input type="button" name="default" value="<?php _e('Reset', 'ure') ?>" title="<?php _e('Restore Roles from backup copy','ure');?>" onclick="ure_Actions('reset');"/>
280
  </div>
281
+ <?php
282
+ ure_displayBoxEnd();
283
+ $boxStyle = 'width: 240px; min-width:240px;';
284
+ $marginLeft = 'margin-left: 10px; ';
285
+ ure_displayBoxStart(__('Add New Role', 'ure'), $boxStyle); ?>
286
+ <div style="margin-left: 5px; margin-right: 5px; width: 90%; text-align: center;">
287
+ <input type="text" name="new_user_role" id="new_user_role" size="25"/>
288
+ </div>
289
+ <div class="submit" style="margin-left: 0; margin-right: 0; margin-bottom: 0; padding: 0; width: 100%; text-align: center;">
290
+ <input type="button" name="addnewrole" value="<?php _e('Add', 'ure') ?>" title="<?php _e('Add New User Role','ure');?>" onclick="ure_Actions('addnewrole');" />
291
+ </div>
292
+ <?php
293
+ ure_displayBoxEnd();
294
+ if ($roleDeleteHTML) {
295
+ ure_displayBoxStart(__('Delete Role', 'ure'), $marginLeft.$boxStyle); ?>
296
+ <div style="margin-left: 5px; margin-right: 5px; width: 90%; text-align: center;">
297
+ <?php echo $roleDeleteHTML; ?>
298
+ </div>
299
+ <div class="submit" style="margin-left: 0; margin-right: 0; margin-bottom: 0; padding: 0; width: 100%; text-align: center;">
300
+ <input type="button" name="deleterole" value="<?php _e('Delete', 'ure') ?>" title="<?php _e('Delete User Role','ure');?>" onclick="ure_Actions('delete');" />
301
+ </div>
302
+ <?php
303
+ ure_displayBoxEnd();
304
+ }
305
+ ure_displayBoxStart(__('Default Role for New User', 'ure'), $marginLeft.$boxStyle); ?>
306
+ <div style="margin-left: 5px; margin-right: 5px; width: 90%; text-align: center;">
307
+ <?php echo $roleDefaultHTML; ?>
308
+ </div>
309
+ <div class="submit" style="margin-left: 0; margin-right: 0; margin-bottom: 0; padding: 0; width: 100%; text-align: center;">
310
+ <input type="button" name="default" value="<?php _e('Change', 'ure') ?>" title="<?php _e('Set as Default User Role','ure');?>" onclick="ure_Actions('default');" />
311
+ </div>
312
+ <?php
313
+ ure_displayBoxEnd();
314
+ ?>
315
+
316
  </div>
317
  </div>
318
  </div>
user-role-editor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: User Role Editor
4
  Plugin URI: http://www.shinephp.com/user-role-editor-wordpress-plugin/
5
  Description: It allows you to change any standard WordPress user roles (except administrator) capabilities list with a few clicks.
6
- Version: 1.2
7
  Author: Vladimir Garagulya
8
  Author URI: http://www.shinephp.com
9
  Text Domain: ure
@@ -79,11 +79,76 @@ function ure_install() {
79
  // end of ure_install()
80
 
81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  function ure_init() {
83
 
84
  if(function_exists('register_setting')) {
85
  register_setting('ure-options', 'ure_option');
86
  }
 
 
 
 
 
 
 
 
 
 
87
  }
88
  // end of ure_init()
89
 
3
  Plugin Name: User Role Editor
4
  Plugin URI: http://www.shinephp.com/user-role-editor-wordpress-plugin/
5
  Description: It allows you to change any standard WordPress user roles (except administrator) capabilities list with a few clicks.
6
+ Version: 2.0
7
  Author: Vladimir Garagulya
8
  Author URI: http://www.shinephp.com
9
  Text Domain: ure
79
  // end of ure_install()
80
 
81
 
82
+ function ure_excludeAdminRole($roles) {
83
+
84
+ if ( isset( $roles['administrator'] ) && !current_user_can('level_10') ){
85
+ unset( $roles['administrator'] );
86
+ }
87
+
88
+ return $roles;
89
+
90
+ }
91
+ // end of excludeAdminRole()
92
+
93
+
94
+ function ure_admin_jquery(){
95
+ global $pagenow;
96
+ if ( 'users.php' == $pagenow ){
97
+ wp_enqueue_script('jquery');
98
+ }
99
+ }
100
+ // end of ure_admin_jquery()
101
+
102
+
103
+ function ure_admin_user_hide(){
104
+ if (!current_user_can('level_10')) {
105
+ ?>
106
+ <script type='text/javascript' >
107
+ jQuery(document).ready(function(){
108
+ var admin_count;
109
+ var total_count;
110
+
111
+ // Grab Administrator Count
112
+ jQuery("#list-filter > .subsubsub > li > a:contains(Administrator)").each(function(){
113
+ admin_count = jQuery(this).children('.count').text();
114
+ admin_count = admin_count.substring(1, admin_count.length - 1);
115
+ });
116
+
117
+ // Remove Administrator Filter
118
+ jQuery("#list-filter > .subsubsub > li > a:contains(Administrator)").parent().remove();
119
+
120
+ // Update All Filter Count
121
+ jQuery("#list-filter > .subsubsub > li > a:contains(All)").each(function(){
122
+ total_count = jQuery(this).children('.count').text();
123
+ total_count = total_count.substring(1, total_count.length - 1) - admin_count;
124
+ jQuery(this).children('.count').text('('+total_count+')');
125
+ });
126
+
127
+ // Hide Administrator Table Rows
128
+ jQuery("#users > tr .administrator").parent().parent().remove();
129
+ });
130
+ </script>
131
+ <?php
132
+ }
133
+ }
134
+ // end of ure_admin_user_hide()
135
+
136
+
137
  function ure_init() {
138
 
139
  if(function_exists('register_setting')) {
140
  register_setting('ure-options', 'ure_option');
141
  }
142
+ // Exclude administrator role from edit list.
143
+ add_filter('editable_roles', 'ure_excludeAdminRole');
144
+ if (!current_user_can('level_10')) {
145
+ // Enqueue jQuery
146
+ add_action('admin_enqueue_scripts' , 'ure_admin_jquery' );
147
+ // Hide Administrator from list of users
148
+ add_action('admin_head' , 'ure_admin_user_hide');
149
+ }
150
+
151
+
152
  }
153
  // end of ure_init()
154