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.

You are not logged in. You can view support threads, but not post.
If you are already logged in, please refresh your browser.

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

Problem: The information regarding the Author of a post is not translatable in WPML -> String Translation.

Solution: As of String Translation version 2.3.7 this issue is resolved. If you are using an older version the following procedure will resolve it.

Add the following code to you functions.php file in your theme.

function wpmlsupp_2547_fix_author_strings_translations() 
{
    remove_filter('get_the_author_first_name', 'icl_st_author_first_name_filter', 10, 2);
    remove_filter('get_the_author_last_name', 'icl_st_author_last_name_filter', 10, 2);
    remove_filter('get_the_author_nickname', 'icl_st_author_nickname_filter', 10, 2);
    remove_filter('get_the_author_description', 'icl_st_author_description_filter', 10, 2);
}
add_action( 'admin_init', 'wpmlsupp_2547_fix_author_strings_translations' );

Now you must enable the translation of User fields with the following steps:

- access the left admin menu WPML -> String translation - on the bottom right of the page there will be a box named "More Options" - click on the "edit" link and select the checkbox for "Author", then click "Apply" - access the left admin menu WPML -> Theme and plugins localization - after the initial options and lists, find the button "Scan the theme for strings" and click it - access the left admin menu WPML -> String Translation - on the filter field "Select strings within domain", select "Authors". The page will then refresh itself and the list will now contain all author's fields available for translation, including the biography/description.

Related documentation: Embedded installer for authors

This topic contains 2 replies, has 2 voices, and was last updated by  davidF-30 1 year, 9 months ago. The support staff assigned to this topic is Yuri.

Author Posts
Author Posts
March 14, 2016 at 10:01 am #836958

davidF-30

I am trying to:
Translate the author bio to the 4 other languages of the site, but I can't find any way to do it. How can it be done?
URL of (my) website where problem appears:
hidden link

March 14, 2016 at 10:08 pm #837658

Yuri
Forum moderator

Supporter languages: English (English ) Portuguese (Brazil) (Português )

Supporter Timezone: America/Sao_Paulo (GMT-02:00)

Currently we have a issue in our user translation routines and our developers are aware of this. The following code is a workaround and must be added to your functions.php file.

function wpmlsupp_2547_fix_author_strings_translations() 
{
	remove_filter('get_the_author_first_name', 'icl_st_author_first_name_filter', 10, 2);
	remove_filter('get_the_author_last_name', 'icl_st_author_last_name_filter', 10, 2);
	remove_filter('get_the_author_nickname', 'icl_st_author_nickname_filter', 10, 2);
	remove_filter('get_the_author_description', 'icl_st_author_description_filter', 10, 2);
}
add_action( 'admin_init', 'wpmlsupp_2547_fix_author_strings_translations' );

This code will remove faulty filters from the code. Now, to finish the correction of this issue you must enable the translation of user fields in your WPML configuration. Use the following procedure :

- access the left admin menu WPML > String translation
- on the bottom right of the page there will be a box with the title "More Options"
- click on the "edit" link and select the ckeckbox for "Author" and click "Apply".
- access the left admin menu WPML > Theme and plugins localization
- after the initial options and listing find the button "Scan the theme for strings" and click it
- access the left admin menu WPML > String Translation
- on the filter field "Select strings within domain" select "Authors". The page will then refresh itself

The listing will now contain all author's fields available for translation, including the biography/description.

Let me know how it works out.

March 15, 2016 at 2:30 pm #838344

davidF-30

Thank you very much! It fixed the problem!

You are not logged in. You can view support threads, but not post.
If you are already logged in, please refresh your browser.