Skip Navigation

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 10 replies, has 3 voices.

Last updated by Dražen Duvnjak 1 year, 6 months ago.

Assisted by: Dražen Duvnjak.

Author Posts
May 19, 2023 at 11:10 am #13678663

evgeniiE

Hi! I have exactly the same problem. Is there a solution?
hidden link (copied below):

When Profile Types are set to be translated via WPML, this gets treated as another entry of profile type for a different language, this should only be treated as string, at least for the title. Once the profile type is created on a different language, it doesn't take effect on the members page.

Steps to reproduce the behavior:

- Install WPML , setup a different language and setup language switcher for frontend
- Create Profile Types and set as translatable
- Edit the created Profile Type in different language (you will redirected to a new entry for the language)
- Assign the created Profile Type to a User
- Go to Members page in front end, try to select a different language
- see error

Expected behavior
Profile Types should be treated as string and not as a new entry. The translation should take effect.

May 22, 2023 at 9:28 am #13687697

evgeniiE

I created a sandbox, but I don't have a valid buddyboss pro key

May 22, 2023 at 10:58 am #13688649

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for getting back.

I also see you are using quite an old version of BuddyBoss plugins.

Can you please update to the latest versions and check if the issue still happens? Since there is no point in checking the issue with older versions if it might be fixed with the latest.

Then, if the issue still happens, please install also latest versions on Sandbox and see if the same issue happens. If you need a license key there, with the latest versions to see the issue, let me know and I will add a valid key there to confirm the issue.

Let me know how it goes.

Thanks,
Drazen

May 22, 2023 at 11:33 am #13688989

evgeniiE

Yes, install a valid key for Buddyboss Pro in the sandbox, please.

May 22, 2023 at 1:19 pm #13690291

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

I have updated to the latest versions, but I can not leave the license there, as it is our dev license key that would be needed.

It should work fine also without a license.

Can you please try now to reproduce the issue or share with me step by step guide on how to reproduce it? I have searched for Profile type option, but I do not see where to create them.

Let me know.

Thanks,
Drazen

May 22, 2023 at 2:40 pm #13691659

evgeniiE

Thank You!
1. I created the profile type "Developer" and translated it into Russian "Разработчик" hidden link
2. on the profile registration and modification page, we see that WPML has not created a translation, but another type of profile
hidden link
hidden link
hidden link
hidden link
3. On the member page and the list of members also this does not work
hidden link
hidden link
hidden link
hidden link

7-1684765765098.png
6-1684765714082.png
5-1684765411700.png
6-1684765337655.png
4-1684765292354.png
3-1684765245265.png
2-1684764944697.png
1_1684764913347.png
May 23, 2023 at 6:37 am #13694761

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for getting back and taking the time to help out.

I have updated further theme and the issue still happens, tried some workaround, but no luck.

I've escalated this ticket to our compatibility team.

They are taking a look at the issue and I will let you know as soon as they have updates.

Kind regards,
Drazen

May 23, 2023 at 8:00 am #13695527

evgeniiE

Hi! Ok, thanks!

May 26, 2023 at 7:18 am #13720045

evgeniiE

Hello! Is there any news about the problem?

May 26, 2023 at 12:16 pm #13723083

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

our team is working on a case and we will have a workaround for you soon.

We are checking and confirming some last things.

I will probably update you late today or on Monday with a workaround.

Thanks for your patience.

Regards,
Drazen

May 26, 2023 at 12:41 pm #13723237

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

please follow the next workaround.

- From WPML > Settings > Post type translation > Set Profile Types (bp-member-type) as Not Translatable

- Open .../wp-content/plugins/buddyboss-platform/bp-xprofile/bp-xprofile-template.php file.

Look for line 630:

Replace.

$member_type_name = get_post_meta( $field->data->value, '_bp_member_type_label_singular_name', true );

With:

$member_type_name = get_post_meta(apply_filters('wpml_object_id',  $field->data->value, 'post'), '_bp_member_type_label_singular_name', true);

- Open .../wp-content/plugins/buddyboss-platform/bp-members/bp-members-functions.php file.

Look for line 3908.

Just after:

$member_type = $type_obj->labels['singular_name'];

Add this:

// WPML Workaround for compsupp-6794
				if (class_exists('SitePress')) {
					do_action('wpml_register_single_string', 'Buddyboss WPML', 'buddyboss_' . strtolower($member_type), $member_type);
					$member_type = apply_filters('wpml_translate_single_string', $member_type, 'Buddyboss WPML', 'buddyboss_' . strtolower($member_type));
				}

- Go to the front end where the string appears to register the strings.

- Go to WPML > String Translation.

- Search and translate the string.

I checked and it works fine. You can use this as a temporary solution and we will be checking further and try to provide a permanent fix in the version of BuddyPress Multilingual.

Let me know how it goes and if any issues.

Regards,
Drazen