misc: fixed some typos
This commit is contained in:
parent
31f9754167
commit
71e29f5c44
11 changed files with 20 additions and 20 deletions
|
|
@ -120,4 +120,4 @@ class Info(base.CommandBase):
|
|||
subcommands = (Disco, Version)
|
||||
|
||||
def __init__(self, host):
|
||||
super(Info, self).__init__(host, 'info', use_profile=False, help=_('Get various informations on entities'))
|
||||
super(Info, self).__init__(host, 'info', use_profile=False, help=_('Get various pieces of information on entities'))
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
"""This module permits to manage profiles. It can list, create, delete
|
||||
and retrieve informations about a profile."""
|
||||
and retrieve information about a profile."""
|
||||
|
||||
from logging import debug, info, error, warning
|
||||
from sat.core.i18n import _
|
||||
|
|
@ -47,7 +47,7 @@ class ProfileDelete(base.CommandBase):
|
|||
|
||||
class ProfileInfo(base.CommandBase):
|
||||
def __init__(self, host):
|
||||
super(ProfileInfo, self).__init__(host, 'info', use_profile=False, help=_('Get informations about a profile'))
|
||||
super(ProfileInfo, self).__init__(host, 'info', use_profile=False, help=_('Get information about a profile'))
|
||||
|
||||
def add_parser_options(self):
|
||||
self.parser.add_argument('profile', type=str, help=PROFILE_HELP)
|
||||
|
|
|
|||
|
|
@ -301,7 +301,7 @@ msgstr "Vous essayer de connecter un profile qui n'existe pas"
|
|||
|
||||
#: frontends/src/jp/cmd_profile.py:50
|
||||
#, fuzzy
|
||||
msgid "Get informations about a profile"
|
||||
msgid "Get information about a profile"
|
||||
msgstr "Demande de contacts pour un profile inexistant"
|
||||
|
||||
#: frontends/src/jp/cmd_profile.py:76
|
||||
|
|
@ -3474,7 +3474,7 @@ msgid "Stream proposed: host=[%(host)s] port=[%(port)s]"
|
|||
msgstr "Flux proposé: serveur=[%(host)s] port=[%(post)s]"
|
||||
|
||||
#: src/plugins/plugin_xep_0065.py:789
|
||||
msgid "Can't determine proxy informations"
|
||||
msgid "Can't determine proxy information"
|
||||
msgstr ""
|
||||
|
||||
#: src/plugins/plugin_xep_0065.py:793
|
||||
|
|
|
|||
|
|
@ -276,7 +276,7 @@ msgid "Delete a profile"
|
|||
msgstr ""
|
||||
|
||||
#: frontends/src/jp/cmd_profile.py:50
|
||||
msgid "Get informations about a profile"
|
||||
msgid "Get information about a profile"
|
||||
msgstr ""
|
||||
|
||||
#: frontends/src/jp/cmd_profile.py:76
|
||||
|
|
@ -3175,7 +3175,7 @@ msgid "Stream proposed: host=[%(host)s] port=[%(port)s]"
|
|||
msgstr ""
|
||||
|
||||
#: src/plugins/plugin_xep_0065.py:789
|
||||
msgid "Can't determine proxy informations"
|
||||
msgid "Can't determine proxy information"
|
||||
msgstr ""
|
||||
|
||||
#: src/plugins/plugin_xep_0065.py:793
|
||||
|
|
|
|||
|
|
@ -61,8 +61,8 @@ doc_param_3=%(doc_profile)s
|
|||
type=signal
|
||||
category=core
|
||||
sig_in=ssia{ss}s
|
||||
doc=Somebody changed his presence informations.
|
||||
doc_param_0=entity_jid: JID from which we have presence informations
|
||||
doc=Somebody changed his presence information.
|
||||
doc_param_0=entity_jid: JID from which we have presence informatios
|
||||
doc_param_1=show: availability status (see RFC 6121 §4.7.2.1)
|
||||
doc_param_2=priority: Priority level of the ressource (see RFC 6121 §4.7.2.3)
|
||||
doc_param_3=statuses: Natural language description of the availability status (see RFC 6121 §4.7.2.2)
|
||||
|
|
@ -260,7 +260,7 @@ category=core
|
|||
sig_in=s
|
||||
sig_out=a(sa{ss}as)
|
||||
param_0_default="@DEFAULT@"
|
||||
doc=Return informations about all contacts
|
||||
doc=Return information about all contacts
|
||||
doc_param_0=%(doc_profile_key)s
|
||||
doc_return=array of tuples with the following values:
|
||||
- JID of the contact
|
||||
|
|
@ -273,7 +273,7 @@ category=core
|
|||
sig_in=ss
|
||||
sig_out=as
|
||||
param_1_default="@DEFAULT@"
|
||||
doc=Return informations about all contacts
|
||||
doc=Return information about all contacts
|
||||
doc_param_0=group: name of the group to check
|
||||
doc_param_1=%(doc_profile_key)s
|
||||
doc_return=array of jids
|
||||
|
|
@ -295,7 +295,7 @@ category=core
|
|||
sig_in=s
|
||||
sig_out=a{sa{s(sia{ss})}}
|
||||
param_0_default="@DEFAULT@"
|
||||
doc=Return presence informations of all contacts
|
||||
doc=Return presence information of all contacts
|
||||
doc_param_0=%(doc_profile_key)s
|
||||
doc_return=Dict of presence with bare JID of contact as key, and value as follow:
|
||||
A dict where key is the resource and the value is a tuple with (show, priority, statuses) as for [presenceUpdate]
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ def fixLocalDir(silent=True):
|
|||
|
||||
|
||||
class Memory(object):
|
||||
"""This class manage all persistent informations"""
|
||||
"""This class manage all the persistent information"""
|
||||
|
||||
def __init__(self, host):
|
||||
log.info(_("Memory manager init"))
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ class TextCommands(object):
|
|||
"""Add a callback which give information to the /whois command
|
||||
@param callback: a callback which will be called with the following arguments
|
||||
- whois_msg: list of information strings to display, callback need to append its own strings to it
|
||||
- target_jid: full jid from who we want informations
|
||||
- target_jid: full jid from whom we want information
|
||||
- profile: %(doc_profile)s
|
||||
@param priority: priority of the information to show (the highest priority will be displayed first)
|
||||
|
||||
|
|
@ -184,7 +184,7 @@ class TextCommands(object):
|
|||
self.host.plugins[C.TEXT_CMDS].feedBack(feedback + self.HELP_SUGGESTION, mess_data, profile)
|
||||
|
||||
def cmd_whois(self, mess_data, profile):
|
||||
"""show informations on entity"""
|
||||
"""show information on entity"""
|
||||
log.debug("Catched whois command")
|
||||
|
||||
entity = mess_data["unparsed"].strip()
|
||||
|
|
|
|||
|
|
@ -620,7 +620,7 @@ class XEP_0045(object):
|
|||
return self.cmd_title(mess_data, profile)
|
||||
|
||||
def _whois(self, whois_msg, mess_data, target_jid, profile):
|
||||
""" Add MUC user informations to whois """
|
||||
""" Add MUC user information to whois """
|
||||
if mess_data['type'] != "groupchat":
|
||||
return
|
||||
if target_jid.userhost() not in self.clients[profile].joined_rooms:
|
||||
|
|
|
|||
|
|
@ -269,7 +269,7 @@ class XEP_0054(object):
|
|||
def setAvatar(self, filepath, profile_key=C.PROF_KEY_NONE):
|
||||
"""Set avatar of the profile
|
||||
@param filepath: path of the image of the avatar"""
|
||||
#TODO: This is a temporary way of setting avatar, as other VCard informations are not managed.
|
||||
#TODO: This is a temporary way of setting the avatar, as other VCard information is not managed.
|
||||
# A proper full VCard management should be done (and more generaly a public/private profile)
|
||||
client = self.host.getClient(profile_key)
|
||||
|
||||
|
|
|
|||
|
|
@ -764,10 +764,10 @@ class XEP_0065_handler(XMPPHandler):
|
|||
self.host = plugin_parent.host
|
||||
|
||||
def _proxyDataResult(self, iq_elt):
|
||||
"""Called with the informations about proxy according to XEP-0065 #4
|
||||
"""Called with the information about proxy according to XEP-0065 #4
|
||||
Params should be filled with these infos"""
|
||||
if iq_elt["type"] == "error":
|
||||
log.warning(_("Can't determine proxy informations"))
|
||||
log.warning(_("Can't determine proxy information"))
|
||||
return
|
||||
query_elt = iq_elt.firstChildElement()
|
||||
if query_elt.name != "query":
|
||||
|
|
|
|||
|
|
@ -481,7 +481,7 @@ class AdvancedListContainer(Container):
|
|||
|
||||
def __init__(self, xmlui, callback_id=None, name=None, headers=None, items=None, columns=None, selectable = 'no', auto_index = False, parent=None):
|
||||
"""Create an advanced list
|
||||
@param headers: optional headers informations
|
||||
@param headers: optional headers information
|
||||
@param callback_id: id of the method to call when selection is done
|
||||
@param items: list of widgets to add (just the first row)
|
||||
@param columns: number of columns in this table, or None to autodetect
|
||||
|
|
|
|||
Loading…
Reference in a new issue