diff --git a/locale/pt_BR.po b/locale/pt_BR.po index 7f983b9..1938cab 100644 --- a/locale/pt_BR.po +++ b/locale/pt_BR.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: pw3270 5.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-07-29 10:26-0300\n" +"POT-Creation-Date: 2020-07-31 13:59-0300\n" "PO-Revision-Date: 2020-07-27 18:12-0300\n" "Last-Translator: Perry Werneck \n" "Language-Team: Português <>\n" @@ -30,7 +30,7 @@ msgstr "%dx%d é negativa ou zero" msgid "%dx%d screen size is bigger than the maximum size" msgstr "Tela %dx%d é maior que o tamanho máximo" -#: src/core/iocalls.c:554 src/core/iocalls.c:571 +#: src/core/iocalls.c:508 src/core/iocalls.c:525 #, c-format msgid "%s" msgstr "%s" @@ -359,11 +359,11 @@ msgstr "Não posso enviar requisição HTTP" msgid "Can't set LDAP protocol version" msgstr "Não é possível setar a versão do protocolo LDAP" -#: src/core/iocalls.c:570 +#: src/core/iocalls.c:524 msgid "Can't set socket to blocking mode." msgstr "Não foi possível mudar o socket para o modo blocante." -#: src/core/iocalls.c:570 +#: src/core/iocalls.c:524 msgid "Can't set socket to non blocking mode" msgstr "Não foi possível setar o socket para o modo não blocante." @@ -480,7 +480,7 @@ msgstr "Comando incompleto, transferência cancelada" msgid "Connect on startup" msgstr "Conectar ao iniciar" -#: src/core/iocalls.c:538 src/core/windows/connect.c:317 +#: src/core/iocalls.c:492 src/core/windows/connect.c:317 #: src/core/windows/connect.c:333 msgid "Connection error" msgstr "Erro de conexão" @@ -739,7 +739,7 @@ msgstr "Erro de formato no campo \"notAfter\" do certificado" msgid "Format error in certificate's notBefore field" msgstr "Erro de formato no campo \"notBefore\" do certificado" -#: src/core/properties/boolean.c:175 +#: src/core/properties/boolean.c:178 msgid "Formatted screen" msgstr "Tela formatada" @@ -751,7 +751,7 @@ msgstr "Tela cheia" msgid "Got an invalid certificate revocation list from server" msgstr "Servidor enviou uma lista de certificados revogados inválida" -#: src/core/properties/boolean.c:154 +#: src/core/properties/boolean.c:157 msgid "Has selected area" msgstr "Tem área selecionada" @@ -929,23 +929,23 @@ msgstr "Opção xxxxxxxx inválida: Transferência cancelada" msgid "Invalid oversize" msgstr "Valor inválido para 'oversize'" -#: src/core/properties/boolean.c:75 +#: src/core/properties/boolean.c:78 msgid "Is connection secure" msgstr "A conexão é segura ?" -#: src/core/properties/boolean.c:168 +#: src/core/properties/boolean.c:171 msgid "Is starting (no first screen)?" msgstr "Está iniciando (não recebeu a primeira tela)?" -#: src/core/properties/boolean.c:68 +#: src/core/properties/boolean.c:71 msgid "Is terminal connected" msgstr "O terminal está conectado" -#: src/core/properties/boolean.c:147 +#: src/core/properties/boolean.c:150 msgid "Is terminal in the INITIAL_E state?" msgstr "O terminal está no estad INITIAL_E?" -#: src/core/properties/boolean.c:61 +#: src/core/properties/boolean.c:64 msgid "Is terminal ready" msgstr "O terminal está pronto" @@ -973,7 +973,7 @@ msgstr "Última mensagem de programa" msgid "Left" msgstr "Esquerda" -#: src/core/properties/boolean.c:182 +#: src/core/properties/boolean.c:185 msgid "Lock keyboard on operator error" msgstr "Bloqueia teclado em caso de erro do operador" @@ -1095,11 +1095,11 @@ msgstr "" msgid "No transfer in progress" msgstr "Nenhuma transferência em andamento" -#: src/core/properties/boolean.c:91 +#: src/core/properties/boolean.c:94 msgid "Non zero if the host is AS400." msgstr "Diferente de zero se o host é AS400" -#: src/core/properties/boolean.c:83 +#: src/core/properties/boolean.c:86 msgid "Non zero if the host is TSO." msgstr "Diferente de zero se o host é TSO" @@ -1455,7 +1455,7 @@ msgstr "Show timer when processing" msgid "Smart paste" msgstr "Colar inteligente" -#: src/core/iocalls.c:552 src/core/iocalls.c:569 +#: src/core/iocalls.c:506 src/core/iocalls.c:523 msgid "Socket error" msgstr "Erro no socket" @@ -1471,11 +1471,11 @@ msgstr "Erro ao enviar dados para a rede" msgid "Sound" msgstr "Som" -#: src/core/properties/boolean.c:126 +#: src/core/properties/boolean.c:129 msgid "State is 3270, TN3270e or SSCP" msgstr "Estado do terminal é 3270, TN3270e or SSCP" -#: src/core/properties/boolean.c:161 +#: src/core/properties/boolean.c:164 msgid "Still have text to paste" msgstr "Ainda existe texto para colar" @@ -2178,11 +2178,11 @@ msgstr "desabilitar" msgid "enable" msgstr "habilitar" -#: src/core/iocalls.c:553 +#: src/core/iocalls.c:507 msgid "fcntl() error when getting socket state." msgstr "erro fcntl() ao obter estado do socket." -#: src/core/iocalls.c:539 +#: src/core/iocalls.c:493 msgid "ioctlsocket(FIONBIO) failed." msgstr "ioctlsocket(FIONBIO) failed." @@ -2194,7 +2194,7 @@ msgstr "Revisão da lib3270" msgid "lib3270 version" msgstr "Versão da lib3270" -#: src/core/properties/boolean.c:189 +#: src/core/properties/boolean.c:192 msgid "numeric lock" msgstr "numeric lock" diff --git a/src/core/host.c b/src/core/host.c index 2ad8dc6..384b351 100644 --- a/src/core/host.c +++ b/src/core/host.c @@ -237,11 +237,11 @@ void lib3270_st_changed(H3270 *hSession, LIB3270_STATE tx, int mode) { struct lib3270_linked_list_node * node; - debug("%s(%s,%d)",__FUNCTION__,lib3270_connection_state_get_name(tx),mode); + debug("%s(%s,%d)",__FUNCTION__,lib3270_state_get_name(tx),mode); trace_dsn( hSession, "Notifying state %s with mode %d.\n", - lib3270_connection_state_get_name(tx), + lib3270_state_get_name(tx), mode ); diff --git a/src/core/properties/boolean.c b/src/core/properties/boolean.c index 6b198d7..9fc32db 100644 --- a/src/core/properties/boolean.c +++ b/src/core/properties/boolean.c @@ -45,15 +45,19 @@ return hSession->starting != 0; } - int lib3270_disable_crl_download(H3270 *hSession, int enabled) - { #ifdef SSL_ENABLE_CRL_CHECK + LIB3270_EXPORT int lib3270_ssl_set_crl_download(H3270 *hSession, int enabled) + { + FAIL_IF_ONLINE(hSession); hSession->ssl.crl.download = enabled ? 1 : 0; return 0; + } #else + LIB3270_EXPORT int lib3270_ssl_set_crl_download(H3270 GNUC_UNUSED(*hSession), int GNUC_UNUSED(enabled)) + { return errno = ENOTSUP; -#endif // SSL_ENABLE_CRL_CHECK } +#endif // SSL_ENABLE_CRL_CHECK const LIB3270_INT_PROPERTY * lib3270_get_boolean_properties_list(void) { diff --git a/src/core/telnet.c b/src/core/telnet.c index 110ff32..a79393b 100644 --- a/src/core/telnet.c +++ b/src/core/telnet.c @@ -2016,24 +2016,48 @@ const char * lib3270_connection_state_get_name(const LIB3270_CSTATE cstate) { static const char *state_names[] = { - "unconnected", - "resolving", - "pending", - "connected initial", - "TN3270 NVT", - "TN3270 3270", - "TN3270E", - "TN3270E NVT", - "TN3270E SSCP-LU", - "TN3270E 3270" + N_("Unconnected"), + N_("Resolving"), + N_("Pending"), + N_("Connected initial"), + N_("TN3270 NVT"), + N_("TN3270 3270"), + N_("TN3270E"), + N_("TN3270E NVT"), + N_("TN3270E SSCP-LU"), + N_("TN3270E 3270") }; if(cstate > (sizeof(state_names)/sizeof(state_names[0]))) - return "unknown"; + return _("Unknown"); - return state_names[cstate]; + return dgettext(GETTEXT_PACKAGE,state_names[cstate]); } +LIB3270_EXPORT const char * lib3270_state_get_name(const LIB3270_STATE state) +{ + static const char *state_names[] = + { + N_("Resolving"), + N_("Connecting"), + N_("Half connect"), + N_("Connect"), + N_("3270 Mode"), + N_("Line mode"), + N_("Remodel"), + N_("Printer"), + N_("Exiting"), + N_("Charset"), + }; + + if(state > (sizeof(state_names)/sizeof(state_names[0]))) + return _("Unknown"); + + return dgettext(GETTEXT_PACKAGE,state_names[state]); + +} + + /** * Check for switches between NVT, SSCP-LU and 3270 modes. * diff --git a/src/include/lib3270.h b/src/include/lib3270.h index d07bbb4..a8d8caa 100644 --- a/src/include/lib3270.h +++ b/src/include/lib3270.h @@ -686,6 +686,8 @@ LIB3270_EXPORT const char * lib3270_connection_state_get_name(const LIB3270_CSTATE cstate); + LIB3270_EXPORT const char * lib3270_state_get_name(const LIB3270_STATE state); + /** * @brief Pretend that a sequence of keys was entered at the keyboard. * diff --git a/src/include/lib3270/properties.h b/src/include/lib3270/properties.h index 5674d26..3c59d13 100644 --- a/src/include/lib3270/properties.h +++ b/src/include/lib3270/properties.h @@ -220,7 +220,7 @@ * * @return 0 if ok or error code if not (Sets errno). * - * @retval 0 Download of the CRL was disabled. + * @retval 0 Success, the property was set. * @retval ENOTSUP No SSL/TLS support. */ LIB3270_EXPORT int lib3270_ssl_set_crl_download(H3270 *hSession, int enabled); -- libgit2 0.21.2