Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are trying to use the String Translation feature in WPML but do not see the 'Translate selected strings' option.

Solution:

This issue may be due to missing capabilities caused by permission settings from plugins. To resolve this, follow these steps:

1. Insert the following code into your theme's functions.php file:

add_action( 'init', 'add_caps' );
function add_caps() {    
$user = wp_get_current_user();   
$role = get_role( $user->roles[0] );
    if ($role->capabilities["manage_translations"] != TRUE) {
        $role->add_cap( 'manage_translations' );
    }
}

2. After adding the code, visit the String Translations page in WPML.

3. Remove the code from the functions.php file once you confirm the option is visible.

If this solution does not apply to your case, or if it seems outdated, we recommend checking the related known issues and confirming that you have the latest versions of themes and plugins installed. If issues persist, please open a new support ticket.

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.

Tagged: 

This topic contains 16 replies, has 2 voices.

Last updated by Shekhar Bhandari 1 year, 1 month ago.

Assisted by: Shekhar Bhandari.

Author Posts
September 20, 2024 at 9:23 am #16202025

antonT-13

Can we continue here?
https://wpml.org/forums/topic/insted-of-emojis-after-support-help/

September 20, 2024 at 9:32 am #16202157

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Sure.