rename TimeTextHelpers to TextHelpers
RENAME
WalletWasabi.Fluent/Helpers/TextTimeHelpers.cs
WalletWasabi.Fluent/Helpers/TextHelpers.cs
@@ -3,7 +3,7 @@ using System.Linq;
namespace WalletWasabi.Fluent.Helpers
{
- public static class TextTimeHelpers
+ public static class TextHelpers
{
public static string AddSIfPlural(int n) => n > 1 ? "s" : "";

MODIFY
WalletWasabi.Fluent/ViewModels/Login/PasswordFinder/SearchPasswordViewModel.cs
WalletWasabi.Fluent/ViewModels/Login/PasswordFinder/SearchPasswordViewModel.cs
@@ -74,9 +74,9 @@ namespace WalletWasabi.Fluent.ViewModels.Login.PasswordFinder
RemainingMin = remainingTime.Minutes;
RemainingSec = remainingTime.Seconds;
- HourText = $" hour{TextTimeHelpers.AddSIfPlural(RemainingHour)}{TextTimeHelpers.CloseSentenceIfZero(RemainingMin,RemainingSec)}";
- MinText = $" minute{TextTimeHelpers.AddSIfPlural(RemainingMin)}{TextTimeHelpers.CloseSentenceIfZero(RemainingSec)}";
- SecText = $" second{TextTimeHelpers.AddSIfPlural(RemainingSec)}.";
+ HourText = $" hour{TextHelpers.AddSIfPlural(RemainingHour)}{TextHelpers.CloseSentenceIfZero(RemainingMin,RemainingSec)}";
+ MinText = $" minute{TextHelpers.AddSIfPlural(RemainingMin)}{TextHelpers.CloseSentenceIfZero(RemainingSec)}";
+ SecText = $" second{TextHelpers.AddSIfPlural(RemainingSec)}.";
}
}
}

MODIFY
WalletWasabi.Fluent/ViewModels/TransactionBroadcasting/BroadcastTransactionViewModel.cs
WalletWasabi.Fluent/ViewModels/TransactionBroadcasting/BroadcastTransactionViewModel.cs
@@ -63,9 +63,9 @@ namespace WalletWasabi.Fluent.ViewModels.TransactionBroadcasting
_transactionId = psbtTxn.GetHash().ToString();
_inputCount = inputAddressAmount.Length;
- _inputCountString = $" input{TextTimeHelpers.AddSIfPlural(_inputCount)} and ";
+ _inputCountString = $" input{TextHelpers.AddSIfPlural(_inputCount)} and ";
_outputCount = outputAddressAmount.Length;
- _outputCountString = $" output{TextTimeHelpers.AddSIfPlural(_outputCount)}.";
+ _outputCountString = $" output{TextHelpers.AddSIfPlural(_outputCount)}.";
_totalInputValue = inputAddressAmount.Any(x => x.Value == nullMoney)
? null
: inputAddressAmount.Select(x => x.Value).Sum();

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionPreviewViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionPreviewViewModel.cs
@@ -31,7 +31,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
AddressText = info.Address.ToString();
- ConfirmationTimeText = $"~{TextTimeHelpers.TimeSpanToFriendlyString(info.ConfirmationTimeSpan)} ";
+ ConfirmationTimeText = $"~{TextHelpers.TimeSpanToFriendlyString(info.ConfirmationTimeSpan)} ";
BtcFeeText = $"{fee.ToDecimal(MoneyUnit.Satoshi)} satoshis ";

rename TimeTextHelpers to TextHelpers