mirror of
https://github.com/TracksApp/tracks.git
synced 2026-04-18 01:59:02 +02:00
install translate from https://github.com/newsdesk/translate for non-production use
access /translate to view and edit i18n translations
This commit is contained in:
parent
69ab625c70
commit
48d9e49482
29 changed files with 1732 additions and 3 deletions
8
vendor/plugins/translate/init.rb
vendored
Normal file
8
vendor/plugins/translate/init.rb
vendored
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