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.

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

Problem: Compatible issue with Facebook Message Customer Chat!

Solution: The client was looking for an option to translate the *Facebook Message Customer Chat* JavaScript code. It works as expected on the client site after the following steps.

1) Visit WPML>>Settings
2) Choose *Custom XML configuration* tab
3) Add the following WPML language configuration code in *Custom XML configuration* field

<wpml-config>
    <admin-texts>
        <key name="fbmcc_generatedCode" />
    </admin-texts>
</wpml-config>

4) Save the changes
5) Visit String Translation and check the string is registered for translation or not
6) Translate the String(with Facebook Chinese code for Chat)

Relevant Documentation: https://wpml.org/documentation/support/language-configuration-files/#admin-texts

https://wpml.org/documentation/support/language-configuration-files/

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by HansonB 1 year ago.

Assigned support staff: Bigul.

Author Posts
October 1, 2018 at 2:11 pm #2778399

HansonB

Hello,

Now, I'm using Facebook Message Customer Chat plugin. Please take a look at the screenshoot. Especially the "en_US". The code has been set by the official plugin in local. How to make it fit the translated languages, not always English?

What I want is, when user browser in Chinese, then it used Chinese system. Here is the plugin link that you can do the simple test. https://wordpress.org/plugins/facebook-messenger-customer-chat/

Sincerely,
Hanson

October 3, 2018 at 4:53 pm #2785320

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi Hanson,

Welcome to the WPML support forum. I will do my best to help you to resolve these issues.

Please try the following steps after a site backup and make sure you are getting the expected result or not.

1) Please increase the *MaxInputVars* of PHP settings to *10000*. Please check the following article for more details or contact your system admin/hosting provider for this purpose.

hidden link

2) Visit WPML>>String Translation
3) Click on the blue link at the bottom of the page: "Translate texts in admin screens »"
4) Look for the option *fbmcc_generatedCode*
5) Check the checkbox of *fbmcc_generatedCode* option
6) Click on the button "Apply"(at the bottom of the page)
7) Now, the selected string should appear in the String Translation panel and you can translate the string(with Facebook Chinese code for Chat)

Please check the following documentation and attached image for more details.

https://wpml.org/documentation/getting-started-guide/translating-theme-options/

https://wpml.org/documentation/getting-started-guide/string-translation/#admin_texts

--
Thanks!

Bigul

October 3, 2018 at 5:40 pm #2785421

HansonB

Hello Bigul,

It's great to see you again! I follow your steps, and everything are fine expect the final step. I save the setting, but the strings can not display in String Translation. Please let me know. Did you finish it in your local environment?

Sincerely,
Hanson

October 4, 2018 at 8:59 am #2786828

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi Hanson,

Thank you for the feedback. Yes, I was able to add the string for translation from "Translate texts in admin screens »" section of WPML>>String Translation.

Have you increased the *MaxInputVars* of PHP settings to *10000*? Because we need higher numbers while we have many strings or an E-commerce site.

--
Thanks!

Bigul

October 4, 2018 at 12:29 pm #2787490

HansonB

i added "php_value max_input_vars 10000" to .htaccess, is anything wrong?

Sincerely,
Hanson

October 4, 2018 at 4:24 pm #2788197

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi Hanson,

Thank you for the feedback. Please try the following steps and make sure you are getting the expected result or not.

1) Visit WPML>>Settings
2) Choose *Custom XML configuration* tab
3) Add the following WPML language configuration code in *Custom XML configuration* field

<wpml-config>
    <admin-texts>
        <key name="fbmcc_generatedCode" />
    </admin-texts>
</wpml-config>

4) Save the changes
5) Visit String Translation and check the string is registered for translation or not
6) Translate the String(with Facebook Chinese code for Chat)

Please check the following documentation for more details.

https://wpml.org/documentation/support/language-configuration-files/#admin-texts

https://wpml.org/documentation/support/language-configuration-files/

--
Thanks!

Bigul

October 4, 2018 at 4:56 pm #2788358

HansonB

You're always professional. It works now.
Looking forward to working with you again!