Sha256: 8004c66ca9f03b1f78c109e15371a931d50410f999ae414b14c919ffc168b4cc

Contents?: true

Size: 405 Bytes

Versions: 3

Compression:

Stored size: 405 Bytes

Contents

class StaticController < ApplicationController
  NAMES = {
    :en => "UK English", # default is US, but we priorize en_GB in app/initializers/fb-localizer.rb
    :es => "Spain's Spanish",
    :it => "Italian",
    :ca => "Catalan",
    :pt => "Portugal's Portuguese",
    :tl => "Klingon"
  }

  def index
    @locale = params[:locale] ? params[:locale].to_sym : I18n.locale
    @names = NAMES
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fb-localizer-0.2.1 testapp/app/controllers/static_controller.rb
fb-localizer-0.2.0 testapp/app/controllers/static_controller.rb
fb-localizer-0.1.3 testapp/app/controllers/static_controller.rb