Version Description
- 01.05.2013
- Critical update: persistent cross-site scripting vulnerability is fixed.
- WordPress built-in constants, like WP_PLUGIN_URL are not used in order to provide compatibility with sites which use SSL. plugin_dir_url(), plugin_dir_path() functions are used to define paths to the plugin's files instead.
- "Greetings" section is removed from the plugin's main page. All that content is still available at plugin page
Download this release
Release Info
Developer | shinephp |
Plugin | User Role Editor |
Version | 3.12 |
Comparing to | |
See all releases |
Code changes from version 3.10 to 3.12
- images/alessandro.png +0 -0
- images/andreas.png +0 -0
- images/aryo.png +0 -0
- images/bartosz.png +0 -0
- images/blacksnail.png +0 -0
- images/branco.png +0 -0
- images/cartaca.png +0 -0
- images/christer.png +0 -0
- images/dario.png +0 -0
- images/fullthrottle.png +0 -0
- images/good-life.png +0 -0
- images/greetings.png +0 -0
- images/host1free.png +0 -0
- images/infomed.png +0 -0
- images/ivaldi.png +0 -0
- images/jackytsu.png +0 -0
- images/lauri.png +0 -0
- images/lorenzo.png +0 -0
- images/marsis.png +0 -0
- images/muhammed.png +0 -0
- images/outshine.png +0 -0
- images/parsa.png +0 -0
- images/peter.png +0 -0
- images/presse-et-multimedia.png +0 -0
- images/rafael.png +0 -0
- images/remi.png +0 -0
- images/sadri.png +0 -0
- images/sagive.png +0 -0
- images/tagsite.png +0 -0
- images/talksina.png +0 -0
- images/technologjp.png +0 -0
- images/tristano.png +0 -0
- images/venezialog.png +0 -0
- images/whiler.png +0 -0
- images/wpcouponshop.png +0 -0
- images/yaser.png +0 -0
- includes/ure-lib.php +76 -25
- includes/ure-options.php +15 -75
- includes/ure-user-edit.php +30 -7
- lang/ure-pt_BR.mo +0 -0
- lang/ure-pt_BR.po +421 -384
- readme.txt +20 -3
- user-role-editor.php +61 -20
images/alessandro.png
DELETED
Binary file
|
images/andreas.png
DELETED
Binary file
|
images/aryo.png
DELETED
Binary file
|
images/bartosz.png
DELETED
Binary file
|
images/blacksnail.png
DELETED
Binary file
|
images/branco.png
DELETED
Binary file
|
images/cartaca.png
DELETED
Binary file
|
images/christer.png
DELETED
Binary file
|
images/dario.png
DELETED
Binary file
|
images/fullthrottle.png
DELETED
Binary file
|
images/good-life.png
DELETED
Binary file
|
images/greetings.png
DELETED
Binary file
|
images/host1free.png
DELETED
Binary file
|
images/infomed.png
DELETED
Binary file
|
images/ivaldi.png
DELETED
Binary file
|
images/jackytsu.png
DELETED
Binary file
|
images/lauri.png
DELETED
Binary file
|
images/lorenzo.png
DELETED
Binary file
|
images/marsis.png
DELETED
Binary file
|
images/muhammed.png
DELETED
Binary file
|
images/outshine.png
DELETED
Binary file
|
images/parsa.png
DELETED
Binary file
|
images/peter.png
DELETED
Binary file
|
images/presse-et-multimedia.png
DELETED
Binary file
|
images/rafael.png
DELETED
Binary file
|
images/remi.png
DELETED
Binary file
|
images/sadri.png
DELETED
Binary file
|
images/sagive.png
DELETED
Binary file
|
images/tagsite.png
DELETED
Binary file
|
images/talksina.png
DELETED
Binary file
|
images/technologjp.png
DELETED
Binary file
|
images/tristano.png
DELETED
Binary file
|
images/venezialog.png
DELETED
Binary file
|
images/whiler.png
DELETED
Binary file
|
images/wpcouponshop.png
DELETED
Binary file
|
images/yaser.png
DELETED
Binary file
|
includes/ure-lib.php
CHANGED
@@ -120,18 +120,31 @@ function ure_showMessage($message) {
|
|
120 |
// end of ure_showMessage()
|
121 |
|
122 |
|
123 |
-
function ure_getUserRoles(
|
124 |
-
global $wp_roles;
|
125 |
|
126 |
if (!isset( $wp_roles ) ) {
|
127 |
$wp_roles = new WP_Roles();
|
128 |
}
|
129 |
|
130 |
-
if (
|
131 |
-
$ure_roles = bbp_filter_blog_editable_roles( $wp_roles->roles ); // exclude bbPress roles
|
132 |
-
$bbp_full_caps = bbp_get_caps_for_role( bbp_get_keymaster_role() );
|
133 |
-
//
|
134 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
} else {
|
136 |
$ure_roles = $wp_roles->roles;
|
137 |
}
|
@@ -351,7 +364,7 @@ function ure_saveRolesToDb() {
|
|
351 |
global $wpdb, $ure_roles, $ure_capabilitiesToSave, $ure_currentRole, $ure_currentRoleName;
|
352 |
|
353 |
if (!isset($ure_roles[$ure_currentRole])) {
|
354 |
-
|
355 |
}
|
356 |
$ure_roles[$ure_currentRole]['capabilities'] = $ure_capabilitiesToSave;
|
357 |
$option_name = $wpdb->prefix.'user_roles';
|
@@ -730,13 +743,33 @@ class ure_TableSorter {
|
|
730 |
|
731 |
|
732 |
function ure_updateUser($user) {
|
733 |
-
global $wp_roles, $ure_capabilitiesToSave;
|
734 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
735 |
// revoke all roles and capabilities from this user
|
736 |
-
$user->roles =
|
737 |
$user->remove_all_caps();
|
738 |
-
|
739 |
-
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
740 |
foreach( $_POST as $key=>$value ) {
|
741 |
$result = preg_match( '/^wp_role_(.+)/', $key, $match);
|
742 |
if ($result === 1 ) {
|
@@ -1071,7 +1104,7 @@ function ure_show_capabilities( $core=true, $for_role=true ) {
|
|
1071 |
|
1072 |
$onclick_for_admin = '';
|
1073 |
if (! ( is_multisite() && is_super_admin() ) ) { // do not limit SuperAdmin for multi-site
|
1074 |
-
if ('administrator' == $ure_currentRole) {
|
1075 |
$onclick_for_admin = 'onclick="turn_it_back(this)"';
|
1076 |
}
|
1077 |
}
|
@@ -1090,7 +1123,7 @@ function ure_show_capabilities( $core=true, $for_role=true ) {
|
|
1090 |
if ( !$capability['wp_core'] ) { // show WP built-in capabilities 1st
|
1091 |
continue;
|
1092 |
}
|
1093 |
-
} else {
|
1094 |
if ( $capability['wp_core'] ) { // show plugins and themes added capabilities
|
1095 |
continue;
|
1096 |
}
|
@@ -1144,10 +1177,10 @@ function ure_show_capabilities( $core=true, $for_role=true ) {
|
|
1144 |
|
1145 |
|
1146 |
/**
|
1147 |
-
* Returns list of user roles, except 1st one, and bbPress
|
1148 |
*
|
1149 |
* @param type $user WP_User from wp-includes/capabilities.php
|
1150 |
-
* @return
|
1151 |
*/
|
1152 |
function ure_other_user_roles($user) {
|
1153 |
|
@@ -1169,21 +1202,39 @@ function ure_other_user_roles($user) {
|
|
1169 |
if ( !empty( $bb_press_role ) && $bb_press_role===$value ) {
|
1170 |
// exclude bbPress assigned role
|
1171 |
continue;
|
1172 |
-
}
|
1173 |
-
|
1174 |
-
$roles[] = $wp_roles->roles[ $value ]['name'];
|
1175 |
}
|
1176 |
-
array_shift($roles); // exclude primary role which is
|
1177 |
|
1178 |
-
|
1179 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1180 |
} else {
|
1181 |
$output = '';
|
1182 |
}
|
1183 |
|
1184 |
return $output;
|
1185 |
-
|
1186 |
-
}
|
1187 |
-
// end of ure_other_user_roles()
|
1188 |
|
|
|
|
|
|
|
1189 |
?>
|
120 |
// end of ure_showMessage()
|
121 |
|
122 |
|
123 |
+
function ure_getUserRoles() {
|
124 |
+
global $wp_roles, $wpdb;
|
125 |
|
126 |
if (!isset( $wp_roles ) ) {
|
127 |
$wp_roles = new WP_Roles();
|
128 |
}
|
129 |
|
130 |
+
if (function_exists('bbp_filter_blog_editable_roles') ) { // bbPress plugin is active
|
131 |
+
$ure_roles = bbp_filter_blog_editable_roles( $wp_roles->roles ); // exclude bbPress roles
|
132 |
+
$bbp_full_caps = bbp_get_caps_for_role( bbp_get_keymaster_role() );
|
133 |
+
// remove bbPress dinamically created capabilities from WordPress persistent roles in case we caught some with previouse URE version
|
134 |
+
$cap_removed = false;
|
135 |
+
foreach ($bbp_full_caps as $bbp_cap=>$val) {
|
136 |
+
foreach ($ure_roles as &$role) {
|
137 |
+
if (isset($role['capabilities'][$bbp_cap])) {
|
138 |
+
unset($role['capabilities'][$bbp_cap]);
|
139 |
+
$cap_removed = true;
|
140 |
+
}
|
141 |
+
}
|
142 |
+
}
|
143 |
+
if ($cap_removed) {
|
144 |
+
// save changes to database
|
145 |
+
$option_name = $wpdb->prefix.'user_roles';
|
146 |
+
update_option($option_name, $ure_roles);
|
147 |
+
}
|
148 |
} else {
|
149 |
$ure_roles = $wp_roles->roles;
|
150 |
}
|
364 |
global $wpdb, $ure_roles, $ure_capabilitiesToSave, $ure_currentRole, $ure_currentRoleName;
|
365 |
|
366 |
if (!isset($ure_roles[$ure_currentRole])) {
|
367 |
+
return false;
|
368 |
}
|
369 |
$ure_roles[$ure_currentRole]['capabilities'] = $ure_capabilitiesToSave;
|
370 |
$option_name = $wpdb->prefix.'user_roles';
|
743 |
|
744 |
|
745 |
function ure_updateUser($user) {
|
746 |
+
global $wp_roles, $ure_capabilitiesToSave, $ure_roles;
|
747 |
|
748 |
+
$primary_role = array_shift(array_values($user->roles)); // get 1st element from roles array as user primary role
|
749 |
+
if (empty($primary_role) || !isset($ure_roles[$primary_role])) {
|
750 |
+
$primary_role = '';
|
751 |
+
}
|
752 |
+
if (function_exists('bbp_filter_blog_editable_roles') ) { // bbPress plugin is active
|
753 |
+
$bbp_user_role = bbp_get_user_role($user->ID);
|
754 |
+
} else {
|
755 |
+
$bbp_user_role = '';
|
756 |
+
}
|
757 |
+
|
758 |
// revoke all roles and capabilities from this user
|
759 |
+
$user->roles = array();
|
760 |
$user->remove_all_caps();
|
761 |
+
|
762 |
+
// restore primary role
|
763 |
+
if (!empty($primary_role)) {
|
764 |
+
$user->add_role($primary_role);
|
765 |
+
}
|
766 |
+
|
767 |
+
// restore bbPress user role if she had one
|
768 |
+
if (!empty($bbp_user_role)) {
|
769 |
+
$user->add_role($bbp_user_role);
|
770 |
+
}
|
771 |
+
|
772 |
+
// add other roles to user
|
773 |
foreach( $_POST as $key=>$value ) {
|
774 |
$result = preg_match( '/^wp_role_(.+)/', $key, $match);
|
775 |
if ($result === 1 ) {
|
1104 |
|
1105 |
$onclick_for_admin = '';
|
1106 |
if (! ( is_multisite() && is_super_admin() ) ) { // do not limit SuperAdmin for multi-site
|
1107 |
+
if ( $core && 'administrator' == $ure_currentRole) {
|
1108 |
$onclick_for_admin = 'onclick="turn_it_back(this)"';
|
1109 |
}
|
1110 |
}
|
1123 |
if ( !$capability['wp_core'] ) { // show WP built-in capabilities 1st
|
1124 |
continue;
|
1125 |
}
|
1126 |
+
} else {
|
1127 |
if ( $capability['wp_core'] ) { // show plugins and themes added capabilities
|
1128 |
continue;
|
1129 |
}
|
1177 |
|
1178 |
|
1179 |
/**
|
1180 |
+
* Returns list of user roles, except 1st one, and bbPress assigned as they are shown by WordPress and bbPress theirselves.
|
1181 |
*
|
1182 |
* @param type $user WP_User from wp-includes/capabilities.php
|
1183 |
+
* @return array
|
1184 |
*/
|
1185 |
function ure_other_user_roles($user) {
|
1186 |
|
1202 |
if ( !empty( $bb_press_role ) && $bb_press_role===$value ) {
|
1203 |
// exclude bbPress assigned role
|
1204 |
continue;
|
1205 |
+
}
|
1206 |
+
$roles[] = $value;
|
|
|
1207 |
}
|
1208 |
+
array_shift($roles); // exclude primary role which is shown by WordPress itself
|
1209 |
|
1210 |
+
return $roles;
|
1211 |
+
|
1212 |
+
}
|
1213 |
+
// end of ure_other_user_roles()
|
1214 |
+
|
1215 |
+
|
1216 |
+
/**
|
1217 |
+
* Returns list of user roles, except 1st one, and bbPress assigned as they are shown by WordPress and bbPress theirselves.
|
1218 |
+
*
|
1219 |
+
* @param type $roles user roles list
|
1220 |
+
* @return string
|
1221 |
+
*/
|
1222 |
+
function ure_other_user_roles_text($roles) {
|
1223 |
+
global $wp_roles;
|
1224 |
+
|
1225 |
+
if ( is_array($roles) && count( $roles ) > 0 ) {
|
1226 |
+
$role_names = array();
|
1227 |
+
foreach ($roles as $role) {
|
1228 |
+
$role_names[] = $wp_roles->roles[$role]['name'];
|
1229 |
+
}
|
1230 |
+
$output = implode(', ', $role_names);
|
1231 |
} else {
|
1232 |
$output = '';
|
1233 |
}
|
1234 |
|
1235 |
return $output;
|
|
|
|
|
|
|
1236 |
|
1237 |
+
}
|
1238 |
+
// end of ure_other_user_roles_text()
|
1239 |
+
|
1240 |
?>
|
includes/ure-options.php
CHANGED
@@ -9,7 +9,7 @@ if (!defined('URE_PLUGIN_URL')) {
|
|
9 |
die; // Silence is golden, direct call is prohibited
|
10 |
}
|
11 |
|
12 |
-
$shinephpFavIcon = URE_PLUGIN_URL.'
|
13 |
$mess = '';
|
14 |
|
15 |
$ure_caps_readable = get_option('ure_caps_readable');
|
@@ -72,7 +72,7 @@ if (isset($_POST['ure_apply_to_all'])) {
|
|
72 |
|
73 |
if (!isset($ure_roles) || !$ure_roles) {
|
74 |
// get roles data from database
|
75 |
-
$ure_roles = ure_getUserRoles(
|
76 |
if (!$ure_roles) {
|
77 |
return;
|
78 |
}
|
@@ -125,11 +125,12 @@ if ($ure_object=='user') {
|
|
125 |
}
|
126 |
|
127 |
if ( isset( $_POST['action'] ) && $_POST['action'] == 'update' && isset( $_POST['submit'] ) ) {
|
128 |
-
if ( isset( $_POST['user_role'] ) ) {
|
129 |
-
$
|
130 |
-
if (!isset($ure_roles[$ure_currentRole])) {
|
131 |
$mess = __('Error: ', 'ure') . __('Role', 'ure') . ' <em>' . $ure_currentRole . '</em> ' . __('does not exist', 'ure');
|
|
|
132 |
} else {
|
|
|
133 |
$ure_currentRoleName = $ure_roles[$ure_currentRole]['name'];
|
134 |
}
|
135 |
}
|
@@ -181,17 +182,7 @@ function ure_displayBoxEnd() {
|
|
181 |
ure_showMessage($mess);
|
182 |
|
183 |
?>
|
184 |
-
<script language="javascript" type="text/javascript" >
|
185 |
-
function ure_show_greetings(message) {
|
186 |
-
var el = document.getElementById('ure_greetings');
|
187 |
-
if (el.style.display=='block') {
|
188 |
-
el.style.display = 'none';
|
189 |
-
} else {
|
190 |
-
el.style.display = 'block';
|
191 |
-
}
|
192 |
-
}
|
193 |
-
// end of ure_show_greetings()
|
194 |
-
|
195 |
function ure_select_all(selected) {
|
196 |
|
197 |
var form = document.getElementById('ure_form');
|
@@ -218,25 +209,24 @@ ure_showMessage($mess);
|
|
218 |
<div id="poststuff">
|
219 |
<div class="ure-sidebar" >
|
220 |
<div style="text-align: center;">
|
221 |
-
<a href="http://w-shadow.com/admin-menu-editor-pro/?utm_source=UserRoleEditor&utm_medium=banner&utm_campaign=Plugins " target="_new" ><img src="<?php echo URE_PLUGIN_URL . '
|
222 |
</div>
|
223 |
|
224 |
<div style="text-align: center;">
|
225 |
<a title="ManageWP" href="http://managewp.com/?utm_source=user_role_editor&utm_medium=Banner&utm_content=mwp250_2&utm_campaign=Plugins" target="_new" >
|
226 |
-
<img width="250" height="250" alt="ManageWP" src="<?php echo URE_PLUGIN_URL;
|
227 |
</a>
|
228 |
</div>
|
229 |
|
230 |
<div style="text-align: center;">
|
231 |
-
<a href="http://chooseplugin.com"><img src="<?php echo URE_PLUGIN_URL . '
|
232 |
</div>
|
233 |
|
234 |
<?php ure_displayBoxStart(__('About this Plugin:', 'ure')); ?>
|
235 |
<a class="ure_rsb_link" style="background-image:url(<?php echo $shinephpFavIcon; ?>);" target="_blank" href="http://www.shinephp.com/"><?php _e("Author's website", 'ure'); ?></a>
|
236 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '
|
237 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '
|
238 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '
|
239 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/greetings.png'; ?>);" onclick="ure_show_greetings()" href="#greetings"><?php _e('Greetings', 'ure'); ?></a>
|
240 |
<hr />
|
241 |
<div style="text-align: center;">
|
242 |
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
@@ -247,56 +237,6 @@ ure_showMessage($mess);
|
|
247 |
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
248 |
</form>
|
249 |
</div>
|
250 |
-
<hr />
|
251 |
-
<h3><?php _e('Recently donated', 'ure'); ?></h3>
|
252 |
-
<ul>
|
253 |
-
<li><a href="http://thenineshub.com/" title="To The Nines Web Agency" target="new">To The Nines Web Agency</a></li>
|
254 |
-
<li><a href="http://helpkyria.com" title="http://helpkyria.com" target="new">Miami</a></li>
|
255 |
-
<li>quintain</li>
|
256 |
-
<li><a href="http://www.s2member.com" title="s2member.com" target="new">s2member.com / WebSharks, Inc.</a></li>
|
257 |
-
<li><a href="http://www.eastwoodzhao.com" title="www.eastwoodzhao.com" target="new">Eastwood</a></li>
|
258 |
-
</ul>
|
259 |
-
<div id="ure_greetings" style="clear: left; float: left; display: none;">
|
260 |
-
<hr />
|
261 |
-
<h3><a name="greetings"><?php _e('Greetings', 'ure'); ?></a></h3>
|
262 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo $shinephpFavIcon; ?>);" target="_blank" title="<?php _e("It's me, the author", 'ure'); ?>" href="http://www.shinephp.com/">Vladimir</a>
|
263 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/yaser.png'; ?>)" target="_blank" title="<?php _e("For the help with Arabic translation", 'ure'); ?>" href="http://www.englize.com/">Yaser</a>
|
264 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/marsis.png'; ?>)" target="_blank" title="<?php _e("For the help with Belorussian translation", 'ure'); ?>" href="http://pc.de">Marsis G.</a>
|
265 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/rafael.png'; ?>)" target="_blank" title="<?php _e("For the help with Brasilian translation", 'ure'); ?>" href="http://www.arquiteturailustrada.com.br/">Rafael Galdencio</a>
|
266 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/onbiz.png'; ?>)" target="_blank" title="<?php _e("For the help with Brasilian Portuguese translation", 'ure'); ?>" href="http://www.onbiz.com.br">Onbiz</a>
|
267 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/jackytsu.png'; ?>)" target="_blank" title="<?php _e("For the help with Chinese translation", 'ure'); ?>" href="http://www.jackytsu.com">Jackytsu</a>
|
268 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/ivaldi.png'; ?>)" target="_blank" title="<?php _e("For the help with Dutch translation", 'ure'); ?>" href="http://www.ivaldi.nl">Frank Groeneveld</a>
|
269 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/lauri.png'; ?>)" target="_blank" title="<?php _e("For the help with Finnish translation", 'ure'); ?>" href="http://www.viidakkorumpu.fi">Lauri Merisaari</a>
|
270 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/presse-et-multimedia.png'; ?>)" target="_blank" title="<?php _e("For the help with French translation", 'ure'); ?>" href="http://presse-et-multimedia.fr/blog/">Presse et Multimedia</a>
|
271 |
-
<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>
|
272 |
-
<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.becker-heidmann.de">Peter</a>
|
273 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/aryo.png'; ?>)" target="_blank" title="<?php _e("For the help with Hebrew translation", 'ure'); ?>" href="http://www.aryo.co.il/">ARYO Digital</a>
|
274 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/sagive.png'; ?>)" target="_blank" title="<?php _e("For the help with Hebrew translation", 'ure'); ?>" href="http://www.sagive.co.il/">Sagive</a>
|
275 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/outshine.png'; ?>)" target="_blank" title="<?php _e("For the help with Hindi translation", 'ure'); ?>" href="http://outshinesolutions.com">Outshine Solutions</a>
|
276 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/blacksnail.png'; ?>)" target="_blank" title="<?php _e("For the help with Hungarian translation", 'ure'); ?>" href="http://www.blacksnail.hu">István</a>
|
277 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/tristano.png'; ?>);" target="_blank" title="<?php _e("For the help with Italian translation", 'pgc'); ?>" href="http://www.zenfactor.org ">Tristano Ajmone</a>
|
278 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/venezialog.png'; ?>)" target="_blank" title="<?php _e("For the help with Italian translation", 'ure'); ?>" href="http://venezialog.net">Umberto Sartori</a>
|
279 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/technologjp.png'; ?>)" target="_blank" title="<?php _e("For the help with Japanese translation", 'ure'); ?>" href="http://technolog.jp">Technolog.jp</a>
|
280 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/host1free.png'; ?>)" target="_blank" title="<?php _e("For the help with Lithuanian translation", 'ure'); ?>" href="http://host1free.com">Vincent G</a>
|
281 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/parsa.png'; ?>)" target="_blank" title="<?php _e("For the help with Persian translation", 'ure'); ?>" href="http://parsa.ws">Parsa</a>
|
282 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/good-life.png'; ?>)" target="_blank" title="<?php _e("For the help with Persian translation", 'ure'); ?>" href="http://good-life.ir">Good Life</a>
|
283 |
-
<span title="<?php _e("For the help with Persian translation", 'ure'); ?>">Amir Khalilnejad</span>
|
284 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/tagsite.png'; ?>)" target="_blank" title="<?php _e("For the help with Polish translation", 'ure'); ?>" href="http://www.tagsite.eu">TagSite</a>
|
285 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/bartosz.png'; ?>)" target="_blank" title="<?php _e("For the help with Polish translation", 'ure'); ?>" href="http://www.digitalfactory.pl">Bartosz</a>
|
286 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/wpcouponshop.png'; ?>)" target="_blank" title="<?php _e("For the help with Serbian translation", 'ure'); ?>" href="http://wpcouponshop.com">Diana</a>
|
287 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/branco.png'; ?>)" target="_blank" title="<?php _e("For the help with Slovak translation", 'ure'); ?>" href="http://webhostinggeeks.com/blog/">Branco (WebHostingGeeks.com)</a>
|
288 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/infomed.png'; ?>)" target="_blank" title="<?php _e("For the help with Spanish translation", 'ure'); ?>" href="http://www.sld.cu">Victor Ricardo Díaz (INFOMED)</a>
|
289 |
-
<span title="<?php _e("For the help with Spanish translation", 'ure'); ?>" >Dario Ferrer</span>
|
290 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/andreas.png'; ?>)" target="_blank" title="<?php _e("For the updated Swedish translation", 'ure'); ?>" href="http://adevade.com/">Andréas Lundgren</a>
|
291 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/christer.png'; ?>)" target="_blank" title="<?php _e("For the help with Swedish translation", 'ure'); ?>" href="http://www.startlinks.eu">Christer Dahlbacka</a>
|
292 |
-
<span title="<?php _e("For the help with Traditional Chinese translation", 'ure'); ?>">Jingxin Lai</span>
|
293 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/muhammed.png'; ?>)" target="_blank" title="<?php _e("For the help with Turkish translation", 'ure'); ?>" href="http://ben.muhammed.im/">Muhammed YILDIRIM</a>
|
294 |
-
<hr />
|
295 |
-
<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>
|
296 |
-
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . '/images/lorenzo.png'; ?>)" target="_blank" title="<?php _e("For the code enhancement suggestion", 'ure'); ?>" href="http://www.extera.com">Lorenzo Nicoletti</a>
|
297 |
-
<hr />
|
298 |
-
<?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'); ?>
|
299 |
-
</div>
|
300 |
<?php ure_displayBoxEnd(); ?>
|
301 |
</div>
|
302 |
|
@@ -308,9 +248,9 @@ ure_showMessage($mess);
|
|
308 |
|
309 |
<?php
|
310 |
if ($ure_object == 'user') {
|
311 |
-
require_once('ure-user-edit.php');
|
312 |
} else {
|
313 |
-
require_once('ure-role-edit.php');
|
314 |
}
|
315 |
?>
|
316 |
</form>
|
9 |
die; // Silence is golden, direct call is prohibited
|
10 |
}
|
11 |
|
12 |
+
$shinephpFavIcon = URE_PLUGIN_URL.'images/vladimir.png';
|
13 |
$mess = '';
|
14 |
|
15 |
$ure_caps_readable = get_option('ure_caps_readable');
|
72 |
|
73 |
if (!isset($ure_roles) || !$ure_roles) {
|
74 |
// get roles data from database
|
75 |
+
$ure_roles = ure_getUserRoles();
|
76 |
if (!$ure_roles) {
|
77 |
return;
|
78 |
}
|
125 |
}
|
126 |
|
127 |
if ( isset( $_POST['action'] ) && $_POST['action'] == 'update' && isset( $_POST['submit'] ) ) {
|
128 |
+
if ( isset( $_POST['user_role'] ) ) {
|
129 |
+
if (!isset($ure_roles[ $_POST['user_role'] ])) {
|
|
|
130 |
$mess = __('Error: ', 'ure') . __('Role', 'ure') . ' <em>' . $ure_currentRole . '</em> ' . __('does not exist', 'ure');
|
131 |
+
$ure_currentRole = '';
|
132 |
} else {
|
133 |
+
$ure_currentRole = $_POST['user_role'];
|
134 |
$ure_currentRoleName = $ure_roles[$ure_currentRole]['name'];
|
135 |
}
|
136 |
}
|
182 |
ure_showMessage($mess);
|
183 |
|
184 |
?>
|
185 |
+
<script language="javascript" type="text/javascript" >
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
function ure_select_all(selected) {
|
187 |
|
188 |
var form = document.getElementById('ure_form');
|
209 |
<div id="poststuff">
|
210 |
<div class="ure-sidebar" >
|
211 |
<div style="text-align: center;">
|
212 |
+
<a href="http://w-shadow.com/admin-menu-editor-pro/?utm_source=UserRoleEditor&utm_medium=banner&utm_campaign=Plugins " target="_new" ><img src="<?php echo URE_PLUGIN_URL . 'images/admin-menu-editor-pro.jpg'; ?>" alt="Admin Menu Editor Pro" title="Move, rename, hide, add admin menu items, restrict access"/></a>
|
213 |
</div>
|
214 |
|
215 |
<div style="text-align: center;">
|
216 |
<a title="ManageWP" href="http://managewp.com/?utm_source=user_role_editor&utm_medium=Banner&utm_content=mwp250_2&utm_campaign=Plugins" target="_new" >
|
217 |
+
<img width="250" height="250" alt="ManageWP" src="<?php echo URE_PLUGIN_URL; ?>images/mwp250_2.png">
|
218 |
</a>
|
219 |
</div>
|
220 |
|
221 |
<div style="text-align: center;">
|
222 |
+
<a href="http://chooseplugin.com"><img src="<?php echo URE_PLUGIN_URL . 'images/chooseplugin.png'; ?>" alt="Choose WordPress plugins with ChoosePlugin.com" title="Advanced search WordPress plugins service from User Role Editor developer" /></a>
|
223 |
</div>
|
224 |
|
225 |
<?php ure_displayBoxStart(__('About this Plugin:', 'ure')); ?>
|
226 |
<a class="ure_rsb_link" style="background-image:url(<?php echo $shinephpFavIcon; ?>);" target="_blank" href="http://www.shinephp.com/"><?php _e("Author's website", 'ure'); ?></a>
|
227 |
+
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . 'images/user-role-editor-icon.png'; ?>);" target="_blank" href="http://www.shinephp.com/user-role-editor-wordpress-plugin/"><?php _e('Plugin webpage', 'ure'); ?></a>
|
228 |
+
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . 'images/changelog-icon.png'; ?>);" target="_blank" href="http://www.shinephp.com/user-role-editor-wordpress-plugin/#changelog"><?php _e('Changelog', 'ure'); ?></a>
|
229 |
+
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . 'images/faq-icon.png'; ?>);" target="_blank" href="http://www.shinephp.com/user-role-editor-wordpress-plugin/#faq"><?php _e('FAQ', 'ure'); ?></a>
|
|
|
230 |
<hr />
|
231 |
<div style="text-align: center;">
|
232 |
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
237 |
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
238 |
</form>
|
239 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
<?php ure_displayBoxEnd(); ?>
|
241 |
</div>
|
242 |
|
248 |
|
249 |
<?php
|
250 |
if ($ure_object == 'user') {
|
251 |
+
require_once(URE_PLUGIN_DIR .'includes/ure-user-edit.php');
|
252 |
} else {
|
253 |
+
require_once(URE_PLUGIN_DIR .'includes/ure-role-edit.php');
|
254 |
}
|
255 |
?>
|
256 |
</form>
|
includes/ure-user-edit.php
CHANGED
@@ -75,15 +75,38 @@ if (!defined('URE_PLUGIN_URL')) {
|
|
75 |
</tr>
|
76 |
<tr>
|
77 |
<td style="vertical-align: text-top; padding-right: 10px; padding-top: 5px; font-size: 1.1em; border-top: 1px solid #ccc; border-right: 1px solid #ccc;">
|
78 |
-
<div style="margin-bottom:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
<?php
|
|
|
80 |
foreach ($ure_roles as $role_id => $role) {
|
81 |
-
if (
|
82 |
-
$
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
|
|
|
|
87 |
}
|
88 |
?>
|
89 |
</td>
|
75 |
</tr>
|
76 |
<tr>
|
77 |
<td style="vertical-align: text-top; padding-right: 10px; padding-top: 5px; font-size: 1.1em; border-top: 1px solid #ccc; border-right: 1px solid #ccc;">
|
78 |
+
<div style="margin-bottom: 5px; font-weight: bold;"><?php echo __('Primary Role:', 'ure'); ?></div>
|
79 |
+
<?php
|
80 |
+
$primary_role = array_shift(array_values($ure_userToEdit->roles)); // get 1st element from roles array
|
81 |
+
if (!empty($primary_role) && isset($ure_roles[$primary_role])) {
|
82 |
+
echo $ure_roles[$primary_role]['name'];
|
83 |
+
} else {
|
84 |
+
echo 'None';
|
85 |
+
}
|
86 |
+
if (function_exists('bbp_filter_blog_editable_roles') ) { // bbPress plugin is active
|
87 |
+
?>
|
88 |
+
<div style="margin-top: 5px;margin-bottom: 5px; font-weight: bold;"><?php echo __('bbPress Role:', 'ure'); ?></div>
|
89 |
+
<?php
|
90 |
+
// Get the roles
|
91 |
+
$dynamic_roles = bbp_get_dynamic_roles();
|
92 |
+
$bbp_user_role = bbp_get_user_role($ure_userToEdit->ID);
|
93 |
+
if (!empty($bbp_user_role)) {
|
94 |
+
echo $dynamic_roles[$bbp_user_role]['name'];
|
95 |
+
}
|
96 |
+
}
|
97 |
+
?>
|
98 |
+
<div style="margin-top: 5px;margin-bottom: 5px; font-weight: bold;"><?php echo __('Other Roles:', 'ure'); ?></div>
|
99 |
<?php
|
100 |
+
$youAreAdmin = defined('URE_SHOW_ADMIN_ROLE') && ure_is_admin();
|
101 |
foreach ($ure_roles as $role_id => $role) {
|
102 |
+
if ( ($youAreAdmin || $role_id!='administrator') && ($role_id!==$primary_role) ) {
|
103 |
+
if ( user_can( $ure_userToEdit->ID, $role_id ) ) {
|
104 |
+
$checked = 'checked="checked"';
|
105 |
+
} else {
|
106 |
+
$checked = '';
|
107 |
+
}
|
108 |
+
echo '<label for="wp_role_' . $role_id .'"><input type="checkbox" id="wp_role_' . $role_id . '" name="wp_role_' . $role_id . '" value="' . $role_id . '"' . $checked .' /> ' . __($role['name'], 'ure') . '</label><br />';
|
109 |
+
}
|
110 |
}
|
111 |
?>
|
112 |
</td>
|
lang/ure-pt_BR.mo
CHANGED
Binary file
|
lang/ure-pt_BR.po
CHANGED
@@ -2,762 +2,799 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: User Role Editor 2.0\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date:
|
6 |
-
"PO-Revision-Date:
|
7 |
-
"Last-Translator:
|
8 |
"Language-Team: Onbiz Team <contato@onbiz.com.br>\n"
|
9 |
-
"Language: \n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Poedit-Language: Portuguese\n"
|
14 |
-
"X-Poedit-Country: BRAZIL\n"
|
15 |
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
"X-Poedit-KeywordsList: __;_e\n"
|
17 |
"X-Poedit-Basepath: .\n"
|
|
|
18 |
"X-Poedit-SearchPath-0: ..\n"
|
19 |
|
20 |
# Role (Função ou Papel)
|
21 |
# Capability (Capacidade ou Permissão)
|
22 |
-
#: ../user-role-editor.php:
|
23 |
-
|
24 |
-
|
|
|
25 |
|
26 |
-
#: ../user-role-editor.php:35
|
27 |
-
#: ../user-role-editor.php:40
|
28 |
msgid "Please update!"
|
29 |
msgstr "Por favor, atualize!"
|
30 |
|
31 |
-
#: ../user-role-editor.php:
|
32 |
-
|
33 |
-
|
|
|
34 |
|
35 |
-
#: ../user-role-editor.php:
|
36 |
msgid "Only"
|
37 |
msgstr "Apenas"
|
38 |
|
39 |
-
#: ../user-role-editor.php:
|
40 |
msgid "is allowed to use"
|
41 |
msgstr "pode usar"
|
42 |
|
43 |
-
#: ../user-role-editor.php:
|
44 |
-
#: ../user-role-editor.php:
|
45 |
msgid "User Role Editor"
|
46 |
msgstr "User Role Editor"
|
47 |
|
48 |
-
#: ../user-role-editor.php:
|
49 |
msgid "Settings"
|
50 |
msgstr "Configurações"
|
51 |
|
52 |
-
#: ../user-role-editor.php:
|
53 |
-
#: ../includes/ure-options.php:235
|
54 |
msgid "Changelog"
|
55 |
msgstr "Atualizações"
|
56 |
|
57 |
-
#: ../user-role-editor.php:
|
58 |
msgid "Capabilities"
|
59 |
msgstr "Capacidades"
|
60 |
|
61 |
-
#: ../
|
62 |
-
msgid "
|
63 |
-
msgstr "
|
64 |
|
65 |
-
#: ../
|
66 |
-
msgid "
|
67 |
-
msgstr "
|
68 |
|
69 |
-
#: ../includes/ure-lib.php:
|
70 |
-
msgid "
|
71 |
-
msgstr "
|
72 |
|
73 |
-
#: ../includes/ure-lib.php:
|
74 |
msgid "Backup record is created for the current role capabilities"
|
75 |
-
msgstr "Cópia de segurança criada para as
|
76 |
|
77 |
-
#: ../includes/ure-lib.php:
|
78 |
msgid "Error: Role name must contain latin characters and digits only!"
|
79 |
-
msgstr "Erro: o nome da
|
80 |
|
81 |
-
#: ../includes/ure-lib.php:
|
82 |
#, php-format
|
83 |
msgid "Role %s exists already"
|
84 |
msgstr "Função %s já existe"
|
85 |
|
86 |
-
#: ../includes/ure-lib.php:
|
87 |
msgid "Error is encountered during new role create operation"
|
88 |
-
msgstr "Um erro foi encontrado durante a criação de uma nova
|
89 |
|
90 |
-
#: ../includes/ure-lib.php:
|
91 |
#, php-format
|
92 |
msgid "Role %s is created successfully"
|
93 |
-
msgstr "
|
94 |
|
95 |
-
#: ../includes/ure-lib.php:
|
96 |
msgid "Error encountered during role delete operation"
|
97 |
-
msgstr "Erro encontrado durante a remoção
|
98 |
|
99 |
-
#: ../includes/ure-lib.php:
|
100 |
#, php-format
|
101 |
msgid "Role %s is deleted successfully"
|
102 |
-
msgstr "
|
103 |
|
104 |
-
#: ../includes/ure-lib.php:
|
105 |
msgid "Error encountered during default role change operation"
|
106 |
-
msgstr "Erro encontrado durante a alteração de uma
|
107 |
|
108 |
-
#: ../includes/ure-lib.php:
|
109 |
#, php-format
|
110 |
msgid "Default role for new users is set to %s successfully"
|
111 |
-
msgstr "
|
112 |
|
113 |
-
#: ../includes/ure-lib.php:
|
114 |
msgid "Editor"
|
115 |
msgstr "Editor"
|
116 |
|
117 |
-
#: ../includes/ure-lib.php:
|
118 |
msgid "Author"
|
119 |
msgstr "Autor"
|
120 |
|
121 |
-
#: ../includes/ure-lib.php:
|
122 |
msgid "Contributor"
|
123 |
msgstr "Colaborador"
|
124 |
|
125 |
-
#: ../includes/ure-lib.php:
|
126 |
msgid "Subscriber"
|
127 |
msgstr "Assinante"
|
128 |
|
129 |
-
#: ../includes/ure-lib.php:
|
130 |
msgid "Switch themes"
|
131 |
msgstr "Trocar temas"
|
132 |
|
133 |
-
#: ../includes/ure-lib.php:
|
134 |
msgid "Edit themes"
|
135 |
msgstr "Editar temas"
|
136 |
|
137 |
-
#: ../includes/ure-lib.php:
|
138 |
msgid "Activate plugins"
|
139 |
msgstr "Ativar plugins"
|
140 |
|
141 |
-
#: ../includes/ure-lib.php:
|
142 |
msgid "Edit plugins"
|
143 |
msgstr "Editar plugins"
|
144 |
|
145 |
-
#: ../includes/ure-lib.php:
|
146 |
msgid "Edit users"
|
147 |
msgstr "Editar usuários"
|
148 |
|
149 |
-
#: ../includes/ure-lib.php:
|
150 |
msgid "Edit files"
|
151 |
msgstr "Editar arquivos"
|
152 |
|
153 |
-
#: ../includes/ure-lib.php:
|
154 |
msgid "Manage options"
|
155 |
msgstr "Gerenciar opções"
|
156 |
|
157 |
-
#: ../includes/ure-lib.php:
|
158 |
msgid "Moderate comments"
|
159 |
msgstr "Moderar comentários"
|
160 |
|
161 |
-
#: ../includes/ure-lib.php:
|
162 |
msgid "Manage categories"
|
163 |
msgstr "Gerenciar categorias"
|
164 |
|
165 |
-
#: ../includes/ure-lib.php:
|
166 |
msgid "Manage links"
|
167 |
msgstr "Gerenciar links"
|
168 |
|
169 |
-
#: ../includes/ure-lib.php:
|
170 |
msgid "Upload files"
|
171 |
msgstr "Enviar arquivos"
|
172 |
|
173 |
-
#: ../includes/ure-lib.php:
|
174 |
msgid "Import"
|
175 |
msgstr "Importar"
|
176 |
|
177 |
-
#: ../includes/ure-lib.php:
|
178 |
msgid "Unfiltered html"
|
179 |
msgstr "HTML não filtrado"
|
180 |
|
181 |
-
#: ../includes/ure-lib.php:
|
182 |
msgid "Edit posts"
|
183 |
msgstr "Editar posts"
|
184 |
|
185 |
-
#: ../includes/ure-lib.php:
|
186 |
msgid "Edit others posts"
|
187 |
msgstr "Editar posts dos outros"
|
188 |
|
189 |
-
#: ../includes/ure-lib.php:
|
190 |
msgid "Edit published posts"
|
191 |
msgstr "Editar posts publicados"
|
192 |
|
193 |
-
#: ../includes/ure-lib.php:
|
194 |
msgid "Publish posts"
|
195 |
msgstr "Publicar posts"
|
196 |
|
197 |
-
#: ../includes/ure-lib.php:
|
198 |
msgid "Edit pages"
|
199 |
msgstr "Editar páginas"
|
200 |
|
201 |
-
#: ../includes/ure-lib.php:
|
202 |
msgid "Read"
|
203 |
msgstr "Ler"
|
204 |
|
205 |
-
#: ../includes/ure-lib.php:
|
206 |
msgid "Level 10"
|
207 |
msgstr "Nível 10"
|
208 |
|
209 |
-
#: ../includes/ure-lib.php:
|
210 |
msgid "Level 9"
|
211 |
msgstr "Nível 9"
|
212 |
|
213 |
-
#: ../includes/ure-lib.php:
|
214 |
msgid "Level 8"
|
215 |
msgstr "Nível 8"
|
216 |
|
217 |
-
#: ../includes/ure-lib.php:
|
218 |
msgid "Level 7"
|
219 |
msgstr "Nível 7"
|
220 |
|
221 |
-
#: ../includes/ure-lib.php:
|
222 |
msgid "Level 6"
|
223 |
msgstr "Nível 6"
|
224 |
|
225 |
-
#: ../includes/ure-lib.php:
|
226 |
msgid "Level 5"
|
227 |
msgstr "Nível 5"
|
228 |
|
229 |
-
#: ../includes/ure-lib.php:
|
230 |
msgid "Level 4"
|
231 |
msgstr "Nível 4"
|
232 |
|
233 |
-
#: ../includes/ure-lib.php:
|
234 |
msgid "Level 3"
|
235 |
msgstr "Nível 3"
|
236 |
|
237 |
-
#: ../includes/ure-lib.php:
|
238 |
msgid "Level 2"
|
239 |
msgstr "Nível 2"
|
240 |
|
241 |
-
#: ../includes/ure-lib.php:
|
242 |
msgid "Level 1"
|
243 |
msgstr "Nível 1"
|
244 |
|
245 |
-
#: ../includes/ure-lib.php:
|
246 |
msgid "Level 0"
|
247 |
msgstr "Nível 0"
|
248 |
|
249 |
-
#: ../includes/ure-lib.php:
|
250 |
msgid "Edit others pages"
|
251 |
msgstr "Editar páginas dos outros"
|
252 |
|
253 |
-
#: ../includes/ure-lib.php:
|
254 |
msgid "Edit published pages"
|
255 |
msgstr "Editar páginas publicadas"
|
256 |
|
257 |
-
#: ../includes/ure-lib.php:
|
258 |
msgid "Publish pages"
|
259 |
msgstr "Publicar páginas"
|
260 |
|
261 |
-
#: ../includes/ure-lib.php:
|
262 |
msgid "Delete pages"
|
263 |
msgstr "Excluir páginas"
|
264 |
|
265 |
-
#: ../includes/ure-lib.php:
|
266 |
msgid "Delete others pages"
|
267 |
msgstr "Excluir páginas dos outros"
|
268 |
|
269 |
-
#: ../includes/ure-lib.php:
|
270 |
msgid "Delete published pages"
|
271 |
msgstr "Excluir páginas publicadas"
|
272 |
|
273 |
-
#: ../includes/ure-lib.php:
|
274 |
msgid "Delete posts"
|
275 |
msgstr "Excluir posts"
|
276 |
|
277 |
-
#: ../includes/ure-lib.php:
|
278 |
msgid "Delete others posts"
|
279 |
msgstr "Excluir posts dos outros"
|
280 |
|
281 |
-
#: ../includes/ure-lib.php:
|
282 |
msgid "Delete published posts"
|
283 |
msgstr "Excluir posts publicados"
|
284 |
|
285 |
-
#: ../includes/ure-lib.php:
|
286 |
msgid "Delete private posts"
|
287 |
msgstr "Excluir posts privados"
|
288 |
|
289 |
-
#: ../includes/ure-lib.php:
|
290 |
msgid "Edit private posts"
|
291 |
msgstr "Editar posts privados"
|
292 |
|
293 |
-
#: ../includes/ure-lib.php:
|
294 |
msgid "Read private posts"
|
295 |
msgstr "Ler posts privados"
|
296 |
|
297 |
-
#: ../includes/ure-lib.php:
|
298 |
msgid "Delete private pages"
|
299 |
msgstr "Excluir páginas privadas"
|
300 |
|
301 |
-
#: ../includes/ure-lib.php:
|
302 |
msgid "Edit private pages"
|
303 |
msgstr "Editar páginas privadas"
|
304 |
|
305 |
-
#: ../includes/ure-lib.php:
|
306 |
msgid "Read private pages"
|
307 |
msgstr "Ler páginas privadas"
|
308 |
|
309 |
-
#: ../includes/ure-lib.php:
|
310 |
msgid "Delete users"
|
311 |
msgstr "Excluir usuários"
|
312 |
|
313 |
-
#: ../includes/ure-lib.php:
|
314 |
msgid "Create users"
|
315 |
msgstr "Criar usuários"
|
316 |
|
317 |
-
#: ../includes/ure-lib.php:
|
318 |
msgid "Unfiltered upload"
|
319 |
msgstr "Envio não filtrado"
|
320 |
|
321 |
-
#: ../includes/ure-lib.php:
|
322 |
msgid "Edit dashboard"
|
323 |
msgstr "Editar Painel"
|
324 |
|
325 |
-
#: ../includes/ure-lib.php:
|
326 |
msgid "Update plugins"
|
327 |
msgstr "Atualizar plugins"
|
328 |
|
329 |
-
#: ../includes/ure-lib.php:
|
330 |
msgid "Delete plugins"
|
331 |
msgstr "Excluir plugins"
|
332 |
|
333 |
-
#: ../includes/ure-lib.php:
|
334 |
msgid "Install plugins"
|
335 |
msgstr "Instalar plugins"
|
336 |
|
337 |
-
#: ../includes/ure-lib.php:
|
338 |
msgid "Update themes"
|
339 |
msgstr "Atualizar temas"
|
340 |
|
341 |
-
#: ../includes/ure-lib.php:
|
342 |
msgid "Install themes"
|
343 |
msgstr "Instalar temas"
|
344 |
|
345 |
-
#: ../includes/ure-lib.php:
|
346 |
msgid "Update core"
|
347 |
msgstr "Atualizar núcleo"
|
348 |
|
349 |
-
#: ../includes/ure-lib.php:
|
350 |
msgid "List users"
|
351 |
-
msgstr ""
|
352 |
|
353 |
-
#: ../includes/ure-lib.php:
|
354 |
msgid "Remove users"
|
355 |
msgstr "Remover usuários"
|
356 |
|
357 |
-
#: ../includes/ure-lib.php:
|
358 |
msgid "Add users"
|
359 |
-
msgstr "
|
360 |
|
361 |
-
#: ../includes/ure-lib.php:
|
362 |
msgid "Promote users"
|
363 |
msgstr "Promover usuários"
|
364 |
|
365 |
-
#: ../includes/ure-lib.php:
|
366 |
msgid "Edit theme options"
|
367 |
msgstr "Editar opções do tema"
|
368 |
|
369 |
-
#: ../includes/ure-lib.php:
|
370 |
msgid "Delete themes"
|
371 |
msgstr "Excluir temas"
|
372 |
|
373 |
-
#: ../includes/ure-lib.php:
|
374 |
msgid "Export"
|
375 |
msgstr "Exportar"
|
376 |
|
377 |
-
#: ../includes/ure-lib.php:
|
378 |
msgid "Error: Capability name must contain latin characters and digits only!"
|
379 |
-
msgstr "Erro:
|
380 |
|
381 |
-
#: ../includes/ure-lib.php:
|
382 |
#, php-format
|
383 |
msgid "Capability %s is added successfully"
|
384 |
-
msgstr "
|
385 |
|
386 |
-
#: ../includes/ure-lib.php:
|
387 |
#, php-format
|
388 |
msgid "Capability %s exists already"
|
389 |
-
msgstr "
|
390 |
|
391 |
-
#: ../includes/ure-lib.php:
|
392 |
#, php-format
|
393 |
msgid "Error! You do not have permission to delete this capability: %s!"
|
394 |
-
msgstr "Erro! Você não tem permissão para excluir
|
395 |
|
396 |
-
#: ../includes/ure-lib.php:
|
397 |
#, php-format
|
398 |
msgid "Capability %s is removed successfully"
|
399 |
-
msgstr "
|
400 |
|
401 |
-
#: ../includes/ure-lib.php:
|
402 |
msgid "Help"
|
403 |
msgstr "Ajuda"
|
404 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
405 |
#: ../includes/ure-role-edit.php:29
|
406 |
msgid "None"
|
407 |
msgstr "Nenhum"
|
408 |
|
409 |
-
#: ../includes/ure-role-edit.php:
|
410 |
msgid " Name can not be empty!"
|
411 |
-
msgstr " Nome não pode
|
412 |
|
413 |
-
#: ../includes/ure-role-edit.php:
|
414 |
msgid " Name must contain latin characters and digits only!"
|
415 |
-
msgstr "
|
416 |
|
417 |
-
#: ../includes/ure-role-edit.php:
|
418 |
-
#: ../includes/ure-role-edit.php:367
|
419 |
msgid "Delete Role"
|
420 |
-
msgstr "Excluir
|
421 |
|
422 |
-
#: ../includes/ure-role-edit.php:
|
423 |
msgid "Change Default Role"
|
424 |
-
msgstr "Alterar
|
425 |
|
426 |
-
#: ../includes/ure-role-edit.php:
|
427 |
-
msgid "
|
428 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
429 |
|
430 |
-
#: ../includes/ure-role-edit.php:
|
431 |
-
msgid "
|
432 |
-
|
|
|
|
|
|
|
|
|
433 |
|
434 |
-
#: ../includes/ure-role-edit.php:
|
435 |
msgid "Please confirm to continue"
|
436 |
msgstr "Por favor, confirme para continuar"
|
437 |
|
438 |
-
#: ../includes/ure-role-edit.php:
|
439 |
#, php-format
|
440 |
msgid "Role \"%s\" update: please confirm to continue"
|
441 |
-
msgstr "
|
442 |
|
443 |
-
#: ../includes/ure-role-edit.php:
|
444 |
msgid "Select Role and change its capabilities list"
|
445 |
-
msgstr "Selecione a
|
446 |
|
447 |
-
#: ../includes/ure-role-edit.php:
|
448 |
msgid "Select Role:"
|
449 |
-
msgstr "Selecione a
|
450 |
|
451 |
-
#: ../includes/ure-role-edit.php:
|
452 |
-
#: ../includes/ure-user-edit.php:91
|
453 |
msgid "Show capabilities in human readable form"
|
454 |
-
msgstr "Exiba as
|
455 |
|
456 |
-
#: ../includes/ure-role-edit.php:
|
457 |
-
#: ../includes/ure-user-edit.php:100
|
458 |
msgid "Show deprecated capabilities"
|
459 |
-
msgstr "Exiba as
|
460 |
|
461 |
-
#: ../includes/ure-role-edit.php:
|
462 |
msgid "If checked, then apply action to ALL sites of this Network"
|
463 |
-
msgstr "
|
464 |
|
465 |
-
#: ../includes/ure-role-edit.php:
|
466 |
msgid "Apply to All Sites"
|
467 |
-
msgstr "Aplicar a
|
468 |
|
469 |
-
#: ../includes/ure-role-edit.php:
|
470 |
-
#: ../includes/ure-user-edit.php:105
|
471 |
-
#, fuzzy
|
472 |
msgid "Core capabilities:"
|
473 |
-
msgstr "
|
474 |
|
475 |
-
#: ../includes/ure-role-edit.php:
|
476 |
-
#: ../includes/ure-user-edit.php:167
|
477 |
-
#, fuzzy
|
478 |
msgid "Custom capabilities:"
|
479 |
-
msgstr "Capacidades:"
|
480 |
|
481 |
-
#: ../includes/ure-role-edit.php:
|
482 |
-
#: ../includes/ure-user-edit.php:222
|
483 |
msgid "Update"
|
484 |
msgstr "Atualizar"
|
485 |
|
486 |
-
#: ../includes/ure-role-edit.php:
|
487 |
-
#: ../includes/ure-user-edit.php:222
|
488 |
msgid "Save Changes"
|
489 |
msgstr "Salvar alterações"
|
490 |
|
491 |
-
#: ../includes/ure-role-edit.php:
|
492 |
-
#: ../includes/ure-user-edit.php:223
|
493 |
msgid "Cancel"
|
494 |
msgstr "Cancelar"
|
495 |
|
496 |
-
#: ../includes/ure-role-edit.php:
|
497 |
-
#: ../includes/ure-user-edit.php:223
|
498 |
msgid "Cancel not saved changes"
|
499 |
-
msgstr "Cancelar não
|
500 |
|
501 |
-
#: ../includes/ure-role-edit.php:
|
502 |
msgid "Select All"
|
503 |
-
msgstr "Selecionar
|
504 |
|
505 |
-
#: ../includes/ure-role-edit.php:
|
506 |
msgid "Select All Capabilities"
|
507 |
-
msgstr "Selecionar
|
508 |
|
509 |
-
#: ../includes/ure-role-edit.php:
|
510 |
msgid "Unselect All"
|
511 |
-
msgstr "Desfazer seleção de
|
512 |
|
513 |
-
#: ../includes/ure-role-edit.php:
|
514 |
msgid "Unselect All Capabilities"
|
515 |
-
msgstr "Desfazer seleção de
|
516 |
|
517 |
-
#: ../includes/ure-role-edit.php:
|
518 |
msgid "Reverse"
|
519 |
msgstr "Reverter"
|
520 |
|
521 |
-
#: ../includes/ure-role-edit.php:
|
522 |
msgid "Turn checked capabilities off and vise versa"
|
523 |
-
msgstr "Desligar as
|
524 |
|
525 |
-
#: ../includes/ure-role-edit.php:
|
526 |
msgid "Reset"
|
527 |
msgstr "Limpar"
|
528 |
|
529 |
-
#: ../includes/ure-role-edit.php:
|
530 |
-
msgid "
|
531 |
-
msgstr "
|
|
|
|
|
532 |
|
533 |
-
#: ../includes/ure-role-edit.php:
|
534 |
msgid "Add New Role"
|
535 |
-
msgstr "Adicionar
|
536 |
|
537 |
-
#: ../includes/ure-role-edit.php:
|
538 |
msgid "Name: "
|
539 |
msgstr "Nome: "
|
540 |
|
541 |
-
#: ../includes/ure-role-edit.php:
|
542 |
msgid "Make copy of: "
|
543 |
msgstr "Fazer uma cópia de: "
|
544 |
|
545 |
-
#: ../includes/ure-role-edit.php:
|
546 |
-
#: ../includes/ure-role-edit.php:382
|
547 |
msgid "Add"
|
548 |
msgstr "Adicionar"
|
549 |
|
550 |
-
#: ../includes/ure-role-edit.php:
|
551 |
msgid "Add New User Role"
|
552 |
-
msgstr "Adicionar
|
553 |
|
554 |
-
#: ../includes/ure-role-edit.php:
|
555 |
msgid "Default Role for New User"
|
556 |
-
msgstr "
|
557 |
|
558 |
-
#: ../includes/ure-role-edit.php:
|
559 |
msgid "Change"
|
560 |
msgstr "Alterar"
|
561 |
|
562 |
-
#: ../includes/ure-role-edit.php:
|
563 |
msgid "Set as Default User Role"
|
564 |
-
msgstr "Usar como
|
565 |
|
566 |
-
#: ../includes/ure-role-edit.php:
|
567 |
msgid "Delete"
|
568 |
msgstr "Excluir"
|
569 |
|
570 |
-
#: ../includes/ure-role-edit.php:
|
571 |
msgid "Delete User Role"
|
572 |
-
msgstr "Excluir
|
573 |
|
574 |
-
#: ../includes/ure-role-edit.php:
|
575 |
-
#: ../includes/ure-role-edit.php:382
|
576 |
msgid "Add New Capability"
|
577 |
-
msgstr "Adicionar
|
578 |
|
579 |
-
#: ../includes/ure-role-edit.php:
|
580 |
msgid "Remove Capability"
|
581 |
-
msgstr "Remover
|
582 |
|
583 |
-
#: ../includes/ure-role-edit.php:
|
584 |
msgid "Remove"
|
585 |
msgstr "Remover"
|
586 |
|
587 |
-
#: ../includes/ure-role-edit.php:
|
588 |
msgid "Remove User Capability"
|
589 |
-
msgstr "Remover
|
590 |
|
591 |
-
#: ../includes/ure-user-edit.php:
|
592 |
#, php-format
|
593 |
msgid "User \"%s\" update: please confirm to continue"
|
594 |
-
msgstr "
|
595 |
|
596 |
-
#: ../includes/ure-user-edit.php:
|
597 |
msgid "Change capabilities for user"
|
598 |
-
msgstr "Altere as
|
599 |
-
|
600 |
-
#: ../includes/ure-user-edit.php:
|
601 |
-
msgid "
|
602 |
-
msgstr "
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
msgstr "
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
msgid "
|
623 |
-
msgstr "
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
msgid "User"
|
631 |
-
msgstr "Usuário"
|
632 |
-
|
633 |
-
#: ../includes/ure-options.php:154
|
634 |
-
msgid "capabilities are updated successfully"
|
635 |
-
msgstr "Capacidades foram atualizadas com sucesso"
|
636 |
-
|
637 |
-
#: ../includes/ure-options.php:232
|
638 |
-
msgid "About this Plugin:"
|
639 |
-
msgstr "Sobre este Plugin:"
|
640 |
-
|
641 |
-
#: ../includes/ure-options.php:233
|
642 |
-
msgid "Author's website"
|
643 |
-
msgstr "Website do Autor"
|
644 |
-
|
645 |
-
#: ../includes/ure-options.php:234
|
646 |
-
msgid "Plugin webpage"
|
647 |
-
msgstr "Página do Plugin"
|
648 |
-
|
649 |
-
#: ../includes/ure-options.php:236
|
650 |
-
msgid "FAQ"
|
651 |
-
msgstr "FAQ"
|
652 |
-
|
653 |
-
#: ../includes/ure-options.php:237
|
654 |
-
msgid "Greetings"
|
655 |
-
msgstr "Saudações"
|
656 |
-
|
657 |
-
#: ../includes/ure-options.php:259
|
658 |
-
msgid "Greetings:"
|
659 |
-
msgstr "Saudações"
|
660 |
-
|
661 |
-
#: ../includes/ure-options.php:260
|
662 |
-
msgid "It's me, the author"
|
663 |
-
msgstr "Sou eu, o autor"
|
664 |
-
|
665 |
-
#: ../includes/ure-options.php:261
|
666 |
-
msgid "For the help with Belorussian translation"
|
667 |
-
msgstr "Para obter ajuda com a tradução Bielorrussa"
|
668 |
-
|
669 |
-
#: ../includes/ure-options.php:262
|
670 |
-
msgid "For the help with Brasilian translation"
|
671 |
-
msgstr "Para obter ajuda com a tradução Portuguesa (Brasil)"
|
672 |
-
|
673 |
-
#: ../includes/ure-options.php:263
|
674 |
-
msgid "For the help with Brasilian Portuguese translation"
|
675 |
-
msgstr "Para obter ajuda com a tradução Portuguesa (Brasil)"
|
676 |
-
|
677 |
-
#: ../includes/ure-options.php:264
|
678 |
-
msgid "For the help with Chinese translation"
|
679 |
-
msgstr "Para obter ajuda com a tradução Chinesa"
|
680 |
-
|
681 |
-
#: ../includes/ure-options.php:265
|
682 |
-
msgid "For the help with Dutch translation"
|
683 |
-
msgstr "Para obter ajuda com a tradução Holandesa"
|
684 |
-
|
685 |
-
#: ../includes/ure-options.php:266
|
686 |
-
msgid "For the help with Finnish translation"
|
687 |
-
msgstr "Para obter ajuda com a tradução Finlandesa"
|
688 |
-
|
689 |
-
#: ../includes/ure-options.php:267
|
690 |
-
#: ../includes/ure-options.php:268
|
691 |
-
msgid "For the help with French translation"
|
692 |
-
msgstr "Para obter ajuda com a tradução Francesa"
|
693 |
-
|
694 |
-
#: ../includes/ure-options.php:269
|
695 |
-
msgid "For the help with German translation"
|
696 |
-
msgstr "Para obter ajuda com a tradução Alemã"
|
697 |
-
|
698 |
-
#: ../includes/ure-options.php:270
|
699 |
-
#: ../includes/ure-options.php:271
|
700 |
-
msgid "For the help with Hebrew translation"
|
701 |
-
msgstr "Para obter ajuda com a tradução Hebraica"
|
702 |
-
|
703 |
-
#: ../includes/ure-options.php:272
|
704 |
-
msgid "For the help with Hindi translation"
|
705 |
-
msgstr "Para obter ajuda com a tradução Hindi"
|
706 |
-
|
707 |
-
#: ../includes/ure-options.php:273
|
708 |
-
msgid "For the help with Hungarian translation"
|
709 |
-
msgstr "Para obter ajuda com a tradução Húngara"
|
710 |
-
|
711 |
-
#: ../includes/ure-options.php:274
|
712 |
-
#: ../includes/ure-options.php:275
|
713 |
-
msgid "For the help with Italian translation"
|
714 |
-
msgstr "Para obter ajuda com a tradução Italiana"
|
715 |
-
|
716 |
-
#: ../includes/ure-options.php:276
|
717 |
-
msgid "For the help with Japanese translation"
|
718 |
-
msgstr "Para obter ajuda com a tradução Japonesa"
|
719 |
-
|
720 |
-
#: ../includes/ure-options.php:277
|
721 |
-
msgid "For the help with Lithuanian translation"
|
722 |
-
msgstr "Para obter ajuda com a tradução Lituana"
|
723 |
-
|
724 |
-
#: ../includes/ure-options.php:278
|
725 |
-
#: ../includes/ure-options.php:279
|
726 |
-
#: ../includes/ure-options.php:280
|
727 |
-
msgid "For the help with Persian translation"
|
728 |
-
msgstr "Para obter ajuda com a tradução Persa"
|
729 |
-
|
730 |
-
#: ../includes/ure-options.php:281
|
731 |
-
#: ../includes/ure-options.php:282
|
732 |
-
msgid "For the help with Polish translation"
|
733 |
-
msgstr "Para obter ajuda com a tradução Polonesa"
|
734 |
-
|
735 |
-
#: ../includes/ure-options.php:283
|
736 |
-
#: ../includes/ure-options.php:284
|
737 |
-
msgid "For the help with Spanish translation"
|
738 |
-
msgstr "Para obter ajuda com a tradução Espanhola"
|
739 |
-
|
740 |
-
#: ../includes/ure-options.php:285
|
741 |
-
msgid "For the updated Swedish translation"
|
742 |
-
msgstr "Para a tradução Sueca atualizada"
|
743 |
-
|
744 |
-
#: ../includes/ure-options.php:286
|
745 |
-
msgid "For the help with Swedish translation"
|
746 |
-
msgstr "Para obter ajuda com a tradução Sueca"
|
747 |
-
|
748 |
-
#: ../includes/ure-options.php:287
|
749 |
-
msgid "For the help with Turkish translation"
|
750 |
-
msgstr "Para obter ajuda com a tradução Turca"
|
751 |
-
|
752 |
-
#: ../includes/ure-options.php:289
|
753 |
-
msgid "For the code to hide administrator role"
|
754 |
-
msgstr "Para o código para esconder o papel do administrador"
|
755 |
-
|
756 |
-
#: ../includes/ure-options.php:290
|
757 |
-
msgid "For the code enhancement suggestion"
|
758 |
-
msgstr "Para sugerir melhorias"
|
759 |
-
|
760 |
-
#: ../includes/ure-options.php:292
|
761 |
-
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."
|
762 |
-
msgstr "Você quer ver o seu nome com link para o seu site aqui? Você é bem-vindo! Sua ajuda nas traduções e novas idéias serão muito úteis."
|
763 |
-
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: User Role Editor 2.0\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2013-03-10 01:01-0300\n"
|
6 |
+
"PO-Revision-Date: 2013-03-10 01:03-0300\n"
|
7 |
+
"Last-Translator: André da Gama e Souza <andre@tribee.com.br>\n"
|
8 |
"Language-Team: Onbiz Team <contato@onbiz.com.br>\n"
|
9 |
+
"Language: pt_BR\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
|
|
|
|
13 |
"X-Poedit-SourceCharset: utf-8\n"
|
14 |
"X-Poedit-KeywordsList: __;_e\n"
|
15 |
"X-Poedit-Basepath: .\n"
|
16 |
+
"X-Generator: Poedit 1.5.5\n"
|
17 |
"X-Poedit-SearchPath-0: ..\n"
|
18 |
|
19 |
# Role (Função ou Papel)
|
20 |
# Capability (Capacidade ou Permissão)
|
21 |
+
#: ../user-role-editor.php:34
|
22 |
+
#, php-format
|
23 |
+
msgid "User Role Editor requires WordPress %s or newer."
|
24 |
+
msgstr "O \"User Role Editor\" requer WordPress %s ou superior."
|
25 |
|
26 |
+
#: ../user-role-editor.php:35 ../user-role-editor.php:42
|
|
|
27 |
msgid "Please update!"
|
28 |
msgstr "Por favor, atualize!"
|
29 |
|
30 |
+
#: ../user-role-editor.php:41
|
31 |
+
#, php-format
|
32 |
+
msgid "User Role Editor requires PHP %s or newer."
|
33 |
+
msgstr "O User Role Editor requer PHP %s ou superior."
|
34 |
|
35 |
+
#: ../user-role-editor.php:89
|
36 |
msgid "Only"
|
37 |
msgstr "Apenas"
|
38 |
|
39 |
+
#: ../user-role-editor.php:89
|
40 |
msgid "is allowed to use"
|
41 |
msgstr "pode usar"
|
42 |
|
43 |
+
#: ../user-role-editor.php:95 ../user-role-editor.php:279
|
44 |
+
#: ../user-role-editor.php:330
|
45 |
msgid "User Role Editor"
|
46 |
msgstr "User Role Editor"
|
47 |
|
48 |
+
#: ../user-role-editor.php:251
|
49 |
msgid "Settings"
|
50 |
msgstr "Configurações"
|
51 |
|
52 |
+
#: ../user-role-editor.php:261 ../includes/ure-options.php:237
|
|
|
53 |
msgid "Changelog"
|
54 |
msgstr "Atualizações"
|
55 |
|
56 |
+
#: ../user-role-editor.php:308
|
57 |
msgid "Capabilities"
|
58 |
msgstr "Capacidades"
|
59 |
|
60 |
+
#: ../user-role-editor.php:333 ../user-role-editor.php:363
|
61 |
+
msgid "Other Roles"
|
62 |
+
msgstr "Outras regras"
|
63 |
|
64 |
+
#: ../user-role-editor.php:337
|
65 |
+
msgid "Edit"
|
66 |
+
msgstr "Editar"
|
67 |
|
68 |
+
#: ../includes/ure-lib.php:35
|
69 |
+
msgid "Error is occur. Please check the log file."
|
70 |
+
msgstr "Ocorreu um erro. Por favor, verifique o arquivo de log."
|
71 |
|
72 |
+
#: ../includes/ure-lib.php:340
|
73 |
msgid "Backup record is created for the current role capabilities"
|
74 |
+
msgstr "Cópia de segurança criada para as capacidades de regras atuais"
|
75 |
|
76 |
+
#: ../includes/ure-lib.php:454
|
77 |
msgid "Error: Role name must contain latin characters and digits only!"
|
78 |
+
msgstr "Erro: o nome da regra deve conter apenas números e letras!"
|
79 |
|
80 |
+
#: ../includes/ure-lib.php:461
|
81 |
#, php-format
|
82 |
msgid "Role %s exists already"
|
83 |
msgstr "Função %s já existe"
|
84 |
|
85 |
+
#: ../includes/ure-lib.php:474
|
86 |
msgid "Error is encountered during new role create operation"
|
87 |
+
msgstr "Um erro foi encontrado durante a criação de uma nova regra"
|
88 |
|
89 |
+
#: ../includes/ure-lib.php:476
|
90 |
#, php-format
|
91 |
msgid "Role %s is created successfully"
|
92 |
+
msgstr "A regra %s foi criada com sucesso"
|
93 |
|
94 |
+
#: ../includes/ure-lib.php:560
|
95 |
msgid "Error encountered during role delete operation"
|
96 |
+
msgstr "Erro encontrado durante a remoção da regra"
|
97 |
|
98 |
+
#: ../includes/ure-lib.php:562
|
99 |
#, php-format
|
100 |
msgid "Role %s is deleted successfully"
|
101 |
+
msgstr "A regra %s foi excluída com sucesso"
|
102 |
|
103 |
+
#: ../includes/ure-lib.php:580
|
104 |
msgid "Error encountered during default role change operation"
|
105 |
+
msgstr "Erro encontrado durante a alteração de uma regra padrão"
|
106 |
|
107 |
+
#: ../includes/ure-lib.php:586
|
108 |
#, php-format
|
109 |
msgid "Default role for new users is set to %s successfully"
|
110 |
+
msgstr "A regra padrão para novos usuários foi ajustada para %s com sucesso"
|
111 |
|
112 |
+
#: ../includes/ure-lib.php:614
|
113 |
msgid "Editor"
|
114 |
msgstr "Editor"
|
115 |
|
116 |
+
#: ../includes/ure-lib.php:615
|
117 |
msgid "Author"
|
118 |
msgstr "Autor"
|
119 |
|
120 |
+
#: ../includes/ure-lib.php:616
|
121 |
msgid "Contributor"
|
122 |
msgstr "Colaborador"
|
123 |
|
124 |
+
#: ../includes/ure-lib.php:617
|
125 |
msgid "Subscriber"
|
126 |
msgstr "Assinante"
|
127 |
|
128 |
+
#: ../includes/ure-lib.php:619
|
129 |
msgid "Switch themes"
|
130 |
msgstr "Trocar temas"
|
131 |
|
132 |
+
#: ../includes/ure-lib.php:620
|
133 |
msgid "Edit themes"
|
134 |
msgstr "Editar temas"
|
135 |
|
136 |
+
#: ../includes/ure-lib.php:621
|
137 |
msgid "Activate plugins"
|
138 |
msgstr "Ativar plugins"
|
139 |
|
140 |
+
#: ../includes/ure-lib.php:622
|
141 |
msgid "Edit plugins"
|
142 |
msgstr "Editar plugins"
|
143 |
|
144 |
+
#: ../includes/ure-lib.php:623
|
145 |
msgid "Edit users"
|
146 |
msgstr "Editar usuários"
|
147 |
|
148 |
+
#: ../includes/ure-lib.php:624
|
149 |
msgid "Edit files"
|
150 |
msgstr "Editar arquivos"
|
151 |
|
152 |
+
#: ../includes/ure-lib.php:625
|
153 |
msgid "Manage options"
|
154 |
msgstr "Gerenciar opções"
|
155 |
|
156 |
+
#: ../includes/ure-lib.php:626
|
157 |
msgid "Moderate comments"
|
158 |
msgstr "Moderar comentários"
|
159 |
|
160 |
+
#: ../includes/ure-lib.php:627
|
161 |
msgid "Manage categories"
|
162 |
msgstr "Gerenciar categorias"
|
163 |
|
164 |
+
#: ../includes/ure-lib.php:628
|
165 |
msgid "Manage links"
|
166 |
msgstr "Gerenciar links"
|
167 |
|
168 |
+
#: ../includes/ure-lib.php:629
|
169 |
msgid "Upload files"
|
170 |
msgstr "Enviar arquivos"
|
171 |
|
172 |
+
#: ../includes/ure-lib.php:630
|
173 |
msgid "Import"
|
174 |
msgstr "Importar"
|
175 |
|
176 |
+
#: ../includes/ure-lib.php:631
|
177 |
msgid "Unfiltered html"
|
178 |
msgstr "HTML não filtrado"
|
179 |
|
180 |
+
#: ../includes/ure-lib.php:632
|
181 |
msgid "Edit posts"
|
182 |
msgstr "Editar posts"
|
183 |
|
184 |
+
#: ../includes/ure-lib.php:633
|
185 |
msgid "Edit others posts"
|
186 |
msgstr "Editar posts dos outros"
|
187 |
|
188 |
+
#: ../includes/ure-lib.php:634
|
189 |
msgid "Edit published posts"
|
190 |
msgstr "Editar posts publicados"
|
191 |
|
192 |
+
#: ../includes/ure-lib.php:635
|
193 |
msgid "Publish posts"
|
194 |
msgstr "Publicar posts"
|
195 |
|
196 |
+
#: ../includes/ure-lib.php:636
|
197 |
msgid "Edit pages"
|
198 |
msgstr "Editar páginas"
|
199 |
|
200 |
+
#: ../includes/ure-lib.php:637
|
201 |
msgid "Read"
|
202 |
msgstr "Ler"
|
203 |
|
204 |
+
#: ../includes/ure-lib.php:638
|
205 |
msgid "Level 10"
|
206 |
msgstr "Nível 10"
|
207 |
|
208 |
+
#: ../includes/ure-lib.php:639
|
209 |
msgid "Level 9"
|
210 |
msgstr "Nível 9"
|
211 |
|
212 |
+
#: ../includes/ure-lib.php:640
|
213 |
msgid "Level 8"
|
214 |
msgstr "Nível 8"
|
215 |
|
216 |
+
#: ../includes/ure-lib.php:641
|
217 |
msgid "Level 7"
|
218 |
msgstr "Nível 7"
|
219 |
|
220 |
+
#: ../includes/ure-lib.php:642
|
221 |
msgid "Level 6"
|
222 |
msgstr "Nível 6"
|
223 |
|
224 |
+
#: ../includes/ure-lib.php:643
|
225 |
msgid "Level 5"
|
226 |
msgstr "Nível 5"
|
227 |
|
228 |
+
#: ../includes/ure-lib.php:644
|
229 |
msgid "Level 4"
|
230 |
msgstr "Nível 4"
|
231 |
|
232 |
+
#: ../includes/ure-lib.php:645
|
233 |
msgid "Level 3"
|
234 |
msgstr "Nível 3"
|
235 |
|
236 |
+
#: ../includes/ure-lib.php:646
|
237 |
msgid "Level 2"
|
238 |
msgstr "Nível 2"
|
239 |
|
240 |
+
#: ../includes/ure-lib.php:647
|
241 |
msgid "Level 1"
|
242 |
msgstr "Nível 1"
|
243 |
|
244 |
+
#: ../includes/ure-lib.php:648
|
245 |
msgid "Level 0"
|
246 |
msgstr "Nível 0"
|
247 |
|
248 |
+
#: ../includes/ure-lib.php:649
|
249 |
msgid "Edit others pages"
|
250 |
msgstr "Editar páginas dos outros"
|
251 |
|
252 |
+
#: ../includes/ure-lib.php:650
|
253 |
msgid "Edit published pages"
|
254 |
msgstr "Editar páginas publicadas"
|
255 |
|
256 |
+
#: ../includes/ure-lib.php:651
|
257 |
msgid "Publish pages"
|
258 |
msgstr "Publicar páginas"
|
259 |
|
260 |
+
#: ../includes/ure-lib.php:652
|
261 |
msgid "Delete pages"
|
262 |
msgstr "Excluir páginas"
|
263 |
|
264 |
+
#: ../includes/ure-lib.php:653
|
265 |
msgid "Delete others pages"
|
266 |
msgstr "Excluir páginas dos outros"
|
267 |
|
268 |
+
#: ../includes/ure-lib.php:654
|
269 |
msgid "Delete published pages"
|
270 |
msgstr "Excluir páginas publicadas"
|
271 |
|
272 |
+
#: ../includes/ure-lib.php:655
|
273 |
msgid "Delete posts"
|
274 |
msgstr "Excluir posts"
|
275 |
|
276 |
+
#: ../includes/ure-lib.php:656
|
277 |
msgid "Delete others posts"
|
278 |
msgstr "Excluir posts dos outros"
|
279 |
|
280 |
+
#: ../includes/ure-lib.php:657
|
281 |
msgid "Delete published posts"
|
282 |
msgstr "Excluir posts publicados"
|
283 |
|
284 |
+
#: ../includes/ure-lib.php:658
|
285 |
msgid "Delete private posts"
|
286 |
msgstr "Excluir posts privados"
|
287 |
|
288 |
+
#: ../includes/ure-lib.php:659
|
289 |
msgid "Edit private posts"
|
290 |
msgstr "Editar posts privados"
|
291 |
|
292 |
+
#: ../includes/ure-lib.php:660
|
293 |
msgid "Read private posts"
|
294 |
msgstr "Ler posts privados"
|
295 |
|
296 |
+
#: ../includes/ure-lib.php:661
|
297 |
msgid "Delete private pages"
|
298 |
msgstr "Excluir páginas privadas"
|
299 |
|
300 |
+
#: ../includes/ure-lib.php:662
|
301 |
msgid "Edit private pages"
|
302 |
msgstr "Editar páginas privadas"
|
303 |
|
304 |
+
#: ../includes/ure-lib.php:663
|
305 |
msgid "Read private pages"
|
306 |
msgstr "Ler páginas privadas"
|
307 |
|
308 |
+
#: ../includes/ure-lib.php:664
|
309 |
msgid "Delete users"
|
310 |
msgstr "Excluir usuários"
|
311 |
|
312 |
+
#: ../includes/ure-lib.php:665
|
313 |
msgid "Create users"
|
314 |
msgstr "Criar usuários"
|
315 |
|
316 |
+
#: ../includes/ure-lib.php:666
|
317 |
msgid "Unfiltered upload"
|
318 |
msgstr "Envio não filtrado"
|
319 |
|
320 |
+
#: ../includes/ure-lib.php:667
|
321 |
msgid "Edit dashboard"
|
322 |
msgstr "Editar Painel"
|
323 |
|
324 |
+
#: ../includes/ure-lib.php:668
|
325 |
msgid "Update plugins"
|
326 |
msgstr "Atualizar plugins"
|
327 |
|
328 |
+
#: ../includes/ure-lib.php:669
|
329 |
msgid "Delete plugins"
|
330 |
msgstr "Excluir plugins"
|
331 |
|
332 |
+
#: ../includes/ure-lib.php:670
|
333 |
msgid "Install plugins"
|
334 |
msgstr "Instalar plugins"
|
335 |
|
336 |
+
#: ../includes/ure-lib.php:671
|
337 |
msgid "Update themes"
|
338 |
msgstr "Atualizar temas"
|
339 |
|
340 |
+
#: ../includes/ure-lib.php:672
|
341 |
msgid "Install themes"
|
342 |
msgstr "Instalar temas"
|
343 |
|
344 |
+
#: ../includes/ure-lib.php:673
|
345 |
msgid "Update core"
|
346 |
msgstr "Atualizar núcleo"
|
347 |
|
348 |
+
#: ../includes/ure-lib.php:674
|
349 |
msgid "List users"
|
350 |
+
msgstr "Listar usuários"
|
351 |
|
352 |
+
#: ../includes/ure-lib.php:675
|
353 |
msgid "Remove users"
|
354 |
msgstr "Remover usuários"
|
355 |
|
356 |
+
#: ../includes/ure-lib.php:676
|
357 |
msgid "Add users"
|
358 |
+
msgstr "Adicionar usuários"
|
359 |
|
360 |
+
#: ../includes/ure-lib.php:677
|
361 |
msgid "Promote users"
|
362 |
msgstr "Promover usuários"
|
363 |
|
364 |
+
#: ../includes/ure-lib.php:678
|
365 |
msgid "Edit theme options"
|
366 |
msgstr "Editar opções do tema"
|
367 |
|
368 |
+
#: ../includes/ure-lib.php:679
|
369 |
msgid "Delete themes"
|
370 |
msgstr "Excluir temas"
|
371 |
|
372 |
+
#: ../includes/ure-lib.php:680
|
373 |
msgid "Export"
|
374 |
msgstr "Exportar"
|
375 |
|
376 |
+
#: ../includes/ure-lib.php:776
|
377 |
msgid "Error: Capability name must contain latin characters and digits only!"
|
378 |
+
msgstr "Erro: O Nome da capacidade deve conter letras e números apenas!"
|
379 |
|
380 |
+
#: ../includes/ure-lib.php:788
|
381 |
#, php-format
|
382 |
msgid "Capability %s is added successfully"
|
383 |
+
msgstr "A capacidade %s foi adicionada com sucesso"
|
384 |
|
385 |
+
#: ../includes/ure-lib.php:790
|
386 |
#, php-format
|
387 |
msgid "Capability %s exists already"
|
388 |
+
msgstr "A capacidade %s já existe"
|
389 |
|
390 |
+
#: ../includes/ure-lib.php:939
|
391 |
#, php-format
|
392 |
msgid "Error! You do not have permission to delete this capability: %s!"
|
393 |
+
msgstr "Erro! Você não tem permissão para excluir esta capacidade: %s!"
|
394 |
|
395 |
+
#: ../includes/ure-lib.php:961
|
396 |
#, php-format
|
397 |
msgid "Capability %s is removed successfully"
|
398 |
+
msgstr "A capacidade %s foi removida com sucesso"
|
399 |
|
400 |
+
#: ../includes/ure-lib.php:1028
|
401 |
msgid "Help"
|
402 |
msgstr "Ajuda"
|
403 |
|
404 |
+
#: ../includes/ure-options.php:59
|
405 |
+
msgid "User Roles are restored to WordPress default values. "
|
406 |
+
msgstr "As regras de usuário foram restauradas para os padrões do WordPress."
|
407 |
+
|
408 |
+
#: ../includes/ure-options.php:131
|
409 |
+
msgid "Error: "
|
410 |
+
msgstr "Erro:"
|
411 |
+
|
412 |
+
#: ../includes/ure-options.php:131 ../includes/ure-options.php:149
|
413 |
+
msgid "Role"
|
414 |
+
msgstr "Regra"
|
415 |
+
|
416 |
+
#: ../includes/ure-options.php:131
|
417 |
+
msgid "does not exist"
|
418 |
+
msgstr "não existe"
|
419 |
+
|
420 |
+
#: ../includes/ure-options.php:149
|
421 |
+
msgid "is updated successfully"
|
422 |
+
msgstr "foi atualizado com sucesso"
|
423 |
+
|
424 |
+
#: ../includes/ure-options.php:157
|
425 |
+
msgid "User"
|
426 |
+
msgstr "Usuário"
|
427 |
+
|
428 |
+
#: ../includes/ure-options.php:157
|
429 |
+
msgid "capabilities are updated successfully"
|
430 |
+
msgstr "Capacidades foram atualizadas com sucesso"
|
431 |
+
|
432 |
+
#: ../includes/ure-options.php:234
|
433 |
+
msgid "About this Plugin:"
|
434 |
+
msgstr "Sobre este plugin:"
|
435 |
+
|
436 |
+
#: ../includes/ure-options.php:235
|
437 |
+
msgid "Author's website"
|
438 |
+
msgstr "Website do Autor"
|
439 |
+
|
440 |
+
#: ../includes/ure-options.php:236
|
441 |
+
msgid "Plugin webpage"
|
442 |
+
msgstr "Página do plugin"
|
443 |
+
|
444 |
+
#: ../includes/ure-options.php:238
|
445 |
+
msgid "FAQ"
|
446 |
+
msgstr "FAQ"
|
447 |
+
|
448 |
+
#: ../includes/ure-options.php:239 ../includes/ure-options.php:261
|
449 |
+
msgid "Greetings"
|
450 |
+
msgstr "Saudações"
|
451 |
+
|
452 |
+
#: ../includes/ure-options.php:251
|
453 |
+
msgid "Recently donated"
|
454 |
+
msgstr "Doações recentes"
|
455 |
+
|
456 |
+
#: ../includes/ure-options.php:262
|
457 |
+
msgid "It's me, the author"
|
458 |
+
msgstr "Sou eu, o autor"
|
459 |
+
|
460 |
+
#: ../includes/ure-options.php:263
|
461 |
+
msgid "For the help with Arabic translation"
|
462 |
+
msgstr "Para obter ajuda com a tradução Árabe"
|
463 |
+
|
464 |
+
#: ../includes/ure-options.php:264
|
465 |
+
msgid "For the help with Belorussian translation"
|
466 |
+
msgstr "Para obter ajuda com a tradução Bielorrussa"
|
467 |
+
|
468 |
+
#: ../includes/ure-options.php:265
|
469 |
+
msgid "For the help with Brasilian translation"
|
470 |
+
msgstr "Para obter ajuda com a tradução do Português Brasileiro"
|
471 |
+
|
472 |
+
#: ../includes/ure-options.php:266
|
473 |
+
msgid "For the help with Brasilian Portuguese translation"
|
474 |
+
msgstr "Para obter ajuda com a tradução do Português Brasileiro"
|
475 |
+
|
476 |
+
#: ../includes/ure-options.php:267
|
477 |
+
msgid "For the help with Chinese translation"
|
478 |
+
msgstr "Para obter ajuda com a tradução Chinesa"
|
479 |
+
|
480 |
+
#: ../includes/ure-options.php:268
|
481 |
+
msgid "For the help with Dutch translation"
|
482 |
+
msgstr "Para obter ajuda com a tradução Holandesa"
|
483 |
+
|
484 |
+
#: ../includes/ure-options.php:269
|
485 |
+
msgid "For the help with Finnish translation"
|
486 |
+
msgstr "Para obter ajuda com a tradução Finlandesa"
|
487 |
+
|
488 |
+
#: ../includes/ure-options.php:270 ../includes/ure-options.php:271
|
489 |
+
msgid "For the help with French translation"
|
490 |
+
msgstr "Para obter ajuda com a tradução Francesa"
|
491 |
+
|
492 |
+
#: ../includes/ure-options.php:272
|
493 |
+
msgid "For the help with German translation"
|
494 |
+
msgstr "Para obter ajuda com a tradução Alemã"
|
495 |
+
|
496 |
+
#: ../includes/ure-options.php:273 ../includes/ure-options.php:274
|
497 |
+
msgid "For the help with Hebrew translation"
|
498 |
+
msgstr "Para obter ajuda com a tradução Hebraica"
|
499 |
+
|
500 |
+
#: ../includes/ure-options.php:275
|
501 |
+
msgid "For the help with Hindi translation"
|
502 |
+
msgstr "Para obter ajuda com a tradução Hindi"
|
503 |
+
|
504 |
+
#: ../includes/ure-options.php:276
|
505 |
+
msgid "For the help with Hungarian translation"
|
506 |
+
msgstr "Para obter ajuda com a tradução Húngara"
|
507 |
+
|
508 |
+
#: ../includes/ure-options.php:277 ../includes/ure-options.php:278
|
509 |
+
msgid "For the help with Italian translation"
|
510 |
+
msgstr "Para obter ajuda com a tradução Italiana"
|
511 |
+
|
512 |
+
#: ../includes/ure-options.php:279
|
513 |
+
msgid "For the help with Japanese translation"
|
514 |
+
msgstr "Para obter ajuda com a tradução Japonesa"
|
515 |
+
|
516 |
+
#: ../includes/ure-options.php:280
|
517 |
+
msgid "For the help with Lithuanian translation"
|
518 |
+
msgstr "Para obter ajuda com a tradução Lituana"
|
519 |
+
|
520 |
+
#: ../includes/ure-options.php:281 ../includes/ure-options.php:282
|
521 |
+
#: ../includes/ure-options.php:283
|
522 |
+
msgid "For the help with Persian translation"
|
523 |
+
msgstr "Para obter ajuda com a tradução Persa"
|
524 |
+
|
525 |
+
#: ../includes/ure-options.php:284 ../includes/ure-options.php:285
|
526 |
+
msgid "For the help with Polish translation"
|
527 |
+
msgstr "Para obter ajuda com a tradução Polonesa"
|
528 |
+
|
529 |
+
# Last updated: 03/10/2013
|
530 |
+
# Credits: André Gama
|
531 |
+
#: ../includes/ure-options.php:286
|
532 |
+
#, fuzzy
|
533 |
+
msgid "For the help with Serbian translation"
|
534 |
+
msgstr "Para obter ajuda com a tradução Persa"
|
535 |
+
|
536 |
+
#: ../includes/ure-options.php:287
|
537 |
+
msgid "For the help with Slovak translation"
|
538 |
+
msgstr "Para obter ajuda com a tradução Eslováquia"
|
539 |
+
|
540 |
+
#: ../includes/ure-options.php:288 ../includes/ure-options.php:289
|
541 |
+
msgid "For the help with Spanish translation"
|
542 |
+
msgstr "Para obter ajuda com a tradução Espanhola"
|
543 |
+
|
544 |
+
#: ../includes/ure-options.php:290
|
545 |
+
msgid "For the updated Swedish translation"
|
546 |
+
msgstr "Para a tradução Sueca atualizada"
|
547 |
+
|
548 |
+
#: ../includes/ure-options.php:291
|
549 |
+
msgid "For the help with Swedish translation"
|
550 |
+
msgstr "Para obter ajuda com a tradução Sueca"
|
551 |
+
|
552 |
+
#: ../includes/ure-options.php:292
|
553 |
+
#, fuzzy
|
554 |
+
msgid "For the help with Traditional Chinese translation"
|
555 |
+
msgstr "Para obter ajuda com a tradução Chinesa"
|
556 |
+
|
557 |
+
#: ../includes/ure-options.php:293
|
558 |
+
msgid "For the help with Turkish translation"
|
559 |
+
msgstr "Para obter ajuda com a tradução Turca"
|
560 |
+
|
561 |
+
#: ../includes/ure-options.php:295
|
562 |
+
msgid "For the code to hide administrator role"
|
563 |
+
msgstr "Para o código esconder a regra do administrador"
|
564 |
+
|
565 |
+
#: ../includes/ure-options.php:296
|
566 |
+
msgid "For the code enhancement suggestion"
|
567 |
+
msgstr "Para sugerir melhorias no código"
|
568 |
+
|
569 |
+
#: ../includes/ure-options.php:298
|
570 |
+
msgid ""
|
571 |
+
"Do you wish to see your name with link to your site here? You are welcome! "
|
572 |
+
"Your help with translation and new ideas are very appreciated."
|
573 |
+
msgstr ""
|
574 |
+
"Você quer ver o seu nome com link para o seu site aqui? Você é bem-vindo! "
|
575 |
+
"Sua ajuda nas traduções e novas idéias serão muito úteis."
|
576 |
+
|
577 |
#: ../includes/ure-role-edit.php:29
|
578 |
msgid "None"
|
579 |
msgstr "Nenhum"
|
580 |
|
581 |
+
#: ../includes/ure-role-edit.php:105
|
582 |
msgid " Name can not be empty!"
|
583 |
+
msgstr "O Nome não pode estar vazio!"
|
584 |
|
585 |
+
#: ../includes/ure-role-edit.php:109
|
586 |
msgid " Name must contain latin characters and digits only!"
|
587 |
+
msgstr "O nome deve conter letras e números apenas!"
|
588 |
|
589 |
+
#: ../includes/ure-role-edit.php:114 ../includes/ure-role-edit.php:288
|
|
|
590 |
msgid "Delete Role"
|
591 |
+
msgstr "Excluir regra"
|
592 |
|
593 |
+
#: ../includes/ure-role-edit.php:116
|
594 |
msgid "Change Default Role"
|
595 |
+
msgstr "Alterar regra padrão"
|
596 |
|
597 |
+
#: ../includes/ure-role-edit.php:118
|
598 |
+
msgid ""
|
599 |
+
"Reset Roles to WordPress defaults. Be careful, all changes made by you or "
|
600 |
+
"plugins will be lost. Some plugins, e.g. S2Member, reactivation could be "
|
601 |
+
"needed"
|
602 |
+
msgstr ""
|
603 |
+
"Resetar as regras para os padrões do WordPress. Seja cuidadoso, todas as "
|
604 |
+
"alterações feitas por você ou plugins serão perdidas. Alguns plugins, ex. "
|
605 |
+
"S2Member, precisarão ser reativadas"
|
606 |
|
607 |
+
#: ../includes/ure-role-edit.php:120
|
608 |
+
msgid ""
|
609 |
+
"Warning! Be careful - removing critical capability could crash some plugin "
|
610 |
+
"or other custom code"
|
611 |
+
msgstr ""
|
612 |
+
"Aviso! Tenha cuidado - remover capacidades críticas pode afetar algum plugin "
|
613 |
+
"ou outro código personalizado"
|
614 |
|
615 |
+
#: ../includes/ure-role-edit.php:122
|
616 |
msgid "Please confirm to continue"
|
617 |
msgstr "Por favor, confirme para continuar"
|
618 |
|
619 |
+
#: ../includes/ure-role-edit.php:159
|
620 |
#, php-format
|
621 |
msgid "Role \"%s\" update: please confirm to continue"
|
622 |
+
msgstr "Atualização da regra \"%s\": por favor, confirme para continuar"
|
623 |
|
624 |
+
#: ../includes/ure-role-edit.php:169
|
625 |
msgid "Select Role and change its capabilities list"
|
626 |
+
msgstr "Selecione a regra e altere a sua lista de capacidades"
|
627 |
|
628 |
+
#: ../includes/ure-role-edit.php:171
|
629 |
msgid "Select Role:"
|
630 |
+
msgstr "Selecione a regra:"
|
631 |
|
632 |
+
#: ../includes/ure-role-edit.php:181 ../includes/ure-user-edit.php:64
|
|
|
633 |
msgid "Show capabilities in human readable form"
|
634 |
+
msgstr "Exiba as capacidades de uma forma legível por um ser humano"
|
635 |
|
636 |
+
#: ../includes/ure-role-edit.php:190 ../includes/ure-user-edit.php:73
|
|
|
637 |
msgid "Show deprecated capabilities"
|
638 |
+
msgstr "Exiba as capacidades obsoletas"
|
639 |
|
640 |
+
#: ../includes/ure-role-edit.php:194
|
641 |
msgid "If checked, then apply action to ALL sites of this Network"
|
642 |
+
msgstr "Se marcado, as ações serão aplicadas a TODOS os sites desta Rede"
|
643 |
|
644 |
+
#: ../includes/ure-role-edit.php:204
|
645 |
msgid "Apply to All Sites"
|
646 |
+
msgstr "Aplicar a todos os sites"
|
647 |
|
648 |
+
#: ../includes/ure-role-edit.php:211 ../includes/ure-user-edit.php:91
|
|
|
|
|
649 |
msgid "Core capabilities:"
|
650 |
+
msgstr "Capacidades do núcleo:"
|
651 |
|
652 |
+
#: ../includes/ure-role-edit.php:223 ../includes/ure-user-edit.php:103
|
|
|
|
|
653 |
msgid "Custom capabilities:"
|
654 |
+
msgstr "Capacidades customizadas:"
|
655 |
|
656 |
+
#: ../includes/ure-role-edit.php:240 ../includes/ure-user-edit.php:122
|
|
|
657 |
msgid "Update"
|
658 |
msgstr "Atualizar"
|
659 |
|
660 |
+
#: ../includes/ure-role-edit.php:240 ../includes/ure-user-edit.php:122
|
|
|
661 |
msgid "Save Changes"
|
662 |
msgstr "Salvar alterações"
|
663 |
|
664 |
+
#: ../includes/ure-role-edit.php:241 ../includes/ure-user-edit.php:123
|
|
|
665 |
msgid "Cancel"
|
666 |
msgstr "Cancelar"
|
667 |
|
668 |
+
#: ../includes/ure-role-edit.php:241 ../includes/ure-user-edit.php:123
|
|
|
669 |
msgid "Cancel not saved changes"
|
670 |
+
msgstr "Cancelar alterações não salvas"
|
671 |
|
672 |
+
#: ../includes/ure-role-edit.php:244
|
673 |
msgid "Select All"
|
674 |
+
msgstr "Selecionar tudo"
|
675 |
|
676 |
+
#: ../includes/ure-role-edit.php:244
|
677 |
msgid "Select All Capabilities"
|
678 |
+
msgstr "Selecionar todas as capacidades"
|
679 |
|
680 |
+
#: ../includes/ure-role-edit.php:248
|
681 |
msgid "Unselect All"
|
682 |
+
msgstr "Desfazer a seleção de todos"
|
683 |
|
684 |
+
#: ../includes/ure-role-edit.php:248
|
685 |
msgid "Unselect All Capabilities"
|
686 |
+
msgstr "Desfazer seleção de todas as capacidades"
|
687 |
|
688 |
+
#: ../includes/ure-role-edit.php:249
|
689 |
msgid "Reverse"
|
690 |
msgstr "Reverter"
|
691 |
|
692 |
+
#: ../includes/ure-role-edit.php:249
|
693 |
msgid "Turn checked capabilities off and vise versa"
|
694 |
+
msgstr "Desligar as capacidades marcadas e vice-versa"
|
695 |
|
696 |
+
#: ../includes/ure-role-edit.php:255
|
697 |
msgid "Reset"
|
698 |
msgstr "Limpar"
|
699 |
|
700 |
+
#: ../includes/ure-role-edit.php:255
|
701 |
+
msgid "Reset Roles to WordPress defaults. All your changes will be lost"
|
702 |
+
msgstr ""
|
703 |
+
"Resetar as regras para os padrões do WordPress. Todas as alterações serão "
|
704 |
+
"perdidas"
|
705 |
|
706 |
+
#: ../includes/ure-role-edit.php:265
|
707 |
msgid "Add New Role"
|
708 |
+
msgstr "Adicionar nova regra"
|
709 |
|
710 |
+
#: ../includes/ure-role-edit.php:267
|
711 |
msgid "Name: "
|
712 |
msgstr "Nome: "
|
713 |
|
714 |
+
#: ../includes/ure-role-edit.php:271
|
715 |
msgid "Make copy of: "
|
716 |
msgstr "Fazer uma cópia de: "
|
717 |
|
718 |
+
#: ../includes/ure-role-edit.php:274 ../includes/ure-role-edit.php:303
|
|
|
719 |
msgid "Add"
|
720 |
msgstr "Adicionar"
|
721 |
|
722 |
+
#: ../includes/ure-role-edit.php:274
|
723 |
msgid "Add New User Role"
|
724 |
+
msgstr "Adicionar uma nova regra de usuário"
|
725 |
|
726 |
+
#: ../includes/ure-role-edit.php:278
|
727 |
msgid "Default Role for New User"
|
728 |
+
msgstr "Regra padrão para novo usuário"
|
729 |
|
730 |
+
#: ../includes/ure-role-edit.php:283
|
731 |
msgid "Change"
|
732 |
msgstr "Alterar"
|
733 |
|
734 |
+
#: ../includes/ure-role-edit.php:283
|
735 |
msgid "Set as Default User Role"
|
736 |
+
msgstr "Usar como regra padrão de usuário"
|
737 |
|
738 |
+
#: ../includes/ure-role-edit.php:293
|
739 |
msgid "Delete"
|
740 |
msgstr "Excluir"
|
741 |
|
742 |
+
#: ../includes/ure-role-edit.php:293
|
743 |
msgid "Delete User Role"
|
744 |
+
msgstr "Excluir regra de Usuário"
|
745 |
|
746 |
+
#: ../includes/ure-role-edit.php:298 ../includes/ure-role-edit.php:303
|
|
|
747 |
msgid "Add New Capability"
|
748 |
+
msgstr "Adicionar nova capacidade"
|
749 |
|
750 |
+
#: ../includes/ure-role-edit.php:308
|
751 |
msgid "Remove Capability"
|
752 |
+
msgstr "Remover capacidade"
|
753 |
|
754 |
+
#: ../includes/ure-role-edit.php:313
|
755 |
msgid "Remove"
|
756 |
msgstr "Remover"
|
757 |
|
758 |
+
#: ../includes/ure-role-edit.php:313
|
759 |
msgid "Remove User Capability"
|
760 |
+
msgstr "Remover capacidade de usuário"
|
761 |
|
762 |
+
#: ../includes/ure-user-edit.php:36
|
763 |
#, php-format
|
764 |
msgid "User \"%s\" update: please confirm to continue"
|
765 |
+
msgstr "Atualização do usuário \"%s\": por favor, confirme para continuar"
|
766 |
|
767 |
+
#: ../includes/ure-user-edit.php:48
|
768 |
msgid "Change capabilities for user"
|
769 |
+
msgstr "Altere as capacidades do usuário"
|
770 |
+
|
771 |
+
#: ../includes/ure-user-edit.php:78
|
772 |
+
msgid "Roles:"
|
773 |
+
msgstr "Regras:"
|
774 |
+
|
775 |
+
#~ msgid "Database operation error. Check log file."
|
776 |
+
#~ msgstr "Erro de operação de banco de dados. Verifique o arquivo de log."
|
777 |
+
|
778 |
+
#~ msgid ""
|
779 |
+
#~ "No backup data. It is created automatically before the first role data "
|
780 |
+
#~ "update."
|
781 |
+
#~ msgstr ""
|
782 |
+
#~ "Nenhuma cópia de segurança. Ela é criada automaticamente antes da "
|
783 |
+
#~ "atualização da primeira regra."
|
784 |
+
|
785 |
+
#~ msgid ""
|
786 |
+
#~ "Restore Roles from backup copy. Be careful, backup was created when you "
|
787 |
+
#~ "started URE 1st time. All changes you made after that will be lost"
|
788 |
+
#~ msgstr ""
|
789 |
+
#~ "Restaurar regras da cópia de segurança. Tenha cuidado, a cópia de "
|
790 |
+
#~ "segurança foi criada quando você iniciou o URE pela primeira vez. Todas "
|
791 |
+
#~ "as alterações feitas após isso serão perdidas"
|
792 |
+
|
793 |
+
#~ msgid "Restore Roles from backup copy"
|
794 |
+
#~ msgstr "Restaurar as regras à partir de uma cópia de segurança"
|
795 |
+
|
796 |
+
#~ msgid "Add capabilities to this user:"
|
797 |
+
#~ msgstr "Adicione capacidades à este usuário:"
|
798 |
+
|
799 |
+
#~ msgid "Greetings:"
|
800 |
+
#~ msgstr "Saudações:"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -19,7 +19,9 @@ Capabilities could be assigned on per user basis. Multiple roles could be assign
|
|
19 |
You can add new capabilities and remove unnecessary capabilities which could be left from uninstalled plugins.
|
20 |
Multi-site support is provided.
|
21 |
|
22 |
-
To
|
|
|
|
|
23 |
|
24 |
Русская версия этой статьи доступна по адресу [ru.shinephp.com](http://ru.shinephp.com/user-role-editor-wordpress-plugin-rus/)
|
25 |
|
@@ -31,7 +33,7 @@ Installation procedure:
|
|
31 |
1. Deactivate plugin if you have the previous version installed.
|
32 |
2. Extract "user-role-editor.zip" archive content to the "/wp-content/plugins/user-role-editor" directory.
|
33 |
3. Activate "User Role Editor" plugin via 'Plugins' menu in WordPress admin menu.
|
34 |
-
4. Go to the "
|
35 |
|
36 |
== Frequently Asked Questions ==
|
37 |
- Does it work with WordPress 3.3 in multi-site environment?
|
@@ -56,7 +58,7 @@ To read more about 'User Role Editor' visit [this page](http://www.shinephp.com/
|
|
56 |
|
57 |
= Translations =
|
58 |
* Arabic: [Yaser](http://www.englize.com/)
|
59 |
-
* Brasilian Portuguese: [Onbiz](http://www.onbiz.com.br/), [Rafael Galdencio](http://www.arquiteturailustrada.com.br)
|
60 |
* Dutch: [Frank Groeneveld](http://ivaldi.nl), [Rémi Bruggeman](http://www.remisan.be)
|
61 |
* French: [Presse et Multimedia](http://presse-et-multimedia.fr/blog), [Whiler](http://blogs.wittwer.fr/whiler)
|
62 |
* German: [Peter](http://www.becker-heidmann.de)
|
@@ -84,6 +86,21 @@ Share with me new ideas about plugin further development and link to your site w
|
|
84 |
|
85 |
|
86 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
|
88 |
= 3.10 =
|
89 |
* 04.02.2013
|
19 |
You can add new capabilities and remove unnecessary capabilities which could be left from uninstalled plugins.
|
20 |
Multi-site support is provided.
|
21 |
|
22 |
+
To subscribe for Premium support provided by User Role Editor plugin author Vladimir Garagulya visit [role-editor.com](htpp://role-editor.com)
|
23 |
+
|
24 |
+
To read more about 'User Role Editor' visit [this page](http://www.shinephp.com/user-role-editor-wordpress-plugin/) at [shinephp.com](http://shinephp.com)
|
25 |
|
26 |
Русская версия этой статьи доступна по адресу [ru.shinephp.com](http://ru.shinephp.com/user-role-editor-wordpress-plugin-rus/)
|
27 |
|
33 |
1. Deactivate plugin if you have the previous version installed.
|
34 |
2. Extract "user-role-editor.zip" archive content to the "/wp-content/plugins/user-role-editor" directory.
|
35 |
3. Activate "User Role Editor" plugin via 'Plugins' menu in WordPress admin menu.
|
36 |
+
4. Go to the "Users"-"User Role Editor" menu item and change your WordPress standard roles capabilities according to your needs.
|
37 |
|
38 |
== Frequently Asked Questions ==
|
39 |
- Does it work with WordPress 3.3 in multi-site environment?
|
58 |
|
59 |
= Translations =
|
60 |
* Arabic: [Yaser](http://www.englize.com/)
|
61 |
+
* Brasilian Portuguese: André Gama, [Onbiz](http://www.onbiz.com.br/), [Rafael Galdencio](http://www.arquiteturailustrada.com.br)
|
62 |
* Dutch: [Frank Groeneveld](http://ivaldi.nl), [Rémi Bruggeman](http://www.remisan.be)
|
63 |
* French: [Presse et Multimedia](http://presse-et-multimedia.fr/blog), [Whiler](http://blogs.wittwer.fr/whiler)
|
64 |
* German: [Peter](http://www.becker-heidmann.de)
|
86 |
|
87 |
|
88 |
== Changelog ==
|
89 |
+
= 3.12 =
|
90 |
+
* 01.05.2013
|
91 |
+
* Critical update: persistent cross-site scripting vulnerability is fixed.
|
92 |
+
* WordPress built-in constants, like WP_PLUGIN_URL are not used in order to provide compatibility with sites which use SSL. plugin_dir_url(), plugin_dir_path() functions are used to define paths to the plugin's files instead.
|
93 |
+
* "Greetings" section is removed from the plugin's main page. All that content is still available at [plugin page](http://shinephp.com/user-role-editor-wordpress-plugin)
|
94 |
+
|
95 |
+
|
96 |
+
= 3.11 =
|
97 |
+
* 24.03.2013
|
98 |
+
* Required WordPress version checking is moved to plugin activation hook.
|
99 |
+
* Administrator can now exclude non-core (custom) capabilities from his role. It is useful if you need to fully remove some capability as capability deletion is prohibited while it is used at least one role.
|
100 |
+
* bbPress compatibility issue is fixed: capabilities created by bbPress dinamically are excluded from the capabilities set in User Role Editor to not store them in the database as persistent WP roles data.
|
101 |
+
* Additional roles are assigned to user without overriding her primary WordPress role and bbPress role.
|
102 |
+
* Changing Wordpress user primary role at user profile doesn't clear additonal roles assigned with User Role Editor earlier.
|
103 |
+
* Brasilian Portuguese translation is updated.
|
104 |
|
105 |
= 3.10 =
|
106 |
* 04.02.2013
|
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/add/delete any WordPress user role (except administrator) capabilities list with a few clicks.
|
6 |
-
Version: 3.
|
7 |
Author: Vladimir Garagulya
|
8 |
Author URI: http://www.shinephp.com
|
9 |
Text Domain: ure
|
@@ -29,13 +29,6 @@ if (!function_exists("get_option")) {
|
|
29 |
die; // Silence is golden, direct call is prohibited
|
30 |
}
|
31 |
|
32 |
-
$ure_wp_version = get_bloginfo('version'); // as global $wp_version could be unavailable.
|
33 |
-
if (version_compare( $ure_wp_version, '3.2', '<' ) ) {
|
34 |
-
$exit_msg = sprintf( __( 'User Role Editor requires WordPress %s or newer.', 'ure' ), $ure_wp_version ) .
|
35 |
-
'<a href="http://codex.wordpress.org/Upgrading_WordPress"> ' . __('Please update!', 'ure') . '</a>';
|
36 |
-
wp_die($exit_msg);
|
37 |
-
}
|
38 |
-
|
39 |
$ure_php_version = '5.2.4';
|
40 |
if (version_compare(PHP_VERSION, '5.2.4', '<')) {
|
41 |
$exit_msg = sprintf( __( 'User Role Editor requires PHP %s or newer.', 'ure' ), $ure_php_version) .
|
@@ -43,18 +36,16 @@ if (version_compare(PHP_VERSION, '5.2.4', '<')) {
|
|
43 |
wp_die($exit_msg);
|
44 |
}
|
45 |
|
46 |
-
$ure_siteURL = get_site_url();
|
47 |
-
$urePluginDirName = substr(strrchr(dirname(__FILE__), DIRECTORY_SEPARATOR), 1);
|
48 |
|
49 |
-
define('URE_PLUGIN_URL',
|
50 |
-
define('URE_PLUGIN_DIR',
|
51 |
-
define('URE_WP_ADMIN_URL',
|
52 |
define('URE_ERROR', 'Error is encountered');
|
53 |
define('URE_SPACE_REPLACER', '_URE-SR_');
|
54 |
define('URE_PARENT', 'users.php');
|
55 |
define('URE_KEY_CAPABILITY', 'administrator');
|
56 |
|
57 |
-
require_once('includes/ure-lib.php');
|
58 |
|
59 |
|
60 |
/**
|
@@ -93,7 +84,7 @@ function ure_optionsPage() {
|
|
93 |
<div class="wrap">
|
94 |
<div class="icon32" id="icon-options-general"><br/></div>
|
95 |
<h2><?php _e('User Role Editor', 'ure'); ?></h2>
|
96 |
-
<?php require_once('includes/ure-options.php'); ?>
|
97 |
</div>
|
98 |
<?php
|
99 |
|
@@ -104,6 +95,17 @@ function ure_optionsPage() {
|
|
104 |
// Install plugin
|
105 |
function ure_install() {
|
106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
add_option('ure_caps_readable', 0);
|
108 |
add_option('ure_show_deprecated_caps', 1);
|
109 |
|
@@ -285,7 +287,7 @@ function ure_settings_menu() {
|
|
285 |
|
286 |
function ure_adminCssAction() {
|
287 |
|
288 |
-
wp_enqueue_style('ure_admin_css', URE_PLUGIN_URL.'
|
289 |
|
290 |
}
|
291 |
// end of ure_adminCssAction()
|
@@ -322,6 +324,10 @@ function ure_edit_user_profile($user) {
|
|
322 |
|
323 |
global $current_user, $wp_roles;
|
324 |
|
|
|
|
|
|
|
|
|
325 |
if (!ure_is_admin($current_user->ID)) {
|
326 |
return;
|
327 |
}
|
@@ -333,7 +339,13 @@ function ure_edit_user_profile($user) {
|
|
333 |
<th scope="row"><?php _e( 'Other Roles', 'ure' ); ?></th>
|
334 |
<td>
|
335 |
<?php
|
336 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
337 |
echo $output. ' >> <a href="' . wp_nonce_url("users.php?page=user-role-editor.php&object=user&user_id={$user->ID}", "ure_user_{$user->ID}") . '">' . __('Edit', 'ure') . '</a>';
|
338 |
?>
|
339 |
</td>
|
@@ -378,15 +390,16 @@ function ure_user_role_column($columns = array()) {
|
|
378 |
*/
|
379 |
function ure_user_role_row($retval = '', $column_name = '', $user_id = 0) {
|
380 |
|
381 |
-
// Only looking for
|
382 |
if ('ure_roles' == $column_name) {
|
383 |
$user = get_userdata( $user_id );
|
384 |
// Get the users roles
|
385 |
-
$
|
|
|
386 |
|
387 |
}
|
388 |
|
389 |
-
|
390 |
// Pass retval through
|
391 |
return $retval;
|
392 |
}
|
@@ -438,6 +451,7 @@ if (function_exists('is_multisite') && is_multisite()) {
|
|
438 |
foreach ($plugins as $key => $value) {
|
439 |
if ($key == 'user-role-editor/user-role-editor.php') {
|
440 |
unset($plugins[$key]);
|
|
|
441 |
}
|
442 |
}
|
443 |
|
@@ -450,6 +464,32 @@ if (function_exists('is_multisite') && is_multisite()) {
|
|
450 |
} // if (function_exists('is_multisite')
|
451 |
|
452 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
453 |
if (is_admin()) {
|
454 |
// activation action
|
455 |
register_activation_hook(__FILE__, "ure_install");
|
@@ -464,6 +504,7 @@ if (is_admin()) {
|
|
464 |
add_action( 'edit_user_profile', 'ure_edit_user_profile');
|
465 |
add_filter( 'manage_users_columns', 'ure_user_role_column', 10, 5 );
|
466 |
add_filter( 'manage_users_custom_column', 'ure_user_role_row', 10, 3 );
|
|
|
467 |
|
468 |
}
|
469 |
|
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/add/delete any WordPress user role (except administrator) capabilities list with a few clicks.
|
6 |
+
Version: 3.12
|
7 |
Author: Vladimir Garagulya
|
8 |
Author URI: http://www.shinephp.com
|
9 |
Text Domain: ure
|
29 |
die; // Silence is golden, direct call is prohibited
|
30 |
}
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
$ure_php_version = '5.2.4';
|
33 |
if (version_compare(PHP_VERSION, '5.2.4', '<')) {
|
34 |
$exit_msg = sprintf( __( 'User Role Editor requires PHP %s or newer.', 'ure' ), $ure_php_version) .
|
36 |
wp_die($exit_msg);
|
37 |
}
|
38 |
|
|
|
|
|
39 |
|
40 |
+
define('URE_PLUGIN_URL', plugin_dir_url(__FILE__) );
|
41 |
+
define('URE_PLUGIN_DIR', plugin_dir_path(__FILE__) );
|
42 |
+
define('URE_WP_ADMIN_URL', admin_url());
|
43 |
define('URE_ERROR', 'Error is encountered');
|
44 |
define('URE_SPACE_REPLACER', '_URE-SR_');
|
45 |
define('URE_PARENT', 'users.php');
|
46 |
define('URE_KEY_CAPABILITY', 'administrator');
|
47 |
|
48 |
+
require_once(URE_PLUGIN_DIR. 'includes/ure-lib.php');
|
49 |
|
50 |
|
51 |
/**
|
84 |
<div class="wrap">
|
85 |
<div class="icon32" id="icon-options-general"><br/></div>
|
86 |
<h2><?php _e('User Role Editor', 'ure'); ?></h2>
|
87 |
+
<?php require_once(URE_PLUGIN_DIR .'includes/ure-options.php'); ?>
|
88 |
</div>
|
89 |
<?php
|
90 |
|
95 |
// Install plugin
|
96 |
function ure_install() {
|
97 |
|
98 |
+
global $wp_version, $ure_admin_notice_text;
|
99 |
+
|
100 |
+
if ( empty($wp_version) ) {
|
101 |
+
require( ABSPATH . WPINC . '/version.php' );
|
102 |
+
}
|
103 |
+
|
104 |
+
if (version_compare( $wp_version, '3.2', '<' ) ) {
|
105 |
+
die( sprintf( __( 'User Role Editor requires WordPress %s or newer.', 'ure' ), $wp_version ) .
|
106 |
+
'<a href="http://codex.wordpress.org/Upgrading_WordPress"> ' . __('Please update!', 'ure') . '</a>' );
|
107 |
+
}
|
108 |
+
|
109 |
add_option('ure_caps_readable', 0);
|
110 |
add_option('ure_show_deprecated_caps', 1);
|
111 |
|
287 |
|
288 |
function ure_adminCssAction() {
|
289 |
|
290 |
+
wp_enqueue_style('ure_admin_css', URE_PLUGIN_URL.'css/ure-admin.css', array(), false, 'screen');
|
291 |
|
292 |
}
|
293 |
// end of ure_adminCssAction()
|
324 |
|
325 |
global $current_user, $wp_roles;
|
326 |
|
327 |
+
$result = stripos($_SERVER['REQUEST_URI'], 'network/user-edit.php');
|
328 |
+
if ($result!==false) { // exit, this code just for single site user profile only, not for network admin center
|
329 |
+
return;
|
330 |
+
}
|
331 |
if (!ure_is_admin($current_user->ID)) {
|
332 |
return;
|
333 |
}
|
339 |
<th scope="row"><?php _e( 'Other Roles', 'ure' ); ?></th>
|
340 |
<td>
|
341 |
<?php
|
342 |
+
$roles = ure_other_user_roles($user);
|
343 |
+
if (is_array($roles) && count($roles)>0) {
|
344 |
+
foreach($roles as $role) {
|
345 |
+
echo '<input type="hidden" name="ure_other_roles[]" value="'.$role.'" />' ;
|
346 |
+
}
|
347 |
+
}
|
348 |
+
$output = ure_other_user_roles_text($roles);
|
349 |
echo $output. ' >> <a href="' . wp_nonce_url("users.php?page=user-role-editor.php&object=user&user_id={$user->ID}", "ure_user_{$user->ID}") . '">' . __('Edit', 'ure') . '</a>';
|
350 |
?>
|
351 |
</td>
|
390 |
*/
|
391 |
function ure_user_role_row($retval = '', $column_name = '', $user_id = 0) {
|
392 |
|
393 |
+
// Only looking for User Role Editor other user roles column
|
394 |
if ('ure_roles' == $column_name) {
|
395 |
$user = get_userdata( $user_id );
|
396 |
// Get the users roles
|
397 |
+
$roles = ure_other_user_roles( $user );
|
398 |
+
$retval = ure_other_user_roles_text( $roles );
|
399 |
|
400 |
}
|
401 |
|
402 |
+
|
403 |
// Pass retval through
|
404 |
return $retval;
|
405 |
}
|
451 |
foreach ($plugins as $key => $value) {
|
452 |
if ($key == 'user-role-editor/user-role-editor.php') {
|
453 |
unset($plugins[$key]);
|
454 |
+
break;
|
455 |
}
|
456 |
}
|
457 |
|
464 |
} // if (function_exists('is_multisite')
|
465 |
|
466 |
|
467 |
+
// save additional user roles when user profile is updated, as WordPress itself doesn't know about them
|
468 |
+
function ure_user_profile_update($user_id) {
|
469 |
+
|
470 |
+
if ( !current_user_can('edit_user', $user_id) ) {
|
471 |
+
return;
|
472 |
+
}
|
473 |
+
$user = get_userdata($user_id);
|
474 |
+
|
475 |
+
if (isset($_POST['ure_other_roles'])) {
|
476 |
+
$new_roles = array_intersect($user->roles, $_POST['ure_other_roles']);
|
477 |
+
$skip_roles = array();
|
478 |
+
foreach($new_roles as $role) {
|
479 |
+
$skip_roles['$role'] = 1;
|
480 |
+
}
|
481 |
+
unset($new_roles);
|
482 |
+
foreach($_POST['ure_other_roles'] as $role) {
|
483 |
+
if (!isset($skip_roles[$role])) {
|
484 |
+
$user->add_role($role);
|
485 |
+
}
|
486 |
+
}
|
487 |
+
}
|
488 |
+
|
489 |
+
}
|
490 |
+
// ure_update_user_profile()
|
491 |
+
|
492 |
+
|
493 |
if (is_admin()) {
|
494 |
// activation action
|
495 |
register_activation_hook(__FILE__, "ure_install");
|
504 |
add_action( 'edit_user_profile', 'ure_edit_user_profile');
|
505 |
add_filter( 'manage_users_columns', 'ure_user_role_column', 10, 5 );
|
506 |
add_filter( 'manage_users_custom_column', 'ure_user_role_row', 10, 3 );
|
507 |
+
add_action('profile_update', 'ure_user_profile_update', 10);
|
508 |
|
509 |
}
|
510 |
|