wttr.in icon indicating copy to clipboard operation
wttr.in copied to clipboard

Localisation for Marathi (मराठी) language

Open sanketgarade opened this issue 2 years ago • 16 comments

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.

sanketgarade avatar Sep 27 '21 12:09 sanketgarade

@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:

  • [ ] Translate messages into Marathi
  • [ ] Translate help file into Marathi
  • [ ] v2.wttr.in translation

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.

chubin avatar Oct 01 '21 10:10 chubin

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 ?

  • Fixing issues in terminals and browser
  • PNG rendering

sanketgarade avatar Oct 01 '21 23:10 sanketgarade

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?

sanketgarade avatar Oct 06 '21 10:10 sanketgarade

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

chubin avatar Oct 10 '21 19:10 chubin

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! 😄

sanketgarade avatar Oct 10 '21 23:10 sanketgarade

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.

legitishan avatar Oct 11 '21 10:10 legitishan

@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 avatar Oct 11 '21 11:10 chubin

@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

chubin avatar Oct 11 '21 12:10 chubin

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. 😬

sanketgarade avatar Oct 11 '21 12:10 sanketgarade

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

chubin avatar Oct 11 '21 13:10 chubin

Hey @chubin I sent a pr with the hindi translations

legitishan avatar Oct 11 '21 15:10 legitishan

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 -

  • weather words in mr.txt
  • weather report word in we-lang.go
  • time of day in we-lang.go

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

sanketgarade avatar Oct 12 '21 03:10 sanketgarade

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?

chubin avatar Oct 30 '21 17:10 chubin

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.

sanketgarade avatar Nov 02 '21 14:11 sanketgarade

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

chubin avatar Nov 06 '21 19:11 chubin

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

Aniketkhalate avatar Oct 01 '23 12:10 Aniketkhalate