(suite)
3. Pour afficher le libellé du temps en français (genre "Nuageux" au lieu de "Cloudy") :
Dans la fonction getCondition, après "getCondition = ... dailyFile)"
Mettre :
If getCondition = "Partly Cloudy" Then
getCondition = "Peu nuageux"
Elseif getCondition = "Mostly Cloudy" Then
getCondition = "Très nuageux"
Elseif getCondition = "Cloudy" Then
getCondition = "Ciel nuageux"
Elseif getCondition = "Showers" Then
getCondition = "Averses"
Elseif getCondition = "Few showers" Then
getCondition = "Quelques averses"
Elseif getCondition = "Scattered Showers" Then
getCondition = "Averses éparses"
Elseif getCondition = "AM Showers" Then
getCondition = "Averses dans la matinée"
Elseif getCondition = "Showers Early" Then
getCondition = "Averses"
Elseif getCondition = "Light Rain" Then
getCondition = "Légère pluie"
Elseif getCondition = "Light Rain / Wind" Then
getCondition = "Légère pluie / Vent"
Elseif getCondition = "T-Storms" Then
getCondition = "Orages"
Elseif getCondition = "Scattered T-Storms" Then
getCondition = "Orages épars"
Elseif getCondition = "Isolated T-Storms" Then
getCondition = "Orages isolés"
Elseif getCondition = "Mostly Sunny" Then
getCondition = "Plutôt ensoleillé"
Elseif getCondition = "Sunny" Then
getCondition = "Ensoleillé"
Elseif getCondition = "Clear" Then
getCondition = "Ciel dégagé"
Elseif getCondition = "Mostly Clear" Then
getCondition = "Ciel plutôt dégagé"
Elseif getCondition = "Fair" Then
getCondition = "Beau"
Else
End if
Oui, oui, je traduit tout simplement les libellés anglais directement dans le code...
Bon, OK, c'est barbare, mais ça fonctionne !
J'ai pas encore eu le temps de tout traduire (faut que je trouve les autres cas), mais bon.... en rajouter est simple, donc...
(suite en dessous)