Questo thread è stato risolto. Ecco una descrizione del problema e della soluzione.
Problem:
If you're experiencing issues where string translation only works when the 'Look for strings while pages are rendered' option is active,
Solution:
We recommend adding a specific function to your theme's
functions.php
file to load the text domain. Here's a step-by-step guide:
1. Add the following action hook to your
functions.php
file:
add_action('after_setup_theme', 'custom_theme_setup');
2. Define the function to load your text domain:
function custom_theme_setup(){<br /> load_theme_textdomain('custom_site', get_template_directory() . '/languages');<br />}
This should resolve the issue with string translation. If this solution doesn't seem relevant to your situation, please open a new support ticket with us.
Questo è il forum di assistenza tecnica di WPML, il plug-in multilingue di WordPress.
La sua lettura è permessa a tutti, ma la pubblicazione è riservata esclusivamente ai clienti di WPML. Il team di WPML risponde sul forum 6 giorni su 7, 22 ore su 24.
Questo ticket contiene 3 risposte, ha 2 voci.
Ultimo aggiornamento da 1 anno, 6 mese fa.
Assistito da: Paola Mendiburu.