Commit 09b9a114d29a9c48790bc2b70786c2cf13f61fb3
1 parent
606ef8eb
Exists in
master
and in
23 other branches
ActionItem862: removing dependency on deprecated library
Showing
2 changed files
with
0 additions
and
11 deletions
Show diff stats
app/controllers/application.rb
| ... | ... | @@ -128,16 +128,6 @@ class ApplicationController < ActionController::Base |
| 128 | 128 | end |
| 129 | 129 | RAILS_DEFAULT_LOGGER.info('Locale reverted from %s to %s' % [old_locale, locale]) |
| 130 | 130 | end |
| 131 | - | |
| 132 | - # now set the system locale | |
| 133 | - system_locale = '%s.utf8' % locale | |
| 134 | - begin | |
| 135 | - Locale.setlocale(Locale::LC_TIME, system_locale) | |
| 136 | - rescue Exception => e | |
| 137 | - # fallback to C | |
| 138 | - RAILS_DEFAULT_LOGGER.info("Locale #{system_locale} not available, falling back to the portable \"C\" locale (consider installing the #{system_locale} locale in your system)") | |
| 139 | - Locale.setlocale(Locale::LC_TIME, 'C') | |
| 140 | - end | |
| 141 | 131 | end |
| 142 | 132 | |
| 143 | 133 | def load_category | ... | ... |