Sha256: 49c2fd4f827d1b617b9e8c8f50845b7474c2fe6d5cb2924281abc7a5ee6baa93

Contents?: true

Size: 248 Bytes

Versions: 6

Compression:

Stored size: 248 Bytes

Contents

class ActionView::Base
  def vt(label, options = {})
    I18n.backend.vulgata_translate(I18n.locale, label, options)
  end
end

class String
  def translate(options = {})
    I18n.backend.vulgata_translate(I18n.locale, self.to_s, options)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vulgata-0.3.7 lib/vulgata/vulgata_translate_includes.rb
vulgata-0.3.6 lib/vulgata/vulgata_translate_includes.rb
vulgata-0.3.5 lib/vulgata/vulgata_translate_includes.rb
vulgata-0.3.4 lib/vulgata/vulgata_translate_includes.rb
vulgata-0.3.3 lib/vulgata/vulgata_translate_includes.rb
vulgata-0.3.1 lib/vulgata/vulgata_translate_includes.rb