Method: GetText::TextDomain#initialize
- Defined in:
- lib/gettext/text_domain.rb
#initialize(name, topdir = nil, output_charset = nil) ⇒ TextDomain
Creates a new GetText::TextDomain.
- name: the text domain name.
- topdir: the locale path ("%topdir/%lang/LC_MESSAGES/%#name.mo") or nil.
- output_charset: output charset.
- Returns: a newly created GetText::TextDomain object.
49 50 51 52 53 54 |
# File 'lib/gettext/text_domain.rb', line 49 def initialize(name, topdir = nil, output_charset = nil) @name, @output_charset = name, output_charset @locale_path = LocalePath.new(@name, topdir) @mofiles = {} end |