Antash / exercisync

when kudos on strava is not enough
https://exercisync.com
Apache License 2.0
16 stars 4 forks source link

Feature/add translation fr #37

Closed canssens closed 5 years ago

canssens commented 5 years ago

Hello Antash,

I added the middleware to translate the website. I changed all templates to translate the english.

I generated french and russian, and i compilted these languages. French should be almost done, and i did in russian only the sentences included in the exercisync version.

So if the merge and test are OK, the version for Russian people should be exactly the same, for english it will be full english, and for French in french.

I joined the two commands useful for translation in the readme. To develop, I used this guide : https://medium.com/@nolanphillips/a-short-intro-to-translating-your-site-with-django-1-8-343ea839c89b Last thing, it requires a new package on the server : gettext.

canssens commented 5 years ago

We could remove the compiled file mo. We have just to launch the compile at initialization.