From d2b61f546df1fbff568ad0cab10535aa4b68fb10 Mon Sep 17 00:00:00 2001 From: "David A. Velasco" Date: Wed, 23 Oct 2013 12:48:55 +0200 Subject: [PATCH] Replace 'ownCloud' with reference to app_name --- res/values/strings.xml | 4 ++-- src/com/owncloud/android/authentication/AccountAuthenticator.java | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index de974093..7259b1e7 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -149,7 +149,7 @@ The server took too long to respond Malformed URL SSL initialization failed - Couldn't verify SSL server\'s identity + Couldn\'t verify SSL server\'s identity Unrecognized server version Couldn\'t establish connection Secure connection established @@ -162,7 +162,7 @@ Your session expired. Please connect again Connecting to authentication server… The server does not support this authentication method - This version of ownCloud doesn\'t support multiaccount + %1$s does not support multiple accounts Keep file up to date Rename diff --git a/src/com/owncloud/android/authentication/AccountAuthenticator.java b/src/com/owncloud/android/authentication/AccountAuthenticator.java index c9da67bc..ff72d73c 100644 --- a/src/com/owncloud/android/authentication/AccountAuthenticator.java +++ b/src/com/owncloud/android/authentication/AccountAuthenticator.java @@ -142,13 +142,14 @@ public class AccountAuthenticator extends AbstractAccountAuthenticator { // Return an error bundle.putInt(AccountManager.KEY_ERROR_CODE, AccountManager.ERROR_CODE_UNSUPPORTED_OPERATION); - bundle.putString(AccountManager.KEY_ERROR_MESSAGE, mContext.getString(R.string.auth_unsupported_multiaccount)); + final String message = String.format(mContext.getString(R.string.auth_unsupported_multiaccount), mContext.getString(R.string.app_name)); + bundle.putString(AccountManager.KEY_ERROR_MESSAGE, message); mHandler.post(new Runnable() { @Override public void run() { - Toast.makeText(mContext, R.string.auth_unsupported_multiaccount, Toast.LENGTH_SHORT).show(); + Toast.makeText(mContext, message, Toast.LENGTH_SHORT).show(); } }); -- 2.11.0