nkunihiko / django-bootstrap3-datetimepicker

Apache License 2.0
119 stars 154 forks source link

French l10n does not work #11

Open frague59 opened 10 years ago

frague59 commented 10 years ago

Hi,

I'm a french guy too, and datetimepicker localization doesn't work for me too.

I'm using the picker without customization, and

<script type="text/javascript" src="/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.fr.js"></script>

seams loaded, but l10n does not appear in the page, stay in english.

I've tried to copy static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.fr.js to bootstrap-datetimepicker.fr-fr.js, but same issue.

Thanks for you great work !

tonjo commented 10 years ago

I don't know if it helps, but I'm Italian, l10n works out of the box, having the system language configured properly, in settings.py or equivalent:

LANGUAGE_CODE = 'it-IT'
USE_L10N = True

And simply put in your template {{ form.media }}, there's no need to specify js code.

ghost commented 10 years ago

Hi, I'm a french guy too :+1:

do you mean l18n or l10n .. ?? For me the l18n works like a charm .. ie: months are translated in french.

are your sure the javascript fr is properly loaded ? non http 404 response code