add: username in IQ answers
This commit is contained in:
@@ -328,6 +328,7 @@ sixteenth шестнадцатое
|
|||||||
seventeenth семнадцатое
|
seventeenth семнадцатое
|
||||||
eighteenth восемнадцатое
|
eighteenth восемнадцатое
|
||||||
nineteenth девятнадцатое
|
nineteenth девятнадцатое
|
||||||
|
twentieth двадцать
|
||||||
twenty-first двадцать первое
|
twenty-first двадцать первое
|
||||||
twenty-second двадцать второе
|
twenty-second двадцать второе
|
||||||
twenty-third двадцать третье
|
twenty-third двадцать третье
|
||||||
@@ -371,6 +372,10 @@ friday пятница
|
|||||||
saturday суббота
|
saturday суббота
|
||||||
sunday воскресенье
|
sunday воскресенье
|
||||||
last последний
|
last последний
|
||||||
|
last последний
|
||||||
|
Last последняя
|
||||||
|
last последний
|
||||||
|
Last последняя
|
||||||
Last последняя
|
Last последняя
|
||||||
lAst последнее
|
lAst последнее
|
||||||
Read file error. Ошибка чтения файла.
|
Read file error. Ошибка чтения файла.
|
||||||
@@ -644,16 +649,19 @@ KB КБ
|
|||||||
users/all-hosts/total всего пользователей на всех хостах
|
users/all-hosts/total всего пользователей на всех хостах
|
||||||
users/all-hosts/online онлайн пользователей на всех хостах
|
users/all-hosts/online онлайн пользователей на всех хостах
|
||||||
users/total всего пользователей
|
users/total всего пользователей
|
||||||
|
Caps %s is %s У %s капс %s
|
||||||
I can't get caps of %s Я не знаю капс %s
|
I can't get caps of %s Я не знаю капс %s
|
||||||
%s has empty caps! У %s пустой капс!
|
%s has empty caps! У %s пустой капс!
|
||||||
vCard: Визитка:
|
vCard: Визитка:
|
||||||
Empty! Пусто!
|
Empty! Пусто!
|
||||||
type %s, %s тип %s, %s
|
type %s, %s тип %s, %s
|
||||||
Uptime: %s Аптайм: %s
|
Uptime %s: %s Аптайм %s: %s
|
||||||
I can't do it Не получается...
|
I can't do it Не получается...
|
||||||
Ping from you %s sec. Пинг от тебя %s сек.
|
Ping from you %s sec. Пинг от тебя %s сек.
|
||||||
Ping from %s %s sec. Пинг от %s %s сек.
|
Ping from %s %s sec. Пинг от %s %s сек.
|
||||||
|
Time %s is %s У %s время %s
|
||||||
Unknown server answer! Неизвестный ответ сервера!
|
Unknown server answer! Неизвестный ответ сервера!
|
||||||
|
Version %s is %s У %s версия %s
|
||||||
Unavailable! Недоступно!
|
Unavailable! Недоступно!
|
||||||
Server statistic: %s\n%s Статистика сервера: %s\n%s
|
Server statistic: %s\n%s Статистика сервера: %s\n%s
|
||||||
Client version. Версия клиента.
|
Client version. Версия клиента.
|
||||||
@@ -1832,5 +1840,5 @@ Youtube settings Настройки youtube
|
|||||||
API settings Настройки API
|
API settings Настройки API
|
||||||
|
|
||||||
# write locale file: ru.txt
|
# write locale file: ru.txt
|
||||||
# total: 1480
|
# total: 1419
|
||||||
# missed translations: 2
|
# regenarated without mistakes!
|
||||||
|
|||||||
@@ -371,6 +371,10 @@ friday п'ятниця
|
|||||||
saturday субота
|
saturday субота
|
||||||
sunday неділя
|
sunday неділя
|
||||||
last останній
|
last останній
|
||||||
|
last останній
|
||||||
|
Last остання
|
||||||
|
last останній
|
||||||
|
Last остання
|
||||||
Last остання
|
Last остання
|
||||||
lAst остання
|
lAst остання
|
||||||
Read file error. Помилка читання файлу.
|
Read file error. Помилка читання файлу.
|
||||||
@@ -649,7 +653,7 @@ I can't get caps of %s Я не знаю капс %s
|
|||||||
vCard: Візитка:
|
vCard: Візитка:
|
||||||
Empty! Пусто!
|
Empty! Пусто!
|
||||||
type %s, %s тип %s, %s
|
type %s, %s тип %s, %s
|
||||||
Uptime: %s Аптайм: %s
|
Uptime %s: %s Аптайм %s: %s
|
||||||
I can't do it Не виходить...
|
I can't do it Не виходить...
|
||||||
Ping from you %s sec. Пінг від тебе - %s сек.
|
Ping from you %s sec. Пінг від тебе - %s сек.
|
||||||
Ping from %s %s sec. Пінг від %s - %s сек.
|
Ping from %s %s sec. Пінг від %s - %s сек.
|
||||||
@@ -1832,5 +1836,5 @@ Youtube settings Налаштування Youtube
|
|||||||
API settings Налаштування API
|
API settings Налаштування API
|
||||||
|
|
||||||
# write locale file: ua.txt
|
# write locale file: ua.txt
|
||||||
# total: 1480
|
# total: 1419
|
||||||
# missed translations: 2
|
# missed translations: 4
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ def get_caps(room,nick):
|
|||||||
|
|
||||||
def noiq_caps(type, jid, nick, text):
|
def noiq_caps(type, jid, nick, text):
|
||||||
text = [text,nick][text == '']
|
text = [text,nick][text == '']
|
||||||
msg = get_caps(jid,text)
|
msg = L('Caps %s is %s','%s/%s'%(jid,nick)) % (text,get_caps(jid,text))
|
||||||
if not msg: msg = L('I can\'t get caps of %s','%s/%s'%(jid,nick)) % text
|
if not msg: msg = L('I can\'t get caps of %s','%s/%s'%(jid,nick)) % text
|
||||||
elif len(msg) == msg.count(' ')+msg.count('\n'): msg = L('%s has empty caps!','%s/%s'%(jid,nick)) % text
|
elif len(msg) == msg.count(' ')+msg.count('\n'): msg = L('%s has empty caps!','%s/%s'%(jid,nick)) % text
|
||||||
send_msg(type, jid, nick, msg)
|
send_msg(type, jid, nick, msg)
|
||||||
@@ -168,9 +168,10 @@ def iq_uptime(type, jid, nick, text):
|
|||||||
sender(i)
|
sender(i)
|
||||||
|
|
||||||
def uptime_async(type, jid, nick, text, is_answ):
|
def uptime_async(type, jid, nick, text, is_answ):
|
||||||
|
if not text: text = nick
|
||||||
isa = is_answ[1][0]
|
isa = is_answ[1][0]
|
||||||
try:
|
try:
|
||||||
msg = L('Uptime: %s','%s/%s'%(jid,nick)) % un_unix(int(get_tag_item(isa,'query','seconds')),'%s/%s'%(jid,nick))
|
msg = L('Uptime %s: %s','%s/%s'%(jid,nick)) % (text,un_unix(int(get_tag_item(isa,'query','seconds')),'%s/%s'%(jid,nick)))
|
||||||
up_stat = esc_min(get_tag(isa,'query'))
|
up_stat = esc_min(get_tag(isa,'query'))
|
||||||
if len(up_stat): msg = '%s // %s' % (msg,up_stat)
|
if len(up_stat): msg = '%s // %s' % (msg,up_stat)
|
||||||
except: msg = L('I can\'t do it','%s/%s'%(jid,nick))
|
except: msg = L('I can\'t do it','%s/%s'%(jid,nick))
|
||||||
@@ -219,11 +220,13 @@ def iq_time_get(type, jid, nick, text, mode):
|
|||||||
sender(i)
|
sender(i)
|
||||||
|
|
||||||
def time_async(type, jid, nick, text, mode, is_answ):
|
def time_async(type, jid, nick, text, mode, is_answ):
|
||||||
|
if not text: text = nick
|
||||||
isa = is_answ[1]
|
isa = is_answ[1]
|
||||||
if len(isa) == 3:
|
if len(isa) == 3:
|
||||||
msg = isa[0]
|
msg = isa[0]
|
||||||
if mode: msg += ', Raw time: %s, TimeZone: %s' % (isa[1],isa[2])
|
if mode: msg += ', Raw time: %s, TimeZone: %s' % (isa[1],isa[2])
|
||||||
else: msg = ' '.join(isa)
|
else: msg = ' '.join(isa)
|
||||||
|
msg = L('Time %s is %s','%s/%s'%(jid,nick)) % (text,msg)
|
||||||
send_msg(type, jid, nick, msg)
|
send_msg(type, jid, nick, msg)
|
||||||
|
|
||||||
def iq_utime(type, jid, nick, text):
|
def iq_utime(type, jid, nick, text):
|
||||||
@@ -240,6 +243,7 @@ def iq_utime_get(type, jid, nick, text, mode):
|
|||||||
sender(i)
|
sender(i)
|
||||||
|
|
||||||
def utime_async(type, jid, nick, text, mode, is_answ):
|
def utime_async(type, jid, nick, text, mode, is_answ):
|
||||||
|
if not text: text = nick
|
||||||
isa = is_answ[1]
|
isa = is_answ[1]
|
||||||
if len(isa) >= 2 and isa[1] == 'error': msg = L('Error! %s','%s/%s'%(jid,nick)) % L(isa[0].capitalize().replace('-',' '),'%s/%s'%(jid,nick))
|
if len(isa) >= 2 and isa[1] == 'error': msg = L('Error! %s','%s/%s'%(jid,nick)) % L(isa[0].capitalize().replace('-',' '),'%s/%s'%(jid,nick))
|
||||||
else:
|
else:
|
||||||
@@ -252,7 +256,7 @@ def utime_async(type, jid, nick, text, mode, is_answ):
|
|||||||
else: t_gmt = 'GMT+%s' % int(timeofset)
|
else: t_gmt = 'GMT+%s' % int(timeofset)
|
||||||
if timeofset%1: t_gmt += ':%02d' % int((timeofset%1*60/100) * 100)
|
if timeofset%1: t_gmt += ':%02d' % int((timeofset%1*60/100) * 100)
|
||||||
|
|
||||||
msg = '%02d:%02d:%02d, %02d.%s\'%s, %s, %s' % (lt[3],lt[4],lt[5],lt[2],L(wmonth[lt[1]-1],'%s/%s'%(jid,nick)),lt[0],L(wday[lt[6]],'%s/%s'%(jid,nick)),t_gmt)
|
msg = L('Time %s is %s','%s/%s'%(jid,nick)) % (text,'%02d:%02d:%02d, %02d.%s\'%s, %s, %s' % (lt[3],lt[4],lt[5],lt[2],L(wmonth[lt[1]-1],'%s/%s'%(jid,nick)),lt[0],L(wday[lt[6]],'%s/%s'%(jid,nick)),t_gmt))
|
||||||
if mode: msg = '%s | %s %s' % (msg,isa[0],isa[1])
|
if mode: msg = '%s | %s %s' % (msg,isa[0],isa[1])
|
||||||
except: msg = '%s %s' % (L('Unknown server answer!','%s/%s'%(jid,nick)),isa[0])
|
except: msg = '%s %s' % (L('Unknown server answer!','%s/%s'%(jid,nick)),isa[0])
|
||||||
send_msg(type, jid, nick, msg)
|
send_msg(type, jid, nick, msg)
|
||||||
@@ -269,12 +273,14 @@ def iq_version_raw(type, jid, nick, text, with_caps):
|
|||||||
sender(i)
|
sender(i)
|
||||||
|
|
||||||
def version_async(type, jid, nick, text, with_caps, is_answ):
|
def version_async(type, jid, nick, text, with_caps, is_answ):
|
||||||
|
if not text: text = nick
|
||||||
isa = is_answ[1]
|
isa = is_answ[1]
|
||||||
if len(isa) >= 2 and isa[1] == 'error': msg = L('Error! %s','%s/%s'%(jid,nick)) % L(isa[0].capitalize().replace('-',' '),'%s/%s'%(jid,nick))
|
if len(isa) >= 2 and isa[1] == 'error': msg = L('Error! %s','%s/%s'%(jid,nick)) % L(isa[0].capitalize().replace('-',' '),'%s/%s'%(jid,nick))
|
||||||
else: msg = isa[0]
|
else: msg = isa[0]
|
||||||
if with_caps:
|
if with_caps:
|
||||||
caps = get_caps(jid,[text,nick][text == ''])
|
caps = get_caps(jid,[text,nick][text == ''])
|
||||||
if caps: msg += ' || %s' % caps
|
if caps: msg += ' || %s' % caps
|
||||||
|
msg = L('Version %s is %s','%s/%s'%(jid,nick)) % (text,msg)
|
||||||
send_msg(type, jid, nick, msg)
|
send_msg(type, jid, nick, msg)
|
||||||
|
|
||||||
def iq_stats(type, jid, nick, text):
|
def iq_stats(type, jid, nick, text):
|
||||||
|
|||||||
Reference in New Issue
Block a user