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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+02:00)

Tagged: 

This topic contains 23 replies, has 3 voices.

Last updated by Bruno Kos 11 months, 1 week ago.

Assisted by: Bruno Kos.

Author Posts
May 5, 2023 at 5:24 pm #13596165

marcM-23

Also feel free to install any plugin you want, this is staging site and you can mess with it as much as you want.

May 8, 2023 at 8:58 am #13603101

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

Hi,

This is escalated to our 2nd tier team and may take some debugging time, I'll get back to you as soon as I have any news or questions for you.

Regards,
Bruno Kos

May 8, 2023 at 11:44 am #13605103

marcM-23

Thanks Bruno, keep me posted.

May 10, 2023 at 11:54 am #13622117

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

Hi,

We believe that this plugin was somehow modified, because we tried to reproduce this ourselves with the original plugin and the issue is not there.

We believe so because we found the following:

/********************************************************************
 *
 * * WP Affiliate Manager is not multilingual. The only trick
 * * found to translate the some of the dynamic outputs of the 
 * * plugin is to manually filter it here. Ugly, but it works!!
 *
 ********************************************************************/


function affiliate_manager_filter_function( $output ) {
    if ( function_exists( 'icl_object_id' ) && ICL_LANGUAGE_CODE == 'de' ) {
        $output = str_replace( 'Vous êtes dans la section "partenaire" de Om Juicers. Vous n\'êtes actuellement pas un partenaire affilié. Si vous souhaitez le devenir, remplissez le ', 'Sie befinden sich in der Partnersektion von Om Juicers. Sie sind derzeit kein registrierter Partner. Wenn Sie es werden möchten, füllen Sie bitte das ', $output );

We were able to get this working, but with a hack that is not sustainable.
- go to wp-content/languages/plugins and renamed the affiliates-manager .mo file to .mo.2
- do the same for the files in the plugin folder - wp-content/plugins/affiliates-manager/languages -> languages2

If you can arrange a package/database dump + plugins, we can debug locally.

Let me know if possible and in what format, because we are unable to use Duplicator or any other migration tool due hosting restrictions.

Regards,
Bruno Kos

May 17, 2023 at 1:20 pm #13664727

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

Escalated to 2nd Tier

May 19, 2023 at 6:39 am #13675993

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

Hi,

It took us some time to figure this out, but we may have found the solution:

- we went to /wp-admin/network/site-settings.php?id=1
- there we unset the value in the key "WPLANG"

This seems to have worked locally and on your server as well.

Regards,
Bruno Kos

May 20, 2023 at 8:00 am #13682255

marcM-23

Hi Bruno,

I tried to unset WPLANG on my live site, but what happened is that all the translations from the plugin disappeared and now it's all in English on the dashboard produced by the plugin in the front end. Then I tried your previous solution of renaming the mo to mo2 and languages to languages2, but it's still all in English.

You must have done something else to make it work on the staging.

Best,
Marc

May 20, 2023 at 8:07 am #13682263

marcM-23

I reverted the changes on my live site (renamed the mo2 file and languages2 back to original + put the fr_FR value to WPLANG). And it goes back to the initial behaviour. If I delete WPLANG it all goes to English and as soon as I put it back to fr_FR then it's all in French. But I can't have it work like on the staging where the language works.

May 22, 2023 at 10:05 am #13688273

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

Hi,

Would you be willing to provide me with WordPress credentials for the live site so I could investigate the issue directly?

We will not make any changes without your permission.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

I marked your next reply as private so that you can safely add credentials.

Regards,
Bruno Kos

The topic ‘[Closed] Affiliate Manager plugin not translated anymore (again)’ is closed to new replies.