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

github.com/isida/3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiSabler <dissy@ya.ru>2014-01-18 21:47:24 +0400
committerdiSabler <dissy@ya.ru>2014-01-18 21:47:24 +0400
commitc11cfeb3ffbe4abdc1ada76854ffd2c00ebdc64c (patch)
tree3d8bb57a5e24dd5a3e5a250227c1b1558f5ee485
parent44de416b457e7868468c307d55c1b6b8af1c26b2 (diff)
parent31cf59f00a02b51cc2f572eb3df57a0253c63bcb (diff)
Merge branch 'master' of github.com:disabler/isida3
-rw-r--r--data/locales/ru.txt9
-rw-r--r--data/locales/ua.txt14
-rw-r--r--plugins/wot.py24
3 files changed, 36 insertions, 11 deletions
diff --git a/data/locales/ru.txt b/data/locales/ru.txt
index e9752cd..a44b054 100644
--- a/data/locales/ru.txt
+++ b/data/locales/ru.txt
@@ -1350,9 +1350,9 @@ Show list of users for last day Показ списка участников з
# file: plugins/wot.py
Use more characters in the name of the tank Используйте больше символов в названии танка
none отсутствует
-1 class 1 степень
-2 class 2 степень
3 class 3 степень
+2 class 2 степень
+1 class 1 степень
master мастер
\n%s (%s/%s - %s%%), mastery: %s \n%s (%s/%s - %s%%), классность: %s
not founded tank танк не найден
@@ -1394,6 +1394,7 @@ Clan not found Клан не найден
Impossible to get info Невозможно получить информацию
World of Tanks - info about user. Usage: wot nick [tank] World of Tanks - информация о пользователе. Использование: wot ник [танк]
World of Tanks - info about clan. Usage: wotclan clan World of Tanks - информация о клане. Пример: wotclan клан
+World of Tanks - info about offers. Usage: wotoffers [active|all] [real|prem|info] World of Tanks - информация о акциях. Пример: wotoffers [active|all] [real|prem|info]
# file: plugins/wtf.py
I know that %s is %s Я знаю, что %s - %s
@@ -1825,5 +1826,5 @@ Youtube settings Настройки youtube
API settings Настройки API
# write locale file: ru.txt
-# total: 1497
-# missed translations: 5
+# total: 1498
+# missed translations: 1
diff --git a/data/locales/ua.txt b/data/locales/ua.txt
index cca195f..fe478a2 100644
--- a/data/locales/ua.txt
+++ b/data/locales/ua.txt
@@ -1115,6 +1115,7 @@ just passed! тільки прошло!
Updated: %s Поновлено: %s
Command is locked! Команда заблокована!
I don't know %s Я не знаю, хто такий %s
+Too long was without voice! Надто довго був без голосу!
Ban user. Забанити учасника.
Ban user by jid. Забанити учасника за jid'ом.
Unban user. Розбанити учасника
@@ -1349,9 +1350,9 @@ Show list of users for last day Показ списку учасників за
# file: plugins/wot.py
Use more characters in the name of the tank Використовуйте більше символів в назві танку
none відсутня
-1 class 1 степінь
-2 class 2 степінь
3 class 3 степінь
+2 class 2 степінь
+1 class 1 степінь
master майстер
\n%s (%s/%s - %s%%), mastery: %s \n%s (%s/%s - %s%%), класність: %s
not founded tank танк не знайдено
@@ -1393,6 +1394,7 @@ Clan not found Клан не знайдено
Impossible to get info Неможливо отримати інформацію
World of Tanks - info about user. Usage: wot nick [tank] World of Tanks - інформація про користувача. Використання: wot нік [танк]
World of Tanks - info about clan. Usage: wotclan clan World of Tanks - інформація про клан. Приклад: wotclan клан
+World of Tanks - info about offers. Usage: wotoffers [active|all] [real|prem|info] World of Tanks - інформація про акції. Приклад: wotoffers [active|all] [real|prem|info]
# file: plugins/wtf.py
I know that %s is %s Я знаю, що %s - %s
@@ -1484,6 +1486,8 @@ Censor muc filter is %s Muc-цензор: %s
Censor filter Muc-цензор
Blacklist %s Чорний список %s
Blacklist for caps Чорний список для капсів
+Time for visitors action %s Час для дії над гостем %s
+Time for visitors action NOЧас для дії над гостем
Type of list %s Тип списку %s
Type of list for caps Тип списку для капсів
Bomb. Action for bomb explode %s Bomb. Дія при вибуху: %s
@@ -1570,6 +1574,8 @@ Hash. Action for already joined %s Хеш. Дія для вже підключе
Action for already joined Дія для вже підключених клієнтів
Bomb. Allow random unexplosive bombs %s Bomb. Іноді не підривати бомби: %s
Allow some times take unexplosive bombs Іноді не підривати бомби
+Action for visitors is %s Дія над гостем %s
+Action for visitors Дія над гостем
Action for invalid items %s Дія для некоректних елементів %s
Action for invalid items Дія для некоректних елементів
Mute all public messages %s Придушення всих публічних повідомленнь %s
@@ -1820,5 +1826,5 @@ Youtube settings Налаштування Youtube
API settings Налаштування API
# write locale file: ua.txt
-# total: 1497
-# missed translations: 5
+# total: 1498
+# missed translations: 6
diff --git a/plugins/wot.py b/plugins/wot.py
index 72b7ebb..336b91d 100644
--- a/plugins/wot.py
+++ b/plugins/wot.py
@@ -87,7 +87,7 @@ def wot(type, jid, nick, text):
if str(t['tank_id']) in tids:
tank_win = t['statistics']['wins']
tank_battle = t['statistics']['battles']
- mom = [L('none','%s/%s'%(jid,nick)), L('1 class','%s/%s'%(jid,nick)), L('2 class','%s/%s'%(jid,nick)), L('3 class','%s/%s'%(jid,nick)), L('master','%s/%s'%(jid,nick))][t['mark_of_mastery']]
+ mom = [L('none','%s/%s'%(jid,nick)), L('3 class','%s/%s'%(jid,nick)), L('2 class','%s/%s'%(jid,nick)), L('1 class','%s/%s'%(jid,nick)), L('master','%s/%s'%(jid,nick))][t['mark_of_mastery']]
if tank_battle:
msg += L('\n%s (%s/%s - %s%%), mastery: %s','%s/%s'%(jid,nick)) % (tanks_data[str(t['tank_id'])]['name_i18n'], tank_win, tank_battle, round(100.0*tank_win/tank_battle, 2), mom)
else:
@@ -250,8 +250,26 @@ def wotclan(type, jid, nick, text):
except:
msg = L('Impossible to get info','%s/%s'%(jid,nick))
send_msg(type,jid,nick,msg)
-
+
+def wotoffers(type, jid, nick, text):
+ text = text.strip().split(' ', 1)
+ try:
+ url = 'http://jexp2.wotapi.ru/wotnews/get-news.php'
+ d = '?'
+ for opt in text:
+ if opt in ['active', 'all']:
+ url += '%sactivity=%s' % (d, opt)
+ d = '&'
+ if opt in ['real', 'prem', 'info']:
+ url += '%sdetailed=%s' % (d, opt)
+ d = '&'
+ msg = load_page(url).decode('utf-8')
+ except:
+ msg = L('Impossible to get info','%s/%s'%(jid,nick))
+ send_msg(type,jid,nick,msg)
+
global execute
execute = [(3, 'wot', wot, 2, 'World of Tanks - info about user. Usage: wot nick [tank]'),
- (3, 'wotclan', wotclan, 2, 'World of Tanks - info about clan. Usage: wotclan clan')]
+ (3, 'wotclan', wotclan, 2, 'World of Tanks - info about clan. Usage: wotclan clan'),
+ (3, 'wotoffers', wotoffers, 2, 'World of Tanks - info about offers. Usage: wotoffers [active|all] [real|prem|info]')]