- May 01, 2017
-
-
yhirano authored
* disable Bundler/OrderedGems * fix rubocop Lint/UselessAssignment * fix rubocop Style/BlockDelimiters * fix rubocop Style/AlignHash * fix rubocop Style/AlignParameters, Style/EachWithObject * fix rubocop Style/SpaceInLambdaLiteral
-
- Apr 29, 2017
-
-
Matt Jankowski authored
-
- Apr 25, 2017
-
-
alpaca-tc authored
This PR fixes I18n.locale for rake middlewares. Mastodon uses Devise that depends on Warden. Warden::Manager can be found in rake middleware. It is outside of the controller. In the case of authentication failed, warden calls throw(:warden). At the time Warden::Manager delegates request to failure_app to generate response and flash[:alert] after catching it. Unfortunately, I18n.locale is already reset then because I18n.with_locale is enabled only inside the controller. If we used I18n.locale=, Devise::FailureApp could get the current locale.
-
- Apr 19, 2017
-
-
Matt Jankowski authored
* Add routing specs for accounts followers and following actions * Use more restful route naming for public account follow pages Moves two actions: - accounts#followers to accounts/follower_accounts#index - accounts#following to accounts/following_accounts#index Adds routing spec to ensure prior URLs are preserved.
-
- Apr 14, 2017
-
-
Matt Jankowski authored
* Add locale spec with failing locale plus region check * Use a more accurate locale when supplied by browser headers Previously we were using a matching option which would use the first locale available which matched the locale portion, even if a region was specified. This changes to first try to find an exact match, and then fall back to the region, and then fall back to the default. * Clean up default_locale method
-
- Apr 12, 2017
-
-
Matt Jankowski authored
* Remove trailing whitespace * Use query methods instead of explicit .blank? checks
-
- Apr 09, 2017
-
-
David Authier authored
* Use HTTP Accept-Language to detect locale * Fix gem order to comply with codeclimate * Sort gem to comply with rubocop * I18n.default_locale fallback when there is no accept-language header
-
- Apr 08, 2017
-
-
Eugen Rochko authored
-
- Apr 07, 2017
-
-
Eugen Rochko authored
Setting of locale in controller extracted to Localized concern, the doorkeeper authorized applications controller moved under custom namespace with inclusion of Localized, which resolves the "it sometimes appears in a different random language" bug
-
- Mar 14, 2017
-
-
Eugen Rochko authored
-
- Feb 11, 2017
-
-
Eugen Rochko authored
-
- Nov 30, 2016
-
-
Eugen Rochko authored
Fix #233, fix #268
-
- Feb 20, 2016
-
-
Eugen Rochko authored
-