localization settings

39 views
Skip to first unread message

EMRE KIYAK

unread,
Apr 18, 2012, 8:32:10 AM4/18/12
to Juice UI
Hi there,
I need to use localization settings for datepicker control.
I add this codes into .juice.js file for Turkish localization
settings.

$.datepicker.regional['tr'] = {
closeText: 'kapat',
prevText: '<geri',
nextText: 'ileri&#x3e',
currentText: 'bugün',
monthNames: ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran',
'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'],
monthNamesShort: ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz',
'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'],
dayNames: ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe',
'Cuma', 'Cumartesi'],
dayNamesShort: ['Pz', 'Pt', 'Sa', 'Ça', 'Pe', 'Cu', 'Ct'],
dayNamesMin: ['Pz', 'Pt', 'Sa', 'Ça', 'Pe', 'Cu', 'Ct'],
weekHeader: 'Hf',
dateFormat: 'dd.mm.yy',
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ''
};
$.datepicker.setDefaults($.datepicker.regional['tr']);

When i run the project on my machine/localhost everything goes well
but on the server I couldnt success to run with turkish localization
settings. I upload juice.js file to via ftp and try to CTRL+F5 refresh
combination. I couldnt success.

Do you have any idea about it ?

Andrew Powell (appendTo)

unread,
Apr 18, 2012, 8:37:29 AM4/18/12
to jui...@googlegroups.com
We do not recommend modifying the juice.js file. Other extensions like this should be placed into a separate js file. If it isn't working once you've moved it to a separate file, please post a link to a public facing website that we can use to examine the code.
Reply all
Reply to author
Forward
0 new messages