Sha256: d1780cbf18e29398108de9aa9f8cdb46647dc2f1ec3dc9e2aee6579bd931b7af

Contents?: true

Size: 532 Bytes

Versions: 79

Compression:

Stored size: 532 Bytes

Contents

#A fallback GetText implementation that basically returns the given strings, but can be useful for using methods that uses GetText without using an actual GetText implementation.
module GetText
  #Returns the given string.
  def self._(string)
    return string
  end
  
  #Returns the given string.
  def _(string)
    return string
  end
  
  #Returns the given string.
  def gettext(string)
    return string
  end
  
  #Doesnt do anything.
  def bindtextdomain(temp1 = nil, temp2 = nil, temp3 = nil)
    #nothing here.
  end
end

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
knjrbfw-0.0.116 lib/knj/gettext_fallback.rb
knjrbfw-0.0.115 lib/knj/gettext_fallback.rb
knjrbfw-0.0.114 lib/knj/gettext_fallback.rb
knjrbfw-0.0.113 lib/knj/gettext_fallback.rb
knjrbfw-0.0.111 lib/knj/gettext_fallback.rb
knjrbfw-0.0.110 lib/knj/gettext_fallback.rb
knjrbfw-0.0.109 lib/knj/gettext_fallback.rb
knjrbfw-0.0.108 lib/knj/gettext_fallback.rb
knjrbfw-0.0.107 lib/knj/gettext_fallback.rb
knjrbfw-0.0.105 lib/knj/gettext_fallback.rb
knjrbfw-0.0.104 lib/knj/gettext_fallback.rb
knjrbfw-0.0.103 lib/knj/gettext_fallback.rb
knjrbfw-0.0.102 lib/knj/gettext_fallback.rb
knjrbfw-0.0.101 lib/knj/gettext_fallback.rb
knjrbfw-0.0.100 lib/knj/gettext_fallback.rb
knjrbfw-0.0.99 lib/knj/gettext_fallback.rb
knjrbfw-0.0.98 lib/knj/gettext_fallback.rb
knjrbfw-0.0.97 lib/knj/gettext_fallback.rb
knjrbfw-0.0.96 lib/knj/gettext_fallback.rb
knjrbfw-0.0.95 lib/knj/gettext_fallback.rb