Wttr.in: French translations

Created on 9 Jul 2019  Â·  20Comments  Â·  Source: chubin/wttr.in

Today I can read, in the french translation:

      .-.      Pluie forte à modérée avec tonerre par endroit
     (   ).    24..26 °C      
    (___(__)   ↙ 19 km/h      
   ‚‘⚡‘‚⚡‚‘  10 km          
   ‚’‚’⚡’‚’   1.8 mm 

Pluie forte à modérée translates as something like "rain ranging from strong to moderate". Does this have a different meaning than "moderate to strong"?

If yes, where do I find information about this kind of subtle meteorological semantics?

If not, then it's just a matter of style, and "moderate to strong" sounds more idiomatic to me. I'd be happy to rephrase it if it's much work to you :)

translation

Most helpful comment

(wrong button pressed; never mind)

All 20 comments

@iago-lito Thank you very much for pointing at it. The problem here is that the translation (in case of French) is not ours, but comes from the data source. To have it under our control, we need to add full-fledged support of French to wttr.in here:

https://github.com/chubin/wttr.in/tree/master/share/translations

Okay great. I'll have a look at it :)

Sorry for bumping, but I'm not sure I've understood what you meant with

we need to add full-fledged support of French to wttr.in

Were you suggesting to open a PR with a new fr.txt? (this I did with #330) Or were you suggesting to wait until something was done on your side?

I am doubting because #359 suggests that adding translations doesn't usually take more than 3 months :P

@iago-lito Sorry for delay; I've just merged it. Let us check it live:

curl fr.wttr.in/Lyon
curl fr.wttr.in/:help

Does it look good to you?
Are you ready for v2.wttr.in? (curl v2.wttr.in/?lang=fr)

No worries, thank you :)

It looks good on my side, except that phrasing is longer in French, resulting in that the squares in v1 are sometimes too small to display the whole information. I can see that de.wttr.in has the same problem with German phrasing. But maybe there's a user option to widen this area on a per-terminal basis?
too narrow

Are you ready for v2.wttr.in? (curl v2.wttr.in/?lang=fr)

Not sure what you mean, but if it's about offering my translation for v2 because it's still missing.. then yeah, sure :) What do I need to do?

Regarding the phrasing length in v1, the only possible solution I see here it the popping up tooltips,
because sometimes the phrasing is too long for any table of any size, but probably we should do it in a special v1t view or something like this, because otherwise it can break compatibility with the current clients.

regarding v2: I will add the things to be translated into translation.py or into translation_v2.py, and then we can start

probably we should do it in a special v1t view or something like this

No worries. I was expecting that it would not be simple. But I'd be happy to help on a dedicated issue if I can, although I'm not sure what "popping up tooltips" are.

I will add the things to be translated into translation.py or into translation_v2.py, and then we can start

Okay, feel free to ping me on this thread when it's time :)

I want to abuse the hyperlinks feature for that. If your terminal supports this feature, try:

printf '\e]8;;Partiellement couvert\e\\Partiellement …\e]8;;\e\\\n'

If your terminal does not support it, just start say gnome-terminal for it, and try it there

(wrong button pressed; never mind)

Oh, nice! It does work :) I get the idea. So you're planning on implementing this for cases where the phrasing overflows?

Or should I replace Partiellement couvert with '\e]8;;Partiellement couvert\e\\Partiellement …\e]8;;\e\\\n' in each line of fr.txt?

Yes, I do, but not in the main view, because it may be incompatible with some terminals, that's why we need some additional view for that, v3 or v1t , or v1p (p for popup)
(the latter variant would not work because it is possible that the visible prefix is the same for different conditions)

I see a problem this morning with the current weather still written in english:
reading <code>Rain</code>, not <code>Pluie</code>

But in fr.txt, I can see no line with the simple word Rain, should I add it? What's the code for Rain?

(I copy-pasted de.txt to create fr.txt, and it also misses this entry)

We should add this translation to fr.txt (and everywhere after that). Can you please add without a code, and then I will add its code too?

Sure. How to be sure that no other translation is missing?

@iago-lito

Finally v2 translation! Could you please take a look at it?
It is just a single line:

lib/translations_v2.py

There you go. Please don't hesitate to ask for more translation if you need :) If the translation is too long and it screws up your layout, I can also try something less idiomatic but shorter.

And Happy 2020 with v2! ^ ^

Wop, I can still read something english in the French translation today:

Capture d’écran de 2020-07-28 09-13-13

(same in v2)

This can be translated as "Averses". But maybe there are other items like this missing in the translation, and I'm not sure that waiting for them to happen in my place is the right way to catch'em all X)

Is there a full list of items to translate? I'd be happy to work on it.

The translation is here:

https://github.com/chubin/wttr.in/blob/master/share/translations/fr.txt

The problem is that we can't foresee what new conditions the data source will add to its data.
What is possible though, we can register all untranslated strings during the data translation
and save them to some sort of log, so that they can be translated later

Also, there is a known bug, when several comma separated weather conditions listed at once,
this mus be fixed too (#535)

The bug with comma-separated translation is fixed now, but there are some new untranslated terms:

: Schneeverfrachtung                                : Low drifting snow
: Nebelfelder                                       : Patches of fog
: Nieselregen                                       : Drizzle
: Leichter nielselregen                             : Light drizzle

Coud you please help me to translate them into French?

@chubin Well, good news, and happy new year :)
Here is how I would translate the following:

Patches of fog:    Nappes de brouillard
Drizzle:           Bruine
Light drizzle:     Bruine légère

Low drifting snow is a nasty one. I've been investigating a close-related METAR code: DRSN, here on the French page.

  • It seems that Canadian French speakers refer to blowing snow as Poudrerie so it would be Poudrerie basse.
  • It also seems that European French speakers refer to blowing snow as Chasse-neige instead, so it would be Chasse-neige basse.
  • I have personally been born and raised in regions where it is extremely unfrequent for weather reports to even refer to snow, so I have no intuitive idea what's most idiomatic in this context.

All things considered, I would go for Chasse-neige basse at least until someone claims it's not right or requests that European French translation be distinguished from Canadian French.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

psbanka picture psbanka  Â·  7Comments

stevensona picture stevensona  Â·  4Comments

argestes picture argestes  Â·  6Comments

a0s picture a0s  Â·  8Comments

natehouk picture natehouk  Â·  4Comments