Use human attribute name on cards table
We were defining the same texts in three places: admin.homepage.cards, admin.site_customization.pages.cards and activerecord attributes.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><%= t("admin.homepage.cards.title") %></th>
|
||||
<th class="small-4"><%= t("admin.homepage.cards.description") %></th>
|
||||
<th><%= t("admin.homepage.cards.link_text") %> / <%= t("admin.homepage.cards.link_url") %></th>
|
||||
<th><%= Widget::Card.human_attribute_name(:title) %></th>
|
||||
<th class="small-4"><%= Widget::Card.human_attribute_name(:description) %></th>
|
||||
<th><%= Widget::Card.human_attribute_name(:link_text) %> / <%= Widget::Card.human_attribute_name(:link_url) %></th>
|
||||
<th><%= t("admin.shared.image") %></th>
|
||||
<th class="small-3"><%= t("admin.shared.actions") %></th>
|
||||
</tr>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><%= t("admin.site_customization.pages.cards.title") %></th>
|
||||
<th class="small-4"><%= t("admin.site_customization.pages.cards.description") %></th>
|
||||
<th><%= t("admin.site_customization.pages.cards.link_text") %> / <%= t("admin.site_customization.pages.cards.link_url") %></th>
|
||||
<th><%= Widget::Card.human_attribute_name(:title) %></th>
|
||||
<th class="small-4"><%= Widget::Card.human_attribute_name(:description) %></th>
|
||||
<th><%= Widget::Card.human_attribute_name(:link_text) %> / <%= Widget::Card.human_attribute_name(:link_url) %></th>
|
||||
<th><%= t("admin.shared.image") %></th>
|
||||
<th class="small-2"><%= t("admin.shared.actions") %></th>
|
||||
</tr>
|
||||
|
||||
@@ -1519,10 +1519,6 @@ en:
|
||||
cards_title: cards
|
||||
create_card: Create card
|
||||
no_cards: There are no cards.
|
||||
title: Title
|
||||
description: Description
|
||||
link_text: Link text
|
||||
link_url: Link URL
|
||||
columns_help: "Width of the card in number of columns. On mobile screens it's always a width of 100%."
|
||||
create:
|
||||
notice: "Card created successfully!"
|
||||
@@ -1539,11 +1535,6 @@ en:
|
||||
cards_title: Cards
|
||||
create_card: Create card
|
||||
no_cards: There are no cards.
|
||||
cards:
|
||||
title: Title
|
||||
description: Description
|
||||
link_text: Link text
|
||||
link_url: Link URL
|
||||
feeds:
|
||||
proposals: Proposals
|
||||
debates: Debates
|
||||
|
||||
@@ -1518,10 +1518,6 @@ es:
|
||||
cards_title: tarjetas
|
||||
create_card: Crear tarjeta
|
||||
no_cards: No hay tarjetas.
|
||||
title: Título
|
||||
description: Descripción
|
||||
link_text: Texto del enlace
|
||||
link_url: URL del enlace
|
||||
columns_help: "Ancho de la tarjeta en número de columnas. En pantallas móviles siempre es un ancho del 100%."
|
||||
create:
|
||||
notice: "¡Tarjeta creada con éxito!"
|
||||
@@ -1538,11 +1534,6 @@ es:
|
||||
cards_title: Tarjetas
|
||||
create_card: Crear tarjeta
|
||||
no_cards: No hay tarjetas.
|
||||
cards:
|
||||
title: Título
|
||||
description: Descripción
|
||||
link_text: Texto del enlace
|
||||
link_url: URL del enlace
|
||||
feeds:
|
||||
proposals: Propuestas
|
||||
debates: Debates
|
||||
|
||||
Reference in New Issue
Block a user