Author: ks156
Date: 2009-10-19 16:26:25 +0200 (Mon, 19 Oct 2009)
New Revision: 5737
Modified:
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/resources/de.po
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/resources/en.po
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/resources/fr.po
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/resources/nl.po
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/resources/plugin.pot
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/src/TwitterPlugin.java
Log:
* Added more sentences
Modified:
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/resources/de.po
===================================================================
---
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/resources/de.po
2009-10-19 14:04:31 UTC (rev 5736)
+++
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/resources/de.po
2009-10-19 14:26:25 UTC (rev 5737)
@@ -138,3 +138,15 @@
msgid "Sorry, there was an error when connecting to Twitter. Please check your
Twitter configuration."
msgstr "Sorry, Bei der Verbindung mit Twitter gab es einen Fehler. Prüfen Sie
Ihre Twitter-Konfiguration."
+
+msgid "I could not connect to your Twitter account. Please check if the
Twitter gadget is configured correctly."
+msgstr "I could not connect to your Twitter account. Please check if the
Twitter gadget is configured correctly."
+
+msgid "It seems you entered a wrong Twitter login or password. Please verify
the Twitter gadget configuration."
+msgstr "It seems you entered a wrong Twitter login or password. Please verify
the Twitter gadget configuration."
+
+msgid "I got an error when connecting to your Twitter account. Please verify
your login and password in the Twitter gadget configuration."
+msgstr "I got an error when connecting to your Twitter account. Please verify
your login and password in the Twitter gadget configuration."
+
+msgid "I could not connect to your Twitter. Make sure you entered your login
and password correctly."
+msgstr "I could not connect to your Twitter. Make sure you entered your login
and password correctly."
Modified:
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/resources/en.po
===================================================================
---
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/resources/en.po
2009-10-19 14:04:31 UTC (rev 5736)
+++
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/resources/en.po
2009-10-19 14:26:25 UTC (rev 5737)
@@ -138,3 +138,15 @@
msgid "Sorry, there was an error when connecting to Twitter. Please check your
Twitter configuration."
msgstr "Sorry, there was an error when connecting to Twitter. Please check
your Twitter configuration."
+
+msgid "I could not connect to your Twitter account. Please check if the
Twitter gadget is configured correctly."
+msgstr "I could not connect to your Twitter account. Please check if the
Twitter gadget is configured correctly."
+
+msgid "It seems you entered a wrong Twitter login or password. Please verify
the Twitter gadget configuration."
+msgstr "It seems you entered a wrong Twitter login or password. Please verify
the Twitter gadget configuration."
+
+msgid "I got an error when connecting to your Twitter account. Please verify
your login and password in the Twitter gadget configuration."
+msgstr "I got an error when connecting to your Twitter account. Please verify
your login and password in the Twitter gadget configuration."
+
+msgid "I could not connect to your Twitter. Make sure you entered your login
and password correctly."
+msgstr "I could not connect to your Twitter. Make sure you entered your login
and password correctly."
Modified:
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/resources/fr.po
===================================================================
---
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/resources/fr.po
2009-10-19 14:04:31 UTC (rev 5736)
+++
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/resources/fr.po
2009-10-19 14:26:25 UTC (rev 5737)
@@ -138,3 +138,15 @@
msgid "Sorry, there was an error when connecting to Twitter. Please check your
Twitter configuration."
msgstr "Désolé, il y a eu une erreur lors de la connexion avec Twitter.
Vérifiez votre login et votre mot de passe"
+
+msgid "I could not connect to your Twitter account. Please check if the
Twitter gadget is configured correctly."
+msgstr "Je ne peux pas me connecter à votre compte Twitter. Veuillez vérifier
que le gadget Twitter soit configuré correctement."
+
+msgid "It seems you entered a wrong Twitter login or password. Please verify
the Twitter gadget configuration."
+msgstr "Il semble que vous ayez entré un mauvais nom d'utilisateur ou mot de
passe Twitter. Veuillez vérifier la configuration du gadget Twitter."
+
+msgid "I got an error when connecting to your Twitter account. Please verify
your login and password in the Twitter gadget configuration."
+msgstr "J'ai eu une erreur en essayant de me connecter à votre compte Twitter.
Veuillez vérifier votre nom d'utilisateur et mode de passe dans la
configuration du gadget Twitter."
+
+msgid "I could not connect to your Twitter. Make sure you entered your login
and password correctly."
+msgstr "Je n'ai pas pu le connecter à votre Twitter. Assurez-vous que vous
avez entré un nom d'utilisateur et un mot de passe correct."
Modified:
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/resources/nl.po
===================================================================
---
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/resources/nl.po
2009-10-19 14:04:31 UTC (rev 5736)
+++
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/resources/nl.po
2009-10-19 14:26:25 UTC (rev 5737)
@@ -138,3 +138,15 @@
msgid "Sorry, there was an error when connecting to Twitter. Please check your
Twitter configuration."
msgstr "Sorry, ik kan geen connectie maken met Twitter. Controleer je
configuratie of probeer later opnieuw."
+
+msgid "I could not connect to your Twitter account. Please check if the
Twitter gadget is configured correctly."
+msgstr"I could not connect to your Twitter account. Please check if the
Twitter gadget is configured correctly."
+
+msgid "It seems you entered a wrong Twitter login or password. Please verify
the Twitter gadget configuration."
+msgstr "It seems you entered a wrong Twitter login or password. Please verify
the Twitter gadget configuration."
+
+msgid "I got an error when connecting to your Twitter account. Please verify
your login and password in the Twitter gadget configuration."
+msgstr "I got an error when connecting to your Twitter account. Please verify
your login and password in the Twitter gadget configuration."
+
+msgid "I could not connect to your Twitter. Make sure you entered your login
and password correctly."
+msgstr "I could not connect to your Twitter. Make sure you entered your login
and password correctly."
Modified:
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/resources/plugin.pot
===================================================================
---
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/resources/plugin.pot
2009-10-19 14:04:31 UTC (rev 5736)
+++
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/resources/plugin.pot
2009-10-19 14:26:25 UTC (rev 5737)
@@ -138,3 +138,15 @@
msgid "Sorry, there was an error when connecting to Twitter. Please check your
Twitter configuration."
msgstr ""
+
+msgid "I could not connect to your Twitter account. Please check if the
Twitter gadget is configured correctly."
+msgstr ""
+
+msgid "It seems you entered a wrong Twitter login or password. Please verify
the Twitter gadget configuration."
+msgstr ""
+
+msgid "I got an error when connecting to your Twitter account. Please verify
your login and password in the Twitter gadget configuration."
+msgstr ""
+
+msgid "I could not connect to your Twitter. Make sure you entered your login
and password correctly."
+msgstr ""
Modified:
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/src/TwitterPlugin.java
===================================================================
---
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/src/TwitterPlugin.java
2009-10-19 14:04:31 UTC (rev 5736)
+++
software_suite_v3/software/plugin/plugin-twitter/branches/random_sentences/plugin-twitter/src/TwitterPlugin.java
2009-10-19 14:26:25 UTC (rev 5737)
@@ -84,6 +84,14 @@
"There are no new replies detected"
};
+ String[] errorSentences = {
+ "Sorry, there was an error when connecting to Twitter. Please check
your Twitter configuration.",
+ "I could not connect to your Twitter account. Please check if the
Twitter gadget is configured correctly.",
+ "It seems you entered a wrong Twitter login or password. Please verify
the Twitter gadget configuration.",
+ "I got an error when connecting to your Twitter account. Please verify
your login and password in the Twitter gadget configuration.",
+ "I could not connect to your Twitter. Make sure you entered your login
and password correctly."
+ };
+
/***
This function set the new user status.
Préconditions :
@@ -263,7 +271,7 @@
{
if( ! this.getCommand().equalsIgnoreCase("check"))
{
- this.throwMessage("Sorry, there was an error when
connecting to Twitter. Please check your Twitter configuration.");
+ this.throwMessage(pickSentence(errorSentences));
}
this.quitGadget();
}
@@ -384,7 +392,7 @@
{
if (badRequest.getMessage().contains("401"))
{
- throwMessage("Sorry, there was an error when
connecting to Twitter. Please check your Twitter configuration.");
+ throwMessage(pickSentence(errorSentences));
}
else
{
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn