Skip Navigation

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

Problem:
You are experiencing issues translating specific content on your WordPress site using WPML, including Footer Text, Contact - Location Map, and Career Section. These texts do not appear in the String Translation or other WPML settings for translation.
Solution:
- For translating footer/admin text, please follow the below steps:
1. Go to WPML >> String Translation page.
2. Scroll down and click on the Translate texts in admin screens » link at the bottom of the page.
3. Search for the required string.
4. Select the string.
5. Click on the Add to String Translation button.
6. Then click on the "« Return to String Translation" link.
7. Add the translation from WPML >> String Translation page.

- To translate hardcoded strings such as 'Location Map', follow these steps:
1. Wrap the strings in the gettext

__()

function. For example, replace

'Location Map'

with

__('Location Map', 'themedomain')

in the wp-content/plugins/lifest-elementor/widgets/contact-page/contact-page-form-widget.php file.
2. Scan the Lifest Elementor plugin from WPML >> Theme and plugins localization page.
3. Go to the WPML >> String Translation page, search for the string, and add the translation.
For more details on wrapping texts in gettext calls, visit Translating the Theme You Created.
If this solution does not resolve your issue or if it seems outdated or irrelevant to your case, we recommend opening a new support ticket. Also, check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, please visit our 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 6 replies, has 2 voices.

Last updated by Noman 3 months ago.

Assisted by: Noman.

Author Posts
August 29, 2024 at 7:21 am #16117803

euliceC

Background of the issue:
I am experiencing issues with translating specific content on my WordPress site using WPML. Despite exploring the String Translation, Languages, and String Management sections, I have not been able to locate the translation options for the following items: Footer Text, Contact - Location Map, and Career Section. I have checked String Translation, Theme Options, Widget Areas, and Custom Post Types.

Symptoms:
The specific text does not appear in the String Translation or other WPML settings for translation.

Questions:
How can I translate the footer text '© 2022 All rights reserved by HQ Global Resources Sdn Bhd' into our secondary language?
How can I translate any text related to the location map on our contact page or ensure that the map itself displays correctly in both languages?
How can I translate the text in our career section that states: 'Join our company to be part of our family members. You may provide us the below information to apply for your full time or part time career or internship.'?

August 29, 2024 at 7:46 am #16117995

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. I’ll try my best to help you in translating strings from these three sections.

- For translating footer text, please follow the below steps:
1. Go to WPML >> String Translation page.
2. Scroll down and click on the Translate texts in admin screens » link at the bottom of the page.
3. Search for the required string.
4. Select the string.
5. Click on the Add to String Translation button.
6. Then click on the "« Return to String Translation" link.
7. Add the translation from WPML >> String Translation page.

- For translating the contact and careers page text, can you please let me know how you have added that text in the default language. If it’s added using Elementor page builder then you should be able to translate it using WPML Translation Editor when you translate these pages into secondary language.

If it’s directly added from theme/plugin files, and it’s wrapped in gettext(__()) function, then you should be able to translate it from the WPML >> String Translation page.

- If the above steps don’t help, please add the debug report in the Debug Information box. I have also enabled debug info box for your next reply: https://wpml.org/faq/provide-debug-information-faster-support/

Thank you

Admin text translation.png
August 29, 2024 at 12:14 pm #16119879

euliceC

Hi, thanks for the prompt response and for your help. I was able to translate the footer successfully. However, I’m unsure about where to find the text for the contact and careers pages—should these be translated from the theme settings, or is there another place I should look?

August 29, 2024 at 3:05 pm #16120964

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Glad to hear your footer text translation is solved.

You may follow the below steps to find those two pages text:

1. Please open the page in Edit mode and see if it’s added using page options.

2. Please try to edit the page in the Elementor page builder and see if you could edit the text from there.

3. Check the theme options if you can edit it from there.

4. If you are still unable to find it, I suggest you please install the String Locator plugin and search that text in theme or theme bundled plugins files.

Please let me know the results,
Thank you

August 30, 2024 at 2:49 am #16122670

euliceC

Thank you for your suggestions. I have followed steps 1, 2, and 3 but was unable to locate or modify the text. I have since downloaded the String Locator plugin and conducted a search. Here are the findings:

Contact Page: The text "Location Map" is located in the file wp-content/plugins/lifest-elementor/widgets/contact-page/contact-page-form-widget.php.

Career Page: The text "Join our company to be part of our family members. You may provide us the below information to apply for your full time or part time career or internship." is found in the file wp-content/plugins/lifest-elementor/widgets/home-01-page/home-01-form-widget.php.

Could you please provide guidance on how to modify these specific files, or let me know if there are other steps I should take?

Thank you!

August 31, 2024 at 11:46 am #16127390

euliceC

I need to follow up the following issue, any finding?

September 1, 2024 at 6:16 am #16128389

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Sorry for the delay, I was off during the weekend (Friday-Saturday). Thanks for following the above steps and providing the additional details.

For translating the hardcoded strings on the these pages, please try to follow the below steps:

1. Wrap the strings in the gettext __() function by replacing the below string:

Location Map

With:

__('Location Map', 'themedomain')

From wp-content/plugins/lifest-elementor/widgets/contact-page/contact-page-form-widget.php file.

2. Scan the Lifest Elementor plugin from WPML >> Theme and plugins localization page.

3. Go to the WPML >> String Translation page, search the string and add the translation and see if this resolves the issue.

Here is a doc for more details:
https://wpml.org/documentation/support/translating-the-theme-you-created/#wrap-all-texts-in-gettext-calls

You may need to follow these steps for all hardcoded strings.

Please let me know if this resolves the issue or if you need further assistance with this issue.

Thank you for your patience and cooperation