Finish french translation
darcs-hash:20060129142403-86b55-840b288b57bb61ead3f81f14c7a3c8ffba053012.gz
This commit is contained in:
@@ -213,7 +213,7 @@ class MailComponent(Component):
|
|||||||
reg_form.add_field(type = "text-single", \
|
reg_form.add_field(type = "text-single", \
|
||||||
label = lang_class.account_check_interval, \
|
label = lang_class.account_check_interval, \
|
||||||
var = "interval", \
|
var = "interval", \
|
||||||
value = "5")
|
value = unicode(self.__interval))
|
||||||
|
|
||||||
return reg_form
|
return reg_form
|
||||||
|
|
||||||
@@ -225,11 +225,11 @@ class MailComponent(Component):
|
|||||||
reg_form_init = X()
|
reg_form_init = X()
|
||||||
reg_form_init.xmlns = "jabber:x:data"
|
reg_form_init.xmlns = "jabber:x:data"
|
||||||
reg_form_init.title = lang_class.update_title
|
reg_form_init.title = lang_class.update_title
|
||||||
reg_form_init.instructions = lang_class.update_instructions + \
|
reg_form_init.instructions = lang_class.update_instructions % \
|
||||||
name
|
(name,)
|
||||||
reg_form_init.type = "form"
|
reg_form_init.type = "form"
|
||||||
|
|
||||||
reg_form_init.add_field(type = "fixed", \
|
reg_form_init.add_field(type = "hidden", \
|
||||||
label = lang_class.account_name, \
|
label = lang_class.account_name, \
|
||||||
var = "name", \
|
var = "name", \
|
||||||
value = name)
|
value = name)
|
||||||
@@ -258,18 +258,21 @@ class MailComponent(Component):
|
|||||||
label = lang_class.account_type, \
|
label = lang_class.account_type, \
|
||||||
var = "type", \
|
var = "type", \
|
||||||
value = account.get_type())
|
value = account.get_type())
|
||||||
field.add_option(label = "POP3", \
|
if account.get_type()[0:4] == "imap":
|
||||||
value = "pop3")
|
field.add_option(label = "IMAP", \
|
||||||
field.add_option(label = "POP3S", \
|
value = "imap")
|
||||||
value = "pop3s")
|
field.add_option(label = "IMAPS", \
|
||||||
field.add_option(label = "IMAP", \
|
value = "imaps")
|
||||||
value = "imap")
|
field = reg_form_init.add_field(type = "text-single", \
|
||||||
field.add_option(label = "IMAPS", \
|
label = lang_class.account_mailbox, \
|
||||||
value = "imaps")
|
var = "mailbox")
|
||||||
|
field.value = account.mailbox
|
||||||
|
else:
|
||||||
|
field.add_option(label = "POP3", \
|
||||||
|
value = "pop3")
|
||||||
|
field.add_option(label = "POP3S", \
|
||||||
|
value = "pop3s")
|
||||||
|
|
||||||
reg_form_init.add_field(type = "text-single", \
|
|
||||||
label = lang_class.account_mailbox, \
|
|
||||||
var = "mailbox")
|
|
||||||
|
|
||||||
field = reg_form_init.add_field(type = "list-single", \
|
field = reg_form_init.add_field(type = "list-single", \
|
||||||
label = lang_class.account_ffc_action, \
|
label = lang_class.account_ffc_action, \
|
||||||
@@ -341,12 +344,6 @@ class MailComponent(Component):
|
|||||||
label = lang_class.account_check_interval, \
|
label = lang_class.account_check_interval, \
|
||||||
var = "interval", \
|
var = "interval", \
|
||||||
value = str(account.interval))
|
value = str(account.interval))
|
||||||
|
|
||||||
if account.get_type()[0:4] == "imap":
|
|
||||||
reg_form_init.fields["mailbox"].value = account.mailbox
|
|
||||||
else:
|
|
||||||
reg_form_init.fields["mailbox"].value = u"INBOX"
|
|
||||||
|
|
||||||
return reg_form_init
|
return reg_form_init
|
||||||
|
|
||||||
""" Looping method """
|
""" Looping method """
|
||||||
@@ -478,7 +475,7 @@ class MailComponent(Component):
|
|||||||
if not node:
|
if not node:
|
||||||
for name in self.__storage.keys((base_from_jid,)):
|
for name in self.__storage.keys((base_from_jid,)):
|
||||||
account = self.__storage[(base_from_jid, name)]
|
account = self.__storage[(base_from_jid, name)]
|
||||||
str_name = account.get_type() + lang_class.connection + name
|
str_name = lang_class.connection_label % (account.get_type().upper(), name)
|
||||||
if account.get_type()[0:4] == "imap":
|
if account.get_type()[0:4] == "imap":
|
||||||
str_name += " (" + account.mailbox + ")"
|
str_name += " (" + account.mailbox + ")"
|
||||||
DiscoItem(di, JID(name + "@" + unicode(self.jid)), \
|
DiscoItem(di, JID(name + "@" + unicode(self.jid)), \
|
||||||
@@ -491,7 +488,7 @@ class MailComponent(Component):
|
|||||||
iq = iq.make_result_response()
|
iq = iq.make_result_response()
|
||||||
q = iq.new_query("jabber:iq:version")
|
q = iq.new_query("jabber:iq:version")
|
||||||
q.newTextChild(q.ns(), "name", "Jabber Mail Component")
|
q.newTextChild(q.ns(), "name", "Jabber Mail Component")
|
||||||
q.newTextChild(q.ns(), "version", "0.1")
|
q.newTextChild(q.ns(), "version", "0.2")
|
||||||
self.stream.send(iq)
|
self.stream.send(iq)
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
##
|
##
|
||||||
## lang.py
|
## lang.py
|
||||||
## Login : David Rousselie <david.rousselie@happycoders.org>
|
## Login : David Rousselie <david.rousselie@happycoders.org>
|
||||||
@@ -43,8 +44,8 @@ class Lang:
|
|||||||
action_retrieve = u"Retrieve mail"
|
action_retrieve = u"Retrieve mail"
|
||||||
action_digest = u"Send mail digest"
|
action_digest = u"Send mail digest"
|
||||||
update_title = u"Jabber mail connection update"
|
update_title = u"Jabber mail connection update"
|
||||||
update_instructions = u"Modifying connection "
|
update_instructions = u"Modifying connection '%s'"
|
||||||
connection = u" connection "
|
connection_labels = u"%s connection '%s'"
|
||||||
update_account_message = u"Updated %s connection '%s': Registered with "\
|
update_account_message = u"Updated %s connection '%s': Registered with "\
|
||||||
"username '%s' and password '%s' on '%s'"
|
"username '%s' and password '%s' on '%s'"
|
||||||
new_account_message = u"New %s connection '%s': Registered with " \
|
new_account_message = u"New %s connection '%s': Registered with " \
|
||||||
@@ -53,30 +54,29 @@ class Lang:
|
|||||||
class fr:
|
class fr:
|
||||||
register_title = u"Enregistrement d'une nouvelle connexion à un serveur email."
|
register_title = u"Enregistrement d'une nouvelle connexion à un serveur email."
|
||||||
register_instructions = u"Entrer les paramètres de connexion"
|
register_instructions = u"Entrer les paramètres de connexion"
|
||||||
# TODO
|
account_name = u"Nom de la connexion"
|
||||||
account_name = u"Connection name"
|
account_login = u"Nom d'utilisateur"
|
||||||
account_login = u"Login"
|
account_password = u"Mot de passe"
|
||||||
account_password = u"Password"
|
account_host = u"Adresse du serveur email"
|
||||||
account_host = u"Host"
|
account_port = u"Port du serveur email"
|
||||||
account_port = u"Port"
|
account_type = u"Type du serveur email"
|
||||||
account_type = u"Mail serveur type"
|
account_mailbox = u"Chemin de la boîte email (IMAP)"
|
||||||
account_mailbox = u"Mailbox path (IMAP)"
|
account_ffc_action = u"Action lorsque l'état est 'Free For Chat'"
|
||||||
account_ffc_action = u"Action when state is 'Free For Chat'"
|
account_online_action = u"Action lorsque l'état est 'Online'"
|
||||||
account_online_action = u"Action when state is 'Online'"
|
account_away_action = u"Action lorsque l'état est 'Away'"
|
||||||
account_away_action = u"Action when state is 'Away'"
|
account_xa_action = u"Action lorsque l'état est 'Not Available'"
|
||||||
account_xa_action = u"Action when state is 'Not Available'"
|
account_dnd_action = u"Action lorsque l'état est 'Do not Disturb'"
|
||||||
account_dnd_action = u"Action when state is 'Do not Disturb'"
|
account_offline_action = u"Action lorsque l'état est 'Offline'"
|
||||||
account_offline_action = u"Action when state is 'Offline'"
|
account_check_interval = u"Interval de vérification de nouveaux emails (en minutes)"
|
||||||
account_check_interval = u"Mail check interval (in minutes)"
|
action_nothing = u"Ne rien faire"
|
||||||
action_nothing = u"Do nothing"
|
action_retrieve = u"Récupérer l'email"
|
||||||
action_retrieve = u"Retrieve mail"
|
action_digest = u"Envoyer un résumé"
|
||||||
action_digest = u"Send mail digest"
|
update_title = u"Mise à jour du compte JMC"
|
||||||
update_title = u"Jabber mail connection update"
|
update_instructions = u"Modification de la connexion '%s'"
|
||||||
update_instructions = u"Modifying connection "
|
connection_label = u"Connexion %s '%s'"
|
||||||
connection = u" connection "
|
update_account_message = u"La connexion %s '%s' a été mise à jour : \n"\
|
||||||
update_account_message = u"Updated %s connection '%s': Registered with "\
|
"Nom d'utilisateur : '%s'\nMot de passe : '%s'\nsur : '%s'"
|
||||||
"username '%s' and password '%s' on '%s'"
|
new_account_message = u"La connexion %s '%s' a été créée : \n" \
|
||||||
new_account_message = u"New %s connection '%s': Registered with " \
|
"Nom d'utilisateur : '%s'\nMot de passe : '%s'\nsur : '%s'"
|
||||||
"username '%s' and password '%s' on '%s'"
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
##
|
##
|
||||||
## mailconnection_factory.py
|
## mailconnection_factory.py
|
||||||
## Login : <adro8400@claralinux>
|
## Login : David Rousselie <david.rousselie@happycoders.org>
|
||||||
## Started on Fri May 20 10:41:46 2005 adro8400
|
## Started on Fri May 20 10:41:46 2005 David Rousselie
|
||||||
## $Id: mailconnection_factory.py,v 1.2 2005/09/18 20:24:07 dax Exp $
|
## $Id: mailconnection_factory.py,v 1.2 2005/09/18 20:24:07 dax Exp $
|
||||||
##
|
##
|
||||||
## Copyright (C) 2005 adro8400
|
## Copyright (C) 2005
|
||||||
## This program is free software; you can redistribute it and/or modify
|
## 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
|
## it under the terms of the GNU General Public License as published by
|
||||||
## the Free Software Foundation; either version 2 of the License, or
|
## the Free Software Foundation; either version 2 of the License, or
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
##
|
##
|
||||||
## storage.py
|
## storage.py
|
||||||
## Login : <dax@happycoders.org>
|
## Login : David Rousselie <dax@happycoders.org>
|
||||||
## Started on Wed Jul 20 20:26:53 2005 dax
|
## Started on Wed Jul 20 20:26:53 2005 dax
|
||||||
## $Id: storage.py,v 1.1 2005/09/18 20:24:07 dax Exp $
|
## $Id: storage.py,v 1.1 2005/09/18 20:24:07 dax Exp $
|
||||||
##
|
##
|
||||||
|
|||||||
2
jmc.py
2
jmc.py
@@ -2,7 +2,7 @@
|
|||||||
##
|
##
|
||||||
## Jabber Mail Component
|
## Jabber Mail Component
|
||||||
## jmc.py
|
## jmc.py
|
||||||
## Login : David Rousselie <dax@happycoders.org>
|
## Login : David Rousselie <david.rousselie@happycoders.org>
|
||||||
## Started on Fri Jan 7 11:06:42 2005
|
## Started on Fri Jan 7 11:06:42 2005
|
||||||
## $Id: jmc.py,v 1.3 2005/07/11 20:39:31 dax Exp $
|
## $Id: jmc.py,v 1.3 2005/07/11 20:39:31 dax Exp $
|
||||||
##
|
##
|
||||||
|
|||||||
3
jmc.xml
3
jmc.xml
@@ -14,5 +14,6 @@
|
|||||||
</jabber>
|
</jabber>
|
||||||
<storage>DBM</storage>
|
<storage>DBM</storage>
|
||||||
<spooldir>/var/spool/jabber</spooldir>
|
<spooldir>/var/spool/jabber</spooldir>
|
||||||
<check_interval>1</check_interval> <!-- in minutes -->
|
<!-- default check interval in minutes -->
|
||||||
|
<check_interval>5</check_interval>
|
||||||
</config>
|
</config>
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
##
|
##
|
||||||
## dummy_server.py
|
## dummy_server.py
|
||||||
## Login : <adro8400@claralinux>
|
## Login : David Rousselie <david.rousselie@happycoders.org>
|
||||||
## Started on Fri May 13 12:53:17 2005 adro8400
|
## Started on Fri May 13 12:53:17 2005
|
||||||
## $Id: dummy_server.py,v 1.1 2005/07/11 20:39:31 dax Exp $
|
## $Id: dummy_server.py,v 1.1 2005/07/11 20:39:31 dax Exp $
|
||||||
##
|
##
|
||||||
## Copyright (C) 2005 adro8400
|
## Copyright (C) 2005
|
||||||
## This program is free software; you can redistribute it and/or modify
|
## 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
|
## it under the terms of the GNU General Public License as published by
|
||||||
## the Free Software Foundation; either version 2 of the License, or
|
## the Free Software Foundation; either version 2 of the License, or
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
##
|
##
|
||||||
# -*- coding: iso-8859-1 -*-
|
# -*- coding: iso-8859-1 -*-
|
||||||
## email_generator.py
|
## email_generator.py
|
||||||
## Login : <adro8400@claralinux>
|
## Login : David Rousselie <david.rousselie@happycoders.org>
|
||||||
## Started on Tue May 17 15:33:35 2005 adro8400
|
## Started on Tue May 17 15:33:35 2005
|
||||||
## $Id: email_generator.py,v 1.1 2005/07/11 20:39:31 dax Exp $
|
## $Id: email_generator.py,v 1.1 2005/07/11 20:39:31 dax Exp $
|
||||||
##
|
##
|
||||||
## Copyright (C) 2005 adro8400
|
## Copyright (C) 2005
|
||||||
## This program is free software; you can redistribute it and/or modify
|
## 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
|
## it under the terms of the GNU General Public License as published by
|
||||||
## the Free Software Foundation; either version 2 of the License, or
|
## the Free Software Foundation; either version 2 of the License, or
|
||||||
|
|||||||
@@ -14,5 +14,5 @@
|
|||||||
</jabber>
|
</jabber>
|
||||||
<storage>DBM</storage>
|
<storage>DBM</storage>
|
||||||
<spooldir>.</spooldir>
|
<spooldir>.</spooldir>
|
||||||
<check_interval>1</check_interval> <!-- in minutes -->
|
<check_interval>5</check_interval> <!-- in minutes -->
|
||||||
</config>
|
</config>
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
##
|
##
|
||||||
## test_mailconnection_factory.py
|
## test_mailconnection_factory.py
|
||||||
## Login : <adro8400@claralinux>
|
## Login : David Rousselie <david.rousselie@happycoders.org>
|
||||||
## Started on Fri May 20 10:46:58 2005 adro8400
|
## Started on Fri May 20 10:46:58 2005
|
||||||
## $Id: test_component.py,v 1.2 2005/09/18 20:24:07 dax Exp $
|
## $Id: test_component.py,v 1.2 2005/09/18 20:24:07 dax Exp $
|
||||||
##
|
##
|
||||||
## Copyright (C) 2005 adro8400
|
## Copyright (C) 2005
|
||||||
## This program is free software; you can redistribute it and/or modify
|
## 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
|
## it under the terms of the GNU General Public License as published by
|
||||||
## the Free Software Foundation; either version 2 of the License, or
|
## the Free Software Foundation; either version 2 of the License, or
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
##
|
##
|
||||||
## test_mailconnection_factory.py
|
## test_mailconnection_factory.py
|
||||||
## Login : <adro8400@claralinux>
|
## Login : David Rousselie <david.rousselie@happycoders.org>
|
||||||
## Started on Fri May 20 10:46:58 2005 adro8400
|
## Started on Fri May 20 10:46:58 2005
|
||||||
## $Id: test_mailconnection_factory.py,v 1.1 2005/07/11 20:39:31 dax Exp $
|
## $Id: test_mailconnection_factory.py,v 1.1 2005/07/11 20:39:31 dax Exp $
|
||||||
##
|
##
|
||||||
## Copyright (C) 2005 adro8400
|
## Copyright (C) 2005
|
||||||
## This program is free software; you can redistribute it and/or modify
|
## 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
|
## it under the terms of the GNU General Public License as published by
|
||||||
## the Free Software Foundation; either version 2 of the License, or
|
## the Free Software Foundation; either version 2 of the License, or
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
##
|
##
|
||||||
## test_storage.py
|
## test_storage.py
|
||||||
## Login : <dax@happycoders.org>
|
## Login : David Rousselie <dax@happycoders.org>
|
||||||
## Started on Fri May 20 10:46:58 2005 dax
|
## Started on Fri May 20 10:46:58 2005 dax
|
||||||
## $Id: test_component.py,v 1.1 2005/07/11 20:39:31 dax Exp $
|
## $Id: test_component.py,v 1.1 2005/07/11 20:39:31 dax Exp $
|
||||||
##
|
##
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
##
|
##
|
||||||
## test_x.py
|
## test_x.py
|
||||||
## Login : <adro8400@claralinux>
|
## Login : David Rousselie <david.rousselie@happycoders.org>
|
||||||
## Started on Fri May 20 10:46:58 2005 adro8400
|
## Started on Fri May 20 10:46:58 2005
|
||||||
## $Id: test_x.py,v 1.1 2005/07/11 20:39:31 dax Exp $
|
## $Id: test_x.py,v 1.1 2005/07/11 20:39:31 dax Exp $
|
||||||
##
|
##
|
||||||
## Copyright (C) 2005 adro8400
|
## Copyright (C) 2005
|
||||||
## This program is free software; you can redistribute it and/or modify
|
## 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
|
## it under the terms of the GNU General Public License as published by
|
||||||
## the Free Software Foundation; either version 2 of the License, or
|
## the Free Software Foundation; either version 2 of the License, or
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
##
|
##
|
||||||
## utils.py
|
## utils.py
|
||||||
## Login : <dax@happycoders.org>
|
## Login : David Rousselie <dax@happycoders.org>
|
||||||
## Started on Mon Oct 24 21:44:43 2005 dax
|
## Started on Mon Oct 24 21:44:43 2005 dax
|
||||||
## $Id$
|
## $Id$
|
||||||
##
|
##
|
||||||
|
|||||||
Reference in New Issue
Block a user