Replace some string definitions with plurals definitions

This commit is contained in:
Alexander Bakker 2020-08-05 13:28:23 +02:00
parent e5d162be9b
commit 233eeb6aa1
24 changed files with 31 additions and 103 deletions

View file

@ -189,7 +189,7 @@ public class ScannerActivity extends AegisActivity implements QrCodeAnalyzer.Lis
finish(_entries);
}
Toast.makeText(this, getString(R.string.google_qr_export_scanned, _batchIndex + 1, export.getBatchSize()), Toast.LENGTH_SHORT).show();
Toast.makeText(this, getResources().getQuantityString(R.plurals.google_qr_export_scanned, export.getBatchSize(), _batchIndex + 1, export.getBatchSize()), Toast.LENGTH_SHORT).show();
} else if (_batchIndex != batchIndex) {
Toast.makeText(this, getString(R.string.google_qr_export_unexpected, _batchIndex + 1, batchIndex + 1), Toast.LENGTH_SHORT).show();
}