Post by deanpl » Fri Dec 02, 2011 3:23 pm

How can I change default language of datepicker in admin/product area?

JQuery documentation
http://docs.jquery.com/UI/Datepicker/Localization
explains:

If necessary, the default language, or any other, may be re-established via a similar mechanism:

Code: Select all

$.datepicker.setDefaults($.datepicker.regional['']);
but there is no effect for me. Please help!

Newbie

Posts

Joined
Fri Dec 02, 2011 3:18 pm

Post by luizeduardo » Mon Feb 24, 2014 4:02 am

Just to add how i solved my problem with this:

I added this:
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/i18n/jquery.ui.datepicker-pt-BR.js"></script>

Right after:
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/jquery-ui-timepicker-addon.js"></script>

On the product.tpl file. On <body> section normally.

I was missing the name of my file, tha was jquery.ui... on many sites i found this same solution but the file name has no "jquery" on the beggining. Fixed that and all done! :)

Para o pessoal do Brasil com problemas no jquery datepicker para configurar o idioma e linguagem, veja acima como resolvi o caso! Hope it helps you too! ;)

New member

Posts

Joined
Tue Jul 03, 2012 4:01 am
Who is online

Users browsing this forum: No registered users and 80 guests