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 translation for strings in cart.html #174

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
24 changes: 12 additions & 12 deletions webshop/templates/pages/cart.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
<div class="frappe-card p-5 mb-4">
<div id="cart-error" class="alert alert-danger" style="display: none;"></div>
<div class="cart-items-header">
{{ _('Items') }}
{{ _("Items") }}
</div>
<table class="table mt-3 cart-table">
<thead>
<tr>
<th class="item-column">{{ _('Item') }}</th>
<th width="20%">{{ _('Quantity') }}</th>
<th class="item-column">{{ _("Item") }}</th>
<th width="20%">{{ _("Quantity") }}</th>
{% if cart_settings.enable_checkout or cart_settings.show_price_in_quotation %}
<th width="20" class="text-right column-sm-view">{{ _('Subtotal') }}</th>
<th width="20" class="text-right column-sm-view">{{ _("Subtotal") }}</th>
{% endif %}
<th width="10%" class="column-sm-view"></th>
</tr>
Expand All @@ -47,19 +47,19 @@
<div class="col-3">
{% if cart_settings.enable_checkout %}
<a class="btn btn-primary-light font-md" href="/orders">
{{ _('Past Orders') }}
{{ _("Past Orders") }}
</a>
{% else %}
<a class="btn btn-primary-light font-md" href="/quotations">
{{ _('Past Quotes') }}
{{ _("Past Quotes") }}
</a>
{% endif %}
</div>
<div class="col-9">
{% if doc.items %}
<div class="place-order-container">
<a class="btn btn-primary-light mr-2 font-md" href="/all-products">
{{ _('Continue Shopping') }}
{{ _("Continue Shopping") }}
</a>
</div>
{% endif %}
Expand Down Expand Up @@ -87,9 +87,9 @@ <h5>{{ _("Terms and Conditions") }}</h5>
{% if show_coupon_code == 1%}
<div class="mb-3">
<div class="row no-gutters">
<input type="text" class="txtcoupon form-control mr-3 w-50 font-md" placeholder="Enter Coupon Code" name="txtcouponcode" ></input>
<input type="text" class="txtcoupon form-control mr-3 w-50 font-md" placeholder={{ _("Enter Coupon Code") }} name="txtcouponcode" ></input>
<button class="btn btn-primary btn-sm bt-coupon font-md">{{ _("Apply Coupon Code") }}</button>
<input type="hidden" class="txtreferral_sales_partner font-md" placeholder="Enter Sales Partner" name="txtreferral_sales_partner" type="text"></input>
<input type="hidden" class="txtreferral_sales_partner font-md" placeholder={{ _("Enter Sales Partner") }} name="txtreferral_sales_partner" type="text"></input>
</div>
</div>
{% endif %}
Expand All @@ -109,14 +109,14 @@ <h5>{{ _("Terms and Conditions") }}</h5>
<div class="cart-empty-state">
<img src="/assets/webshop/images/cart-empty-state.png" alt="Empty State">
</div>
<div class="cart-empty-message mt-4">{{ _('Your cart is Empty') }}</p>
<div class="cart-empty-message mt-4">{{ _("Your cart is Empty") }}</p>
{% if cart_settings.enable_checkout %}
<a class="btn btn-outline-primary" href="/orders" style="font-size: 16px;">
{{ _('See past orders') }}
{{ _("See past orders") }}
</a>
{% else %}
<a class="btn btn-outline-primary" href="/quotations" style="font-size: 16px;">
{{ _('See past quotations') }}
{{ _("See past quotations") }}
</a>
{% endif %}
</div>
Expand Down