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.49 lib/knj/gettext_fallback.rb
knjrbfw-0.0.48 lib/knj/gettext_fallback.rb
knjrbfw-0.0.47 lib/knj/gettext_fallback.rb
knjrbfw-0.0.46 lib/knj/gettext_fallback.rb
knjrbfw-0.0.45 lib/knj/gettext_fallback.rb
knjrbfw-0.0.44 lib/knj/gettext_fallback.rb
knjrbfw-0.0.43 lib/knj/gettext_fallback.rb
knjrbfw-0.0.42 lib/knj/gettext_fallback.rb
knjrbfw-0.0.41 lib/knj/gettext_fallback.rb
knjrbfw-0.0.40 lib/knj/gettext_fallback.rb
knjrbfw-0.0.39 lib/knj/gettext_fallback.rb
knjrbfw-0.0.38 lib/knj/gettext_fallback.rb
knjrbfw-0.0.37 lib/knj/gettext_fallback.rb
knjrbfw-0.0.36 lib/knj/gettext_fallback.rb
knjrbfw-0.0.35 lib/knj/gettext_fallback.rb
knjrbfw-0.0.34 lib/knj/gettext_fallback.rb
knjrbfw-0.0.33 lib/knj/gettext_fallback.rb
knjrbfw-0.0.32 lib/knj/gettext_fallback.rb
knjrbfw-0.0.31 lib/knj/gettext_fallback.rb