From: David A. Velasco Date: Wed, 23 Oct 2013 10:48:55 +0000 (+0200) Subject: Replace 'ownCloud' with reference to app_name X-Git-Tag: oc-android-1.5.5~144^2~8 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/d2b61f546df1fbff568ad0cab10535aa4b68fb10?ds=inline;hp=--cc Replace 'ownCloud' with reference to app_name --- d2b61f546df1fbff568ad0cab10535aa4b68fb10 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(); } });