OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/lib/l10n_patch.rb

17 lines
671 B

module ActionView::Helpers::NumberHelper
# FIXME: this is redmine 0.8 specific
# current trunk uses the I18n module instead of GLoc
include GLoc
def number_to_currency_with_l10n(number, options = {})
options[:delimiter] = l(:currency_delimiter) unless options[:delimiter]
options[:separator] = l(:currency_separator) unless options[:separator]
options[:unit] = Setting.plugin_redmine_costs['costs_currency'] unless options[:unit]
options[:format] = Setting.plugin_redmine_costs['costs_currency_format'] unless options[:format]
number_to_currency_without_l10n(number, options)
end
alias_method_chain :number_to_currency, :l10n
end