Changeset [eeddeb6c44e7f005fd5f3ee7b363cd86cdef6539] by Domizio Demichelis

November 22nd, 2010 @ 05:19 PM

I18n refactory [#856]

  • refactory of Hobo::Helper::Translations
  • the use of ht method/tag is reserved for keys starting with a model name
  • the first key passed to ht must be a model name, not a tableized name
  • added show_translation_keys config option that allows to show the used keys right in the output
  • added patches to I18n and TranslationHelper
  • use of translate helper instead I18n.t where possible https://github.com/tablatom/hobo/commit/eeddeb6c44e7f005fd5f3ee7b36...

Committed by Domizio Demichelis

  • A hobo/lib/hobo/extensions/action_view/translation_helper.rb
  • A hobo/lib/hobo/extensions/i18n.rb
  • R hobo/lib/hobo/rapid/taglibs/rapid_translations.dryml
  • M hobo/lib/generators/hobo/i18n/templates/hobo.it.yml
  • M hobo/lib/generators/hobo/rapid/templates/themes/clean/public/stylesheets/rapid-ui.css
  • M hobo/lib/generators/hobo/user_controller/templates/controller.rb.erb
  • M hobo/lib/hobo.rb
  • M hobo/lib/hobo/controller.rb
  • M hobo/lib/hobo/controller/authentication_support.rb
  • M hobo/lib/hobo/controller/model.rb
  • M hobo/lib/hobo/controller/user.rb
  • M hobo/lib/hobo/engine.rb
  • M hobo/lib/hobo/extensions/active_model/translation.rb
  • M hobo/lib/hobo/helper.rb
  • M hobo/lib/hobo/helper/translations.rb
  • M hobo/lib/hobo/rapid/generators/rapid/cards.dryml.erb
  • M hobo/lib/hobo/rapid/generators/rapid/forms.dryml.erb
  • M hobo/lib/hobo/rapid/generators/rapid/pages.dryml.erb
  • M hobo/lib/hobo/rapid/taglibs/rapid_core.dryml
  • M hobo/lib/hobo/rapid/taglibs/rapid_forms.dryml
  • M hobo/lib/hobo/rapid/taglibs/rapid_generics.dryml
  • M hobo/lib/hobo/rapid/taglibs/rapid_i18n.dryml
  • M hobo/lib/hobo/rapid/taglibs/rapid_lifecycles.dryml
  • M hobo/lib/hobo/rapid/taglibs/rapid_navigation.dryml
  • M hobo/lib/hobo/rapid/taglibs/rapid_plus.dryml
  • M hobo/lib/hobo/rapid/taglibs/rapid_user_pages.dryml
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »