Skip Navigation

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

Problem:
Strings from the theme options cannot be translated.

Solution:
1. I've added the string in "Admin Texts Translation"

2. Then, I translated the string "CLIENT, CATEGORY, YEAR, and LOCATION" in "String Translation"

3. Added this XML configuration code below into WPML > Settings > Custom XML Configuration

<wpml-config>
  <admin-texts>
    <key name="uncode">
      <key name="_uncode_portfolio_details">
        <key name="0">
          <key name="title"/>
        </key>
        <key name="1">
          <key name="title"/>
        </key>
        <key name="2">
          <key name="title"/>
        </key>
        <key name="3">
          <key name="title"/>
        </key>
      </key>
    </key>
  </admin-texts>
</wpml-config>

4. Go to "Theme Options" > Single > Portfolio > Details > Make small edits to the options(eg. change or add a text into the title).

Relevant Documentation:

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

Last updated by nikosS-6 3 years, 2 months ago.

Assisted by: Kor.

Author Posts
April 9, 2022 at 4:42 pm #10986817

nikosS-6

I am using the Uncode theme and trying to translate portfolio details in theme options. I found an older post but no resolution.

Any ideas ?

hidden link

April 11, 2022 at 9:36 am #10993447

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Hi there,

Thanks for contacting WPML support.

I understand that you're trying to translate the options in the "theme options". Could you please try using the "Translate texts in admin screens" option as explained here https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#track-where-strings-appear-on-the-site and see if it's what you're trying to achieve?

Also, I noticed that your “WP Memory Limit” PHP limit is below the required 128MB or recommended 256MB as described at: https://wpml.org/home/minimum-requirements/ . Could you please contact your hosting provider and ask them to increase this PHP value for you and also, ask them to update the MySQL version to 5.6+?

Let me know how it goes.

Thanks!

Kor

April 11, 2022 at 10:14 am #10993733

nikosS-6

Hi Kor,

i have already tried your suggestion. I found the strings but when i translate them they disappear from the front end in both languages.

PHP memory limit is fixed, i also contacted the provider for the SQL update.

Regards,
Nikos

April 12, 2022 at 5:20 am #11000217

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Hi there,

Thanks for your reply.

Please briefly explain what you've done and if possible, share some screenshots. I would need to take a closer look 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.

IMPORTANT: Please, note, a backup is required for security reasons, and to avoid any data loss, you can use the https://wordpress.org/plugins/updraftplus/ plugin for these backup needs.

Your following answer will be private, which means only you and I have access to it.

✙ I would need your permission to de-activate and re-activate Plugins and the Theme and to change configurations on the site if required. This is also a reason the backup is critical.

Thanks!

Kor

April 13, 2022 at 6:34 am #11009105

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Hi there,

Thanks for your reply.

I've checked your Website and may I know why are you translating the "Custom Field" names? When I checked your translated portfolio here hidden link , it looks fine. Are you trying to translate these words as shown in the attached screenshot?

If not, please highlight it using a screenshot of what you're having difficulties trying to translate and I'll do my best to assist you further with this.

Thanks!

Kor

Screen Shot 2022-04-13 at 2.30.06 PM.jpg
April 13, 2022 at 12:21 pm #11013109

nikosS-6

Hi Kor,

yes i want to translate the words marked in your screenshot except the word "Share".

Thank you,

Nikos

April 14, 2022 at 2:34 pm #11022721

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Hi there,

Thanks for your patience.

I've fixed the issue you had there and this is what I've done.

1. I've added the string "CLIENT, CATEGORY, YEAR, and LOCATION" in "Admin Texts Translation" here hidden link .

2. Then, I translated the string "CLIENT, CATEGORY, YEAR, and LOCATION" in "String Translation" here hidden link .

3. Once you've done that, I've added this XML configuration code below into WPML > Settings > Custom XML Configuration

<wpml-config>
  <admin-texts>
    <key name="uncode">
      <key name="_uncode_portfolio_details">
        <key name="0">
          <key name="title"/>
        </key>
        <key name="1">
          <key name="title"/>
        </key>
        <key name="2">
          <key name="title"/>
        </key>
        <key name="3">
          <key name="title"/>
        </key>
      </key>
    </key>
  </admin-texts>
</wpml-config>

4. Go to "Theme Options" > Single > Portfolio > Details > Make small edits to the options(eg. change or add a text into the title).

5. Go to hidden link and refresh the page and you'll see the changes.

I hope it helps and let me know how it goes.

Thanks!

Kor

Screen Shot 2022-04-14 at 10.33.46 PM.png