Salta la navigazione

Questo thread è stato risolto. Ecco una descrizione del problema e della soluzione.

Problem:
You are trying to translate the footer content of the Astra theme using WPML, specifically the HTML blocks defined in the Astra Footer Builder (e.g., footer-html-3, footer-html-7, and similar). These strings appear in WPML’s Admin Texts Translation interface but are 'Registered and locked' and cannot be added to the String Translation section, showing the message: 'This setting is locked by a WPML configuration file.' Despite attempts to override this behavior through the Custom XML Configuration section in WPML Settings, adding custom definitions to enable translation for these keys, using a child theme with a custom wpml-config.xml file, forcing a theme scan for new strings, and clearing WPML caches, the strings remain locked.

Solution:
The issue was due to a database corruption, possibly during a migration. Some strings in the icl_strings table had the columns string_package_id and location set to 0 instead of NULL. Changing these values to NULL made the strings translatable in the String Translation section.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket at WPML support forum.

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.

Etichettato: 

Questo ticket contiene 10 risposte, ha 0 voci.

Ultimo aggiornamento da Laura 2 settimana, 1 giorno fa.

Assistito da: Laura.

Autore Messaggi
Maggio 7, 2025 a 2:54 pm #17007262

matteoM-11

Background of the issue:
I’m trying to translate the footer content of the Astra theme using WPML, specifically the HTML blocks defined in the Astra Footer Builder (e.g., footer-html-3, footer-html-7, and similar). These strings appear in WPML’s Admin Texts Translation interface but are 'Registered and locked' and cannot be added to the String Translation section, showing the message: 'This setting is locked by a WPML configuration file.' I have attempted to override this behavior through the Custom XML Configuration section in WPML Settings, adding custom definitions to enable translation for these keys. I also tried using a child theme with a custom wpml-config.xml file. Additionally, I’ve tried forcing a theme scan for new strings and clearing WPML caches.

Symptoms:
The strings in the Astra Footer Builder are 'Registered and locked' and cannot be added to the String Translation section, showing the message: 'This setting is locked by a WPML configuration file.'

Questions:
Why do these strings remain locked despite custom XML configuration?
What is the correct approach to make the HTML footer content of Astra translatable using WPML String Translation?

Maggio 7, 2025 a 5:12 pm #17008185

Laura
Sostenitore di WPML dal 05/2018

Lingue: Inglese (English ) Italiano (Italiano )

Fuso orario: Europe/Rome (GMT+02:00)

Salve,

grazie per averci contattato.

I template non vanno mai tradotti da Traduzione Stringhe, traducendo il footer nell'editor di traduzione l'HTML non c'è? Neppure cercando il contenuto nella barra di ricerca?

Maggio 8, 2025 a 6:57 am #17009928

matteoM-11

Salve Laura,

grazie per il suo supporto.

L'elemento in questione viene gestito dal Customize in frontend, qui non è presente alcuna sezione dedita alla traduzione dei widget. Inoltre l'unico punto in cui ritrovo questi elementi da tradurre è sull'Admin Texts, ma come dicevo sono bloccati. Come può vedere dallo screen l'elemento "footer-html-3" è praticamente l'HTML dell'elemento in questione, suppongo che venendo gestito dal Customize venga riconosciuto come parte del tema.
Cercando il contenuto sullo string translation purtroppo non trovo nulla, nonostante abbia effettuato lo scan su tutti gli elementi del tema.

Come pensa si possa ovviare il problema?

nessun-risultato.JPG
elemento.JPG
elemento-admin-texts.JPG
Maggio 8, 2025 a 8:10 am #17010155

Laura
Sostenitore di WPML dal 05/2018

Lingue: Inglese (English ) Italiano (Italiano )

Fuso orario: Europe/Rome (GMT+02:00)

Mi mandi le credenziali del sito?

Maggio 8, 2025 a 10:51 am #17011020

matteoM-11

Certamente!

[removed]

Maggio 8, 2025 a 11:44 am #17011387

Laura
Sostenitore di WPML dal 05/2018

Lingue: Inglese (English ) Italiano (Italiano )

Fuso orario: Europe/Rome (GMT+02:00)

Per favore usa il box apposito per le credenziali.

Maggio 9, 2025 a 6:53 pm #17017741

Laura
Sostenitore di WPML dal 05/2018

Lingue: Inglese (English ) Italiano (Italiano )

Fuso orario: Europe/Rome (GMT+02:00)

In teoria le stringhe "registered and locked" dovrebbero appare in Traduzione Stringhe.
Ho fatto diverse prove ma non riesco a trovare nulla, devo chiedere un secondo parere.

Maggio 12, 2025 a 6:23 am #17021037

matteoM-11

Va bene, rimango in attesa di vostre notizie

Maggio 16, 2025 a 7:04 am #17039511

matteoM-11

Buongiorno, ci sono news riguardanti il topic?

Maggio 16, 2025 a 7:34 am #17039687

Laura
Sostenitore di WPML dal 05/2018

Lingue: Inglese (English ) Italiano (Italiano )

Fuso orario: Europe/Rome (GMT+02:00)

Non ancora.

Maggio 19, 2025 a 10:17 am #17047701

Laura
Sostenitore di WPML dal 05/2018

Lingue: Inglese (English ) Italiano (Italiano )

Fuso orario: Europe/Rome (GMT+02:00)

C'è stato un problema di corruzione del database (forse durante una migrazione?)

Parte delle stringhe avevano nella tabella icl_strings le colonne string_package_id e location impostate su 0 invece che su NULL. Cambiandole in NULL ora risultano traducibili in String Translation.

Screenshot 2025-05-16 172948.png