Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add strings for translation in cart_address.html #162

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions webshop/templates/includes/cart/cart_address.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<div class="checkbox ml-1 mb-2">
<label for="input_same_billing">
<input type="checkbox" class="product-filter" id="input_same_billing" checked style="width: 14px !important">
<span class="label-area font-md">{{ _('Billing Address is same as Shipping Address') }}</span>
<span class="label-area font-md">{{ _("Billing Address is same as Shipping Address") }}</span>
</label>
</div>

Expand Down Expand Up @@ -70,38 +70,38 @@

$('.btn-new-address').click(() => {
const d = new frappe.ui.Dialog({
title: __('New Address'),
title: {{ _("New Address") }},
fields: [
{
label: __('Address Title'),
label: {{ _("Address Title") }},
fieldname: 'address_title',
fieldtype: 'Data',
reqd: 1
},
{
label: __('Address Line 1'),
label: {{ _("Address Line 1") }},
fieldname: 'address_line1',
fieldtype: 'Data',
reqd: 1
},
{
label: __('Address Line 2'),
label: {{ _("'Address Line 2") }},
fieldname: 'address_line2',
fieldtype: 'Data'
},
{
label: __('City/Town'),
label: {{ _("City/Town") }},
fieldname: 'city',
fieldtype: 'Data',
reqd: 1
},
{
label: __('State'),
label: {{ _("State") }},
fieldname: 'state',
fieldtype: 'Data'
},
{
label: __('Country'),
label: {{ _("Country") }},
fieldname: 'country',
fieldtype: 'Link',
options: 'Country',
Expand All @@ -114,7 +114,7 @@
width: "50%"
},
{
label: __('Address Type'),
label: {{ _("Address Type") }},
fieldname: 'address_type',
fieldtype: 'Select',
options: [
Expand All @@ -124,18 +124,18 @@
reqd: 1
},
{
label: __('Postal Code'),
label: {{ _("Postal Code") }},
fieldname: 'pincode',
fieldtype: 'Data'
},
{
fieldname: "phone",
fieldtype: "Data",
label: "Phone",
label: {{ _("Phone") }},
reqd: 1
},
],
primary_action_label: __('Save'),
primary_action_label: {{ _("Save") }},
primary_action: (values) => {
frappe.call('webshop.webshop.shopping_cart.cart.add_new_address', { doc: values })
.then(r => {
Expand Down Expand Up @@ -191,12 +191,12 @@
frappe.ready(() => {
function get_update_address_dialog() {
let d = new frappe.ui.Dialog({
title: "Select Address",
title: {{ _("Select Address") }},
fields: [{
'fieldtype': 'HTML',
'fieldname': 'address_picker',
}],
primary_action_label: __('Set Address'),
primary_action_label: {{ _("Set Address") }},
primary_action: () => {
const $card = d.$wrapper.find('.address-card.active');
const address_type = $card.closest('[data-address-type]').attr('data-address-type');
Expand Down Expand Up @@ -261,4 +261,4 @@
d.show();
});
});
</script>
</script>