added additional information

develop
Спиридонов Денис 12 years ago
parent c565956ace
commit fbbf1f6cbb

@ -161,7 +161,9 @@ def client_post_request (cert_path, args):
fc = open(os.path.join(cert_path, 'req_id'), 'w') fc = open(os.path.join(cert_path, 'req_id'), 'w')
fc.write(res) fc.write(res)
fc.close() fc.close()
_print (_("Your request ID = %s") %res) _print (_("Your request ID = %s") %res,
_("To sign the certificate in the server use command") + \
'\n'+'cl-core --sign-client ID_CLIENT_REQUEST')
return 0 return 0
def client_get_cert(cert_path, args): def client_get_cert(cert_path, args):
@ -203,7 +205,9 @@ def client_get_cert(cert_path, args):
return 1 return 1
elif cert == '2': elif cert == '2':
print _("Signature request not reviewed yet.") print _("Signature request not reviewed yet.")
print _("Your request ID = %s") %req_id print _("Your request ID = %s") %req_id, \
_("To sign the certificate in the server use command") + \
'\n'+'cl-core --sign-client ID_CLIENT_REQUEST'
return 1 return 1
elif cert == '3': elif cert == '3':
print _("Signature request does not match earlier data.") print _("Signature request does not match earlier data.")
@ -219,7 +223,7 @@ def client_get_cert(cert_path, args):
os.unlink(cert_path + 'req_id') os.unlink(cert_path + 'req_id')
except OSError, e: except OSError, e:
_print (e.message) _print (e.message)
print 'OK. Certificate save. Your certificate id - %s' %req_id print _('Certificate save. Your certificate id - %s') %req_id
user_name = pwd.getpwuid(os.getuid()).pw_name user_name = pwd.getpwuid(os.getuid()).pw_name
try: try:
pwdObj = pwd.getpwnam(user_name) pwdObj = pwd.getpwnam(user_name)

@ -2,9 +2,9 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: console_gui_translate\n" "Project-Id-Version: console_gui_translate\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-07-02 12:06+0300\n" "POT-Creation-Date: 2012-07-05 14:24+0300\n"
"PO-Revision-Date: 2012-07-02 12:06+0300\n" "PO-Revision-Date: 2012-07-05 14:24+0300\n"
"Last-Translator: Denis <ds@mail.ru>\n" "Last-Translator: Denis Spiridonov <ds.calculate.ru>\n"
"Language-Team: \n" "Language-Team: \n"
"Language: \n" "Language: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@ -221,135 +221,140 @@ msgstr "Не найден метод для %s"
msgid "Process terminated" msgid "Process terminated"
msgstr "Процесс завершён" msgstr "Процесс завершён"
#: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:377 #: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:376
#: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:461 #: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:472
msgid "Invalid password" msgid "Invalid password"
msgstr "Неверный пароль" msgstr "Неверный пароль"
#: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:383 #: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:382
#: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:394 #: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:393
#: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:468 #: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:479
#: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:484 #: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:495
msgid "Error: " msgid "Error: "
msgstr "Ошибка: " msgstr "Ошибка: "
#: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:407 #: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:397
#: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:417
#: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:438
#: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:499
#: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:520
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:175
msgid "Interrupted by the user"
msgstr "Прервано пользователем"
#: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:410 #: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:410
#: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:412 #: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:413
#: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:498 #: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:419
#: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:501 #: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:513
#: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:503 #: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:516
#: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:522
#, python-format #, python-format
msgid "Exception: %s" msgid "Exception: %s"
msgstr "Исключение: %s" msgstr "Исключение: %s"
#: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:426 #: /var/calculate/mydir/git/calculate-console/console/application/cl_client.py:433
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:105 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:106
msgid "Failed to connect" msgid "Failed to connect"
msgstr "Не удалось подключиться" msgstr "Не удалось подключиться"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:39 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:40
msgid "show this help message and exit" msgid "show this help message and exit"
msgstr "просмотр данной справки и выход" msgstr "просмотр данной справки и выход"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:41 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:42
msgid "call method" msgid "call method"
msgstr "вызов метода" msgstr "вызов метода"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:44 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:45
msgid "language for translation" msgid "language for translation"
msgstr "язык для перевода" msgstr "язык для перевода"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:47 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:48
msgid "port number" msgid "port number"
msgstr "номер порта" msgstr "номер порта"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:50 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:51
msgid "destination host" msgid "destination host"
msgstr "хост назначения" msgstr "хост назначения"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:54 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:55
msgid "post a request on the server for the certificate to be signed" msgid "post a request on the server for the certificate to be signed"
msgstr "послать запрос подписания сертификата на сервер" msgstr "послать запрос подписания сертификата на сервер"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:57 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:58
msgid "get the signed certificate from the server" msgid "get the signed certificate from the server"
msgstr "забрать подписанный сертификат с сервера" msgstr "забрать подписанный сертификат с сервера"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:60 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:61
msgid "path to the cert and key files" msgid "path to the cert and key files"
msgstr "путь к файлам сертификата и ключа" msgstr "путь к файлам сертификата и ключа"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:63 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:64
msgid "view the list of running processes" msgid "view the list of running processes"
msgstr "просмотр списка запущенных процессов" msgstr "просмотр списка запущенных процессов"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:66 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:67
msgid "dump (to be used with --list-pid)" msgid "dump (to be used with --list-pid)"
msgstr "дамп (используйте с ключом --list-pid)" msgstr "дамп (используйте с ключом --list-pid)"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:69 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:70
msgid "view the result of the process" msgid "view the result of the process"
msgstr "просмотр результата работы процесса" msgstr "просмотр результата работы процесса"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:72 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:73
msgid "kill the selected process" msgid "kill the selected process"
msgstr "завершить выбранный процесс" msgstr "завершить выбранный процесс"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:75 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:76
msgid "clear the session cache" msgid "clear the session cache"
msgstr "очистить кэш сессии" msgstr "очистить кэш сессии"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:78 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:79
msgid "view the session information" msgid "view the session information"
msgstr "просмотр информации о сессии" msgstr "просмотр информации о сессии"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:82 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:83
msgid "view information about session = SID" msgid "view information about session = SID"
msgstr "Просмотр информации о сессии с номером SID" msgstr "Просмотр информации о сессии с номером SID"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:86 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:87
msgid "view the active session list on the server" msgid "view the active session list on the server"
msgstr "просмотр списка активных сессий на сервере" msgstr "просмотр списка активных сессий на сервере"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:89 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:90
msgid "update the revocation list" msgid "update the revocation list"
msgstr "обновить список отзыва сертификатов" msgstr "обновить список отзыва сертификатов"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:92 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:93
msgid "stop cl-consoled" msgid "stop cl-consoled"
msgstr "остановить cl-consoled" msgstr "остановить cl-consoled"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:95 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:96
msgid "do not display progress bar" msgid "do not display progress bar"
msgstr "не отображать прогрессбар" msgstr "не отображать прогрессбар"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:98 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:99
msgid "no questions during the process" msgid "no questions during the process"
msgstr "не задавать вопросы во время процесса" msgstr "не задавать вопросы во время процесса"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:128 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:129
msgid "Unknown parameter" msgid "Unknown parameter"
msgstr "Неизвестный параметр" msgstr "Неизвестный параметр"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:139 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:140
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:182 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:183
msgid "Method not available" msgid "Method not available"
msgstr "Метод не доступен" msgstr "Метод не доступен"
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:150 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:151
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:192 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:193
msgid "Wrong option " msgid "Wrong option "
msgstr "Ошибка в параметре " msgstr "Ошибка в параметре "
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:168 #: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:169
msgid "Run the process? (yes/no): " msgid "Run the process? (yes/no): "
msgstr "Запустить процесс? (yes/no): " msgstr "Запустить процесс? (yes/no): "
#: /var/calculate/mydir/git/calculate-console/console/application/methods_func.py:174
msgid "Interrupted by the user"
msgstr "Прервано пользователем"
#: /var/calculate/mydir/git/calculate-console/console/application/sid_func.py:44 #: /var/calculate/mydir/git/calculate-console/console/application/sid_func.py:44
msgid "No access to the file!" msgid "No access to the file!"
msgstr "Нет доступа к файлу!" msgstr "Нет доступа к файлу!"
@ -466,12 +471,12 @@ msgid "Send a new request? y/[n]: "
msgstr "Отправить навый запрос на подпись сертификата? y/[n]: " msgstr "Отправить навый запрос на подпись сертификата? y/[n]: "
#: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:127 #: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:127
#: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:177 #: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:179
msgid "connecting..." msgid "connecting..."
msgstr "подключение..." msgstr "подключение..."
#: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:133 #: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:133
#: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:184 #: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:186
msgid "Closing. Connection error." msgid "Closing. Connection error."
msgstr "Ошибка соединения. Закрываюсь." msgstr "Ошибка соединения. Закрываюсь."
@ -493,62 +498,72 @@ msgid "This server has not signed the certificate!"
msgstr "Сервер не подписал сертификат!" msgstr "Сервер не подписал сертификат!"
#: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:164 #: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:164
#: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:206 #: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:208
#, python-format #, python-format
msgid "Your request ID = %s" msgid "Your request ID = %s"
msgstr "Номер Вашего запроса = %s" msgstr "Номер Вашего запроса = %s"
#: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:169 #: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:165
#: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:209
msgid "To sign the certificate in the server use command"
msgstr "Для подписания сертификата на сервере используется команда"
#: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:171
#, python-format #, python-format
msgid "Request not sent or file %s deleted" msgid "Request not sent or file %s deleted"
msgstr "Запрос не был послан или удалён файл %s" msgstr "Запрос не был послан или удалён файл %s"
#: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:190 #: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:192
#, python-format #, python-format
msgid "Request %s not found on the client's side" msgid "Request %s not found on the client's side"
msgstr "Запрос %s не найден на стороне клиента" msgstr "Запрос %s не найден на стороне клиента"
#: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:202 #: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:204
msgid "Request to sign is rejected!" msgid "Request to sign is rejected!"
msgstr "Запрос на подпись сертификата отвергнут!" msgstr "Запрос на подпись сертификата отвергнут!"
#: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:205 #: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:207
msgid "Signature request not reviewed yet." msgid "Signature request not reviewed yet."
msgstr "Запрос на подписание сертификата ещё не рассмотрен." msgstr "Запрос на подписание сертификата ещё не рассмотрен."
#: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:209 #: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:213
msgid "Signature request does not match earlier data." msgid "Signature request does not match earlier data."
msgstr "Запрос или подпись не соответствуют отправленным ранее." msgstr "Запрос или подпись не соответствуют отправленным ранее."
#: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:212 #: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:216
msgid "The request was sent from another IP." msgid "The request was sent from another IP."
msgstr "Запрос был послан с другого адреса." msgstr "Запрос был послан с другого адреса."
#: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:279 #: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:226
#, python-format
msgid "Certificate save. Your certificate id - %s"
msgstr "Сертификат сохранён. Номер вашего сертификата - %s"
#: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:283
#: /var/calculate/mydir/git/calculate-console/console/application/client_class.py:170 #: /var/calculate/mydir/git/calculate-console/console/application/client_class.py:170
msgid "Field \"CN\" not found in the certificate!" msgid "Field \"CN\" not found in the certificate!"
msgstr "Не найдено поле \"CN\" в сертификате!" msgstr "Не найдено поле \"CN\" в сертификате!"
#: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:292 #: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:296
#: /var/calculate/mydir/git/calculate-console/console/application/client_class.py:180 #: /var/calculate/mydir/git/calculate-console/console/application/client_class.py:180
msgid "filename = " msgid "filename = "
msgstr "Имя файла =" msgstr "Имя файла ="
#: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:293 #: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:297
#: /var/calculate/mydir/git/calculate-console/console/application/client_class.py:181 #: /var/calculate/mydir/git/calculate-console/console/application/client_class.py:181
msgid "Certificate added" msgid "Certificate added"
msgstr "Сертификат добавлен" msgstr "Сертификат добавлен"
#: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:295 #: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:299
#: /var/calculate/mydir/git/calculate-console/console/application/client_class.py:183 #: /var/calculate/mydir/git/calculate-console/console/application/client_class.py:183
msgid "A file with CA certificates now exists" msgid "A file with CA certificates now exists"
msgstr "Файл с сертификатом удостоверяющего центра создан" msgstr "Файл с сертификатом удостоверяющего центра создан"
#: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:307 #: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:311
msgid "You do not have a certificate. Use --gen-cert-by HOST to generate new request or --get-cert-from HOST to get a new certificate from the server." msgid "You do not have a certificate. Use --gen-cert-by HOST to generate new request or --get-cert-from HOST to get a new certificate from the server."
msgstr "У Вас нет сертификата. Используйте ключ --gen-cert-by HOST для генерации запроса на сертитфикат или ключ --get-cert-from HOST чтобы забрать сертификат с сервера." msgstr "У Вас нет сертификата. Используйте ключ --gen-cert-by HOST для генерации запроса на сертитфикат или ключ --get-cert-from HOST чтобы забрать сертификат с сервера."
#: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:379 #: /var/calculate/mydir/git/calculate-console/console/application/cert_func.py:383
msgid "Password: " msgid "Password: "
msgstr "Пароль: " msgstr "Пароль: "
@ -782,9 +797,6 @@ msgstr "Сервер не является доверенным"
#~ msgid "Certificate number - %s" #~ msgid "Certificate number - %s"
#~ msgstr "Номер сертификата - %s" #~ msgstr "Номер сертификата - %s"
#~ msgid "Date issue of certificate - %s"
#~ msgstr "Дата подписания сертификата - %s"
#~ msgid "Active session on server: " #~ msgid "Active session on server: "
#~ msgstr "Активные сессии на сервере:" #~ msgstr "Активные сессии на сервере:"
@ -948,9 +960,6 @@ msgstr "Сервер не является доверенным"
#~ msgid "Certificate not found in the server database!" #~ msgid "Certificate not found in the server database!"
#~ msgstr "Сертификат не найден в БД сервера!" #~ msgstr "Сертификат не найден в БД сервера!"
#~ msgid "Adding the certificate to the server database..."
#~ msgstr "Добавление сертификата в БД сервера..."
#~ msgid "CERTIFICATE ADDED" #~ msgid "CERTIFICATE ADDED"
#~ msgstr "Сертификат добавлен" #~ msgstr "Сертификат добавлен"

Loading…
Cancel
Save