Module: GetText
- Defined in:
- lib/knj/autoload/gettext.rb,
lib/knj/gettext_fallback.rb
Overview
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.
Class Method Summary collapse
-
._(string) ⇒ Object
Returns the given string.
Instance Method Summary collapse
-
#_(string) ⇒ Object
Returns the given string.
-
#bindtextdomain(temp1 = nil, temp2 = nil, temp3 = nil) ⇒ Object
Doesnt do anything.
-
#gettext(string) ⇒ Object
Returns the given string.
Class Method Details
Instance Method Details
#_(string) ⇒ Object
Returns the given string.
9 10 11 |
# File 'lib/knj/gettext_fallback.rb', line 9 def _(string) return string end |
#bindtextdomain(temp1 = nil, temp2 = nil, temp3 = nil) ⇒ Object
Doesnt do anything.
19 20 21 |
# File 'lib/knj/gettext_fallback.rb', line 19 def bindtextdomain(temp1 = nil, temp2 = nil, temp3 = nil) #nothing here. end |
#gettext(string) ⇒ Object
Returns the given string.
14 15 16 |
# File 'lib/knj/gettext_fallback.rb', line 14 def gettext(string) return string end |