How to hook the Redmine calendar and date
Added by iransamin.ir sabasa over 12 years ago
Hi,
I prefered to ask this question here to get more help from public.
I had already added issue #12889 and discussed a little with Mr. Jean-Philippe Lang, but i think better to have this discussion more public:
Is there any way to hook all the the Redmine calendar refrences and provide a Persian Calendar in reply?
I am not familiar with ruby but can program in Delphi. I also have some programs which can translate any Gregorian Calendar into the Persian equivalent. Can you guide me how to insert such a code into Redmine?
I also can create Apache .dso files with Delphi.
Mr. Jean-Philippe Lang:
Redmine uses JQuery and this JQuery plugin provides Persian calendars: http://keith-wood.name/calendars.html. I didn't test it and don't know if we can easily replace the default JQuery Datepicker used in Redmine by this one.
But I checked the files and could not correctly find the actual connection between the JQuery Calendar CDate and DatePickers with Redmine ruby files! I thought it is somewhere in the "D:\BitNami\redmine-2.2.0-0\apps\redmine\htdocs\app\helpers\application_helper.rb" but it seems to be wrong! (I changed the "i18n/jquery.ui.datepicker-#{jquery_locale}.js" but nothing changed in the date pickers) Should ruby files be compiled? I am running Redmine on Win Server 2003.
Replies (1)
RE: How to hook the Redmine calendar and date
-
Added by Ebrahim Mohammadi almost 11 years ago
Hi,
As far as I know Redmine doesn't have hooks for calendar calculations and user interfaces.
I had to override some parts of Redmine to implement Persian (Jalali) calendar system in my Peygir service.