• Resolved gugax

    (@gugax)


    Hi,

    I’m building multi language website and currently i’m facing an issue with User Profile page as the page does not load when i have other language selected rather english.

    I believe this is related with the url path / slug of my duplicated “User Profile” page. Can you help understand what changes are required to do in order to successfully load the user profile page for any language?

    Not sure if it is relevant, but i’m using Polylang to achieve the multi language website.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support yuriinalivaiko

    (@yuriinalivaiko)

    The Ultimate Member supports the WPML multilingual plugin in the basic version.

    Support for the Polylang and TranslatePress multilingual plugins is an experimental feature, you have to install a special version from the feature/multilingual branch in the Ultimate Member repository to use it.

    See https://docs.ultimatemember.com/article/1449-how-to-translate-plugin#switch

    Thread Starter gugax

    (@gugax)

    @yuriinalivaiko thanks for the update. Is it possible to start using the plugin from feature/multilingual branch, or you advice to wait for it?

    I also have another bug reported here (still without solution – https://www.ads-software.com/support/topic/issues-with-members-page-translations/page/2/), maybe it could be related or fixed in this new version. (If it is confirmed as a bug.)

    • This reply was modified 1 year, 6 months ago by gugax.
    Plugin Support yuriinalivaiko

    (@yuriinalivaiko)

    Hello @gugax

    The wait might be long. Download and use the special version from the feature/multilingual branch in the Ultimate Member repository on GitHub if you need integtation with the Polylang plugin now.

    The strings with that i’m not able to translate are:
    “We are sorry. We cannot find any users who match your search criteria.”
    “{total_users} Member”
    “{total_users} Members”

    These strings come from the member directory settings Results Text, Single Result Text, Custom text if no users were found. See https://docs.ultimatemember.com/article/1513-member-directories-2-1-0#results

    You can use hooks um_ajax_get_members_response and um_member_directory_agruments_on_load in your custom code to override these strings with equivalent strings from language files.

    add_filter( 'um_ajax_get_members_response', function( $directory_data ) {
    	if ( array_key_exists( 'pagination', $directory_data ) ) {
    		$directory_data['pagination']['header'] = UM()->member_directory()->convert_tags( __( '{total_users} Members', 'ultimate-member' ), $directory_data['pagination'] );
    		$directory_data['pagination']['header_single'] = UM()->member_directory()->convert_tags( __( '{total_users} Member', 'ultimate-member' ), $directory_data['pagination'] );
    	}
    	return $directory_data;
    } );
    
    add_filter( 'um_member_directory_agruments_on_load', function( $args ) {
    	$args['directory_no_users'] = __( 'We are sorry. We cannot find any users who match your search criteria.', 'ultimate-member' );
    	$args['no_users'] = __( 'We are sorry. We cannot find any users who match your search criteria.', 'ultimate-member' );
    	return $args;
    } );

    Regards

    Plugin Support andrewshu

    (@andrewshu)

    Hi @gugax

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. ??

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘User Profile – Broken url when using multilanguage page’ is closed to new replies.