Skip to content

Commit d85be42

Browse files
committed
Spaces I18n
1 parent b610709 commit d85be42

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

app/helpers/spaces_helper.rb

Lines changed: 0 additions & 3 deletions
This file was deleted.

app/views/spaces/index.html.erb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44

55
<div class="text-right my-3">
66
<% if policy(:space).create? %>
7-
<%= link_to new_space_path, class: 'btn btn-primary' do %>
8-
Create space
9-
<% end %>
7+
<%= link_to(t('register.buttons.space'), new_space_path, class: 'btn btn-primary') %>
108
<% end %>
11-
<%= info_button("What are spaces?", hide_text: true) do %>
12-
<%= render_markdown('Spaces info here') %>
9+
<%= info_button(t('info.spaces.title'), hide_text: true) do %>
10+
<%= render_markdown(t('info.spaces.description')) %>
1311
<% end %>
1412
</div>
1513

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<%= info_box('What are space?') do %>
2-
<%= render_markdown(SpacesHelper::SPACES_INFO) %>
1+
<%= info_button(t('info.spaces.title'), hide_text: true) do %>
2+
<%= render_markdown(t('info.spaces.description')) %>
33
<% end %>

config/locales/en.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,13 @@ en:
255255
256256
register:
257257
buttons:
258-
content_providers: 'Register content provider'
259-
events: 'Register event'
260-
materials: 'Register training material'
261-
workflows: 'Create workflow'
262-
trainers: 'Register as trainer'
263-
collections: 'Create collection'
258+
content_providers: Register content provider
259+
events: Register event
260+
materials: Register training material
261+
workflows: Create workflow
262+
trainers: Register as trainer
263+
collections: Create collection
264+
space: Create space
264265
registering_resources_in: "Registering Resources in %{site_name}"
265266
resources: >
266267
<p>Training resources (events and materials) may be added to TeSS to reach bigger audiences, increase impact and
@@ -1000,4 +1001,8 @@ en:
10001001
update: Update %{model}
10011002
learning_path_topic:
10021003
create: Create %{model}
1003-
update: Update %{model}
1004+
update: Update %{model}
1005+
info:
1006+
spaces:
1007+
title: What are spaces?
1008+
description: Spaces are customizable, community-managed sub-portals within TeSS, each with their own catalogue of training content.

0 commit comments

Comments
 (0)