Sha256: 46a944d3e1757d66c65d1d1843a1ee871342e5ee6dbe32fca920b88421673783

Contents?: true

Size: 277 Bytes

Versions: 16

Compression:

Stored size: 277 Bytes

Contents

require 'sinatra/r18n'

module CASServer
  module Localization
    def self.included(mod)
      mod.module_eval do
        register Sinatra::R18n
        set :default_locale, 'en'
        set :translations, File.dirname(__FILE__) + "/../../locales"
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
synapses-cas-0.1.11 lib/casserver/localization.rb
synapses-cas-0.1.10 lib/casserver/localization.rb
synapses-cas-0.1.9 lib/casserver/localization.rb
synapses-cas-0.1.8 lib/casserver/localization.rb
synapses-cas-0.1.7 lib/casserver/localization.rb
rubycas-server-1.1.1 lib/casserver/localization.rb
synapses-cas-0.1.6 lib/casserver/localization.rb
synapses-cas-0.1.5 lib/casserver/localization.rb
synapses-cas-0.1.4 lib/casserver/localization.rb
synapses-cas-0.1.3 lib/casserver/localization.rb
synapses-cas-0.1.2 lib/casserver/localization.rb
synapses-cas-0.1.1 lib/casserver/localization.rb
synapses-cas-0.1.0 lib/casserver/localization.rb
bmedia-casserver-1.1.3 lib/casserver/localization.rb
bmedia-casserver-1.1.2 lib/casserver/localization.rb
bmedia-casserver-1.1.1 lib/casserver/localization.rb