Home › Forum › Problemi Vari con WP › Traduzione sito
-
AutorePost
-
-
22 Aprile 2011 alle 16:10 #17641albyy911Partecipante
vorrei fare la traduzione del mio sito web.
la voglio fare da solo visto che me la cavo con l’inglese. ma non ho capito il fatto del file .po
Ne creo uno(e so come fare) poi vorrei mettere delle bandierine che se si clicca su una carica il file .po ma come faccio a farlo fare a wp??
grazie delle risposte
-
23 Aprile 2011 alle 15:53 #83777webcreationmfPartecipante
Ciao, prova a installare qtranslate nel tuo sito!E’ un plugin che ti permette di avere un editor in più quando scriverai x quante lingue vorresti usare e poi in homepage avrai la possibilità di avere le tue bandierine cliccabili che ti riporteranno alle pagine tradotte!il file.po riguarda l’eventualità di dover tradurre un template da lingue straniere-di solito l’inglese- in altre ulteriori come l’italiano ma mi sembra che tu voglia tradurre da te pagine e post senza ricorrere a plugin che fanno riferimento a traduzioni automatiche con google o sbaglio?Spero di averti dato qualche aiuto!
-
23 Aprile 2011 alle 19:07 #83789albyy911Partecipante
Si ma non volevo una traduzione da plug in…
Cmq io ho scoperto che il file che caricare il file .po è wp-confing.php
ho trovato la funzione php che utilizza il file .po e ho scritto il segueten codice:
$lingua =$_POST;
switch ($lingua)
{
case 1:
define('WPLANG', 'it_IT');
break;
case 2:
define('WPLANG', 'fr_FR');
break;
}
ho creato poi le bandierine in html con questo codice:
<form action="wp-confing.php" method="post" name="language">
<input type="image" src="http://www.wordfeed.it/wp-content/themes/Onepage/images/us.png" name="tastol" value="1" >
<input type="image" src="http://www.wordfeed.it/wp-content/themes/Onepage/images/it.png" name="tastol" value="2" >
</form>
ma non funziona qualcuna sa perchè?
-
24 Aprile 2011 alle 17:08 #83807webcreationmfPartecipante
Personalmente no,spero che qualcunaltro ti sappia dare una spiegazione.
-
26 Aprile 2011 alle 11:31 #83844albyy911Partecipante
Possibile nessuno ha soluzione al mio problema??
caricare il file .po e .mo in base alla scelta dell’utente come posso fare?
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.