Skip to content

Commit d29dfc7

Browse files
committed
Fixed missing translation for resource_type hint.
Enabled option to raise exceptions when translation missing in dev/test Removed whitelisted web console IP
1 parent 665934e commit d29dfc7

4 files changed

Lines changed: 5 additions & 8 deletions

File tree

app/views/materials/_form.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@
9292
<%= f.input :date_published, as: :date_picker, field_lock: true, input_html: { title: t('materials.hints.date_published') } %>
9393

9494
<!-- Field: Resource Type -->
95-
<%= f.multi_input :resource_type, label: 'Resource types', errors: @material.errors[:material_types],
96-
title: t('events.hints.type') %>
95+
<%= f.multi_input :resource_type, label: 'Resource types', errors: @material.errors[:resource_type],
96+
title: t('materials.hints.resource_type') %>
9797

9898
<!-- Field: Other Types -->
9999
<% if !TeSS::Config.feature['disabled'].include? 'other_types' %>

config/environments/development.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@
6060
protocol: URI.parse(TeSS::Config.base_url).scheme
6161
}
6262

63-
# console whitelisted ip addresses
64-
config.web_console.whitelisted_ips = '1.120.119.251'
65-
6663
# Print deprecation notices to the Rails logger.
6764
config.active_support.deprecation = :log
6865

@@ -81,7 +78,7 @@
8178
config.assets.quiet = true
8279

8380
# Raises error for missing translations
84-
# config.action_view.raise_on_missing_translations = true
81+
config.i18n.raise_on_missing_translations = true
8582

8683
# Use an evented file watcher to asynchronously detect changes in source code,
8784
# routes, locales, etc. This feature depends on the listen gem.

config/environments/test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
config.active_support.deprecation = :stderr
4444

4545
# Raises error for missing translations
46-
# config.action_view.raise_on_missing_translations = true
46+
config.i18n.raise_on_missing_translations = true
4747
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
4848

4949
config.action_mailer.asset_host = TeSS::Config.base_url

config/locales/en.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ en:
307307
targets: 'Indicate the type of audience intended to use your training material.'
308308
time: 'What is the estimated time it takes to work through this resource in hours?'
309309
title: 'Add a title for your training material.'
310-
type: 'Select the type of resource that best matches the training material. '
310+
resource_type: 'Select the type of resource that best matches the training material. '
311311
url: 'Preferred URL to direct people to your training material landing page.'
312312
version: 'Indicate the current version of the training material.'
313313
profile:

0 commit comments

Comments
 (0)