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.72 lib/knj/gettext_fallback.rb
knjrbfw-0.0.71 lib/knj/gettext_fallback.rb
knjrbfw-0.0.70 lib/knj/gettext_fallback.rb
knjrbfw-0.0.69 lib/knj/gettext_fallback.rb
knjrbfw-0.0.68 lib/knj/gettext_fallback.rb
knjrbfw-0.0.67 lib/knj/gettext_fallback.rb
knjrbfw-0.0.66 lib/knj/gettext_fallback.rb
knjrbfw-0.0.65 lib/knj/gettext_fallback.rb
knjrbfw-0.0.64 lib/knj/gettext_fallback.rb
knjrbfw-0.0.63 lib/knj/gettext_fallback.rb
knjrbfw-0.0.62 lib/knj/gettext_fallback.rb
knjrbfw-0.0.59 lib/knj/gettext_fallback.rb
knjrbfw-0.0.58 lib/knj/gettext_fallback.rb
knjrbfw-0.0.57 lib/knj/gettext_fallback.rb
knjrbfw-0.0.55 lib/knj/gettext_fallback.rb
knjrbfw-0.0.54 lib/knj/gettext_fallback.rb
knjrbfw-0.0.53 lib/knj/gettext_fallback.rb
knjrbfw-0.0.52 lib/knj/gettext_fallback.rb
knjrbfw-0.0.51 lib/knj/gettext_fallback.rb
knjrbfw-0.0.50 lib/knj/gettext_fallback.rb