chubin / wttr.in

:partly_sunny: The right way to check the weather
https://wttr.in
Apache License 2.0
24.45k stars 1.1k forks source link

MIssing Russian translations #535

Open 532910 opened 3 years ago

532910 commented 3 years ago

This is curl with -H "Accept-Language: ru": image

And I saw other types of fog without translations.

chubin commented 3 years ago

Thank you for reporting this. It is a known bug: combinations of strings are not translated, even though translation of each particular part exists. It will be fixed

Simplyalex99 commented 3 years ago

Can I help out with this project?

chubin commented 3 years ago

@Simplyalex99 You mean this particular bug, or the whole wttr.in project? In both cases the answer is yes.

In the latter case just go through the list of open issues, and select 3-5 issues you like most. After that I will say to you what of these issues is the best choice for beginning.

532910 commented 3 years ago
Прогноз погоды: Saint-Petersburg

                Shallow fog
   _ - _ - _ -  6 °C
    _ - _ - _   → 4 km/h
   _ - _ - _ -  6 km
                0.0 mm

mm, km, km/h should be мм, км, км/ч Saint-Petersburg -> Санкт-Петербург

chubin commented 3 years ago

Thank you for the "shallow fog"; I think we should detect untraslated weather conditions automatically, and then translate all of them; agree about the units translation; not agree about Saint-Petersburg:

it always uses the same form in response, as was used in query. I.e, if you would use SpB it would return SpB in the title; if Leningrad, then Leningrad (but not Petrograd, because it is a location in Norway). Thing about it from this perspective: if you query for Phuket, you should receive response for Phuket, and not for จังหวัดภูเก็ต (the latter one you can find in the Location: string though, under the forecast). Theoretically the location name could be translated into the response language too, but it is hard to solve this task in a generalized way (if at all) for all supported languages, all languages in the world, so instead we just use that form in the response that was used in the query

532910 commented 3 years ago

about Saint-Petersburg

agree (:

532910 commented 3 years ago

Freezing rain:

% curl -H "Accept-Language: ru" https://wttr.in/Санкт-Петербург 
Прогноз погоды: Санкт-Петербург

       .-.      Freezing rain
chubin commented 3 years ago

Added translations for Freezing rain and Shallow fog; the bug with the comma-separated sequences is still open

chubin commented 3 years ago

I think that now all of the terms are finally translated, and the bug with comma-separated terms is fixed too. Please post new untranslated strings if you find any (see also #554)

BathoryPeter commented 3 years ago

One more new string: Shower in vicinity, rain with thunderstorm.

If I'm right, these strings are coming from an external service. Isn't it possible to ask them for the complete list?

iago-lito commented 3 years ago

French: Averses proches, pluie et orages.

chubin commented 3 years ago

Added; thanks a lot!

@BathoryPeter Yes, it is not possible, but what is possible, and probably should be done: we could automatically find a list of the terms that could not be translated

532910 commented 3 years ago

Light rain and snow shower image

chubin commented 3 years ago

Here is a couple of missing Russian translations gathered during the last 10 days:

haze
heavy rain and snow shower
heavy rain and snow with thunderstorm
heavy rain with thunderstorm
heavy snow shower
light rain and hail with thunderstorm
light rain and snow shower
light rain with thunderstorm
light snow shower
parftial fog
rain and hail with thunderstorm
rain and small hail/snow pallets with thunderstorm
rain and snow shower
rain with thunderstorm
shower in vicinity
smoke
squalls
thunderstorm
thunderstorm in vicinity
poslat-pismo commented 7 months ago

Here is a couple of missing Russian translations gathered during the last 10 days:

Overcast
DinacoStudio commented 5 months ago

Russian Translition not showing in all text
Cloudy Partly Cloudy Clear Overcast Patchy rain nearby