Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dax/jmc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rousselie <dax@happycoders.org>2007-10-30 21:11:00 +0300
committerDavid Rousselie <dax@happycoders.org>2007-10-30 21:11:00 +0300
commite24224c873940a8be265d544baa2d57e06fbc923 (patch)
tree132228db3bf62ef610c54737345f4afa12ac898d
parent4065cba5b37f252689d064cd6f044dda30afbc42 (diff)
Add help messages for JMC
darcs-hash:20071030181100-86b55-b57adb4d24e741ccf44098393ffbab708c23cc2a.gz
-rw-r--r--src/jmc/jabber/message.py6
-rw-r--r--src/jmc/lang.py26
2 files changed, 29 insertions, 3 deletions
diff --git a/src/jmc/jabber/message.py b/src/jmc/jabber/message.py
index 122f23c..39835e2 100644
--- a/src/jmc/jabber/message.py
+++ b/src/jmc/jabber/message.py
@@ -3,18 +3,18 @@
## Login : David Rousselie <dax@happycoders.org>
## Started on Wed Jun 27 22:08:23 2007 David Rousselie
## $Id$
-##
+##
## Copyright (C) 2007 David Rousselie
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
-##
+##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
-##
+##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
diff --git a/src/jmc/lang.py b/src/jmc/lang.py
index 404d537..3ae3a2c 100644
--- a/src/jmc/lang.py
+++ b/src/jmc/lang.py
@@ -72,6 +72,19 @@ class Lang(jcl.lang.Lang):
send_mail_ok_subject = u"Email sent"
send_mail_ok_body = u"Your email was sent to %s."
+ help_message_body = u"To send an email with JMC, you have the choice" \
+ + " between:\n" \
+ + " - Send a message to the JMC gateway: the subject of the" \
+ + " email will be the subject of the Jabber message or the " \
+ + " subject specified with the following syntax in the Jabber " \
+ + " message body:\n" \
+ + "\tSubject: Your subject\n" \
+ + " To specify email receivers, you need to add a line in the " \
+ + " Jabber message body with the following syntax:\n" \
+ + "\tTo: to_email@test.com\n\n" \
+ + " - Add a contact to your roster, with JID to_email\%test.com@jmc.test.com"\
+ + ", where to_email@test.com is the receiver's email address."
+
class fr(jcl.lang.Lang.fr):
component_name = u"Jabber Mail Component"
register_title = u"Enregistrement d'une nouvelle connexion à un " \
@@ -123,6 +136,19 @@ class Lang(jcl.lang.Lang):
send_mail_ok_subject = u"Email envoyé"
send_mail_ok_body = u"Votre email a été envoyé à %s."
+ help_message_body = u"Pour envoyer un email avec JMC, vous avez le choix " \
+ + "entre :\n" \
+ + " - Envoyer un message à la passerelle JMC: le sujet de l'email" \
+ + " sera le sujet du message Jabber ou le sujet spécifié avec la " \
+ + "syntaxe suivant dans le corps du message Jabber :\n" \
+ + "\tSubject: votre sujet\n" \
+ + " Pour spécifier les destinataires de l'email, il faut ajouter une" \
+ + " ligne au corps du message Jabber avec la syntaxe suivante:\n" \
+ + "\tTo: to_email@test.com\n\n" \
+ + " - Ajouter un contact à votre roster, avec comme JID " \
+ + "to_email\%test.com@jmc.test.com, où to_email@test.com est " \
+ + "l'adresse du destinataire."
+
class nl(jcl.lang.Lang.nl):
# TODO: when finish, delete this line and uncomment in tests/lang.py the makeSuite(Language_nl_TestCase, 'test') line
register_title = u"Registratie van verbindingen voor Jabber Mail"