Skip to content

Commit 5ddd966

Browse files
author
Cari Spruiell
committed
Merge remote-tracking branch 'remotes/api/MAGETWO-44049-Data-Bind-i18n-Expressions-With-JavaScript-Function-Calls-Are-Used-But-Untranslatable' into API-Bug-Branch
2 parents ed526a2 + 341a3e3 commit 5ddd966

File tree

26 files changed

+95
-95
lines changed

26 files changed

+95
-95
lines changed

app/code/Magento/Checkout/view/frontend/web/template/cart/totals/grand-total.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
-->
77
<tr class="grand totals">
88
<th class="mark" colspan="1" scope="row">
9-
<strong data-bind="text: $t(title)"></strong>
9+
<strong data-bind="text: title"></strong>
1010
</th>
1111
<td class="amount" data-th="Order Total">
1212
<strong><span class="price" data-bind="text: getValue()"></span></strong>

app/code/Magento/Checkout/view/frontend/web/template/cart/totals/shipping.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
-->
77
<!-- ko if: isCalculated() -->
88
<tr class="totals shipping excl">
9-
<th class="mark" colspan="1" scope="row" data-bind="text: $t(title) + ' (' + $t(getShippingMethodTitle()) + ')'"></th>
9+
<th class="mark" colspan="1" scope="row" data-bind="text: title + ' (' + getShippingMethodTitle() + ')'"></th>
1010
<td class="amount">
1111
<span class="price" data-bind="text: getValue()"></span>
1212
</td>

app/code/Magento/Checkout/view/frontend/web/template/cart/totals/subtotal.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
-->
77
<tr class="totals sub">
8-
<th class="mark" colspan="1" scope="row" data-bind="text: $t(title)"></th>
8+
<th class="mark" colspan="1" scope="row" data-bind="text: title"></th>
99
<td class="amount" data-th="Subtotal">
1010
<span class="price" data-bind="text: getValue()"></span>
1111
</td>

app/code/Magento/Checkout/view/frontend/web/template/estimation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="opc-estimated-wrapper" data-bind="blockLoader: isLoading">
88
<div class="estimated-block">
99
<span class="estimated-label" data-bind="i18n: 'Estimated Total'"></span>
10-
<span class="estimated-price" data-bind="i18n: getValue()"></span>
10+
<span class="estimated-price" data-bind="text: getValue()"></span>
1111
</div>
1212
<div class="minicart-wrapper">
1313
<button type="button" class="action showcart" data-bind="click: showSidebar" data-toggle="opc-summary">

app/code/Magento/Checkout/view/frontend/web/template/payment.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
-->
77
<li id="payment" role="presentation" class="checkout-payment-method" data-bind="fadeVisible: isVisible">
8-
<div class="step-title" data-bind="i18n: title" data-role="title"></div>
8+
<div class="step-title" data-bind="text: title" data-role="title"></div>
99
<div id="checkout-step-payment"
1010
class="step-content"
1111
data-role="content"

app/code/Magento/Checkout/view/frontend/web/template/progress-bar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<ul class="opc-progress-bar">
88
<!-- ko foreach: { data: steps().sort(sortItems), as: 'item' } -->
99
<li class="opc-progress-bar-item" data-bind="css: item.isVisible() ? '_active' : ($parent.isProcessed(item) ? '_complete' : '')">
10-
<span data-bind="i18n: item.title, click: $parent.navigateTo"></span>
10+
<span data-bind="text: item.title, click: $parent.navigateTo"></span>
1111
</li>
1212
<!-- /ko -->
1313
</ul>

app/code/Magento/Checkout/view/frontend/web/template/registration.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
</form>
1414
<!-- /ko -->
1515
<!-- ko if: accountCreated -->
16-
<p data-bind="i18n: $t('A letter with further instructions will be sent to your email.')"></p>
16+
<p data-bind="i18n: 'A letter with further instructions will be sent to your email.'"></p>
1717
<!-- /ko -->
1818
</div>

app/code/Magento/Checkout/view/frontend/web/template/shipping-information.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</button>
2929
</div>
3030
<div class="shipping-information-content">
31-
<span class="value" data-bind="i18n: getShippingMethodTitle()"></span>
31+
<span class="value" data-bind="text: getShippingMethodTitle()"></span>
3232
</div>
3333
</div>
3434
</div>

app/code/Magento/Checkout/view/frontend/web/template/shipping.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,17 @@
112112
</td>
113113

114114
<td class="col col-method"
115-
data-bind="i18n: method.method_title, attr: {'id': 'label_method_' + method.method_code + '_' + method.carrier_code}"></td>
115+
data-bind="text: method.method_title, attr: {'id': 'label_method_' + method.method_code + '_' + method.carrier_code}"></td>
116116

117117
<td class="col col-carrier"
118-
data-bind="i18n: method.carrier_title, attr: {'id': 'label_carrier_' + method.method_code + '_' + method.carrier_code}"></td>
118+
data-bind="text: method.carrier_title, attr: {'id': 'label_carrier_' + method.method_code + '_' + method.carrier_code}"></td>
119119
</tr>
120120

121121
<!-- ko if: method.error_message -->
122122
<tr class="row row-error">
123123
<td class="col col-error" colspan="4">
124124
<div class="message error">
125-
<div data-bind="i18n: method.error_message"></div>
125+
<div data-bind="text: method.error_message"></div>
126126
</div>
127127
<span class="no-display">
128128
<input name="shipping_method" type="radio" data-bind="attr: {'value' : method.method_code, 'id': 's_method_' + method.method_code}"/>
@@ -143,7 +143,7 @@
143143
</div>
144144
<!-- ko if: errorValidationMessage().length > 0 -->
145145
<div class="message notice">
146-
<span><!-- ko i18n: errorValidationMessage()--><!-- /ko --></span>
146+
<span><!-- ko text: errorValidationMessage()--><!-- /ko --></span>
147147
</div>
148148
<!-- /ko -->
149149
<div class="actions-toolbar" id="shipping-method-buttons-container">

app/code/Magento/Checkout/view/frontend/web/template/summary/grand-total.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
-->
77
<!-- ko if: isDisplayed() -->
88
<tr>
9-
<td colspan="2" data-bind="i18n: title"></td>
9+
<td colspan="2" data-bind="text: title"></td>
1010
<td class="col grandtotal">
11-
<span data-bind ="text: getValue(), attr:{'data-label': $t(title)}"></span>
11+
<span data-bind ="text: getValue(), attr:{'data-label': title}"></span>
1212
<!-- ko foreach: elems() -->
1313
<!-- ko template: getTemplate() --><!-- /ko -->
1414
<!-- /ko -->

0 commit comments

Comments
 (0)