Skip to content

Commit

Permalink
Borrow a couple Craft translations
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Aug 11, 2023
1 parent 0d8433d commit eaf3080
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/services/Customers.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ private function _activateUserFromOrder(Order $order): void

// If there is only one address make sure we don't add duplicates to the user
if ($order->hasMatchingAddresses()) {
$newAttributes['title'] = Craft::t('commerce', 'Address');
$newAttributes['title'] = Craft::t('app', 'Address');
$shippingAddress = null;
}

Expand Down
4 changes: 2 additions & 2 deletions src/templates/promotions/discounts/_edit.twig
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
{% if showEntries %}
{{ forms.elementSelectField({
id: 'entries',
label: 'Entries'|t('commerce'),
label: 'Entries'|t('app'),
name: 'relatedElements[entries]',
elements: entries ? entries : null,
elementType: entryElementType,
Expand All @@ -222,7 +222,7 @@
{% endif %}

<a class="fieldtoggle {% if (discount.categoryRelationshipType != 'element') %}expanded{% endif %}"
data-target="categoryRelationshipType-advanced">{{ 'Advanced'|t('commerce') }}</a>
data-target="categoryRelationshipType-advanced">{{ 'Advanced'|t('app') }}</a>

<div id="categoryRelationshipType-advanced"
class="{% if (discount.categoryRelationshipType == 'element') %}hidden{% endif %}">
Expand Down
4 changes: 2 additions & 2 deletions src/templates/promotions/sales/_edit.twig
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
{% if showEntries %}
{{ forms.elementSelectField({
id: 'entries',
label: 'Entries'|t('commerce'),
label: 'Entries'|t('app'),
name: 'relatedElements[entries]',
elements: entries ? entries : null,
elementType: entryElementType,
Expand All @@ -192,7 +192,7 @@
{% endif %}

<a class="fieldtoggle {% if (sale.categoryRelationshipType != 'element') %}expanded{% endif %}"
data-target="categoryRelationshipType-advanced">{{ 'Advanced'|t('commerce') }}</a>
data-target="categoryRelationshipType-advanced">{{ 'Advanced'|t('app') }}</a>

<div id="categoryRelationshipType-advanced"
class="{% if (sale.categoryRelationshipType == 'element') %}hidden{% endif %}">
Expand Down
3 changes: 0 additions & 3 deletions src/translations/en/commerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,8 @@
'Address Line 2' => 'Address Line 2',
'Address Updated.' => 'Address Updated.',
'Address not found.' => 'Address not found.',
'Address' => 'Address',
'Adjust price when included rate is disqualified?' => 'Adjust price when included rate is disqualified?',
'Adjustments' => 'Adjustments',
'Advanced' => 'Advanced',
'All Orders' => 'All Orders',
'All Totals' => 'All Totals',
'All active subscriptions' => 'All active subscriptions',
Expand Down Expand Up @@ -417,7 +415,6 @@
'Enter slug' => 'Enter slug',
'Enter stock' => 'Enter stock',
'Enter weight' => 'Enter weight',
'Entries' => 'Entries',
'Error refunding transaction: {transactionHash}' => 'Error refunding transaction: {transactionHash}',
'Everywhere' => 'Everywhere',
'Example' => 'Example',
Expand Down

0 comments on commit eaf3080

Please sign in to comment.