Skip Navigation

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

Problem:
The client was trying to translate the invoices page strings and encountered an issue where the strings would only appear translated when the "Look for strings while pages are rendered" option was enabled in WPML. When this option was turned off, the strings reverted to English. The client suspected there might be compatibility issues with the Wp Rentals theme and requested a review from the compatibility team.

Solution:
We recommended the client to first perform a full backup of their site. Then, we instructed them to remove any language files that were located outside of the WPML language folder, as they could be causing conflicts. We provided a step-by-step guide for this process:

  1. Log in to the server via FTP or the hosting provider's file manager.
  2. Navigate to the WordPress installation directory.
  3. Locate and remove any language files outside of the WPML language folder.
  4. Test the site to ensure the issue is resolved.
  5. Monitor the site for any new errors.

Additionally, we updated the WPML String Translation plugin on the client's site, which resolved most of the issues. We advised the client to review the remaining strings.

Please note that the solution provided might be irrelevant due to being outdated or not applicable to your case. If you're still experiencing issues, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket with us for further assistance.

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 8 replies, has 2 voices.

Last updated by aimarL 1 year, 2 months ago.

Assisted by: Kor.

Author Posts
April 18, 2024 at 7:48 pm #15540969

aimarL

I am trying to: translate the invoices page strings, WPML found the strings with the functions switched ON: "Look for strings while pages are rendered". I see the translated strings while the options is set. Soon as I turn this function OFF, then the strings become in English again.

Link to a page where the issue can be seen: hidden link

I expected to see: the translated result.

Instead, I got: language strings in site default language (english).

invoices (1).jpg
April 19, 2024 at 11:09 am #15543228

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for reaching us.

I've checked your screenshot and I think I know what's going on here. If there are other language files outside of the WPML language folder, they could indeed cause conflicts.

Performing a full backup before making any changes is always a good practice to ensure you can revert to a stable state if anything goes wrong. Once you've backed up your site, you can proceed with removing the language files outside of the WPML language folder.

Here's a step-by-step guide to help you:

1. Access your server: Log in to your server via FTP (File Transfer Protocol) or through your hosting provider's file manager.

2. Navigate to the WordPress installation directory: Typically, this would be the public_html or www folder, but it might vary depending on your server setup.

3. Locate the language files: Look for any language files that are outside of the WPML language folder. These files might be in the wp-content directory or other directories within your WordPress installation.

4. Remove the conflicting language files: Carefully delete any language files that are not part of the WPML plugin. Make sure you only remove language files and not essential WordPress or plugin files.

5. Test your site: After removing the conflicting language files, visit your website to see if the issue has been resolved. Check different pages and functionalities to ensure everything is working as expected.

6. Monitor for any errors: Keep an eye on your website for any new errors or issues that might arise after removing the conflicting language files. If everything looks good, you've likely resolved the problem.

7. Regular backups: Remember to regularly back up your website to prevent data loss and have a recent backup available in case of emergencies.

If the issue persists after removing the conflicting language files, there may be other factors at play, and further troubleshooting might be necessary. Let me know if you need any further assistance!

April 19, 2024 at 4:53 pm #15544736

aimarL

Hello, thanks for the information.

I think there is more issues with it, because I did clean installation of Wp Rentals theme, which is located at test.rantuurent.com. I still see the same issue on both sites, also in dev.rantuurent.com.

Can you take a look at the issue from a compatibility side. This may be linked to the issue I discovered earlier with the invoices. Now that the suggested modifications are made on the both test sites, I think the compatibility team should look into this issue I am having now.

Ref# https://wpml.org/forums/topic/if-i-switch-the-language-on-frontend-then-i-dont-see-the-invoice/

Best regards,
Aimar L

April 20, 2024 at 2:44 pm #15546206

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Hi there,

I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

April 22, 2024 at 7:46 pm #15552954

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I'm able to fix most of the issues as shown in the attached screenshot. However, I'm still having some issues trying to translate some other strings like Booking Offer and One Time.

I would like to request a site snapshot. Alternatively, with your permission, we can create a snapshot on our own.

For this purpose, we typically recommend using the free plugin "Duplicator." If you are already familiar with how Duplicator works ( https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.

To assist you further, please follow these instructions:
Watch the Duplicator instructions video: hidden link

Refer to the instructions provided by WPML on how to provide supporters a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/

If the archive file exceeds 400MB in size, please utilize Duplicator's file filters to exclude the cache, wp-uploads directory, media, and archive files.

Once you have the archive file, please share the link with us. You can use services such as Google Drive, Dropbox, or similar platforms as the snapshot file will likely be large.

Please note that your next reply will be private, visible only to you and me. You can paste the link to the file there. Rest assured that once the issue is resolved, I will delete the local site.

Screenshot_423.png
April 23, 2024 at 7:40 pm #15557945

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your response.

I've updated the WPML String Translation plugin, and it has resolved most of the issues. I'll now review the remaining strings and get back to you.

April 24, 2024 at 8:37 pm #15562679

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for getting back to me. I apologize for the delay. I've imported the duplicated copy of the website, and I'll conduct further investigation. I'll reach out to you with updates as soon as possible!

April 26, 2024 at 5:52 pm #15571651

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your patience.

I apologize for the delayed response. I wanted to inform you that I'll need a bit more time to investigate this further. I'll get back to you as soon as possible!

April 29, 2024 at 7:34 pm #15578630

aimarL

Hello,

I updated the wpml and string translation plugin in dev.rantuurent.com and this fixed the issue.

It is all translated.

Thanks for helping.

-Aimar

Screenshot 2024-04-29 at 22.21.28.png