dj-diabetes icon indicating copy to clipboard operation
dj-diabetes copied to clipboard

RFE: l10n support

Open MagicFab opened this issue 7 years ago • 5 comments

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.

MagicFab avatar Dec 06 '17 02:12 MagicFab

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

foxmask avatar Dec 06 '17 06:12 foxmask

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

MagicFab avatar Dec 06 '17 16:12 MagicFab

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

foxmask avatar Dec 06 '17 20:12 foxmask

(continuing in English for other contributors benefit)

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

MagicFab avatar Dec 08 '17 20:12 MagicFab

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

foxmask avatar Dec 08 '17 22:12 foxmask