--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Bind a textdomain(#{path}/#{locale}/LC_MESSAGES/#{domainname}.mo) to your program. Notes the textdomain scope becomes all of the controllers/views/models in your app. This is different from normal GetText.bindtextomain.
- !ruby/struct:SM::Flow::P 
  body: Usually, you don't call this directly in your rails application. Call init_gettext in ActionController::Base instead.
- !ruby/struct:SM::Flow::P 
  body: On the other hand, you need to call this in helpers/plugins.
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: "domainname: the textdomain name."
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: "options: options as a Hash."
  - !ruby/object:SM::Flow::LIST 
    contents: 
    - !ruby/struct:SM::Flow::LI 
      label: "*"
      body: ":locale - the locale value such as &quot;ja-JP&quot;. When the value is nil, locale is searched the order by this value &gt; &quot;lang&quot; value of QUERY_STRING &gt; params[&quot;lang&quot;] &gt; &quot;lang&quot; value of Cookie &gt; HTTP_ACCEPT_LANGUAGE value &gt; Default locale(en)."
    - !ruby/struct:SM::Flow::LI 
      label: "*"
      body: ":path - the path to the mo-files. Default is &quot;RAIL_ROOT/locale&quot;."
    - !ruby/struct:SM::Flow::LI 
      label: "*"
      body: ":charset - the charset. Generally UTF-8 is recommanded. And the charset is set order by &quot;the argument of bindtextdomain&quot; &gt; HTTP_ACCEPT_CHARSET &gt; Default charset(UTF-8)."
    type: :BULLET
  type: :BULLET
full_name: GetText::Rails#bindtextdomain
is_singleton: false
name: bindtextdomain
params: |
  bindtextdomain(domainname, options = {})

visibility: public
