Skip to content

Commit

Permalink
Fixes some translation issues for edit source buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
mmikkel committed Feb 14, 2020
1 parent 40eec04 commit 38b968d
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/templates/_includes/edit-source-link.twig
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
<a href="{{ cpUrl(editUri) }}" class="btn settings icon" data-cpfieldlinks-sourcebtn>{{ 'Edit {sourceType}'|t('cp-field-inspect', { sourceType: sourceType }) }}</a>
<a href="{{ cpUrl(editUri) }}" class="btn settings icon" data-cpfieldlinks-sourcebtn>
{{ label }}
</a>
2 changes: 1 addition & 1 deletion src/templates/edit-category-group-link.twig
Original file line number Diff line number Diff line change
@@ -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') %}

<div class="data">
<p>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/edit-commerce-product-type-link.twig
Original file line number Diff line number Diff line change
@@ -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') %}

<div class="data" style="padding-top:10px;padding-bottom:20px;">
<p>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/edit-entry-type-link.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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') %}

<div class="data" style="padding-top:20px;padding-bottom:10px;">
<p>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/edit-globalset-link.twig
Original file line number Diff line number Diff line change
@@ -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') %}

<div class="data" style="padding-top: 30px;">
<p>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/edit-users-link.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% if user ?? null %}

{% set editUri = 'settings/users/fields' %}
{% set sourceType = 'Settings'|t('app') %}
{% set label = 'Settings'|t('app') %}

<div class="data">
<p>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/edit-volume-link.twig
Original file line number Diff line number Diff line change
@@ -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') %}

<div class="data" style="padding-top:20px;padding-bottom:10px;">
<p>
Expand Down

0 comments on commit 38b968d

Please sign in to comment.