Fix English use of quantity zero string.
parent
50edb5d1f4
commit
19c74c8872
|
@ -23,7 +23,12 @@ public class OutdatedBuildReminder extends Reminder {
|
|||
|
||||
private static CharSequence getPluralsText(final Context context) {
|
||||
int days = getDaysUntilExpiry() - 1;
|
||||
return context.getResources().getQuantityString(R.plurals.OutdatedBuildReminder_your_version_of_signal_will_expire_in_n_days, days, days);
|
||||
|
||||
if (days == 0) {
|
||||
return context.getString(R.string.OutdatedBuildReminder_your_version_of_signal_will_expire_today);
|
||||
} else {
|
||||
return context.getResources().getQuantityString(R.plurals.OutdatedBuildReminder_your_version_of_signal_will_expire_in_n_days, days, days);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1109,8 +1109,8 @@
|
|||
|
||||
<!-- OutdatedBuildReminder -->
|
||||
<string name="OutdatedBuildReminder_update_now">Update now</string>
|
||||
<string name="OutdatedBuildReminder_your_version_of_signal_will_expire_today">This version of Signal will expire today. Update to the most recent version.</string>
|
||||
<plurals name="OutdatedBuildReminder_your_version_of_signal_will_expire_in_n_days">
|
||||
<item quantity="zero">This version of Signal will expire today. Update to the most recent version.</item>
|
||||
<item quantity="one">This version of Signal will expire tomorrow. Update to the most recent version.</item>
|
||||
<item quantity="other">This version of Signal will expire in %d days. Update to the most recent version.</item>
|
||||
</plurals>
|
||||
|
|
Loading…
Reference in New Issue