Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Make labels more consistent

akjanike459c0cf3785
diff --git a/saleor/dashboard/discount/forms.py b/saleor/dashboard/discount/forms.py
index 59ec064414..34dab9a908 100644
--- a/saleor/dashboard/discount/forms.py
+++ b/saleor/dashboard/discount/forms.py
@@ -24,19 +24,19 @@ class SaleForm(forms.ModelForm):
labels = {
'name': pgettext_lazy(
'Sale form label',
- 'Sale name'),
+ 'Name'),
'type': pgettext_lazy(
'Sale form label',
'Fixed or percentage'),
'value': pgettext_lazy(
'Sale form label',
- 'Sale value'),
+ 'Value'),
'products': pgettext_lazy(
'Sale form label',
'Products in sale'),
'categories': pgettext_lazy(
'Sale form label',
- 'Sale categories')}
+ 'Categories')}
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
@@ -65,10 +65,10 @@ class VoucherForm(forms.ModelForm):
'Discount type'),
'name': pgettext_lazy(
'Voucher form label',
- 'Voucher name'),
+ 'Name'),
'code': pgettext_lazy(
'Voucher form label',
- 'Voucher code'),
+ 'Code'),
'usage_limit': pgettext_lazy(
'Voucher form label',
'Limit for using the voucher'),
diff --git a/saleor/dashboard/product/forms.py b/saleor/dashboard/product/forms.py
index 309f745a0a..99286df16b 100644
--- a/saleor/dashboard/product/forms.py
+++ b/saleor/dashboard/product/forms.py
@@ -29,11 +29,11 @@ class StockForm(forms.ModelForm):
exclude = ['quantity_allocated', 'variant']
labels = {
'location': pgettext_lazy(
- 'Stock form label', 'location'),
+ 'Stock form label', 'Location'),
'quantity': pgettext_lazy(
- 'Stock form label', 'quantity'),
+ 'Stock form label', 'Quantity'),
'cost_price': pgettext_lazy(
- 'Stock form label', 'cost price'),
+ 'Stock form label', 'Cost price'),
}
def __init__(self, *args, **kwargs):