Bonjour moogli, le forum,
Merci pour ta réponse, je ne m'y connais pas vraiment en php, de plus, yahoo team semble affirmer que yahoo weather api n'est pas traduisible, cela m'étonne puisque je vois que yahoo propose tout de même des widgets qui, eux, sont en français, enfin je ne sais pas trop. :
http://developer.yahoo.com/forum/Genera ... 03b8ea3d07
Je préconise une solution, mais je ne sais pas la réaliser, c'est de supprimer la ligne (du tableau) qui contient les jours en anglais,
J'aurai alors juste les 3 lignes d'en dessous, contenant la température, maxi, mini et les icones, j'ai essayé et ça marche,
Et de mettre à la place de la ligne supprimée un script php affichant les diminutifs des noms des 5 jours (l'actuel et les 4 prochains)
<body>
<table align="center">
<tr>
<td class="location" colspan="5"><span>Marseille</span></td>
</tr>
<tr valign="top">
<td class="weather" width="25%"><span class="u"><?php echo strtoupper($weather['forecast'][0]['when']) ?></span><br />
<span style="color:#FFCC00;">Max: <strong><?php echo $weather['forecast'][0]['high'] ?></strong></span><br />
<span style="color:#33FF99;">Min: <strong><?php echo $weather['forecast'][0]['low'] ?></strong></span><br />
<img src="<?php echo $weather['forecast'][0]['image'] ?>" alt="php Yahoo Weather Widget" /></td>
<td class="weather" width="25%"><span class="u"><?php echo strtoupper($weather['forecast'][1]['when']) ?></span><br />
<span style="color:#FFCC00;">Max: <strong><?php echo $weather['forecast'][1]['high'] ?></strong></span><br />
<span style="color:#33FF99;">Min: <strong><?php echo $weather['forecast'][1]['low'] ?></strong></span><br />
<img src="<?php echo $weather['forecast'][1]['image'] ?>" alt="php Yahoo Weather Widget" /></td>
<td class="weather" width="25%"><span class="u"><?php echo strtoupper($weather['forecast'][2]['when']) ?></span><br />
<span style="color:#FFCC00;">Max: <strong><?php echo $weather['forecast'][2]['high'] ?></strong></span><br />
<span style="color:#33FF99;">Min: <strong><?php echo $weather['forecast'][2]['low'] ?></strong></span><br />
<img src="<?php echo $weather['forecast'][2]['image'] ?>" alt="php Yahoo Weather Widget" /></td>
<td class="weather" width="25%"><span class="u"><?php echo strtoupper($weather['forecast'][3]['when']) ?></span><br />
<span style="color:#FFCC00;">Max: <strong><?php echo $weather['forecast'][3]['high'] ?></strong></span><br />
<span style="color:#33FF99;">Min: <strong><?php echo $weather['forecast'][3]['low'] ?></strong></span><br />
<img src="<?php echo $weather['forecast'][3]['image'] ?>" alt="php Yahoo Weather Widget" /></td>
<td class="weather" width="25%"><span class="u"><?php echo strtoupper($weather['forecast'][4]['when']) ?></span><br />
<span style="color:#FFCC00;">Max: <strong><?php echo $weather['forecast'][4]['high'] ?></strong></span><br />
<span style="color:#33FF99;">Min: <strong><?php echo $weather['forecast'][4]['low'] ?></strong></span><br />
<img src="<?php echo $weather['forecast'][4]['image'] ?>" alt="php Yahoo Weather Widget" /></td>
</tr>
</table>
</body>
Si ce n'est pas réalisable, ou non recommandable, je laisse tomber de toute façon, et j'essayerai de trouver un autre script.
Par avance merci.