Method: GetText#bindtextdomain
- Defined in:
- lib/gettext.rb
#bindtextdomain(domainname, *options) ⇒ Object
bindtextdomain(domainname, options = {})
Bind a text domain(%path/%#locale/LC_MESSAGES/%domainname.mo) to your program. Normally, the texdomain scope becomes the class/module(and parent classes/included modules).
- domainname: the text domain name.
- options: options as an Hash.
- :path - the path to the mo-files. When the value is nil, it will search default paths such as /usr/share/locale, /usr/local/share/locale)
- :output_charset - The output charset. Same with GetText.set_output_charset. Usually, L10n library doesn't use this option. Application may use this once.
- Returns: the GetText::TextDomainManager.
53 54 55 |
# File 'lib/gettext.rb', line 53 def bindtextdomain(domainname, *) bindtextdomain_to(self, domainname, *) end |