Skip Navigation

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

Problem:
The client is trying to use an Advanced Custom Fields (ACF) text box to change the HubSpot form ID based on the language. However, the numeric ID does not appear in the WPML translation editor.
Solution:
÷t's expected that Numeric values are automatically removed from the translation editor by WPML, as they are not considered translatable strings. To change this, please try the following steps:
1. Add the following code to your theme's functions.php file:

add_filter( 'wpml_tm_job_field_is_translatable', '__return_true' );

2. Edit the original post or page, make a small change, and then update it.
3. Update the translation.
4. Use the search field in the translation editor to find the numeric value and translate it.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket. For further assistance, you can reach out to us on the WPML support forum.

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 1 reply, has 2 voices.

Last updated by Mohamed Sayed 1 year, 3 months ago.

Assisted by: Mohamed Sayed.

Author Posts
January 12, 2024 at 9:47 pm #15180788

daleG-3

Tell us what you are trying to do? Use an ACF text box to change the hubspot form id based on language. However the ID is something similar to 5226b02a-cb13-4821-ab2c-4324e8a2611b. When I try to translate it does not show on the translate page. If I put text with it like 5226b02a-cb13-4821-ab2c-4324e8a2611b. When I try to translate it does not show on the translate page. If I put text with it like " hubspot id 5226b02a-cb18-4827-ab2c-4324e8a2611b" the text will show in translations but we need just the id to show.

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site? hidden link

January 14, 2024 at 3:50 pm #15182511

Mohamed Sayed

Hi there,
Thanks for contacting WPML support.

1. To ensure the quickest and most accurate support, please provide your debug information so that I can get a look at some of your configurations. You can find it in WPML > Support > click on “Debug information” link. Please check this link for more info: http://wpml.org/faq/provide-debug-information-faster-support/

2. If you're using the WPML advanced translation editor, it's expected that Numeric values are automatically removed from the translation editor by WPML, as they are not considered translatable strings.

To change this, please try the following steps:

- Add the following code to the theme's functions.php file:

add_filter( 'wpml_tm_job_field_is_translatable', '__return_true' );

- Edit the original post/page and make a small change then update it
- Update the translation
- Use the search field in the translation editor to find the numeric value and translate it

Let me know please if that helps.

Kind regards,
Mohamed

Screenshot_524.png