django-bootstrap3-datetimepicker icon indicating copy to clipboard operation
django-bootstrap3-datetimepicker copied to clipboard

French l10n does not work

Open frague59 opened this issue 10 years ago • 2 comments

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 !

frague59 avatar Mar 10 '14 12:03 frague59

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.

tonjo avatar Mar 10 '14 12:03 tonjo

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

ghost avatar Apr 08 '14 14:04 ghost