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.
<b>Contesto del problema: </b>
Sto cercando di tradurre delle stringhe personalizzate nel file footer.php del sito. Le stringhe sono inserite nel codice in questo modo: <h4></h4>. Dalla sezione 'stringhe dei temi' faccio la scansione del tema e trovo correttamente le stringhe in traduzione stringhe. Procedo alla traduzione di tutte le 5 lingue e vengono salvate correttamente.
<b>Sintomi: </b>
Sul frontend del sito, le traduzioni sono corrette solo in Italiano e Inglese. Le altre lingue non sono visibili. Ho cancellato tutte le stringhe doppie, provato a cambiare il dominio nella riga nel file php e rifare la procedura, ma il risultato è invariato.
<b>Domande: </b>
Perché le traduzioni non sono visibili in tutte le lingue sul frontend?
C'è un problema noto con la traduzione delle stringhe personalizzate in WPML?
Hi There!
Thanks for reaching out to WPML Support.
Before this thread is assigned to my colleague, I'd like to provide some initial guidance or potential solutions in English. If you would prefer to continue the conversation in Italian, please feel free to respond in Italian. One of our Italian support agents will take over the ticket and assist you further.
Based on the screenshot, the text appears to be properly registered for translation. Since it is displaying correctly in one of the secondary languages, it should also appear in the other languages. Please try the following steps and check if it helps in solving the issue?
- Please clear the caches from all optimization plugins installed on your site and from the browser as well. If possible, please temporarily disable the site caching.
- Once done, go to "WPML > Theme and Plugins localization".
- Make sure that the option 'Automatically load the theme's .mo file using 'load_textdomain'' is enabled. IIn the Textdomain box, enter the textdomain of the Theme.
- Now, go to "WPML > Support > Troubleshooting"
- Scroll down and you'll see a button 'Show custom MO Files Pre-generation dialog box'. Click on that.
- A popup will appear containing the 'Generate MO Files' button. Click on that and wait till the process is completed.
- Once done, check if the string appears translated.
Please try and let us know how it goes. We'll be happy to help if you need further assistance in this matter.