From 38b968d9ba2f20dd10ceca36fb0bf4fa234a4ae3 Mon Sep 17 00:00:00 2001 From: Mats Mikkel Rummelhoff Date: Fri, 14 Feb 2020 18:50:56 +0100 Subject: [PATCH] Fixes some translation issues for edit source buttons --- src/templates/_includes/edit-source-link.twig | 4 +++- src/templates/edit-category-group-link.twig | 2 +- src/templates/edit-commerce-product-type-link.twig | 2 +- src/templates/edit-entry-type-link.twig | 2 +- src/templates/edit-globalset-link.twig | 2 +- src/templates/edit-users-link.twig | 2 +- src/templates/edit-volume-link.twig | 2 +- 7 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/templates/_includes/edit-source-link.twig b/src/templates/_includes/edit-source-link.twig index 4603d81..1ec86fa 100644 --- a/src/templates/_includes/edit-source-link.twig +++ b/src/templates/_includes/edit-source-link.twig @@ -1 +1,3 @@ -{{ 'Edit {sourceType}'|t('cp-field-inspect', { sourceType: sourceType }) }} + + {{ label }} + diff --git a/src/templates/edit-category-group-link.twig b/src/templates/edit-category-group-link.twig index 996ac70..868e2cf 100644 --- a/src/templates/edit-category-group-link.twig +++ b/src/templates/edit-category-group-link.twig @@ -1,7 +1,7 @@ {% if category ?? null %} {% set editUri = 'settings/categories/' ~ category.groupId %} - {% set sourceType = 'Category Group'|t('app') %} + {% set label = 'Edit Category Group'|t('cp-field-inspect') %}

diff --git a/src/templates/edit-commerce-product-type-link.twig b/src/templates/edit-commerce-product-type-link.twig index 02738d4..5f2ea79 100644 --- a/src/templates/edit-commerce-product-type-link.twig +++ b/src/templates/edit-commerce-product-type-link.twig @@ -1,7 +1,7 @@ {% if product ?? null %} {% set editUri = 'commerce/settings/producttypes/' ~ product.typeId %} - {% set sourceType = 'Product Type'|t('commerce') %} + {% set label = 'Edit Product Type'|t('cp-field-inspect') %}

diff --git a/src/templates/edit-entry-type-link.twig b/src/templates/edit-entry-type-link.twig index 8965e61..e324c68 100644 --- a/src/templates/edit-entry-type-link.twig +++ b/src/templates/edit-entry-type-link.twig @@ -3,7 +3,7 @@ {% set section = element.getSection() %} {% set entryTypes = section.getEntryTypes() %} - {% set sourceType = 'Entry Type'|t('app') %} + {% set label = 'Edit Entry Type'|t('cp-field-inspect') %}

diff --git a/src/templates/edit-globalset-link.twig b/src/templates/edit-globalset-link.twig index bd0f4b7..b2e479e 100644 --- a/src/templates/edit-globalset-link.twig +++ b/src/templates/edit-globalset-link.twig @@ -1,7 +1,7 @@ {% if globalSet ?? null %} {% set editUri = 'settings/globals/' ~ globalSet.id %} - {% set sourceType = 'Global Set'|t('app') %} + {% set label = 'Edit Global Set'|t('cp-field-inspect') %}

diff --git a/src/templates/edit-users-link.twig b/src/templates/edit-users-link.twig index d5fe051..7e070fa 100644 --- a/src/templates/edit-users-link.twig +++ b/src/templates/edit-users-link.twig @@ -1,7 +1,7 @@ {% if user ?? null %} {% set editUri = 'settings/users/fields' %} - {% set sourceType = 'Settings'|t('app') %} + {% set label = 'Settings'|t('app') %}

diff --git a/src/templates/edit-volume-link.twig b/src/templates/edit-volume-link.twig index 9e397f2..5698987 100644 --- a/src/templates/edit-volume-link.twig +++ b/src/templates/edit-volume-link.twig @@ -1,7 +1,7 @@ {% if asset ?? null %} {% set editUri = 'settings/assets/volumes/' ~ element.volumeId %} - {% set sourceType = 'Volume'|t('app') %} + {% set label = 'Edit Volume'|t('cp-field-inspect') %}