msgid "You have been kicked by %(by)s. Reason: %(reason)s"
msgstr "Vous avez été kické(e) par %(by)s. Raison : %(reason)s"
#: src/gui.py:126
#, python-format
msgid "You have been kicked. Reason: %s"
msgstr "Vous avez été kické(e). Raison : %s"
#: src/gui.py:129
#, python-format
msgid "%(nick)s has been kicked by %(by)s. Reason: %(reason)s"
msgstr "%(nick)s a été kické(e) par %(by)s. Raison : %(reason)s"
#: src/gui.py:131
#, python-format
msgid "%(nick)s has been kicked. Reason: %(reason)s"
msgstr "%(nick)s a été kické(e). Raison : %(reason)s"
#: src/gui.py:135
#, python-format
msgid "%s has left the room"
msgstr "%s a quitté le salon"
#: src/gui.py:138
#, python-format
msgid "%(nick)s changed his/her status : %(a)s, %(b)s, %(c)s, %(d)s"
msgstr "%(nick)s a changé son statut : %(a)s, %(b)s, %(c)s, %(d)s"
#: src/gui.py:158
msgid "OLOL, this is SOOO recursive"
msgstr "OLOL, this is SOOO recursive"
#: src/gui.py:159
msgid ""
"Usage: /join [room_name][/nick]\n"
"Join: Join the specified room. You can specify a nickname after a slash (/). If no nickname is specified, you will use the default_nick in the configuration file. You can omit the room name: you will then join the room you're looking at (useful if you were kicked). Examples:\n"
"/join room@server.tld\n"
"/join room@server.tld/John\n"
"/join /me_again\n"
"/join"
msgstr ""
"Utilisation : /join [room_name][/nick]\n"
"Join : Entre dans le salon spécifié. Vous pouvez spécifier un pseudoname après un slash (/). Si aucun pseudonyme n'est spécifié, vous utiliserez le pseudonyme par défaut (default_nick) du fichier de configuration. Vous pouvez omettre le nom du salon : vous entrerez alors dans le salon que vous êtes en train de voir (utile après avoir été kické). Exemples :\n"
"/join room@server.tld\n"
"/join room@server.tld/Martin\n"
"/join /encore_moi\n"
"/join"
#: src/gui.py:160
msgid ""
"Usage: /quit\n"
"Quit: Just disconnect from the server and exit poezio."
msgstr ""
"Utilisation : /quit\n"
"Quit : Se déconnecte tout simplement du serveur et quitte poezio."
#: src/gui.py:161
msgid ""
"Usage: /exit\n"
"Exit: Just disconnect from the server and exit poezio."
msgstr ""
"Utilisation : /exit\n"
"Exit : Se déconnecte tout simplement du serveur et quitte poezio."
#: src/gui.py:162
msgid ""
"Usage: /next\n"
"Next: Go to the next room."
msgstr ""
"Utilisation : /next\n"
"Next : Va au salon suivant."
#: src/gui.py:163
msgid ""
"Usage: /prev\n"
"Prev: Go to the previous room."
msgstr ""
"Utilisation : /prev\n"
"Prev : Va au salon précédent."
#: src/gui.py:164
msgid ""
"Usage: /part [message]\n"
"Part: disconnect from a room. You can specify an optionnal message."
msgstr ""
"Utilisation : /part [message]\n"
"Part : Se déconnecte d'un salon. Vous pouvez spécifier un message optionnel"
#: src/gui.py:165
msgid ""
"Usage: /show <availability> [status]\n"
"Show: Change your availability and (optionnaly) your status. The <availability> argument is one of \"avail, available, ok, here, chat, away, afk, dnd, busy, xa\" and the optional [message] argument will be your status message"
msgstr ""
#: src/gui.py:166
msgid ""
"Usage: /away [message]\n"
"Away: Sets your availability to away and (optional) sets your status message. This is equivalent do \"/show away [message]\""
msgstr ""
#: src/gui.py:167
msgid ""
"Usage: /busy [message]\n"
"Busy: Sets your availability to busy and (optional) sets your status message. This is equivalent do \"/show busy [message]\""
msgstr ""
#: src/gui.py:168
msgid ""
"Usage: /avail [message]\n"
"Avail: Sets your availability to available and (optional) sets your status message. This is equivalent do \"/show available [message]\""
msgstr ""
#: src/gui.py:169
msgid ""
"Usage: /available [message]\n"
"Available: Sets your availability to available and (optional) sets your status message. This is equivalent do \"/show available [message]\""
msgstr ""
#: src/gui.py:170
msgid ""
"Usage: /bookmark [roomname][/nick]\n"
"Bookmark: Bookmark the specified room (you will then auto-join it on each poezio start). This commands uses the same syntaxe as /nick. Type /help nick for syntaxe examples. Note that when typing \"/bookmark\" on its own, the room will be bookmarked with the nickname you're currently using in this room (instead of default_nick)"
msgstr ""
#: src/gui.py:171
msgid ""
"Usage: /nick <nickname>\n"
"Nick: Change your nickname in the current room"
msgstr ""
#: src/gui.py:258
msgid "Welcome on Poezio \\o/!"
msgstr ""
#: src/gui.py:259
#, python-format
msgid "Your JID is %s"
msgstr ""
#: src/gui.py:285
#, python-format
msgid "message received for a non-existing room: %s"
msgstr ""
#: src/gui.py:290
#, python-format
msgid "%(nick)s changed the subject to: %(subject)s"
msgstr ""
#: src/gui.py:311
#, python-format
msgid "presence received for a non-existing room: %s"
msgstr ""
#: src/gui.py:313
#, python-format
msgid "Error: %s"
msgstr ""
#: src/gui.py:348
msgid "Available commands are:"
msgstr ""
#: src/gui.py:351
msgid ""
"\n"
"Type /help <command_name> to know what each command does"
returnself.add_info('%s joined the room %s'%(nick,self.name))
returnself.add_info(_('%(nick)s joined the room %(roomname)s')%{'nick':nick,'roomname':self.name})
# nick change
ifchange_nick:
ifuser.nick==self.own_nick:
self.own_nick=stanza.getNick().encode('utf-8')
user.change_nick(stanza.getNick())
returnself.add_info('%s is now known as %s'%(nick,stanza.getNick()))
returnself.add_info(_('%(old_nick)s is now known as %(new_nick)s')%{'old_nick':nick,'new_nick':stanza.getNick()})
# kick
ifkick:
self.users.remove(user)
...
...
@@ -127,21 +121,21 @@ class Room(object):
ifnick==self.own_nick:
self.disconnect()
ifby:
returnself.add_info('You have been kicked by %s. Reason: %s'%(by,reason))
returnself.add_info(_('You have been kicked by %(by)s. Reason: %(reason)s')%{'by':by,'reason':reason})
else:
returnself.add_info('You have been kicked. Reason: %s'%(reason))
returnself.add_info(_('You have been kicked. Reason: %s')%(reason))
else:
ifby:
returnself.add_info('%s has been kicked by %s. Reason: %s'%(nick,by,reason))
returnself.add_info(_('%(nick)s has been kicked by %(by)s. Reason: %(reason)s')%{'nick':nick,'by':by,'reason':reason})
else:
returnself.add_info('%s has been kicked. Reason: %s'%(nick,reason))
returnself.add_info(_('%(nick)s has been kicked. Reason: %(reason)s')%{'nick':nick,'reason':reason})
# user quit
ifstatus=='offline'orrole=='none':
self.users.remove(user)
returnself.add_info('%s has left the room'%(nick))
returnself.add_info(_('%s has left the room')%(nick))
# status change
user.update(affiliation,show,status,role)
returnself.add_info('%s, status : %s, %s, %s, %s'%(nick,affiliation,role,show,status))
returnself.add_info(_('%(nick)s changed his/her status : %(a)s, %(b)s, %(c)s, %(d)s')%{'nick':nick,'b':affiliation,'b':role,'c':show,'d':status})
classGui(object):
...
...
@@ -161,20 +155,20 @@ class Gui(object):
self.muc=muc
self.commands={
'help':(self.command_help,'OLOL, this is SOOO recursive'),
'join':(self.command_join,'Usage: /join [room_name][/nick]\nJoin: Join the specified room. You can specify a nickname after a slash (/). If no nickname is specified, you will use the default_nick in the configuration file. You can omit the room name: you will then join the room you\'re looking at (useful if you were kicked). Examples:\n/join room@server.tld\n/join room@server.tld/John\n/join /me_again\n/join'),
'quit':(self.command_quit,'Usage: /quit\nQuit: Just disconnect from the server and exit poezio.'),
'exit':(self.command_quit,'Usage: /exit\nExit: Just disconnect from the server and exit poezio.'),
'next':(self.rotate_rooms_left,'Usage: /next\nNext: Go to the next room.'),
'prev':(self.rotate_rooms_right,'Usage: /prev\nPrev: Go to the previous room.'),
'part':(self.command_part,'Usage: /part [message]\nPart: disconnect from a room. You can specify an optionnal message.'),
'show':(self.command_show,'Usage: /show <availability> [status]\nShow: Change your availability and (optionnaly) your status. The <availability> argument is one of "avail, available, ok, here, chat, away, afk, dnd, busy, xa" and the optional [message] argument will be your status message'),
'away':(self.command_away,'Usage: /away [message]\nAway: Sets your availability to away and (optional) sets your status message. This is equivalent do "/show away [message]"'),
'busy':(self.command_busy,'Usage: /busy [message]\nBusy: Sets your availability to busy and (optional) sets your status message. This is equivalent do "/show busy [message]"'),
'avail':(self.command_avail,'Usage: /avail [message]\nAvail: Sets your availability to available and (optional) sets your status message. This is equivalent do "/show available [message]"'),
'available':(self.command_avail,'Usage: /available [message]\nAvailable: Sets your availability to available and (optional) sets your status message. This is equivalent do "/show available [message]"'),
'bookmark':(self.command_bookmark,'Usage: /bookmark [roomname][/nick]\nBookmark: Bookmark the specified room (you will then auto-join it on each poezio start). This commands uses the same syntaxe as /nick. Type /help nick for syntaxe examples. Note that when typing "/bookmark" on its own, the room will be bookmarked with the nickname you\'re currently using in this room (instead of default_nick)'),
'nick':(self.command_nick,'Usage: /nick <nickname>\nNick: Change your nickname in the current room')
'help':(self.command_help,_('OLOL, this is SOOO recursive')),
'join':(self.command_join,_('Usage: /join [room_name][/nick]\nJoin: Join the specified room. You can specify a nickname after a slash (/). If no nickname is specified, you will use the default_nick in the configuration file. You can omit the room name: you will then join the room you\'re looking at (useful if you were kicked). Examples:\n/join room@server.tld\n/join room@server.tld/John\n/join /me_again\n/join')),
'quit':(self.command_quit,_('Usage: /quit\nQuit: Just disconnect from the server and exit poezio.')),
'exit':(self.command_quit,_('Usage: /exit\nExit: Just disconnect from the server and exit poezio.')),
'next':(self.rotate_rooms_left,_('Usage: /next\nNext: Go to the next room.')),
'prev':(self.rotate_rooms_right,_('Usage: /prev\nPrev: Go to the previous room.')),
'part':(self.command_part,_('Usage: /part [message]\nPart: disconnect from a room. You can specify an optional message.')),
'show':(self.command_show,_('Usage: /show <availability> [status]\nShow: Change your availability and (optionaly) your status. The <availability> argument is one of "avail, available, ok, here, chat, away, afk, dnd, busy, xa" and the optional [message] argument will be your status message')),
'away':(self.command_away,_('Usage: /away [message]\nAway: Sets your availability to away and (optional) sets your status message. This is equivalent to "/show away [message]"')),
'busy':(self.command_busy,_('Usage: /busy [message]\nBusy: Sets your availability to busy and (optional) sets your status message. This is equivalent to "/show busy [message]"')),
'avail':(self.command_avail,_('Usage: /avail [message]\nAvail: Sets your availability to available and (optional) sets your status message. This is equivalent to "/show available [message]"')),
'available':(self.command_avail,_('Usage: /available [message]\nAvailable: Sets your availability to available and (optional) sets your status message. This is equivalent to "/show available [message]"')),
'bookmark':(self.command_bookmark,_('Usage: /bookmark [roomname][/nick]\nBookmark: Bookmark the specified room (you will then auto-join it on each poezio start). This commands uses the same syntaxe as /nick. Type /help nick for syntaxe examples. Note that when typing "/bookmark" on its own, the room will be bookmarked with the nickname you\'re currently using in this room (instead of default_nick)')),
'nick':(self.command_nick,_('Usage: /nick <nickname>\nNick: Change your nickname in the current room'))
}
self.key_func={
...
...
@@ -261,8 +255,8 @@ class Gui(object):
curses.endwin()
defon_connected(self,jid):
self.information("Welcome on Poezio \o/!")
self.information("Your JID is %s"%jid)
self.information(_("Welcome on Poezio \o/!"))
self.information(_("Your JID is %s")%jid)
defjoin_room(self,room,nick):
self.window.text_win.new_win(room)
...
...
@@ -288,12 +282,12 @@ class Gui(object):
nick_from=''
room=self.get_room_by_name(room_from)
ifnotroom:
self.information("message received for a non-existing room: %s"%(name))
self.information(_("message received for a non-existing room: %s")%(name))
return
body=stanza.getBody()
ifnotbody:
body=stanza.getSubject()
info=room.add_info("%s changed the subject to: %s"%(nick_from,stanza.getSubject()))
info=room.add_info(_("%(nick)s changed the subject to: %(subject)s")%{'nick':nick_from,'subject':stanza.getSubject()})