This commit is contained in:
cketti 2017-11-15 16:18:37 +01:00
parent 349c2aa9f3
commit c113c23f5e
2 changed files with 5 additions and 3 deletions

View file

@ -1565,12 +1565,14 @@ public class Accounts extends K9ListActivity implements OnItemClickListener {
@Override
protected String generateMessage(Accounts activity) {
StringBuilder result = new StringBuilder();
for (AccountDescriptionPair account : mImportResults.importedAccounts) {
result.append(activity.getString(R.string.settings_import_single_success, account.original.name, account.imported.name));
result.append(activity.getString(R.string.settings_import_account_imported_as,
account.original.name, account.imported.name));
result.append('\n');
}
result.append('\n');
int imported = mImportResults.importedAccounts.size();
String accounts = activity.getResources().getQuantityString(
R.plurals.settings_import_accounts, imported, imported);

View file

@ -988,7 +988,7 @@ Please submit bug reports, contribute new features and ask questions at
<string name="settings_export_success_generic">Settings successfully exported</string>
<string name="settings_import_global_settings_success">Imported global settings from <xliff:g id="filename">%s</xliff:g></string>
<string name="settings_import_success">Imported <xliff:g id="accounts">%s</xliff:g> from <xliff:g id="filename">%s</xliff:g></string>
<string name="settings_import_single_success">Imported <xliff:g id="account.original.name">%s</xliff:g> as <xliff:g id="account.imported.name">%s</xliff:g></string>
<string name="settings_import_account_imported_as">Imported <xliff:g id="original_account_name">%s</xliff:g> as <xliff:g id="account_name_after_import">%s</xliff:g></string>
<plurals name="settings_import_accounts">
<item quantity="one">1 account</item>
<item quantity="other"><xliff:g id="numAccounts">%s</xliff:g> accounts</item>