Originally written
January 23, 2020
Updated
January 24, 2020

Can’t find texts coming from a theme or a plugin using String Translation? Often, this happens because they belong under the page that lists admin texts. Here, we show you how to find such texts and register them to enable their translation.

Let’s consider the following example. You want to use a different logo on translated pages but you can’t find the logo image in String Translation. Instead, you need to use the following steps:

  1. Go to the WPML String Translation page and at the bottom of the page and click the Translate texts in admin screens link.
Translate texts in admin screens link
  1. Go to the WPML String Translation page and at the bottom of the page and click the Translate texts in admin screens link.
View page source
  1. In the source code of find the name of the logo. In this example, we will use logo.png as the name of the file. The source code should look something like this:
Source code example
<input type="hidden" name="icl_admin_options[theme53591][logo_url]" value="" />
<input type="checkbox" name="icl_admin_options[theme53591][logo_url]" 
value="http://mysite.com/wp-content/uploads/2019/10/logo.png" />
<input type="text" readonly="readonly" value="logo_url" size="32" />
<input type="text" readonly="readonly" 
value="http://mysite.com/wp-content/uploads/2019/10/logo.png" size="48" />

Take note of the [theme53591][logo_url] part. It’s just an example, so your case will be different, but it’s important to note this for the next steps.

  1. Now you need to register this string by going to the WPMLSettings page. Click the XML Configuration tab.
  2. Enter the following code into Custom XML configuration:
Register strings - Custom XML configuration
<wpml-config>
<admin-texts>
 <key name="theme53591">
  <key name="logo_url" ></key>
  </key>
</admin-texts>
</wpml-config>

As you can see, our key names come from the parts we noted in the previous step.

  1. Click the Save button.
  2. Go to the WPML String Translation page and look for the string. If it’s still not there try reloading the front-end of your web site and then open the String translation page one more time.