sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
GetText#p_
call-seq:
pgettext(msgctxt, msgid)
p_(msgctxt, msgid)
Translates msgid with msgctxt. This methods is similer with s_().
e.g.) p_("File", "New") == s_("File|New")
p_("File", "Open") == s_("File|Open")
* msgctxt: the message context.
* msgid: the message id.
* Returns: the localized text by msgid. If there are no localized text,
it returns msgid.
See: http://www.gnu.org/software/autoconf/manual/gettext/Contexts.html
This is the workaround to conflict p_ methods with the xx("double x") library.
http://rubyforge.org/projects/codeforpeople/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 branchgit checkout -b -your-name--update-docs-GetText-p_-for-pr
# Commit to gitgit add app/server/ruby/vendor/gettext-3.4.3/lib/gettext.rbgit commit -m "better docs for GetText#p_"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-GetText-p_-for-pr
hub pull-request
# Celebrate!