mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-24 08:38:51 -05:00
Better internationalization, using real Android pluralization API.
This commit is contained in:
parent
39f3043d86
commit
0a0cfac1cb
@ -1036,8 +1036,11 @@ Welcome to K-9 Mail setup. K-9 is an open source mail client for Android origin
|
||||
<string name="settings_exporting">Exporting settings...</string>
|
||||
<string name="settings_importing">Importing settings...</string>
|
||||
<string name="settings_export_success">Exported settings to <xliff:g id="filename">%s</xliff:g></string>
|
||||
<string name="settings_import_success_multiple">Imported <xliff:g id="numAccounts">%s</xliff:g> accounts from <xliff:g id="filename">%s</xliff:g></string>
|
||||
<string name="settings_import_success_single">Imported 1 account 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>
|
||||
<plurals name="settings_import_success">
|
||||
<item quantity="one">1 account</item>
|
||||
<item quantity="other"><xliff:g id="numAccounts">%s</xliff:g> accounts</item>
|
||||
</plurals>
|
||||
<string name="settings_export_failure">Failed to export settings: <xliff:g id="reason">%s</xliff:g></string>
|
||||
<string name="settings_import_failure">Failed to import settings from <xliff:g id="filename">%s</xliff:g>: <xliff:g id="reason">%s</xliff:g></string>
|
||||
<string name="settings_export_success_header">Export succeeded</string>
|
||||
|
@ -859,10 +859,8 @@ public class Accounts extends K9ListActivity implements OnItemClickListener, OnC
|
||||
@Override
|
||||
public void success(int numAccounts) {
|
||||
mHandler.progress(false);
|
||||
String messageText =
|
||||
numAccounts != 1
|
||||
? Accounts.this.getString(R.string.settings_import_success_multiple, numAccounts, fileName)
|
||||
: Accounts.this.getString(R.string.settings_import_success_single, fileName);
|
||||
String accountQtyText = getResources().getQuantityString(R.plurals.settings_import_success, numAccounts, numAccounts);
|
||||
String messageText = getString(R.string.settings_import_success, accountQtyText, fileName);
|
||||
showDialog(Accounts.this, R.string.settings_import_success_header, messageText);
|
||||
runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user