Active
Project:
Hotel Booking System for Ubercart
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
4 Aug 2010 at 18:29 UTC
Updated:
5 Aug 2010 at 10:18 UTC
I noticed that dates are not localized in the check-out detail form. I solved it changing lines 159 and 483 (hotel_booking.panes.inc) from
night_formatted = $night_date->format('l F j, Y'); //format object
to
$night_formatted = t($night_date->format('l')) . " " . t($night_date->format('F')) . $night_date->format(' j, Y'); //format object
and lines 194 and 518 from
$check_out_formatted = $night_date->format('l F j, Y');
to
$check_out_formatted = t($night_date->format('l')) . " " . t($night_date->format('F')) . $night_date->format(' j, Y'); //format object
Is there any better way?
Thanks in advance!
Comments
Comment #1
larowlanI'll have a look at how the date module does it, if possible we should hook into their translations to prevent creating a new set of translation strings.
Comment #2
larowlanComment #3
agsh commentedOk. Thanks a lot for your support!