Okay
  Public Ticket #1773503
How can I translate the user role?
Closed

Comments

  • antoninimarcos started the conversation

    Basically that. I want to translate or at least remove the prefix "Amelia" to all user roles, which appear in the list of users and inside each user's profile.

  •  472
    Isidora replied

    Hi antoninimarcos,
    Thank you for your purchase.

    Yes you can change that, but you need to modify some file in core of the plugin. In file wp-content/plugins/ameliabooking/src/Infrastructure/WP/config/Roles.php around lines 90, 103 and 120 you will find this

    #Line 90
    'label'        => __('Amelia Customer', 'amelia'),
    #Line 103
    'label'        => __('Amelia Employee', 'amelia'),
    #Line 120
    'label'        => __('Amelia Manager', 'amelia'),

    and you need to remove Amelia from label like this:

    #Line 90
    'label'        => __('Customer', 'amelia'),
    #Line 103
    'label'        => __('Employee', 'amelia'),
    #Line 120
    'label'        => __('Manager', 'amelia'),

    After those changes you need to deactivate/activate plugin so changes will be applied.

    Please note that this will be overwritten in next update so you need to do it again.

    Best regards.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables