Skip Navigation

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

Last updated by oleksiiK-9 1 year, 2 months ago.

Assisted by: Osama Mersal.

Author Posts
February 17, 2023 at 3:18 pm #13058353

oleksiiK-9

Hi,
I have a search bar with labels
hidden link

And some of the labels remain untranslated - "Type" and "Category" while the "City" is translated.
As an example I have attached the screenshot in Bulgarian (but it's the same in other languages).
I have found all the strings with "Category" and "Type" values and translated them, but it didn't help.

What can be the problem?

Thanks!

untranslated wmpl.jpg
February 19, 2023 at 8:06 am #13063695

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

Could you please try the following steps?

1- Go to WPML-> Theme and plugins localization, select your theme/plugin, and scan
2- Go to WPML-> String Translation
3- Scroll down and click on the "Translate texts in admin screens »" link
4- Search for the needed strings
5- Select the strings
6- Click on the "Add to String Translation" button
7- Then click on "the « Return to String Translation" link
8- Translate the strings, clear the cache, and check the front end

Kindly check our guide to know more about translating texts in the admin texts screen. (https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/)

Best regards,
Osama

February 20, 2023 at 11:52 am #13069325

oleksiiK-9

hi,
I have tried this method before. For example, I found all the strings containing "Category" as a value, translated all of them. But unfortunately it didn't solve my problem.

string1.jpg
February 20, 2023 at 12:23 pm #13069579

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

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 if possible –
in order to be of better help and check if some configurations might need to be changed.

Your next answer will be private, which means only you and I can access it.

❌ Please backup your database and website ❌

✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason 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.

Best regards,
Osama

February 21, 2023 at 7:27 am #13075755

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. I checked the issue and was able to fix it by registering the search fields for translation.

I added the following code to the WPML-> Settings-> Custom XML tab.

<wpml-config>
  <admin-texts>
    <key name="wpresidence_admin">
      <key name="wpestate_set_search">
        <key name="adv_search_what">
          <key name="0" />
          <key name="1" />
          <key name="2" />
          <key name="3" />
        </key>
        <key name="adv_search_how">
          <key name="0" />
          <key name="1" />
          <key name="2" />
          <key name="3" />
        </key>
        <key name="adv_search_label">
          <key name="0" />
          <key name="1" />
          <key name="2" />
          <key name="3" />
        </key>
      </key>
      <key name="wp_estate_adv_search_what">
        <key name="0" />
        <key name="1" />
        <key name="2" />
        <key name="3" />
      </key>
      <key name="wp_estate_adv_search_label">
        <key name="0" />
        <key name="1" />
        <key name="2" />
        <key name="3" />
      </key>
    </key>
  </admin-texts>
</wpml-config>

Please check if the search labels are translated correctly. (hidden link)

Kindly check our configuration guide to know more about registering admin fields for translation. (https://wpml.org/documentation/support/language-configuration-files/#admin-texts)

I hope this helps you. If you need further info, please let me know.

Best regards,
Osama

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.