Module: WebBackend::Helpers::TranslationsHelper
- Included in:
- ApplicationHelper
- Defined in:
- lib/helpers/translations_helper.rb
Instance Method Summary collapse
Instance Method Details
#t(*args) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/helpers/translations_helper.rb', line 4 def t(*args) translation = TranslationEntry.new translation.key = "#{I18n.locale}.#{I18n.namespace(*args)}" translation.value = I18n.t(*args) translation_edit translation end |
#translation_edit(translation) ⇒ Object
11 12 13 |
# File 'lib/helpers/translations_helper.rb', line 11 def translation_edit(translation) render :partial => "/translation_entries/translation_edit_form", :locals => {:translation => translation} end |