Browse Source

Fixed deployment and added Spanish translations

development
Godwin 9 years ago
parent
commit
39c2486be0
  1. 10
      app/models/conference_registration_form_field.rb
  2. 2
      app/views/shared/_footer.html.haml
  3. 3
      config/initializers/sorcery.rb
  4. 4
      config/locales/es.yml

10
app/models/conference_registration_form_field.rb

@ -1,6 +1,4 @@
class ConferenceRegistrationFormField < ActiveRecord::Base
belongs_to :conference
belongs_to :registration_form_field
acts_as_list
end
class ConferenceRegistrationFormField < ActiveRecord::Base
belongs_to :conference
belongs_to :registration_form_field
end

2
app/views/shared/_footer.html.haml

@ -14,7 +14,7 @@
- if locale.to_s != I18n.locale.to_s # don't show the current locale
%li
- locale_translation = _("languages.#{locale}", locale: locale)
%a{href: url_for(params.merge(url_params(locale)))}
%a{href: url_for_locale(locale)}
=_'translate.content.change_locale', "Read in #{locale_translation}", vars: {language: locale_translation}, locale: locale
.copy
=_'links.footer.help_text.contributors', 'Who contributed to building this website' do |title|

3
config/initializers/sorcery.rb

@ -203,19 +203,16 @@ Rails.application.config.sorcery.configure do |config|
# use an external encryption class.
# Default: `nil`
#
user.custom_encryption_provider = Sorcery::CryptoProviders::DrupalPassword
# encryption algorithm name. See 'encryption_algorithm=' for available options.
# Default: `:bcrypt`
#
user.encryption_algorithm = :custom#:sha512
# make this configuration inheritable for subclasses. Useful for ActiveRecord's STI.
# Default: `false`
#
user.subclasses_inherit_config = true
# -- remember_me --

4
config/locales/es.yml

@ -1010,8 +1010,8 @@ es:
Please_Confirm_Email: Página no encontrada
'404':
Page_Not_Found: Crear un taller
Policy: 'Policy'
About: 'About'
Policy: 'Política'
About: 'Acerca de'
actions:
workshops:
create: Crear

Loading…
Cancel
Save