mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Add more translations (#6302)
* Newlines * Dashboard * Add more translations * Moar * Remove from translated texts * Dictionary controller translations * Batch 1 of controller updates * Batch 2 of controller updates * Component translations * Batch 3 of controller updates * Fixes
This commit is contained in:
@@ -10,27 +10,27 @@ using BTCPayServer.Payments;
|
||||
using BTCPayServer.Payouts;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Extensions.Localization;
|
||||
|
||||
namespace BTCPayServer.PayoutProcessors;
|
||||
|
||||
public class UIPayoutProcessorsController : Controller
|
||||
{
|
||||
private readonly EventAggregator _eventAggregator;
|
||||
private readonly BTCPayNetworkProvider _btcPayNetworkProvider;
|
||||
private readonly IEnumerable<IPayoutProcessorFactory> _payoutProcessorFactories;
|
||||
private readonly PayoutProcessorService _payoutProcessorService;
|
||||
private IStringLocalizer StringLocalizer { get; }
|
||||
|
||||
public UIPayoutProcessorsController(
|
||||
EventAggregator eventAggregator,
|
||||
BTCPayNetworkProvider btcPayNetworkProvider,
|
||||
IEnumerable<IPayoutProcessorFactory> payoutProcessorFactories,
|
||||
PayoutProcessorService payoutProcessorService)
|
||||
PayoutProcessorService payoutProcessorService,
|
||||
IStringLocalizer stringLocalizer)
|
||||
{
|
||||
_eventAggregator = eventAggregator;
|
||||
_btcPayNetworkProvider = btcPayNetworkProvider;
|
||||
_payoutProcessorFactories = payoutProcessorFactories;
|
||||
_payoutProcessorService = payoutProcessorService;
|
||||
;
|
||||
StringLocalizer = stringLocalizer;
|
||||
}
|
||||
|
||||
[HttpGet("~/stores/{storeId}/payout-processors")]
|
||||
@@ -69,10 +69,10 @@ public class UIPayoutProcessorsController : Controller
|
||||
Id = id,
|
||||
Processed = tcs
|
||||
});
|
||||
TempData.SetStatusMessageModel(new StatusMessageModel()
|
||||
TempData.SetStatusMessageModel(new StatusMessageModel
|
||||
{
|
||||
Severity = StatusMessageModel.StatusSeverity.Success,
|
||||
Message = "Payout Processor removed"
|
||||
Message = StringLocalizer["Payout Processor removed"].Value
|
||||
});
|
||||
await tcs.Task;
|
||||
return RedirectToAction("ConfigureStorePayoutProcessors", new { storeId });
|
||||
|
||||
Reference in New Issue
Block a user