Traduction de son blog
Exemple:
![]() ![]() ![]() ![]() |
Code à coller en mode HTML |
<table style="width: 160px;" border="0" align="center"> <tbody> <tr> <td> <a title="Francais to Anglais " onclick="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=fr%7Cen&hl=fr&ie=UTF8'); return false;" rel="nofollow" target="_blank"><img src="http://www.google.fr/images/flags/uk_flag.png" alt="Francais to Anglais " style="cursor: pointer;" border="0" height="24" width="34" /></a> <a title="Francais to Allemand" onclick="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=fr%7Cde&hl=en&ie=UTF8'); return false;" rel="nofollow" target="_blank"><img src="http://www.google.fr/images/flags/de_flag.png" alt="Francais to Allemand" style="cursor: pointer;" border="0" height="24" width="34" /></a> <a title="Francais to Italien" onclick="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=fr%7Cit&hl=en&ie=UTF8'); return false;" rel="nofollow" target="_blank"><img src="http://www.google.fr/images/flags/it_flag.png" alt="Francais to Italien" style="cursor: pointer;" border="0" height="24" width="34" /></a> <a title="Francais to Espagnol " onclick="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=fr%7Ces&hl=en&ie=UTF8'); return false;" rel="nofollow" target="_blank"><img src="http://www.google.fr/images/flags/es_flag.png" alt="Francais to Espagnol " style="cursor: pointer;" border="0" height="24" width="34" /></a> </td> </tr> </tbody> </table> |
Description : En rouge mise en forme du tableau et en mauve la taille de celui ci ( dans l'exemple 160Px ) Observons un code de pays (ici la traduction en anglais) <a title="Francais to Anglais " onclick="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=fr%7Cen&hl=fr&ie=UTF8'); return false;" rel="nofollow" target="_blank"><img src="http://www.google.fr/images/flags/uk_flag.png" alt="Francais to Anglais " style="cursor: pointer;" border="0" height="24" width="34" /></a> que changer dans le code ? titre ( on peut mettre le texte que l'on veut ) code pays pour la traduction code pays pour l'image du drapeau (vous pouvez utiliser vos propres images de drapeaux) |
Code pays |
pays | Code langue | Code image | pays | Code langue | Code image | pays | Code langue | Code image | pays | Code langue | Code image | |||
Anglais | en | uk | allemand | de | de | italien | it | it | roumain | ro | ro | |||
espagnol | es | es | portugais | pt | pt | russe | ru | ru | coréen | ko | ||||
grec | el | gr | turc | tr | tr | Hindi | hi | in | chinois simplifié | zh-CN | cn | |||
arabe | ar | sa | ne erlandais | nl | nl | danois | da | dk | Japonais | ja | ja | |||
suédois | sv | se | norvégien | no | no | Polonnais | pl | pl | ||||||
hébreu | iw | il | lituanien | lt | lv | Ukrainien | uk | ua | ||||||
maltais | mt | mt | ||||||||||||
exemple avec d'autres drapeaux |
![]() ![]() ![]() ![]() |