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.
This topic is split from https://wpml.org/forums/topic/not-allow-me-to-add-custom-language/
Tagged: Bug, Custom Work
This topic contains 4 replies, has 0 voices.
Last updated by Lucas Vidal de Andrade 1 month ago.
Assisted by: Lucas Vidal de Andrade.
| Author | Posts |
|---|---|
| December 5, 2025 at 9:10 am #17637320 | |
|
florianF-18 |
I automatically translated the contents of my desired template from english into german but they were not translated. Later, when I opened it in the editor and tried to translate it manually, the texts were not there, only the fields were shown. This is definitely what the editor should show. * I tried to make it compatible from the WPML theme plugin localization options, but it still doesn't work. * The text should have come directly without the field appearing in the editor. I updated the WordPress and PHP versions.But not working. Please check and solve it. |
| December 5, 2025 at 10:12 am #17637571 | |
|
Lucas Vidal de Andrade WPML Supporter since 11/2023
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hey there, A few considerations about what you shared: 1. "I opened it in the editor and tried to translate it manually" 2. "I tried to make it compatible from the WPML theme plugin localization options" Now, I need the following information: 1. What's the templates name, and where can it be found? Please share its location and name in the wp-admin panel. 2. Website access. The required fields can be found below the comments section. The information you enter is private, i.e. only you and I can see it and have access to it. |
| December 8, 2025 at 12:00 pm #17643683 | |
|
Lucas Vidal de Andrade WPML Supporter since 11/2023
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello there, Thank you for sharing. I've made a couple of assumptions, since the information I have so far is a bit unclear. Please take into consideration that I'm not familiar with your website, and a website can be built in almost infinite ways. I shared my point of view here: hidden link So, what I assume is happening: 1. The template "broker review card" uses information from ACF and hard-coded strings, like "Regulation and safety"; If understood it correctly, it's about the hard-coded strings. To solve it you need to wrap them using the proper functions, so that WordPress and WPML understand that the code must be translated and shown in the correct language. To ensure that WPML recognizes this text and makes it translatable, you should wrap it inside the `esc_html__()` or `esc_html_e()` function (for escaping HTML) or `__()` and `_e()` (if no escaping is needed) functions in PHP. These functions register strings for translation in WPML when used within a theme or plugin that supports WPML’s String Translation module.. Let me share some example steps: 1. Check the line "<span>Regulation and Safety</span>" in your code. Check the image;
<span><?php _e('Regulation and Safety', 'bricks'); ?></span>
The translatable bit, is properly wrapped, and belongs to the theme domain "bricks"; Once this is done, the text will be available for translation in WPML > String Translation. As you can probably see, this type of implementation already requires some custom work, and that falls outside the scope of our Support Policy. However, I wanted to at least share a few steps to guide you in the right direction. I always like to do that if possible and the need is not super complex. |
| December 10, 2025 at 6:50 pm #17653649 | |
| florianF-18 |
Hi Lucas, FYI the freelancer decided to quit as he has no PHP knowledge. I am in talks with other devs. Meanwhile i tried to translate another site automatically. Translating a post worked however the home/footer did not translate properly (bricks) this site does not have ACF setup. Strangly the Header translated. hidden link New threads created by Lucas Vidal de Andrade and linked to this one are listed below: https://wpml.org/forums/topic/split-bricks-footer-untranslated/ |
| December 11, 2025 at 10:57 am #17655555 | |
|
Lucas Vidal de Andrade WPML Supporter since 11/2023
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, Please try to keep one issue per ticket. Please open a new ticket, for a new issue - I've sent this information on the last ticket as well! I've created a new one for the issue you brought: I'll answer you there. |
