foxmask / dj-diabetes

:snake: :pill: My Glucose Manager - follow your daily health
BSD 3-Clause "New" or "Revised" License
92 stars 20 forks source link

RFE: l10n support #10

Open MagicFab opened 6 years ago

MagicFab commented 6 years ago

Thanks for sharing this. I'd like to suggest adding support for localization. I believe strings are hardcoded in English for now.

I'd be interested in translating to French.

foxmask commented 6 years ago

aucun problème 😉 je vais mettre à jour django comme d'habitude et remplacer les chaînes codées en dure par{% trans '....'%}

MagicFab commented 6 years ago

Oh! C'est donc pour ça qu'il y avait quelques traces de français dans l'interface :)

foxmask commented 6 years ago

au final j'ai déjà mis du trans partout ; il en maque juste dans le forms/*.py où je n'ai pas mis _() en label de chaque champ

MagicFab commented 6 years ago

(continuing in English for other contributors benefit)

After this is done I suppose .po files would be generated/supported? How will this be managed?

foxmask commented 6 years ago

https://docs.djangoproject.com/en/2.0/topics/i18n/translation/ should be the path to follow