Remove Tolk, Crowdin substituted it

Why:

* Crowdin now hosts all consul translations publicly so anyone can contribute https://crowdin.com/project/consul/invite
* Crowdin makes easy for non-tech people to contribute, once we have a demo site we'll be able to offer "on site" translation
* If you still use Tolk, we recommend removing this commit (but adding tolk gem to ./Gemfile_custom file to avoid future merge conflicts)

How:

* Reverting changes introduced with 9610a6a933
This commit is contained in:
Bertocq
2017-07-09 00:56:14 +02:00
parent dbc3af917a
commit 8b2b21c6d7
7 changed files with 11 additions and 62 deletions

View File

@@ -1,25 +0,0 @@
# encoding: utf-8
# Tolk config file. Generated on January 14, 2016 12:09
# See github.com/tolk/tolk for more informations
Tolk.config do |config|
# If you need to add a mapping do it like this :
# May we suggest you use http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
# config.mapping['en-AU'] = 'English (Australia)'
# config.mapping['es-MX'] = 'Spanish (Mexico)'
# config.mapping['fr-ES'] = 'Frañol !'
# config.mapping['is'] = 'Icelandic'
# config.mapping['vi'] = 'Vietnamese'
# Master source of strings to be translated
config.primary_locale_name = 'en'
end
Tolk::ApplicationController.authenticator = proc {
authenticate_or_request_with_http_basic do |username, password|
username == Rails.application.secrets.translate_username &&
password == Rails.application.secrets.translate_password
end
}

View File

@@ -416,7 +416,6 @@ Rails.application.routes.draw do
end
mount GraphiQL::Rails::Engine, at: '/graphiql', graphql_path: '/graphql'
mount Tolk::Engine => '/translate', :as => 'tolk'
# more info pages
get 'more-information', to: 'pages#show', id: 'more_info/index', as: 'more_info'

View File

@@ -33,9 +33,6 @@ production: &production
google_oauth2_key: ""
google_oauth2_secret: ""
translate_username: ""
translate_password: ""
rollbar_server_token: ""
server_name: ""