How to localize calendar widget?

Hello! Because In Russia first day of week - monday.

I find instructions http://requesttracker.8502.n7.nabble.com/Date-picker-Monday-first-td57230.html

But after cache cleaning and apache restart, request tracker does non start. Errors in logfile:

RT: [2239] unterminated quoted string literal at /opt/rt4/sbin/…/lib/RT/Squish/JS.pm line 96.#012#012Stack:#012 [/opt/rt4/sbin/…/lib/RT/Squish/JS.pm:96]#012 [/opt/rt4/sbin/…/lib/RT/Squish/JS.pm:91]#012 [/opt/rt4/sbin/…/lib/RT/Squish.pm:83]#012 [/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:99]#012 [/opt/rt4/share/html/Elements/HeaderJavascript:73]#012 [/opt/rt4/share/html/Elements/Header:95]#012 [/opt/rt4/share/html/index.html:4]#012 [/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:696]#012 [/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:375]#012 [/opt/rt4/share/html/autohandler:53]

1 Like

Solved!

wget https://github.com/jquery/jquery-ui/archive/1.11.4.tar.gz
wget https://github.com/trentrichardson/jQuery-Timepicker-Addon/archive/v1.6.3.tar.gz

tar xzf 1.11.4.tar.gz && tar xzf v1.6.3.tar.gz

sudo mkdir -p /opt/rt4/local/static/js

sudo cp jquery-ui-1.11.4/ui/i18n/datepicker-ru.js /opt/rt4/local/static/js && sudo cp jQuery-Timepicker-Addon-1.6.3/dist/i18n/jquery-ui-timepicker-ru.js /opt/rt4/local/static/js

sudo nano /opt/rt4/etc/RT_SiteConfig.d/rudatetimewidgets.pm
#paste to file:
Set( @JSFiles, qw/

datepicker-ru.js
jquery-ui-timepicker-ru.js

/ );