Method: GetText#bindtextdomain
- Defined in:
- lib/gettext.rb
#bindtextdomain(domainname, *options) ⇒ Object
bindtextdomain(domainname, options = {})
Bind a textdomain(%path/%#locale/LC_MESSAGES/%domainname.mo) to your program. Normally, the texdomain scope becomes the class/module(and parent classes/included modules).
-
domainname: the textdomain 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.
65 66 67 |
# File 'lib/gettext.rb', line 65 def bindtextdomain(domainname, *) bindtextdomain_to(self, domainname, *) end |