Issue here: https://github.com/Hobo/hobo_bootstrap/issues/41
El 23-01-2015 a las 15:37, Ibon Castilla escribió:
> Hi Ignacio,
>
> Thanks for the tip, it has worked! (kind of) :D
>
> Before doing anything new, I've checked if I had already loaded the
> snippet of code you suggest, and it was loaded! (loaded by front.js).
> As it was being ignoring it, I tried adding the code you have
> mentioned, but didn't seem to work either.
> Finally I've found a workaround that seems to work nicely, consisting
> in a combination of what you suggest and a little hack:
>
> At application.dryml (reload the JS code that supports I18n):
>
> <extend tag="page">
> <old-page merge>
> <append-scripts:>
> <script>
> $.fn.datepicker.dates['es'] = {
> days: ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves",
> "Viernes", "Sábado", "Domingo"],
> daysShort: ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb",
> "Dom"],
> daysMin: ["Do", "Lu", "Ma", "Mi", "Ju", "Vi", "Sa", "Do"],
> months: ["Enero", "Febrero", "Marzo", "Abril", "Mayo",
> "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre",
> "Diciembre"],
> monthsShort: ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul",
> "Ago", "Sep", "Oct", "Nov", "Dic"],
> today: "Hoy",
> clear: "Borrar",
> weekStart: 1,
> format: "dd/mm/yyyy"
> };
> </script>
> </append-scripts:>
> </old-page>
> </extend>
>
> At your view (the one that contains the input with
> bootstrap-datepicker class on it):
>
> <whatever-page>
> ...
> <append-scripts:>
> <script>
> $( document ).ready(function() {
> jQuery('.bootstrap-datepicker').datepicker('remove');
> jQuery('.bootstrap-datepicker').datepicker({language: 'es'});
> });
> </script>
> </append-scripts:>
> ...
> </whatever-page>
>
> As I said, this is a workaround, but I think this problem deserves an
> issue at Github, what do you think? :)
>
> Many thanks and best regards, Ibon.
>
> Abrazo, Ibon.
>
> Usa Software Libre, tus úlceras te lo agradecerán
> Realizado con Software Libre.
>
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.