Home›Support›English Support›[Resolved] On my website I have two language first language by default is Albanian which should translate into ...
[Resolved] On my website I have two language first language by default is Albanian which should translate into ...
This thread is resolved. Here is a description of the problem and solution.
Problem: The client's website has two languages, Albanian and English. The issue arises when switching the language toggle to English on the 'listimet' page, where the content should update accordingly. Instead of displaying the editing field, the widget shows raw JSON data. Solution: We found that the archive template was not translated. We recommend translating the archive template to ensure that the text in the sidebar and listing updates correctly when the language is switched. This action should also resolve the issue of the widget displaying raw JSON data instead of the editing field.
If this solution does not apply to your case, or if it seems outdated, 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. Should you need further assistance, please do not hesitate to open a new support ticket at 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.
Background of the issue:
I have a website with two languages, where the default language is Albanian, and it should translate into English. On the 'listimet' page, I want the content to update to English when the user switches the language toggle to English. I tried to register the widget, but it displayed raw JSON data instead of the editing field.
Symptoms:
When I registered the widget, it displayed raw JSON data on the page instead of the editing field.
Questions:
How can I ensure that the text in the left sidebar and right listing updates to English when the language is switched?
Why is the widget displaying raw JSON data instead of the editing field?
I'm Osama from WPML forums support. I'll be glad to help you today.
First of all, sorry for the late reply; it was due to a higher workload.
Please try the following steps after changing the field translation preference:
1- Edit the page in the default language
2- Add "V2" to the title
3- Update the page
4- Delete the "V2" and update the page
5- Update the page's translation
Kindly let me know if you still see the JSON field after the above steps.
i registered widget of the page listimet on the custom XML Configuration, Secondly in the page listimet in the lanauge by default make same changes save and in the right clicked wplm translation editor but it continue to display as raw json instead of the editing fields.
I want that in the page listimet when user selected toggle lanauge English the fields text and labels to be according the lanauge select for example instead of the "vendodhja" to be "location" and so on.
Please let me know if issue is clear by your side? and if you need anything else.
Thanks
Thanks for your update. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP) Preferably to a test site where the problem has been replicated.
Your answer will be private, meaning only you and I can access it.
❌ Please back up your database and website ❌
✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.
✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.
Thanks for the access details. The archive template is not translated. Please translate it and check the issue. (hidden link)
Best regards,
Osama
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.