Removed gettext and simplified_localization-plugin. L18n is now the appropriate module.
Upgraded to rails 2.2.2 and replaced complex foodsoft.rb-loader with simple initializers/load_app_config.rb. Multiple foodcoops option is temporarly deactivated.
This commit is contained in:
parent
5b9a7e05df
commit
9f8d0d28ac
121 changed files with 1197 additions and 15237 deletions
|
|
@ -2,11 +2,15 @@
|
|||
module ApplicationHelper
|
||||
|
||||
def format_time(time = Time.now)
|
||||
FoodSoft::format_date_time(time) unless time.nil?
|
||||
I18n.l time, :format => "%d.%m.%Y %H:%M"
|
||||
end
|
||||
|
||||
def format_date(time = Time.now)
|
||||
FoodSoft::format_date(time) unless time.nil?
|
||||
I18n.l time.to_date
|
||||
end
|
||||
|
||||
def format_datetime(time = Time.now)
|
||||
I18n.l time
|
||||
end
|
||||
|
||||
# Creates ajax-controlled-links for pagination
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue