mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-19 08:40:12 +01:00
forgot to add these
This commit is contained in:
parent
86afd42148
commit
fde64e0b3d
145 changed files with 9044 additions and 0 deletions
8
backup.rails2.3/plugins/translate/init.rb
Normal file
8
backup.rails2.3/plugins/translate/init.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
require 'translate'
|
||||
|
||||
# TODO: Use new method available_locales once Rails is upgraded, see:
|
||||
# http://github.com/svenfuchs/i18n/commit/411f8fe7c8f3f89e9b6b921fa62ed66cb92f3af4
|
||||
def I18n.valid_locales
|
||||
I18n.backend.send(:init_translations) unless I18n.backend.initialized?
|
||||
backend.send(:translations).keys.reject { |locale| locale == :root }
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue