Skip to content
Snippets Groups Projects
Unverified Commit c57cc93f authored by graywolf336's avatar graywolf336
Browse files

Remove the explicit i18nDescription from the settings, since those are generated automatically

parent 1770618f
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
if not RocketChat.models.Settings.findOneById 'uniqueID' if not RocketChat.models.Settings.findOneById 'uniqueID'
RocketChat.models.Settings.createWithIdAndValue 'uniqueID', process.env.DEPLOYMENT_ID or Random.id() RocketChat.models.Settings.createWithIdAndValue 'uniqueID', process.env.DEPLOYMENT_ID or Random.id()
# When you define a setting and want to add a description, you don't need to automatically define the i18nDescription
# if you add a node to the i18n.json with the same setting name but with `_Description` it will automatically work.
RocketChat.settings.addGroup 'Accounts', -> RocketChat.settings.addGroup 'Accounts', ->
@add 'Accounts_AllowDeleteOwnAccount', false, { type: 'boolean', public: true, enableQuery: { _id: 'Accounts_AllowUserProfileChange', value: true } } @add 'Accounts_AllowDeleteOwnAccount', false, { type: 'boolean', public: true, enableQuery: { _id: 'Accounts_AllowUserProfileChange', value: true } }
@add 'Accounts_AllowUserProfileChange', true, { type: 'boolean', public: true } @add 'Accounts_AllowUserProfileChange', true, { type: 'boolean', public: true }
...@@ -92,9 +94,9 @@ RocketChat.settings.addGroup 'General', -> ...@@ -92,9 +94,9 @@ RocketChat.settings.addGroup 'General', ->
@add 'Force_SSL', false, { type: 'boolean', public: true } @add 'Force_SSL', false, { type: 'boolean', public: true }
@add 'GoogleTagManager_id', '', { type: 'string', public: true } @add 'GoogleTagManager_id', '', { type: 'string', public: true }
@add 'GoogleSiteVerification_id', '', { type: 'string', public: false } @add 'GoogleSiteVerification_id', '', { type: 'string', public: false }
@add 'PiwikAnalytics_url', '', { type: 'string', public: false, i18nDescription: 'PiwikAnalytics_url_Description' } @add 'PiwikAnalytics_url', '', { type: 'string', public: false }
@add 'PiwikAnalytics_siteId', '', { type: 'string', public: false, i18nDescription: 'PiwikAnalytics_siteId_Description' } @add 'PiwikAnalytics_siteId', '', { type: 'string', public: false }
@add 'PiwikAnalytics_domains', '', { type: 'string', public: false, i18nDescription: 'PiwikAnalytics_domains_Description' } @add 'PiwikAnalytics_domains', '', { type: 'string', public: false }
@add 'Restart', 'restart_server', { type: 'action', actionText: 'Restart_the_server' } @add 'Restart', 'restart_server', { type: 'action', actionText: 'Restart_the_server' }
@section 'UTF8', -> @section 'UTF8', ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment