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.
Our wait time is higher than usual, please make sure you are meeting the minimum requirement - https://wpml.org/home/minimum-requirements before you report issues, and if you can take a look at current Known Issues - https://wpml.org/known-issues/. Thank you.
Background of the issue:
I am trying to ensure all necessary string translations are completed for my site, hidden link, using WPML. I discovered that 5 terms related to likes and comments were not translated properly across different languages.
Symptoms:
Despite populating the translation strings, the text for certain terms is still rendering in English. There is inconsistency across languages, with some terms translated in some languages but not others. The only page where all translations are rendered properly is in Chinese (Traditional).
Questions:
Why are some terms not translating properly across different languages despite populating their translation strings?
How can I ensure consistent translation for all terms across all languages using WPML?
Below is a link to one post where you can see this occurring. You will notice there is inconsistency across each languages. Some languages translate one term, while another does not. I have also included a screenshot and links to each in-language archive page below
hidden link
Here are the languages where we can see this happening for each term. Please note that the only page where all of the translations are rendered properly is Chinese (Traditional).
"Like"
Somali
Vietnamese
Amharic
Tigrinya
Arabic
"Be the first to like this."
Somali
Vietnamese
Amharic
Tigrinya
"Leave a Reply"
Chinese (Simplified)
Korean
Russian
Somali
Ukrainian
Vietnamese
Tagalog
Amharic
Arabic
"Write a comment…"
Somali
Vietnamese
Amharic
Tigrinya
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
It is odd that the translation here works for some languages and others not, which makes it seem like the translations stopped working and this could mean that there is maybe an error occurring on the site.
I would like to request temporary access (wp-admin and FTP) to the website to investigate the issue further.
You can find the required fields below the comments section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.
IMPORTANT
Please be sure to back up your website and database before granting us access.
If you can't see the "wp-admin / FTP" fields, your post and website credentials will be set to "PUBLIC." DO NOT publish the data unless you see the required wp-admin / FTP fields.
The private reply form looks like this: hidden link
Click "I still need assistance" the next time you reply.
Video: hidden link
Please note that we are required to request this information individually on each ticket. We are not permitted to access any credentials that were not specifically submitted on this ticket using the private response form.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
"Like" & "Be the first to like this"
It does not seem that this string is actually translatable, and the strings for "Like" you translated are used elsewhere on the site. For example, the string right after "Be the first to like this" can not be found on String Translation.
To investigate this further, I would need to find out first where these strings are coming from.
"Leave a Reply"
This is coming from the string "admin_texts_highlander_comment_form_prompt highlander_comment_form_prompt" that for example was not yet translated to Somali. See screenshot.
"Write a comment…" & "Comment"
Here it seems the strings are registered but the translation is actually not working. This also would need further testing to identify where those strings are actually coming from (usually Kadence).
---
Now, there have been some known issues about text domains not loading on time which is something that has been occurring since the latest major update of WordPress. In those cases, theme and plugin authors needed to update the way in which they load text domains inside their plugins.
I have connected to the server using FTP and enabled WP DEBUG to check for errors, specifically:
Notice: Function _load_textdomain_just_in_time was called incorrectly
Until now not any debug.log file was created on the server. Do you maybe see any similar error inside the error.log section of your WordPress.com site?
---
I tried to use "All In One WP Migration" to create a local copy of the site for further revision of these issues but the export failed.
Any idea why I am not able to create a package of the site? Maybe the server is out of storage capacity?
I added translations for "Leave a Reply" and it's now being translated properly across all of the languages we could test.
This morning, I created fresh backups using JetPack, UpdraftPlus, and All In One WP Migration (see attached image). I'm hoping you can create a local copy of the site using either UpdraaftPlus or All In One WP Migration.
I checked the PHP and log files, but, didn't find anything similar to:
"Function _load_textdomain_just_in_time was called incorrectly"
Please let me know if I can provide any further information.
I noticed our site was disconnected from JetPack. Was this intentional? If not, it's critical that the connection is restored as soon as possible. When trying to reconnect this morning, I got the following message:
It appears that our connection to JetPack has been restored. If you need to disconnect from JetPack, please let us know prior to doing so. WordPress.com's hosting service requires that the connection be maintained in order for the site to appear online.
I appreciate your continued support with the missing translations.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
My apologies for the inconvenience. Indeed, I disabled the plugin for 5 seconds to identify if a string was actually coming from this plugin. I was not expecting that this would disconnect the connectivity between your site and Jetpack and I am sorry for the interruption.
I am still migrating the website. Due to the huge amount of the database, such a task can take a very long time. I hope the migration will still finish today so that we can move forward with the ticket.
In case you do have a staging site available that displays the same issues, it could save us a lot of time.
If you do not hear back from me today, take kindly note, that I will be offline for the holidays and back in office on the 22nd of April.
No problem, Andreas. We were back up and running relatively quickly.
Please refrain from working on the production site for now. We will set up and give you access to our staging site.
Can you please provide guidance on how to configure WPML in our staging site so that your team can work in the staging environment and our team can work in both staging and production?
We do have some major updates planned that would be best to work on in the staging site and then sync the staging back to production when ready. Please explain how we can keep content from both sites synced up in the most efficient manner moving forward.