sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Locale#set_app_language_tags
Set the language tags which is supported by the Application.
This value is same with supported_language_tags in Locale.candidates
to restrict the result but is the global setting.
If you set a language tag, the application works as the single locale
application.
If the current locale is not included in app_language_tags,
Locale.default value is used.
Use Locale.set_default() to set correct language
if "en" is not included in the language tags.
Set nil if clear the value.
Note that the libraries/plugins shouldn't set this value.
(e.g.) Locale.set_app_language_tags("fr_FR", "en-GB", "en_US", ...)Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/locale-2.1.2/lib/locale.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Locale-set_app_language_tags-for-pr
# Commit to gitgit add app/server/ruby/vendor/locale-2.1.2/lib/locale.rbgit commit -m "better docs for Locale#set_app_language_tags"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Locale-set_app_language_tags-for-pr
hub pull-request
# Celebrate!