sonic-pi

https://github.com/sonic-pi-net/sonic-pi

C++

Code. Music. Live.

GetText#bindtextdomain

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.

Source | Google | Stack overflow

Edit

git clone [email protected]:sonic-pi-net/sonic-pi.git

cd sonic-pi

open app/server/ruby/vendor/gettext-3.4.3/lib/gettext.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-GetText-bindtextdomain-for-pr


# Commit to git

git add app/server/ruby/vendor/gettext-3.4.3/lib/gettext.rbgit commit -m "better docs for GetText#bindtextdomain"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-GetText-bindtextdomain-for-pr

hub pull-request


# Celebrate!