Sha256: e1750dcad7e3fc16008837f377a1d6159d8f174375f6e786e486eff21899baa9

Contents?: true

Size: 1.32 KB

Versions: 17

Compression:

Stored size: 1.32 KB

Contents

module Mack
  module Localization # :nodoc:
    module DateFormatEngine # :nodoc:
      class FR < Base
        
        def date_format_template(type)
          hash = ivar_cache("df_hash") do
            df_hash = {
              :df_short    => "dd/mm/yyyy",
              :df_medium   => "DD, dd MM, yyyy",
              :df_long     => "DD, dd MM, yyyy"
            }
          end
          return hash["df_#{type}".to_sym]
        end
        
        def days_of_week(type)
          hash = ivar_cache("dow_hash") do 
            dow_hash = {
              :dow_short   => %w{L M M J V S D},
              :dow_medium   => %w{Lun Mar Mer Jeu Ven Sam Dim},
              :dow_long    => %w{Lundi Mardi Mercredi Jeudi vendredi samedi dimanche},
            }
          end
          return hash["dow_#{type}".to_sym]
        end
        
        def months(type)
          hash = ivar_cache("m_hash") do 
            m_hash = {
              :month_short => %w{Jan Fév Mar Avr Mai Jun Jui Aoû Sep Oct Nov Dec},
              :month_medium => %w{Jan Fév Mar Avr Mai Jun Jui Aoû Sep Oct Nov Dec},
              :month_long  => %w{Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre},
            }
          end
          return hash["month_#{type}".to_sym]
        end
        
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
mack-localization-0.6.0 lib/localization/format_engine/df_engines/fr.rb
mack-localization-0.6.1 lib/mack-localization/format_engine/df_engines/fr.rb
mack-localization-0.7.0.1 lib/mack-localization/format_engine/df_engines/fr.rb
mack-localization-0.7.1.1 lib/mack-localization/format_engine/df_engines/fr.rb
mack-localization-0.6.1.1 lib/mack-localization/format_engine/df_engines/fr.rb
mack-localization-0.6.1.2 lib/mack-localization/format_engine/df_engines/fr.rb
mack-localization-0.7.0 lib/mack-localization/format_engine/df_engines/fr.rb
mack-localization-0.6.0.1 lib/localization/format_engine/df_engines/fr.rb
mack-localization-0.7.1 lib/mack-localization/format_engine/df_engines/fr.rb
mack-localization-0.8.3.1 lib/mack-localization/format_engine/df_engines/fr.rb
mack-localization-0.8.0 lib/mack-localization/format_engine/df_engines/fr.rb
mack-localization-0.8.0.1 lib/mack-localization/format_engine/df_engines/fr.rb
mack-localization-0.8.0.2 lib/mack-localization/format_engine/df_engines/fr.rb
mack-localization-0.8.3 lib/mack-localization/format_engine/df_engines/fr.rb
mack-localization-0.8.0.101 lib/mack-localization/format_engine/df_engines/fr.rb
mack-localization-0.8.1 lib/mack-localization/format_engine/df_engines/fr.rb
mack-localization-0.8.2 lib/mack-localization/format_engine/df_engines/fr.rb