Class: R18n::Locales::It

Inherits:
R18n::Locale show all
Defined in:
lib/r18n-core/locales/it.rb

Overview

Italian locale

Instance Attribute Summary

Attributes inherited from R18n::Locale

#code, #downcased_code, #language, #parent, #region

Instance Method Summary collapse

Methods inherited from R18n::Locale

#==, capitalize, exists?, #format_date_human, #format_date_standard, #format_float, #format_integer, #format_time, #format_time_full, #format_time_human, #format_time_standard, #initialize, #inspect, load, #localize, #ltr?, #month_abbrs, #month_standalone, #pluralize, sanitize_code, set, #strftime, #supported?, #wday_abbrs

Constructor Details

This class inherits a constructor from R18n::Locale

Instance Method Details

#format_date_full(date, year = true, *_params) ⇒ Object



27
28
29
30
31
32
33
34
# File 'lib/r18n-core/locales/it.rb', line 27

def format_date_full(date, year = true, *_params)
  full = super(date, year)
  if full[0..1] == '1 '
    '1ยบ' + full[1..-1]
  else
    full
  end
end