Class GetText::TextDomainManager
In: lib/gettext/textdomainmanager.rb
Parent: Object

Manage TextDomain (Internal use only) A class/module is able to have plural textdomains.

Methods

Included Modules

Enumerable

Attributes

target  [R] 
textdomains  [R] 

Public Class methods

Initialize a TextDomainManager

Public Instance methods

Add a textdomain

  • options: If they aren‘t set or invalid, default values are used.
    • :path - the path to the mo-files. If not set, it will search default paths such as /usr/share/locale, /usr/local/share/locale)

Iterate textdomains.

Sets locale such as "de", "fr", "it", "ko", "ja_JP.eucJP", "zh_CN.EUC" …

Notice that you shouldn‘t use this for your own Libraries.

  • locale: a locale string or Locale::Object.
  • force: Change locale forcely.
  • Returns: self

[Validate]