Update pluralization of payments recovery dialog.

main
Alex Hart 2022-11-02 14:17:40 -03:00 zatwierdzone przez Cody Henthorne
rodzic 8056aafc9d
commit ac189865b9
2 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -125,7 +125,9 @@ public class PaymentsRecoveryStartFragment extends Fragment {
description = getString(R.string.PaymentsRecoveryStartFragment__got_balance);
break;
default:
description = getString(R.string.PaymentsRecoveryStartFragment__your_balance_will_automatically_restore, PaymentsConstants.MNEMONIC_LENGTH);
description = getResources().getQuantityString(R.plurals.PaymentsRecoveryStartFragment__your_balance_will_automatically_restore,
PaymentsConstants.MNEMONIC_LENGTH,
PaymentsConstants.MNEMONIC_LENGTH);
}
return description;
}

Wyświetl plik

@ -3906,7 +3906,10 @@
<!-- Title in save recovery phrase screen -->
<string name="PaymentsRecoveryStartFragment__save_recovery_phrase">Save recovery phrase</string>
<string name="PaymentsRecoveryStartFragment__enter_recovery_phrase">Enter recovery phrase</string>
<string name="PaymentsRecoveryStartFragment__your_balance_will_automatically_restore">Your balance will automatically restore when you reinstall Signal if you confirm your Signal PIN. You can also restore your balance using a recovery phrase, which is a %1$d-word phrase unique to you. Write it down and store it in a safe place.</string>
<plurals name="PaymentsRecoveryStartFragment__your_balance_will_automatically_restore">
<item quantity="one">Your balance will automatically restore when you reinstall Signal if you confirm your Signal PIN. You can also restore your balance using a recovery phrase, which is a %1$d-word phrase unique to you. Write it down and store it in a safe place.</item>
<item quantity="other">Your balance will automatically restore when you reinstall Signal if you confirm your Signal PIN. You can also restore your balance using a recovery phrase, which is a %1$d-word phrase unique to you. Write it down and store it in a safe place.</item>
</plurals>
<!-- Description in save recovery phrase screen which shows up when user has non zero balance -->
<string name="PaymentsRecoveryStartFragment__got_balance">Youve got a balance! Time to save your recovery phrase—a 24-word key you can use to restore your balance.</string>
<!-- Description in save recovery phrase screen which shows up when user navigates from info card -->