Sha256: e643a86298b6eb0ca4ccfb7126d691fd0669bf7b634c4e11d5f873e7acb5d807
Contents?: true
Size: 1.8 KB
Versions: 1
Compression:
Stored size: 1.8 KB
Contents
#-- # Copyright (c) 2010-2011 Michael Berkovich # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to # permit persons to whom the Software is furnished to do so, subject to # the following conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #++ module Tr8n::BaseHelper # for admin translations def tra(label, desc = "", tokens = {}, options = {}) if Tr8n::Config.enable_admin_translations? if Tr8n::Config.enable_admin_inline_mode? tr(label, desc, tokens, options) else trl(label, desc, tokens, options) end else Tr8n::Config.default_language.translate(label, desc, tokens, options) end end # for admin translations def trla(label, desc = "", tokens = {}, options = {}) tra(label, desc, tokens, options.merge(:skip_decorations => true)) end def tr8n_paginator_tag(results, subject) render :partial => "/tr8n/common/paginator", :locals => {:objects => results, :subject => subject} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tr8n-3.1.1 | app/helpers/tr8n/base_helper.rb |