Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+02:00)

Tagged: 

This topic contains 7 replies, has 2 voices.

Last updated by Mohamed Sayed 1 year, 11 months ago.

Assisted by: Mohamed Sayed.

Author Posts
November 9, 2023 at 7:27 am #14762437

dongL-2

Tell us what you are trying to do?

Translated CPT using the administrator's account, everything is normal.

Now I want to grant translation permissions for CPT to other people. Currently, the shop manager permission is granted. However, in the backend, the pencil icon for translation appears gray and cannot be clicked. May I know how to proceed in order to have translation permissions?

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

iShot_2023-11-09_15.26.03.png
November 9, 2023 at 3:35 pm #14769369

Mohamed Sayed

Hi there,
Thanks for contacting WPML support.

Please add the user as a translator in WPML > Translation Management > Translators tab, and make sure that the required language pairs are set.

Kindly check here for more details: https://wpml.org/documentation/translating-your-contents/how-to-set-up-local-translators-and-language-pairs/#adding-local-translators-through-translation-management

Let me know please if that helps.

Kind regards,
Mohamed

November 10, 2023 at 8:40 am #14773393

dongL-2

Thanks for your reply.
Now I have reached the point where I hope to give a translation manager permission to an account. The account has already been set as an editor, but it does not appear when adding a translation manager. How can this issue be resolved?
Thank you.

iShot_2023-11-10_16.31.22.png
iShot_2023-11-10_16.30.42.png
November 12, 2023 at 12:03 pm #14783845

Mohamed Sayed

Sorry for the late reply due to the weekend.

Please try the following steps to give the editor users the permission to edit and translate the content:

- Edit the the functions.php file of your theme
- Add the following snippet:

add_filter('wpml_user_can_translate', function ($user_can_translate, $user){
    if (in_array('editor', (array) $user->roles, true) && current_user_can('translate')) {
        return true;
    }
      
    return $user_can_translate;
}, 10, 2);

Then add the translation manager again and check if the issue is resolved.

November 15, 2023 at 1:31 am #14803487

dongL-2

Thank you for your reply.
I added this code via code snippets but the problem is still there, please keep the support coming, thanks.

iShot_2023-11-15_09.28.38.png
November 15, 2023 at 12:05 pm #14807873

Mohamed Sayed

Hi,

Please create a full backup of the database and website then go to WPML > Support > Troubleshooting page, and click the following:

- Clear the Cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Fix WPML table collation
- Synchronize local job ids with ATE jobs
- Synchronize translators and translation managers with ATE
- Set language information
- Fix post type assignment for translations

Then check if the issue is resolved.

November 16, 2023 at 2:44 am #14821557

dongL-2

Thank you very much, I'll try it.

November 16, 2023 at 8:15 am #14822611

Mohamed Sayed

You're most welcome!

I'll be waiting for your updates.

The topic ‘[Closed] How to give the shop manager permission to translate the CPT of jet engine?’ is closed to new replies.