Browse Source

added my orders localization

pull/59/head
Galip Tolga Erdem 5 years ago
parent
commit
3c8a506787
  1. 17
      apps/public-web/src/EShopOnAbp.PublicWeb/Pages/MyOrders.cshtml
  2. 6
      shared/EShopOnAbp.Shared.Localization/Localization/EShopOnAbp/en.json
  3. 6
      shared/EShopOnAbp.Shared.Localization/Localization/EShopOnAbp/tr.json

17
apps/public-web/src/EShopOnAbp.PublicWeb/Pages/MyOrders.cshtml

@ -19,15 +19,20 @@
@{
string lastYearString = $"y{DateTime.Today.Year - 1}";
string filter = "";
int lastYearCounter = 2;
var selectList = new List<SelectListItem>
{
new(@L["Last30Days"], "last30", selected: true),
new(@L["LastMonth"], "m1"),
new(@L["Last3Months"], "m3"),
new(@L["LastYear"], lastYearString),
new("2020", "y2020"),
new("2019", "y2019")
new(@L["MyOrders:Last30Days"], "last30", selected: true),
new(@L["MyOrders:LastMonth"], "m1"),
new(@L["MyOrders:Last3Months"], "m3"),
new(@L["MyOrders:LastYear"], lastYearString)
};
for (int i = 0; i < lastYearCounter; i++)
{
selectList.Add(
new((DateTime.Today.Year - 2 - i).ToString(), $"y{DateTime.Today.Year - 2 - i}")
);
}
}
<div class="mt-5 col">

6
shared/EShopOnAbp.Shared.Localization/Localization/EShopOnAbp/en.json

@ -32,6 +32,10 @@
"OrderReceived:LinkToMyOrders": "Go to my orders.",
"OrderReceived:OrderNo": "Order No",
"OrderReceived:DeliveryAddress": "Delivery Address",
"OrderReceived:PaidTotal": "Paid Total"
"OrderReceived:PaidTotal": "Paid Total",
"MyOrders:Last30Days": "Last 30 days",
"MyOrders:LastMonth": "Last month",
"MyOrders:Last3Months": "Last 3 months",
"MyOrders:LastYear": "Last year"
}
}

6
shared/EShopOnAbp.Shared.Localization/Localization/EShopOnAbp/tr.json

@ -32,6 +32,10 @@
"OrderReceived:LinkToMyOrders": "Siparişlerime git.",
"OrderReceived:OrderNo": "Sipariş Numarası",
"OrderReceived:DeliveryAddress": "Teslimat Adresi",
"OrderReceived:PaidTotal": "Ödenen Tutar"
"OrderReceived:PaidTotal": "Ödenen Tutar",
"MyOrders:Last30Days": "Son 30 gün",
"MyOrders:LastMonth": "Geçen ay",
"MyOrders:Last3Months": "Son 3 ay",
"MyOrders:LastYear": "Geçen yıl"
}
}

Loading…
Cancel
Save