Index: i18n.rb =================================================================== --- i18n.rb (revision 116) +++ i18n.rb (revision 1907) @@ -28,7 +28,14 @@ def l_hours(hours) hours = hours.to_f - l((hours < 2.0 ? :label_f_hour : :label_f_hour_plural), :value => ("%.2f" % hours.to_f)) + # Smile specific : do not display decimals if zero + hours_i = hours.to_i + if hours != hours_i + hours_s = ("%.2f" % hours) + else + hours_s = hours_i + end + l((hours < 2.0 ? :label_f_hour : :label_f_hour_plural), :value => hours_s) end def ll(lang, str, value=nil)