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

github.com/mrDoctorWho/vk4xmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordisabler <dissy@ya.ru>2013-09-13 20:12:31 +0400
committerdisabler <dissy@ya.ru>2013-09-13 20:12:31 +0400
commit8a26a41c23180da7cb8abc467ac7646411fb121b (patch)
tree0004ad7c24c10434df2bdd333d37190b3b50ac70
parent30b191fa60920d82a902ff62ad1b421eedc80346 (diff)
chg: descriptions for registration form
-rw-r--r--gateway.py17
-rw-r--r--locales/locale.ru14
2 files changed, 19 insertions, 12 deletions
diff --git a/gateway.py b/gateway.py
index 26fa88b..78d2817 100644
--- a/gateway.py
+++ b/gateway.py
@@ -677,24 +677,27 @@ def iqRegisterHandler(cl, iq):
logger.debug("Sending register form to %s" % jidFromStr)
data.setNamespace(xmpp.NS_DATA)
instr= data.addChild(node=xmpp.Node("instructions"))
- instr.setData(_("Enter phone number (like +71234567890) and password (or access-token)"\
- "\nIf your need automatic authorization, mark checkbox and enter password of your VK account."))
+ instr.setData(_("Type data in fields"))
link = data.addChild(node=xmpp.DataField("link"))
- link.setLabel(_("If you won't get access-token automatically, please, follow authorization link below and authorize app,\n"\
- "and then paste url to password field. Autorization page"))
+ link.setLabel(_("Autorization page"))
link.setType("text-single")
link.setValue(URL_ACCEPT_APP)
+ link.setDesc(_("If you won't get access-token automatically, please, follow authorization link and authorize app,\n"\
+ "and then paste url to password field."))
phone = data.addChild(node=xmpp.DataField("phone"))
- phone.setLabel(_("Type phone"))
+ phone.setLabel(_("Phone number"))
phone.setType("text-single")
phone.setValue("+")
+ phone.setDesc(_("Enter phone number in format +71234567890"))
use_password = data.addChild(node=xmpp.DataField("use_password"))
- use_password.setLabel(_("Try to get access-token automatically? (NOT recommented, password required)"))
+ use_password.setLabel(_("Get access-token automatically"))
use_password.setType("boolean")
use_password.setValue("0")
+ use_password.setDesc(_("Try to get access-token automatically. (NOT recommented, password required!)"))
password = data.addChild(node=xmpp.DataField("password"))
- password.setLabel(_("Type password or url (recommented) or access-token"))
+ password.setLabel(_("Password/Access-token"))
password.setType("text-private")
+ password.setDesc(_("Type password, access-token or url (recommented)"))
result.setQueryPayload((data,))
elif iType == "set" and jidToStr == TransportID and IQChildren:
diff --git a/locales/locale.ru b/locales/locale.ru
index 42e7710..c2084d7 100644
--- a/locales/locale.ru
+++ b/locales/locale.ru
@@ -2,11 +2,6 @@ WARNING: VK sent captcha to you. Please, go to %s and enter text from image to c
Captcha valid.=Капча введена верно.
Captcha invalid.=Капча введена неверно.
Not now. Ok?=Не сейчас.
-Enter phone number (like +71234567890) and password (or access-token)\LIf your need automatic authorization, mark checkbox and enter password of your VK account.=Введите номер телефона и access-token.\LЕсли вам нужна автоматическая авторизация, отметьте чекбокс и введите пароль в последнее поле вместо access-token
-If you won't get access-token automatically, please, follow authorization link below and authorize app,\Land then paste url to password field. Autorization page=Если же вы не хотите получить access-token автоматически, то пройдите по ссылке из поля ниже и авторизируйте приложение,\Lа затем введите полученный URL из адресной строки браузера в последнее поле.
-Type phone=Введите номер телефона
-Try to get access-token automatically? (NOT recommented, password required)=Попытаться получить access-token автоматически? (Не рекомендуется, требуется пароль)
-Type password or url (recommented) or access-token=Введите полученную ссылку или пароль
Phone incorrect.=Неверный номер.
Null password=Пустой пароль или access-token!
Incorrect password or access token!=Неправильный пароль или access-token!
@@ -24,3 +19,12 @@ Auth failed! Please register again. This incident will be reported.=Автори
Enter shown text=Введите показанный текст
New user registered: %s=Зарегистрирован новый пользователь: %s
User remove registration: %s=Пользователь удалил регистрацию: %s
+Type data in fields=Введите данные в поля
+Autorization page=Страница авторизации
+If you won't get access-token automatically, please, follow authorization link and authorize app,\Land then paste url to password field.=Если же вы не хотите получить access-token автоматически, то пройдите по ссылке из поля, авторизируйте приложение,\Lа затем введите полученный URL из адресной строки браузера в последнее поле вместо пароля.
+Phone number=Номер телефона
+Enter phone number in format +71234567890=Введите номер телефона в формате +71234567890
+Get access-token automatically=Получить access-токен автоматически
+Try to get access-token automatically. (NOT recommented, password required!)=Попытаться получить access-токен автоматически. (НЕ РЕКОМЕНДУЕТСЯ! Требуется пароль!)
+Password/Access-token=Пароль/Access-токен
+Type password, access-token or url (recommented)=Введите пароль, access-токен или ссылку из браузера (рекомендуется) \ No newline at end of file