From 8a26a41c23180da7cb8abc467ac7646411fb121b Mon Sep 17 00:00:00 2001 From: disabler Date: Fri, 13 Sep 2013 20:12:31 +0400 Subject: chg: descriptions for registration form --- gateway.py | 17 ++++++++++------- locales/locale.ru | 14 +++++++++----- 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 -- cgit v1.2.3