# HG changeset patch # User Da Risk # Date 1348888931 -7200 # Node ID 476e8690b0ea52c6a724ab9522fbe0e377266f34 # Parent 6318bee856fdc2c971eb3fb27843c98eb9f4cd9a Translate more strings for wizard and make error message multilines diff -r 6318bee856fd -r 476e8690b0ea res/layout/create_account.xml --- a/res/layout/create_account.xml Sat Sep 29 04:47:42 2012 +0200 +++ b/res/layout/create_account.xml Sat Sep 29 05:22:11 2012 +0200 @@ -39,6 +39,7 @@ android:minWidth="160dp" android:gravity="left" android:hint="beem-project.com" + android:completionThreshold="1" android:inputType="textNoSuggestions" style="?android:attr/dropDownSpinnerStyle"/> @@ -61,6 +62,7 @@ diff -r 6318bee856fd -r 476e8690b0ea res/layout/wizard_account_configure.xml --- a/res/layout/wizard_account_configure.xml Sat Sep 29 04:47:42 2012 +0200 +++ b/res/layout/wizard_account_configure.xml Sat Sep 29 05:22:11 2012 +0200 @@ -58,6 +58,7 @@ diff -r 6318bee856fd -r 476e8690b0ea res/values-fr/strings.xml --- a/res/values-fr/strings.xml Sat Sep 29 04:47:42 2012 +0200 +++ b/res/values-fr/strings.xml Sat Sep 29 05:22:11 2012 +0200 @@ -200,7 +200,9 @@ Create an account Activity --> Entrez les informations nécéssaires pour créer votre compte - Mauvais JabberID + Création du compte + Veuillez patientez + Mauvais JabberID Les mots de passe ne correspondent pas Nom d\'utilisateur Mot de passe diff -r 6318bee856fd -r 476e8690b0ea res/values/strings.xml --- a/res/values/strings.xml Sat Sep 29 04:47:42 2012 +0200 +++ b/res/values/strings.xml Sat Sep 29 05:22:11 2012 +0200 @@ -199,6 +199,8 @@ Enter the required informations to create your account + Account creation + Please wait Bad JabberID Passwords do not match. Username diff -r 6318bee856fd -r 476e8690b0ea src/com/beem/project/beem/ui/wizard/AccountConfigureFragment.java --- a/src/com/beem/project/beem/ui/wizard/AccountConfigureFragment.java Sat Sep 29 04:47:42 2012 +0200 +++ b/src/com/beem/project/beem/ui/wizard/AccountConfigureFragment.java Sat Sep 29 05:22:11 2012 +0200 @@ -414,7 +414,6 @@ Log.d(TAG, "Xmpp login task"); jid = params[0]; password = params[1]; - server = StringUtils.parseServer(jid); Log.d(TAG, "jid " + jid + " server " + server); int port = -1; @@ -444,7 +443,7 @@ * Initialize the XMPP connection. * * @param jid the jid to use - * @param server the server to use + * @param server the server to use (not using dns srv) may be null * @param port the port * * @return the XMPPConnection prepared to connect @@ -501,8 +500,8 @@ public Dialog onCreateDialog(Bundle savedInstanceState) { Log.d(TAG, "create progress dialog"); ProgressDialog p = new ProgressDialog(getActivity()); - p.setTitle("Connexion en cours"); - p.setMessage("Please wait"); + p.setTitle(getString(R.string.login_login_progress)); + p.setMessage(getString(R.string.create_account_progress_message)); return p; } } diff -r 6318bee856fd -r 476e8690b0ea src/com/beem/project/beem/ui/wizard/CreateAccountFragment.java --- a/src/com/beem/project/beem/ui/wizard/CreateAccountFragment.java Sat Sep 29 04:47:42 2012 +0200 +++ b/src/com/beem/project/beem/ui/wizard/CreateAccountFragment.java Sat Sep 29 05:22:11 2012 +0200 @@ -263,7 +263,6 @@ Log.d(TAG, "Xmpp login task"); jid = params[0]; password = params[1]; - server = StringUtils.parseServer(jid); Log.d(TAG, "jid " + jid + " server " + server); int port = -1; @@ -294,7 +293,7 @@ * Initialize the XMPP connection. * * @param jid the jid to use - * @param server the server to use + * @param server the server to use (not using dns srv) may be null * @param port the port * * @return the XMPPConnection prepared to connect @@ -351,8 +350,8 @@ public Dialog onCreateDialog(Bundle savedInstanceState) { Log.d(TAG, "create progress dialog"); ProgressDialog p = new ProgressDialog(getActivity()); - p.setTitle("Creation du compte en cours"); - p.setMessage("Please wait"); + p.setTitle(getString(R.string.create_account_progress_title)); + p.setMessage(getString(R.string.create_account_progress_message)); return p; } }