Skip to content

Commit 69c9cd6

Browse files
committed
Localize host dashboard headings
1 parent d285fda commit 69c9cd6

File tree

4 files changed

+23
-20
lines changed

4 files changed

+23
-20
lines changed

app/views/better_together/host_dashboard/index.html.erb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<% content_for :page_title do %>
2-
Dashboard
2+
<%= t('host_dashboard.index.page_title') %>
33
<% end %>
44

55
<div class="container my-3">
6-
<h1>Dashboard</h1>
6+
<h1><%= t('host_dashboard.index.title') %></h1>
77

88
<!-- Custom section for the host app -->
99
<%= render partial: 'host_app_resources' %>
1010

1111
<!-- Better Together Resources Section -->
1212
<div class="better-together-resources mt-4">
13-
<h2><%= t('.better_together') %></h2>
13+
<h2><%= t('host_dashboard.index.better_together') %></h2>
1414
<div class="row mt-3 row-cols-1 row-cols-sm-2 row-cols-md-3">
1515
<!-- Communities -->
1616
<%= render partial: 'resource_card', locals: { collection: @communities, count: @community_count, url_helper: :community_path } %>
@@ -42,14 +42,14 @@
4242

4343
<div id="content-section" class="row mt-3">
4444
<div class="col-12">
45-
<h3><%= t('.content') %></h3>
45+
<h3><%= t('host_dashboard.index.content') %></h3>
4646
</div>
4747
<%= render partial: 'resource_card', locals: { model_class: ::BetterTogether::Content::Block, collection: @content_blocks, count: @content_block_count, url_helper: :content_block_path } %>
4848
</div>
4949

5050
<div id="geography-section" class="row mt-3">
5151
<div class="col-12">
52-
<h3><%= t('.geography') %></h3>
52+
<h3><%= t('host_dashboard.index.geography') %></h3>
5353
</div>
5454
<%= render partial: 'resource_card', locals: {collection: @geography_continents, count: @geography_continent_count, url_helper: :geography_continent_path } %>
5555
<%= render partial: 'resource_card', locals: {collection: @geography_countries, count: @geography_country_count, url_helper: :geography_country_path } %>

config/locales/en.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -727,11 +727,6 @@ en:
727727
title: Title
728728
global:
729729
add: Add
730-
host_dashboard:
731-
index:
732-
better_together: Better together
733-
content: Content
734-
geography: Geography
735730
hub:
736731
index:
737732
activity: Activity
@@ -1349,6 +1344,12 @@ en:
13491344
type: Type
13501345
type_select_field: Select the type for this field.
13511346
host_dashboard:
1347+
index:
1348+
page_title: Host Dashboard
1349+
title: Host Dashboard
1350+
better_together: Better together
1351+
content: Content
1352+
geography: Geography
13521353
resource_card:
13531354
new_resource: New %{resource}
13541355
none_yet: None yet

config/locales/es.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -730,11 +730,6 @@ es:
730730
title: Título
731731
global:
732732
add: Agregar
733-
host_dashboard:
734-
index:
735-
better_together: Mejor juntos
736-
content: Contenido
737-
geography: Geografía
738733
hub:
739734
index:
740735
activity: Activity
@@ -1337,6 +1332,12 @@ es:
13371332
type: Tipo
13381333
type_select_field: Seleccione el tipo para este campo.
13391334
host_dashboard:
1335+
index:
1336+
page_title: Panel de control del anfitrión
1337+
title: Panel de control del anfitrión
1338+
better_together: Mejor juntos
1339+
content: Contenido
1340+
geography: Geografía
13401341
resource_card:
13411342
new_resource: Nuevo %{resource}
13421343
none_yet: Ninguno aún

config/locales/fr.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -733,11 +733,6 @@ fr:
733733
title: Titre
734734
global:
735735
add: Ajouter
736-
host_dashboard:
737-
index:
738-
better_together: Mieux ensemble
739-
content: Contenu
740-
geography: Géographie
741736
hub:
742737
index:
743738
activity: Activity
@@ -1363,6 +1358,12 @@ fr:
13631358
type: Type
13641359
type_select_field: Sélectionnez le type pour ce champ.
13651360
host_dashboard:
1361+
index:
1362+
page_title: Tableau de bord de l'hôte
1363+
title: Tableau de bord de l'hôte
1364+
better_together: Mieux ensemble
1365+
content: Contenu
1366+
geography: Géographie
13661367
resource_card:
13671368
new_resource: Nouveau %{resource}
13681369
none_yet: Aucun pour l'instant

0 commit comments

Comments
 (0)