What are some of the user roles that are:
- Checked in the WP-CRM System Settings
- Have users assigned to those roles
- Are not showing up in the dropdown menu
Also, to submit a translation, please visit https://www.wp-crm.com/contact/ and select “I would like to submit a translation” from the menu.
1. All users
2. Subscriber, administrator
3. all but the administrator
See screenshot http://pixs.ru/showimage/12345jpg_9753939_19876140.jpg
PS not all the phrases ready to translate wp-crm-system.php
“Attach to organization”
“Assigned To”
and so on not ready to translate
please add __() in next versions of plugin
ADD.
My function.php have this code:
/* rename userr */
function wps_change_role_name() {
global $wp_roles;
if ( ! isset( $wp_roles ) )
$wp_roles = new WP_Roles();
$wp_roles->roles['editor']['name'] = 'Контролер';
$wp_roles->role_names['editor'] = 'Контролер';
$wp_roles->roles['author']['name'] = 'Реелтор';
$wp_roles->role_names['author'] = 'Реелтор';
$wp_roles->roles['contributor']['name'] = 'Пользователь';
$wp_roles->role_names['contributor'] = 'Пользователь';
}
add_action('init', 'wps_change_role_name');
and this roles not showing in the dropdown menu ((
but they showing in the settings page!
I know how to fix
We need to database “wp_options”
option_name “wpcrm_system_select_user_role”
were written in the original role, and not their new names…
example: Editor,Administrator,Author
we now have: Контролер,Реелтор,CustomName
need:
$wp_roles->role_names[‘editor‘] = ‘Контролер’;
$wp_roles->roles[‘author‘][‘name’] = ‘Реелтор’;
You understand me?