Maintenance: Drop 'translator_key' setting that has become obsolete by the Weblate migration.
This commit is contained in:
parent
502e60b051
commit
4a2302b2ae
4 changed files with 10 additions and 19 deletions
10
db/migrate/20220211135842_drop_translator_key.rb
Normal file
10
db/migrate/20220211135842_drop_translator_key.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
||||
|
||||
class DropTranslatorKey < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
# return if it's a new setup
|
||||
return if !Setting.exists?(name: 'system_init_done')
|
||||
|
||||
Setting.find_by(name: 'translator_key')&.destroy
|
||||
end
|
||||
end
|
|
@ -3574,16 +3574,6 @@ Setting.create_if_not_exists(
|
|||
frontend: true
|
||||
)
|
||||
|
||||
Setting.create_if_not_exists(
|
||||
title: __('Defines translator identifier.'),
|
||||
name: 'translator_key',
|
||||
area: 'i18n::translator_key',
|
||||
description: __('Defines the translator identifier for contributions.'),
|
||||
options: {},
|
||||
state: '',
|
||||
frontend: false
|
||||
)
|
||||
|
||||
Setting.create_if_not_exists(
|
||||
title: __('Defines postmaster filter.'),
|
||||
name: '0005_postmaster_filter_trusted',
|
||||
|
|
|
@ -2999,18 +2999,10 @@ msgstr ""
|
|||
msgid "Defines the transaction backend which will enrich customer and organization information from Clearbit (http://www.clearbit.com)."
|
||||
msgstr ""
|
||||
|
||||
#: db/seeds/settings.rb
|
||||
msgid "Defines the translator identifier for contributions."
|
||||
msgstr ""
|
||||
|
||||
#: db/seeds/settings.rb
|
||||
msgid "Defines transaction backend."
|
||||
msgstr ""
|
||||
|
||||
#: db/seeds/settings.rb
|
||||
msgid "Defines translator identifier."
|
||||
msgstr ""
|
||||
|
||||
#: app/assets/javascripts/app/controllers/_application_controller/table.coffee
|
||||
#: app/assets/javascripts/app/controllers/_manage/knowledge_base.coffee
|
||||
#: app/assets/javascripts/app/controllers/data_privacy.coffee
|
||||
|
|
|
@ -92,7 +92,6 @@ or with filter:
|
|||
raise __("The required field 'api_token' is missing from the config.") if setting[:api_token].blank?
|
||||
raise __("The required field 'endpoint' is missing from the config.") if setting[:endpoint].blank?
|
||||
|
||||
# translator_key = Setting.get('translator_key')
|
||||
params = {
|
||||
apikey: setting[:api_token],
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue