Make all translation lookup errors throw exceptions in test mode
Fix new rubocop warnings
Fix new rubocop warnings
Move monkey patch modules to the OpenStreetMap namespace Having them in the OSM namespace risks blocking autoloading of the lib/osm.rb code by defining the OSM constant.
Replace alias_method_chain with Module#prepend
Rework locale selection Implement our own matching algorithm rather than trying to patch the http_accept_language one and make sure everything is using it in a consistent way. Fixes #1125
Update to latest upstream i18n-js The issues we had before seem to be fixed now, so drop our custom version and go back to the upstream one with some minor monkey patching tweaks. This also fixes the sprockets dependencies to correctly rebuild the javascript when the translations change.
Fix most auto-correctable rubocop issues
Remove unnecessary local variable The local variable `app` was unused and therefore not needed to be declared with initialization
Update to rails 4.0.2
Wait until after rails has initialise I18n to preload the resources
Force translations to be preloaded during startup
Remove monkey patch for I18n which is no longer needed
Monkey patch I18n::JS to ensure translations are in a fixed order Without this the result of converting the hash to JSON can vary which causes different hashes for the result JS asset. This is only an issue with ruby 1.8 as ruby 1.9 hashes behave like the ActiveSupport::OrderedHash and enumerate in insertion order.
Update to rails-i18n 0.5.2 and remove monkey patch
Add a temporary hack to suppress some broken rails translations See https://github.com/svenfuchs/rails-i18n/issues/194 for more information and progress on an upstream fix.
Remove translation reload that is no longer needed Now that we are using the rails-i18n gem the rails locales are added to the path early on and we don't need to reload to get them.
Update rails-i18n to 0.5.1 This update allows us to drop our pluralization support, as rails-i18n now takes care of that, and for a far wider range of locales.
Remove fallback from nb to no Now that we are using nb for our translations we can drop the fallback from nb to no and just have one the other way. This also allows us to drop the monkey patch to support mutually recursive fallbacks.
Use normal fallbacks to handle the no/nb confusion This requires (for now) a monkey patch to the i18n fallback code, which has been offered upstream as https://github.com/svenfuchs/i18n/pull/130.