Skip Navigation

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

Problem:

The client is experiencing translation issues on their WordPress site with WPML, where some strings in the French version are appearing in English. Additionally, the 'Strings in the themes' section is empty in the translation interface, despite the theme containing translatable elements.
Solution:

1. We recommend increasing the WP Memory Limit as it may be causing both issues. Detailed instructions can be found in our documentation: Why aren't my translated strings showing up on the front-end of my site?

2. We noticed that the theme's standard style.css file is empty and a custom style.css file is being used instead. To adhere to WordPress standards, we advise adding the following code to the style.css file in the theme's root folder:

 
/*!
Theme Name: parallel-law
Theme URI: http://www.eliott-markus.com/
Author: Eliott & Markus
Author URI: http://www.eliott-markus.com/
Description: Description
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: parallel-law
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
 
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
 
parallel-law is based on Underscores http://www.eliott-markus.com/, (C) 2012-2016 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
 
Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal http://necolas.github.io/normalize.css/
*/

After making these changes, the theme name should appear on the WPML -> Theme and plugins localization page. Please ensure you have a full backup of your website before making any changes.

If this solution doesn't look relevant, please open a new support ticket in our 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.

This topic contains 3 replies, has 3 voices.

Last updated by Marsel Nikolli 1 year, 4 months ago.

Assisted by: Marsel Nikolli.

Author Posts
December 14, 2023 at 5:28 pm #15067383

yassineS

Hello,

I'm currently experiencing translation issues on my WordPress site using WPML. On the French version, some strings are appearing in English instead of being translated as expected. Additionally, I've noticed that the "Strings in the themes" section is empty in the translation interface, despite my theme containing elements requiring translation.

Thank you in advance for your help.

Capture d’écran 2023-12-14 à 18.26.38.png
Capture d’écran 2023-12-14 à 17.43.29.png
December 14, 2023 at 6:43 pm #15068063

Laura
WPML Supporter since 05/2018

Languages: English (English ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Hi,

thanks for contacting us.

Both issues are likely caused by the low WP Memory Limit.
Please check here how to solve the strings issue and after completing it you should solve also the problem with the Theme and Plugin localization page as well https://wpml.org/faq/why-arent-my-translated-strings-showing-up-on-the-front-end-of-my-site/

December 15, 2023 at 8:38 am #15070275

yassineS

Thank you for your feedback.

I increased the WP memory limit and deleted the strings of characters. However, my theme isn't showing up in the list for me to scan.

image_2023_12_15T08_29_16_534Z.png
December 15, 2023 at 10:40 am #15071291

Marsel Nikolli

Hi,

We'll be working further together on your issue.

I checked your website and from inspecting it on the browser I noticed that your theme WordPress standard style.css file is empty and you are using a custom "../css/style.css" file.

- WordPress standard: "../wp-content/themes/parallel-law/style.css" -> empty
- Your style.css theme filde: "../wp-content/themes/parallel-law/css/style.css" -> your theme style.css file

In order to follow up the WordPress standards you need to put this code:


/*!
Theme Name: parallel-law
Theme URI: <em><u>hidden link</u></em>
Author: Eliott & Markus
Author URI: <em><u>hidden link</u></em>
Description: Description
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: parallel-law
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

parallel-law is based on Underscores <em><u>hidden link</u></em>, (C) 2012-2016 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal <em><u>hidden link</u></em>
*/

on the style.css file that is on your theme root folder.

After you put the CSS code correctly you should be able to see the theme name on the WPML -> Theme and plugins localization page.

*Note: Please make sure you have a full backup of your website before making any changes on your website.

Let me know how it goes,
Marsel

December 15, 2023 at 10:58 am #15071463

yassineS

Thank you, my issue is resolved.