module Qwik::GetText

Public Instance Methods

_(text)
Alias for: gettext
gettext(text) click to toggle source
# File vendor/qwik/lib/qwik/gettext.rb, line 13
def gettext (text)
  return text if ! defined?(@gettext_catalog) || @gettext_catalog.nil?
  return @gettext_catalog[text] || text
end
Also aliased as: _
set_catalog(catalog) click to toggle source
# File vendor/qwik/lib/qwik/gettext.rb, line 9
def set_catalog (catalog)
  @gettext_catalog = catalog
end