Skip Navigation

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

Problem:
The client is attempting to translate the text 'Submit Listing' and 'Sign in' on their website header using WPML. Despite following the relevant documentation, the 'Submit Listing' button text does not change when switching the website language from English to Albanian.
Solution:
1. Verify that the Template used in the Header is set as translatable in WPML. This can be done by navigating to WPML > Settings > Post Type Translation.
2. Once the Template is set as translatable, use the WPML Translation Editor to apply the translations.
3. Additionally, translate any relevant Listing Conditions through WPML > Taxonomy Translation.

If this solution does not resolve your issue, or if it seems outdated or not applicable to your case, we recommend opening a new support ticket. We also 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. For further assistance, please visit our support forum 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.

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by Andreas W. 2 weeks, 5 days ago.

Assisted by: Andreas W..

Author Posts
March 7, 2025 at 11:20 am #16787873

freelancerI

Background of the issue:
I am trying to translate the text 'Submit Listing' and 'Sign in' on the header of my website hidden link using WPML. My website's default language is Albanian, and I want these texts to change based on the selected language. I have followed the documentation at https://wpml.org/documentation/support/multilingual-tools/registering-custom-elementor-widgets-for-translation/ but encountered issues.

Symptoms:
The WPML plugin is not translating the Apus Header Submit Button text when switching the website language from English to Albanian. The button text remains 'Shto Listimin' even after applying translations.

Questions:
Why doesn't the WPML plugin translate the 'Submit Listing' button text when switching languages?
How can I ensure that the text changes according to the selected language on the frontend?

March 7, 2025 at 2:28 pm #16788993

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Thank you for sharing the details.

###

I would like to look at this directly on your site. For this I would need temporary access (WP-Admin and FTP) to your site, preferably to a test/staging site where the problem has been replicated if possible.

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.

I may need to replicate your website locally. To do this, I need to temporarily install a plugin called "Duplicator" or "All in One WP Migration" on your website. This will allow me to create a copy of your website and content. Once the issue is resolved, I will delete the local website. Let me know if this works for you.

IMPORTANT

Please make a backup copy of the site files and database before giving us access.

- If you do not see the wp-admin/FTP fields, this means your post and site login details are being made PUBLIC. DO NOT post your website details if you do not see the required wp-admin/FTP fields. If you do not, ask me to enable the private box. The private box looks like this:

hidden link

March 7, 2025 at 5:29 pm #16789561

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

I checked in Templates > Theme Builder, Templates > Saved Templates and tried accessing the link directly, but I couldn't find your Header. Please tell exactly where I can find it.

Also, in your first message you said "The button text remains 'Shto Listimin' even after applying translations.". What I found was the opposite, that the text always remains in EN, "Submit Listing", regardless of the selected language. Can you please clarify what the issue is?

I'm waiting your feedback.

March 9, 2025 at 9:33 pm #16793714

freelancerI

Hello Lucas,

Yes you are the right.

Look it that for this website staging that I created doesn't include some some theme or builder components (like headers and footers) ?
Because in the origin website afza.al we can find very easy as screenshot below?
Did you have any idea how to solve it?

Secondly about the text of the button I tried to change from "submit lisitng" which logical is the first lanauge of the theme, but since we need that first lanauge to be Albanian i go at edit elementor as screenshoot_2 change text in the "shto listimin "but it has not any impact on the translate text of the button when user switch so for this
reasons a leave this text as was in the begin.

Please reply me if you have full understand me? and tell how to solve the first issue for the staging website? that you don't have access on it.

Screenshot_2.png
Screenshot_1.png
March 10, 2025 at 3:06 pm #16797289

freelancerI

Hello Lucas,
might I have an answer from your side?
Did you understand me?

March 10, 2025 at 4:10 pm #16797458

freelancerI

Might tried again pls

March 10, 2025 at 4:56 pm #16797721

freelancerI

Your should to have acces right now just it is about a functions.

March 10, 2025 at 6:17 pm #16797964

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Thank you for waiting. In this case, you can send me a copy of your live website. It's important that I can check the issue exactly like it's happening on the live website, so that's the best solution. You can find the details on how to do that here:

https://wpml.org/pt-br/faq/provide-supporters-copy-site/

If it doesn't work with Duplicator, you can use the All In One WP Migration plugin and share the backup file with me. I'll investigate further. Thank you.

March 11, 2025 at 3:42 pm #16802700

freelancerI

Hello,

You
can login at the hidden link
now you have acces in the header.
I am make a summery about issues for this created a Test Case:

TC 01:
Test Title:
WPML does not translate "Submit Listing" in Albanian language which should be "Shto Listimin".

Test Description:
The WPML plugin is not translating the Apus Header Submit Button text when switching the website language in Albanian.

Testing steps:
1. Navigate to the: hidden link
2. Observe that after menu items by default language is Albanian while button text right is opposite English "Submit Listing" instead of the text should be according language.

Expected Result:
First language on the website by default should be Albanian which should be according also with text and widget element, if user switch language in English it should update with text.

Actual Result:
First language by default is Albanian while text of the button is English.

As I mentioned above since my first language is Albanian and on my template/theme first language is in English which makes sense I don't know how to translate some widget elementor, as in the screenshot Screenshot_TC01_01 to replace text "Submit Listing" with "Shto Listimin" or Should I translate in the WPML-String Translation?
might suggest about it? for TC01 above I tried both ways but it did not works.
For the text Sign in side by side with button submit listing is the same issues.

Screenshot_TC01_01.png
Screenshot_TC01.png
March 11, 2025 at 6:12 pm #16803526

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

First things first, since your primary language is Albanian, the button must be in Albanian, "Shto Listimin". The header wasn't available for translation, because it was set as not translatable in the settings. Also, the button comes from your theme and was not registered for translation. Basically, your theme requires additional configuration.

Please make sure to have a full website backup and follow these steps:

1. Go to WPML > Settings > Custom XML Configuration and add the code below:

<wpml-config>
  <elementor-widgets>
    <widget name="apus_element_submit_btn">
      <fields>
        <field>button_text</field>
      </fields>
    </widget>
  </elementor-widgets>
</wpml-config>

2. Go to WPML > Settings > Post Types Translation and set "Header Builder (apus_header)" as Translatable. Check image;
3. Change the button text in Header 5 to "Shto Listimin" and save;
4. Add the translation to the header;

That's it, that should solve it.

I recorded a video showing some of the steps:
hidden link

Let me know.

Settings _ qa_afza_al _ WordPress.jpeg
March 12, 2025 at 10:56 am #16806447

freelancerI

Hello Lucas
I solved test case above also for button sign in I followed the same logic.
Thanks for your help!
I have another issues so I am creating a Test Case as below:

TC 02:
Test Title:
WPML does not translate the “Apus Listing Search Form” especially the: Filter field in the English language. As in the screenshot:Screenshot_listing_serach_form
Test Description:
The WPML plugin does not translate the “Apus Listing Search Form” dropdown:” Filter Field” when the user switches the website language to English.
Testing steps:
1. Navigate to the: hidden link
2. since the first language is Albanian by default click switch language in English:
3. Observe filter search on the background image and click on the drop-down filter “Makina të Përdorura”
4. Verify that even though the language chosen is English dropdown options text are in Albanian language.

Expected Result:
The first language on the website by default should be Albanian which should be according also to text and widget elements, if the user switches languages in English drop-down of the filter field should update the text “Used”, and “New” and for Albanian language “Makina te Perdoruar dhe Te Reja”.

Actual Result:
It works only for the Albanian language when the user switches to English doesn’t translate.

To solve this I navigate to the :
I go at WPLM-Settings-Custom XML Configuration and add:
widget for apus_listing_search_form / But it doesn’t work
Secondly in the dashboard navigate to: Listings-Conditions as in the Screenshot_Conditions
Based on the language chosen in the top I tried to change the text but it did not work.

Let me know if I did something wrong with two options solutions or if have another solution that works well.

Screenshot_Conditions.png
Screenshot_listing_serach_form.png
March 12, 2025 at 4:07 pm #16808259

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

I've updated the custom XML. Can you please check if the texts are now available for translation, as expected?

Let me know.

March 12, 2025 at 5:19 pm #16808693

freelancerI

Hello Andrea,

text of the Drop down of the Filter field doesn't display correct based on the language choose. There dropdowns fields not editable translate in the homepage.
hidden link
iT DOESN NOT WORK AS Expected Result: IN THE tc02 ABOVE

test.png
March 12, 2025 at 5:37 pm #16808749

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

The conditions come from an external source (Listings > Conditions). You created the condition in English. Check image attached. Change its name into Albanian, since your primary language is in Albanian, and it should be solved.

As I said previously, you should always create content in Albanian, because you chose your website's primary language to be Albanian. You can then translate the Albanian content into English (your secondary language).

Any other questions?

Car Conditions _ qa_afza_al _ WordPress.jpeg
March 12, 2025 at 6:09 pm #16808801

freelancerI

Hi Andrea,
I understand and logical make sense what you mentied above:
I have done also test before to report in the Listing/Conditions/
for booths conditions I replace with text in Albanian, also for English.
But it doesn't save changes so it don't work properly in web page.

Screenshot_search_02.png
Screenshot_search_01.png
Screenshot_search.png