Ciao a tutti,
dovevo realizzare un sito multilingua e dopo varie prove con diversi plugin ho deciso per un’installazione multisite e un sito per ogni lingua. Ho poi installato il plugin Multilingual Press per gestire il passaggio da un sito all’altro con il cambio lingua.
Il tema l’ho creato io da zero. Il problema è che non riesco a gestire le traduzioni del tema nei diversi siti, ma usa sempre quelle italiane (la lingua di default). Ho creato i files tema.pot, en_US.po e en_US.mo.
Nella configurazione dei siti, ho messo WPLANG it_IT per il sito principale e lasciato vuoto per per il sito inglese.
Nell’header se provo a stampare il valore di WPLANG con
<?php echo WPLANG;?>
stampa sempre it_IT anche nel sito inglese.
La versione di Wp è la 3.3.2 in italiano.