chubin / wttr.in

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

Localisation for Marathi (मराठी) language #633

Open sanketgarade opened 3 years ago

sanketgarade commented 3 years ago

Hi

I want to add localisation for Marathi language.

Please tell me how I can do it.

I opened this issue on GitHub as guided here.

chubin commented 3 years ago

@sanketgarade Hi! Thank you very much for the help. Let's start with the translation. Here is the list of the things to do:

To do:

You can start with any of it (probably, ideally with the first one).

The code of the language is mr, right, so the translation will be at mr.wttr.in.

As the first step, you can take for example fr.txt, copy it to mr.txt, and replace the French translations with Marahi translations:

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

It would be really great if we could manage to do the Marathi translation.

sanketgarade commented 3 years ago

Thanks. Sure I'll start with the first task.

By the way do you have any idea about the volume of translation in the overall project (like how many words)?

And other than English-Marathi language skills for the translations, what kind of skills (any specific programming language etc.) are needed for the below tasks ?

sanketgarade commented 3 years ago

Hey. I am done with the file above. One of my friends is currently reviewing it.

Which file should I take next? Is it fr-help.txt?

chubin commented 3 years ago

It sounds very cool!Just feel free to submit a PR with the translation. We will activate it, and test it live.

Yes, and I think fr-help.txt is the best for the next one. And also this:

https://github.com/chubin/wttr.in/blob/master/share/we-lang/we-lang.go#L428

sanketgarade commented 3 years ago

I have raised #643 with the weather words,localised caption and daytime words.

For the help doc, it is still work in progress so will submit that later.

Let me know once it is live, so that I can check it too. Thanks! 😄

ishansmishra commented 3 years ago

Hi, I want to the same thing for Hindi but there doesn't seem to be a hindi file under translations? I'm new to the entire hacktober thing so I'm sorry if this isn't appropriate.

chubin commented 3 years ago

@legitishan We have some initial Hindi translation, but it is ongoing. Could you please help with it? It is here: https://github.com/chubin/wttr.in/issues/429

chubin commented 3 years ago

@legitishan Ishan, I've enabmled the mr translation: https://mr.wttr.in (or curl mr.wttr.in).

We have some rendering problems with Devanagari (see below); we will fix it in future, of course, but currently let's focus on the translation itself.

https://mr.wttr.in

sanketgarade commented 3 years ago

Hey @chubin

Thanks for making the site live. I checked it and it feels nice to see my language there. 😃

I saw that the day time words (morning, noon etc.) and also the "weather report" still comes up in English. Is that part not yet enabled in Marathi?

image

By the way @legitishan is looking for the Hindi translation. For Marathi it's me. I think you tagged him wrongly in the comment above for the Marathi site. 😬

chubin commented 3 years ago

oops, my bad; I mean you of course. I see that the time of the day, as well as the date is not translated, but you've translated it too, right?

The rest (Weather report, etc) is here: https://github.com/chubin/wttr.in/blob/master/lib/translations.py

ishansmishra commented 3 years ago

Hey @chubin I sent a pr with the hindi translations

sanketgarade commented 3 years ago

the date is not translated, but you've translated it too, right?

No. I haven't done those. Where are they? I did only 3 things so far -

I'll add Marathi text in all the required places in lib/translation.pynow.

chubin commented 3 years ago

Thank you, I've merged the PRs. I think a couple of message are still missing in translation.py, for example this Location not found message:

http://mr.wttr.in/ffdfgdgfgdgdf

Could you please translate it too, and add your name to the translators list?

sanketgarade commented 3 years ago

Hey sorry I've been busy lately with work. Will do the rest once I find some time. Probably may take a few more weeks.

chubin commented 3 years ago

I moved the rendering rendering subtasks to #676 so that this issue is now fully devoted to translation.

Aniketkhalate commented 1 year ago

Hi, I'm new here so I'm figuring my way around, can I help with this issue?