More Translations (#6318)

* Store selector

* Footer

* Notifications

* Checkout Appearance

* Users list

* Forms

* Emails

* Pay Button

* Edit Dictionary

* Remove newlines, fix typos

* Forms

* Pull payments and payouts

* Various pages

* Use local docs link

* Fix

* Even more translations

* Fixes #6325

* Account pages

* Notifications

* Placeholders

* Various pages and components

* Add more
This commit is contained in:
d11n
2024-10-25 15:48:53 +02:00
committed by GitHub
parent e5611f9165
commit a962e60de9
173 changed files with 1227 additions and 919 deletions

View File

@@ -3,6 +3,7 @@ using BTCPayServer.Client.Models;
using BTCPayServer.Configuration;
using BTCPayServer.Controllers;
using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.Localization;
namespace BTCPayServer.Services.Notifications.Blobs
{
@@ -14,11 +15,13 @@ namespace BTCPayServer.Services.Notifications.Blobs
{
private readonly LinkGenerator _linkGenerator;
private readonly BTCPayServerOptions _options;
private IStringLocalizer StringLocalizer { get; }
public Handler(LinkGenerator linkGenerator, BTCPayServerOptions options)
public Handler(LinkGenerator linkGenerator, BTCPayServerOptions options, IStringLocalizer stringLocalizer)
{
_linkGenerator = linkGenerator;
_options = options;
StringLocalizer = stringLocalizer;
}
public override string NotificationType => TYPE;
@@ -27,7 +30,7 @@ namespace BTCPayServer.Services.Notifications.Blobs
{
get
{
return new (string identifier, string name)[] { (TYPE, "External payout approval") };
return new (string identifier, string name)[] { (TYPE, StringLocalizer["External payout approval"]) };
}
}
@@ -38,7 +41,7 @@ namespace BTCPayServer.Services.Notifications.Blobs
vm.Type = notification.NotificationType;
vm.StoreId = notification.StoreId;
vm.Body =
"A payment that was made to an approved payout by an external wallet is waiting for your confirmation.";
StringLocalizer["A payment that was made to an approved payout by an external wallet is waiting for your confirmation."];
vm.ActionLink = _linkGenerator.GetPathByAction(nameof(UIStorePullPaymentsController.Payouts),
"UIStorePullPayments",
new