module GetText

In some version just requiring gettext givet an error because you have to define the constant first… weird…

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.

Public Class Methods

_(string) click to toggle source

Returns the given string.

# File lib/knj/gettext_fallback.rb, line 4
def self._(string)
  return string
end

Public Instance Methods

_(string) click to toggle source

Returns the given string.

# File lib/knj/gettext_fallback.rb, line 9
def _(string)
  return string
end
bindtextdomain(temp1 = nil, temp2 = nil, temp3 = nil) click to toggle source

Doesnt do anything.

# File lib/knj/gettext_fallback.rb, line 19
def bindtextdomain(temp1 = nil, temp2 = nil, temp3 = nil)
  #nothing here.
end
gettext(string) click to toggle source

Returns the given string.

# File lib/knj/gettext_fallback.rb, line 14
def gettext(string)
  return string
end