Commit ecf3f0c57df2333548e7cf89aa71ec1e8bfafa0e
1 parent
187926cf
Exists in
master
and in
5 other branches
Implementando funções na extensão LibreOffice
Showing
9 changed files
with
302 additions
and
146 deletions
Show diff stats
po/pt_BR.po
| @@ -5,7 +5,7 @@ msgid "" | @@ -5,7 +5,7 @@ msgid "" | ||
| 5 | msgstr "" | 5 | msgstr "" |
| 6 | "Project-Id-Version: pw3270 5.0\n" | 6 | "Project-Id-Version: pw3270 5.0\n" |
| 7 | "Report-Msgid-Bugs-To: \n" | 7 | "Report-Msgid-Bugs-To: \n" |
| 8 | -"POT-Creation-Date: 2013-02-26 19:13-0300\n" | 8 | +"POT-Creation-Date: 2013-02-27 07:14-0300\n" |
| 9 | "PO-Revision-Date: 2013-02-25 14:46-0300\n" | 9 | "PO-Revision-Date: 2013-02-25 14:46-0300\n" |
| 10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" | 10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" |
| 11 | "Language-Team: Português <>\n" | 11 | "Language-Team: Português <>\n" |
| @@ -83,7 +83,7 @@ msgstr "%s: Familia %d é inválida" | @@ -83,7 +83,7 @@ msgstr "%s: Familia %d é inválida" | ||
| 83 | msgid "%s:%d" | 83 | msgid "%s:%d" |
| 84 | msgstr "%s:%d" | 84 | msgstr "%s:%d" |
| 85 | 85 | ||
| 86 | -#: main.c:330 | 86 | +#: main.c:318 |
| 87 | msgid "- 3270 Emulator for Gtk" | 87 | msgid "- 3270 Emulator for Gtk" |
| 88 | msgstr "- Emulador 3270 para GTK" | 88 | msgstr "- Emulador 3270 para GTK" |
| 89 | 89 | ||
| @@ -164,7 +164,7 @@ msgstr "" | @@ -164,7 +164,7 @@ msgstr "" | ||
| 164 | msgid "<b>SSL state is undefined</b>Unexpected SSL status %ld" | 164 | msgid "<b>SSL state is undefined</b>Unexpected SSL status %ld" |
| 165 | msgstr "<b>Estado do SSL é indefinido</b>Estado SSL inesperado %ld" | 165 | msgstr "<b>Estado do SSL é indefinido</b>Estado SSL inesperado %ld" |
| 166 | 166 | ||
| 167 | -#: main.c:350 | 167 | +#: main.c:338 |
| 168 | msgid "" | 168 | msgid "" |
| 169 | "<b>Valid options:</b>\n" | 169 | "<b>Valid options:</b>\n" |
| 170 | "\n" | 170 | "\n" |
| @@ -200,7 +200,7 @@ msgstr "Sobre a segurança" | @@ -200,7 +200,7 @@ msgstr "Sobre a segurança" | ||
| 200 | msgid "Action failed" | 200 | msgid "Action failed" |
| 201 | msgstr "Ação falhou" | 201 | msgstr "Ação falhou" |
| 202 | 202 | ||
| 203 | -#: ui/00default.xml:64 | 203 | +#: ui/00default.xml:286 |
| 204 | msgid "Add to copy" | 204 | msgid "Add to copy" |
| 205 | msgstr "Adicionar à cópia" | 205 | msgstr "Adicionar à cópia" |
| 206 | 206 | ||
| @@ -208,7 +208,7 @@ msgstr "Adicionar à cópia" | @@ -208,7 +208,7 @@ msgstr "Adicionar à cópia" | ||
| 208 | msgid "Add/Remove _CR at end of line" | 208 | msgid "Add/Remove _CR at end of line" |
| 209 | msgstr "Adicionar/Remover _CR no final da linha" | 209 | msgstr "Adicionar/Remover _CR no final da linha" |
| 210 | 210 | ||
| 211 | -#: ui/00default.xml:132 | 211 | +#: ui/00default.xml:354 |
| 212 | msgid "Alert sound" | 212 | msgid "Alert sound" |
| 213 | msgstr "Aviso sonoro" | 213 | msgstr "Aviso sonoro" |
| 214 | 214 | ||
| @@ -217,11 +217,11 @@ msgid "An error occurred trying to allocate memory. This should never happen." | @@ -217,11 +217,11 @@ msgid "An error occurred trying to allocate memory. This should never happen." | ||
| 217 | msgstr "" | 217 | msgstr "" |
| 218 | "Ocorreu um erro ao tentar alocar memória. Isso nunca deveria acontecer." | 218 | "Ocorreu um erro ao tentar alocar memória. Isso nunca deveria acontecer." |
| 219 | 219 | ||
| 220 | -#: main.c:314 main.c:316 | 220 | +#: main.c:302 main.c:304 |
| 221 | msgid "Application name" | 221 | msgid "Application name" |
| 222 | msgstr "Nome da aplicação" | 222 | msgstr "Nome da aplicação" |
| 223 | 223 | ||
| 224 | -#: ui/10keypad.xml:467 | 224 | +#: ui/10keypad.xml:155 |
| 225 | msgid "Attn" | 225 | msgid "Attn" |
| 226 | msgstr "Attn" | 226 | msgstr "Attn" |
| 227 | 227 | ||
| @@ -238,7 +238,7 @@ msgstr "Authority and issuer serial number mismatch" | @@ -238,7 +238,7 @@ msgstr "Authority and issuer serial number mismatch" | ||
| 238 | msgid "Authority and subject key identifier mismatch" | 238 | msgid "Authority and subject key identifier mismatch" |
| 239 | msgstr "Authority and subject key identifier mismatch" | 239 | msgstr "Authority and subject key identifier mismatch" |
| 240 | 240 | ||
| 241 | -#: ui/00default.xml:127 | 241 | +#: ui/00default.xml:349 |
| 242 | msgid "Auto-Reconnect" | 242 | msgid "Auto-Reconnect" |
| 243 | msgstr "Reconectar automaticamente" | 243 | msgstr "Reconectar automaticamente" |
| 244 | 244 | ||
| @@ -262,11 +262,11 @@ msgstr "Versão winsock inválida" | @@ -262,11 +262,11 @@ msgstr "Versão winsock inválida" | ||
| 262 | msgid "Black" | 262 | msgid "Black" |
| 263 | msgstr "Preto" | 263 | msgstr "Preto" |
| 264 | 264 | ||
| 265 | -#: ui/00default.xml:125 | 265 | +#: ui/00default.xml:347 |
| 266 | msgid "Blank Fill" | 266 | msgid "Blank Fill" |
| 267 | msgstr "Completar com espaços" | 267 | msgstr "Completar com espaços" |
| 268 | 268 | ||
| 269 | -#: ui/00default.xml:118 | 269 | +#: ui/00default.xml:340 |
| 270 | msgid "Blinking Cursor" | 270 | msgid "Blinking Cursor" |
| 271 | msgstr "Cursor piscante" | 271 | msgstr "Cursor piscante" |
| 272 | 272 | ||
| @@ -274,7 +274,7 @@ msgstr "Cursor piscante" | @@ -274,7 +274,7 @@ msgstr "Cursor piscante" | ||
| 274 | msgid "Blue" | 274 | msgid "Blue" |
| 275 | msgstr "Azul" | 275 | msgstr "Azul" |
| 276 | 276 | ||
| 277 | -#: ui/00default.xml:128 | 277 | +#: ui/00default.xml:350 |
| 278 | msgid "Bold" | 278 | msgid "Bold" |
| 279 | msgstr "Negrito" | 279 | msgstr "Negrito" |
| 280 | 280 | ||
| @@ -282,7 +282,7 @@ msgstr "Negrito" | @@ -282,7 +282,7 @@ msgstr "Negrito" | ||
| 282 | msgid "Brazilian Public Software Portal" | 282 | msgid "Brazilian Public Software Portal" |
| 283 | msgstr "Portal do Software Público Brasileiro" | 283 | msgstr "Portal do Software Público Brasileiro" |
| 284 | 284 | ||
| 285 | -#: ui/10keypad.xml:468 | 285 | +#: ui/10keypad.xml:156 |
| 286 | msgid "Break" | 286 | msgid "Break" |
| 287 | msgstr "Break" | 287 | msgstr "Break" |
| 288 | 288 | ||
| @@ -474,7 +474,7 @@ msgstr "Tabela de tradução tem %d entradas, precisa de 256" | @@ -474,7 +474,7 @@ msgstr "Tabela de tradução tem %d entradas, precisa de 256" | ||
| 474 | msgid "Charset has more than 256 entries" | 474 | msgid "Charset has more than 256 entries" |
| 475 | msgstr "Tabela de tradução tem mais de 256 caracteres" | 475 | msgstr "Tabela de tradução tem mais de 256 caracteres" |
| 476 | 476 | ||
| 477 | -#: ui/00default.xml:79 | 477 | +#: ui/10keypad.xml:147 |
| 478 | msgid "Clear" | 478 | msgid "Clear" |
| 479 | msgstr "Limpar" | 479 | msgstr "Limpar" |
| 480 | 480 | ||
| @@ -486,7 +486,7 @@ msgstr "Tema de cores:" | @@ -486,7 +486,7 @@ msgstr "Tema de cores:" | ||
| 486 | msgid "Color setup" | 486 | msgid "Color setup" |
| 487 | msgstr "Configuração de cores" | 487 | msgstr "Configuração de cores" |
| 488 | 488 | ||
| 489 | -#: ui/00default.xml:107 | 489 | +#: ui/00default.xml:329 |
| 490 | msgid "Colors" | 490 | msgid "Colors" |
| 491 | msgstr "Cores" | 491 | msgstr "Cores" |
| 492 | 492 | ||
| @@ -494,7 +494,7 @@ msgstr "Cores" | @@ -494,7 +494,7 @@ msgstr "Cores" | ||
| 494 | msgid "Complete" | 494 | msgid "Complete" |
| 495 | msgstr "Completo" | 495 | msgstr "Completo" |
| 496 | 496 | ||
| 497 | -#: ui/00default.xml:117 | 497 | +#: ui/00default.xml:339 |
| 498 | msgid "Connect on startup" | 498 | msgid "Connect on startup" |
| 499 | msgstr "Conectar ao iniciar" | 499 | msgstr "Conectar ao iniciar" |
| 500 | 500 | ||
| @@ -502,19 +502,19 @@ msgstr "Conectar ao iniciar" | @@ -502,19 +502,19 @@ msgstr "Conectar ao iniciar" | ||
| 502 | msgid "Connection reset by peer" | 502 | msgid "Connection reset by peer" |
| 503 | msgstr "Conexão foi cancelada pelo servidor" | 503 | msgstr "Conexão foi cancelada pelo servidor" |
| 504 | 504 | ||
| 505 | -#: ui/00default.xml:61 | 505 | +#: ui/00default.xml:283 |
| 506 | msgid "Copy" | 506 | msgid "Copy" |
| 507 | msgstr "Copiar" | 507 | msgstr "Copiar" |
| 508 | 508 | ||
| 509 | -#: ui/99debug.xml:566 | 509 | +#: ui/99debug.xml:200 |
| 510 | msgid "Copy as HTML" | 510 | msgid "Copy as HTML" |
| 511 | msgstr "Copiar como HTML" | 511 | msgstr "Copiar como HTML" |
| 512 | 512 | ||
| 513 | -#: ui/00default.xml:62 | 513 | +#: ui/00default.xml:284 |
| 514 | msgid "Copy as table" | 514 | msgid "Copy as table" |
| 515 | msgstr "Copiar como tabela" | 515 | msgstr "Copiar como tabela" |
| 516 | 516 | ||
| 517 | -#: colors.c:418 ui/00default.xml:124 | 517 | +#: colors.c:418 ui/00default.xml:346 |
| 518 | msgid "Cross hair cursor" | 518 | msgid "Cross hair cursor" |
| 519 | msgstr "Cursor mira" | 519 | msgstr "Cursor mira" |
| 520 | 520 | ||
| @@ -527,7 +527,7 @@ msgstr "Atual (%s)" | @@ -527,7 +527,7 @@ msgstr "Atual (%s)" | ||
| 527 | msgid "Custom colors" | 527 | msgid "Custom colors" |
| 528 | msgstr "Cores personalizadas" | 528 | msgstr "Cores personalizadas" |
| 529 | 529 | ||
| 530 | -#: ui/00default.xml:65 | 530 | +#: ui/00default.xml:287 |
| 531 | msgid "Cut" | 531 | msgid "Cut" |
| 532 | msgstr "Recortar" | 532 | msgstr "Recortar" |
| 533 | 533 | ||
| @@ -539,7 +539,7 @@ msgstr "Cilindros" | @@ -539,7 +539,7 @@ msgstr "Cilindros" | ||
| 539 | msgid "DFT B_uffer size:" | 539 | msgid "DFT B_uffer size:" |
| 540 | msgstr "Tamanho do b_uffer DFT:" | 540 | msgstr "Tamanho do b_uffer DFT:" |
| 541 | 541 | ||
| 542 | -#: ui/99debug.xml:571 | 542 | +#: ui/99debug.xml:205 |
| 543 | msgid "DS Trace" | 543 | msgid "DS Trace" |
| 544 | msgstr "DS Trace" | 544 | msgstr "DS Trace" |
| 545 | 545 | ||
| @@ -555,11 +555,11 @@ msgstr "Verde Escuro" | @@ -555,11 +555,11 @@ msgstr "Verde Escuro" | ||
| 555 | msgid "Data conversion error" | 555 | msgid "Data conversion error" |
| 556 | msgstr "Erro na conversão de dados" | 556 | msgstr "Erro na conversão de dados" |
| 557 | 557 | ||
| 558 | -#: ui/99debug.xml:579 | 558 | +#: ui/99debug.xml:213 |
| 559 | msgid "Debug" | 559 | msgid "Debug" |
| 560 | msgstr "Depuração" | 560 | msgstr "Depuração" |
| 561 | 561 | ||
| 562 | -#: ui/99debug.xml:581 | 562 | +#: ui/99debug.xml:215 |
| 563 | msgid "Debug window updates" | 563 | msgid "Debug window updates" |
| 564 | msgstr "Mostrar atualizações de janela" | 564 | msgstr "Mostrar atualizações de janela" |
| 565 | 565 | ||
| @@ -567,7 +567,7 @@ msgstr "Mostrar atualizações de janela" | @@ -567,7 +567,7 @@ msgstr "Mostrar atualizações de janela" | ||
| 567 | msgid "Default" | 567 | msgid "Default" |
| 568 | msgstr "Padrão" | 568 | msgstr "Padrão" |
| 569 | 569 | ||
| 570 | -#: ui/00default.xml:81 | 570 | +#: ui/00default.xml:303 |
| 571 | msgid "Delete field" | 571 | msgid "Delete field" |
| 572 | msgstr "Apagar campo" | 572 | msgstr "Apagar campo" |
| 573 | 573 | ||
| @@ -599,7 +599,7 @@ msgstr "Nome do servidor em branco" | @@ -599,7 +599,7 @@ msgstr "Nome do servidor em branco" | ||
| 599 | msgid "Empty port name" | 599 | msgid "Empty port name" |
| 600 | msgstr "Porta em branco" | 600 | msgstr "Porta em branco" |
| 601 | 601 | ||
| 602 | -#: ui/10keypad.xml:463 | 602 | +#: ui/10keypad.xml:151 |
| 603 | msgid "" | 603 | msgid "" |
| 604 | "Erase\n" | 604 | "Erase\n" |
| 605 | "EOF" | 605 | "EOF" |
| @@ -607,7 +607,7 @@ msgstr "" | @@ -607,7 +607,7 @@ msgstr "" | ||
| 607 | "Apagar\n" | 607 | "Apagar\n" |
| 608 | "Campo" | 608 | "Campo" |
| 609 | 609 | ||
| 610 | -#: ui/10keypad.xml:464 | 610 | +#: ui/10keypad.xml:152 |
| 611 | msgid "" | 611 | msgid "" |
| 612 | "Erase\n" | 612 | "Erase\n" |
| 613 | "Input" | 613 | "Input" |
| @@ -615,15 +615,15 @@ msgstr "" | @@ -615,15 +615,15 @@ msgstr "" | ||
| 615 | "Apagar\n" | 615 | "Apagar\n" |
| 616 | "Campos" | 616 | "Campos" |
| 617 | 617 | ||
| 618 | -#: ui/00default.xml:80 | 618 | +#: ui/00default.xml:302 |
| 619 | msgid "Erase input" | 619 | msgid "Erase input" |
| 620 | msgstr "Apagar campos" | 620 | msgstr "Apagar campos" |
| 621 | 621 | ||
| 622 | -#: ui/00default.xml:82 | 622 | +#: ui/00default.xml:304 |
| 623 | msgid "Erase to end of field" | 623 | msgid "Erase to end of field" |
| 624 | msgstr "Apagar até o final do campo" | 624 | msgstr "Apagar até o final do campo" |
| 625 | 625 | ||
| 626 | -#: ui/00default.xml:83 | 626 | +#: ui/00default.xml:305 |
| 627 | msgid "Erase to end of line" | 627 | msgid "Erase to end of line" |
| 628 | msgstr "Apagar até o final da linha" | 628 | msgstr "Apagar até o final da linha" |
| 629 | 629 | ||
| @@ -666,7 +666,7 @@ msgstr "Erro lendo %s" | @@ -666,7 +666,7 @@ msgstr "Erro lendo %s" | ||
| 666 | msgid "Error resolving %s: %s" | 666 | msgid "Error resolving %s: %s" |
| 667 | msgstr "Erro ao resolver %s: %s" | 667 | msgstr "Erro ao resolver %s: %s" |
| 668 | 668 | ||
| 669 | -#: ui/99debug.xml:573 | 669 | +#: ui/99debug.xml:207 |
| 670 | msgid "Event Trace" | 670 | msgid "Event Trace" |
| 671 | msgstr "Trace de eventos" | 671 | msgstr "Trace de eventos" |
| 672 | 672 | ||
| @@ -714,15 +714,15 @@ msgstr "Format error in certificate's notAfter field" | @@ -714,15 +714,15 @@ msgstr "Format error in certificate's notAfter field" | ||
| 714 | msgid "Format error in certificate's notBefore field" | 714 | msgid "Format error in certificate's notBefore field" |
| 715 | msgstr "Format error in certificate's notBefore field" | 715 | msgstr "Format error in certificate's notBefore field" |
| 716 | 716 | ||
| 717 | -#: ui/00default.xml:121 | 717 | +#: ui/00default.xml:343 |
| 718 | msgid "Full Screen" | 718 | msgid "Full Screen" |
| 719 | msgstr "Tela cheia" | 719 | msgstr "Tela cheia" |
| 720 | 720 | ||
| 721 | -#: ui/10functions.xml:347 | 721 | +#: ui/10functions.xml:35 |
| 722 | msgid "Function bar" | 722 | msgid "Function bar" |
| 723 | msgstr "Barra de funções" | 723 | msgstr "Barra de funções" |
| 724 | 724 | ||
| 725 | -#: main.c:90 main.c:391 | 725 | +#: main.c:90 main.c:379 |
| 726 | msgid "GTK Version mismatch" | 726 | msgid "GTK Version mismatch" |
| 727 | msgstr "Divergência de versão GTK" | 727 | msgstr "Divergência de versão GTK" |
| 728 | 728 | ||
| @@ -763,7 +763,7 @@ msgstr "HTTP Proxy: EOF inesperado" | @@ -763,7 +763,7 @@ msgstr "HTTP Proxy: EOF inesperado" | ||
| 763 | msgid "HTTP Proxy: unrecognized reply" | 763 | msgid "HTTP Proxy: unrecognized reply" |
| 764 | msgstr "HTTP Proxy: Resposta desconhecida" | 764 | msgstr "HTTP Proxy: Resposta desconhecida" |
| 765 | 765 | ||
| 766 | -#: ui/00default.xml:142 | 766 | +#: ui/00default.xml:364 |
| 767 | msgid "Help" | 767 | msgid "Help" |
| 768 | msgstr "Ajuda" | 768 | msgstr "Ajuda" |
| 769 | 769 | ||
| @@ -791,11 +791,11 @@ msgstr "Servidor rejeitou o tipo de dispositivo ou requisição" | @@ -791,11 +791,11 @@ msgstr "Servidor rejeitou o tipo de dispositivo ou requisição" | ||
| 791 | msgid "Host rejected resource(s)" | 791 | msgid "Host rejected resource(s)" |
| 792 | msgstr "Servidor rejeitou recurso(s)" | 792 | msgstr "Servidor rejeitou recurso(s)" |
| 793 | 793 | ||
| 794 | -#: main.c:322 | 794 | +#: main.c:310 |
| 795 | msgid "Host system type" | 795 | msgid "Host system type" |
| 796 | msgstr "Tipo do sistema no servidor" | 796 | msgstr "Tipo do sistema no servidor" |
| 797 | 797 | ||
| 798 | -#: main.c:320 | 798 | +#: main.c:308 |
| 799 | msgid "Host to connect" | 799 | msgid "Host to connect" |
| 800 | msgstr "Servidor a conectar" | 800 | msgstr "Servidor a conectar" |
| 801 | 801 | ||
| @@ -824,7 +824,7 @@ msgstr "Comprimento de frame inválido" | @@ -824,7 +824,7 @@ msgstr "Comprimento de frame inválido" | ||
| 824 | msgid "Informations" | 824 | msgid "Informations" |
| 825 | msgstr "Informações" | 825 | msgstr "Informações" |
| 826 | 826 | ||
| 827 | -#: ui/00default.xml:137 | 827 | +#: ui/00default.xml:359 |
| 828 | msgid "Input method" | 828 | msgid "Input method" |
| 829 | msgstr "Método de entrada" | 829 | msgstr "Método de entrada" |
| 830 | 830 | ||
| @@ -871,7 +871,7 @@ msgstr "Sintaxe de proxy inválida" | @@ -871,7 +871,7 @@ msgstr "Sintaxe de proxy inválida" | ||
| 871 | msgid "Invalid proxy type '%.*s'" | 871 | msgid "Invalid proxy type '%.*s'" |
| 872 | msgstr "Tipo de proxy invalido '%.*s'" | 872 | msgstr "Tipo de proxy invalido '%.*s'" |
| 873 | 873 | ||
| 874 | -#: ui/00default.xml:130 | 874 | +#: ui/00default.xml:352 |
| 875 | msgid "Keep selected" | 875 | msgid "Keep selected" |
| 876 | msgstr "Manter selecionado" | 876 | msgstr "Manter selecionado" |
| 877 | 877 | ||
| @@ -887,7 +887,7 @@ msgstr "Teclado está bloqueado" | @@ -887,7 +887,7 @@ msgstr "Teclado está bloqueado" | ||
| 887 | msgid "LRECL:" | 887 | msgid "LRECL:" |
| 888 | msgstr "LRECL:" | 888 | msgstr "LRECL:" |
| 889 | 889 | ||
| 890 | -#: ui/10keypad.xml:413 | 890 | +#: ui/10keypad.xml:101 |
| 891 | msgid "Lateral keypad" | 891 | msgid "Lateral keypad" |
| 892 | msgstr "Barra lateral" | 892 | msgstr "Barra lateral" |
| 893 | 893 | ||
| @@ -904,7 +904,7 @@ msgstr "Faltando ']'" | @@ -904,7 +904,7 @@ msgstr "Faltando ']'" | ||
| 904 | msgid "Model %d (%s)" | 904 | msgid "Model %d (%s)" |
| 905 | msgstr "Modelo %d (%s)" | 905 | msgstr "Modelo %d (%s)" |
| 906 | 906 | ||
| 907 | -#: ui/00default.xml:119 | 907 | +#: ui/00default.xml:341 |
| 908 | msgid "Monocase" | 908 | msgid "Monocase" |
| 909 | msgstr "Só Maiúsculas" | 909 | msgstr "Só Maiúsculas" |
| 910 | 910 | ||
| @@ -940,7 +940,7 @@ msgstr "Erro de rede" | @@ -940,7 +940,7 @@ msgstr "Erro de rede" | ||
| 940 | msgid "Network startup error" | 940 | msgid "Network startup error" |
| 941 | msgstr "Erro ao iniciar a rede" | 941 | msgstr "Erro ao iniciar a rede" |
| 942 | 942 | ||
| 943 | -#: ui/00default.xml:189 | 943 | +#: ui/00default.xml:411 |
| 944 | msgid "Next field" | 944 | msgid "Next field" |
| 945 | msgstr "Próximo campo" | 945 | msgstr "Próximo campo" |
| 946 | 946 | ||
| @@ -1017,115 +1017,115 @@ msgstr "Other (VM/CMS)" | @@ -1017,115 +1017,115 @@ msgstr "Other (VM/CMS)" | ||
| 1017 | msgid "Out of memory" | 1017 | msgid "Out of memory" |
| 1018 | msgstr "Out of memory" | 1018 | msgstr "Out of memory" |
| 1019 | 1019 | ||
| 1020 | -#: ui/10keypad.xml:450 | 1020 | +#: ui/10keypad.xml:138 |
| 1021 | msgid "PA1" | 1021 | msgid "PA1" |
| 1022 | msgstr "PA1" | 1022 | msgstr "PA1" |
| 1023 | 1023 | ||
| 1024 | -#: ui/10keypad.xml:451 | 1024 | +#: ui/10keypad.xml:139 |
| 1025 | msgid "PA2" | 1025 | msgid "PA2" |
| 1026 | msgstr "PA2" | 1026 | msgstr "PA2" |
| 1027 | 1027 | ||
| 1028 | -#: ui/10keypad.xml:452 | 1028 | +#: ui/10keypad.xml:140 |
| 1029 | msgid "PA3" | 1029 | msgid "PA3" |
| 1030 | msgstr "PA3" | 1030 | msgstr "PA3" |
| 1031 | 1031 | ||
| 1032 | -#: ui/10functions.xml:348 | 1032 | +#: ui/10functions.xml:36 |
| 1033 | msgid "PF1" | 1033 | msgid "PF1" |
| 1034 | msgstr "PF1" | 1034 | msgstr "PF1" |
| 1035 | 1035 | ||
| 1036 | -#: ui/10functions.xml:357 | 1036 | +#: ui/10functions.xml:45 |
| 1037 | msgid "PF10" | 1037 | msgid "PF10" |
| 1038 | msgstr "PF10" | 1038 | msgstr "PF10" |
| 1039 | 1039 | ||
| 1040 | -#: ui/10functions.xml:358 | 1040 | +#: ui/10functions.xml:46 |
| 1041 | msgid "PF11" | 1041 | msgid "PF11" |
| 1042 | msgstr "PF11" | 1042 | msgstr "PF11" |
| 1043 | 1043 | ||
| 1044 | -#: ui/10functions.xml:359 | 1044 | +#: ui/10functions.xml:47 |
| 1045 | msgid "PF12" | 1045 | msgid "PF12" |
| 1046 | msgstr "PF12" | 1046 | msgstr "PF12" |
| 1047 | 1047 | ||
| 1048 | -#: ui/10functions.xml:362 | 1048 | +#: ui/10functions.xml:50 |
| 1049 | msgid "PF13" | 1049 | msgid "PF13" |
| 1050 | msgstr "PF13" | 1050 | msgstr "PF13" |
| 1051 | 1051 | ||
| 1052 | -#: ui/10functions.xml:363 | 1052 | +#: ui/10functions.xml:51 |
| 1053 | msgid "PF14" | 1053 | msgid "PF14" |
| 1054 | msgstr "PF14" | 1054 | msgstr "PF14" |
| 1055 | 1055 | ||
| 1056 | -#: ui/10functions.xml:364 | 1056 | +#: ui/10functions.xml:52 |
| 1057 | msgid "PF15" | 1057 | msgid "PF15" |
| 1058 | msgstr "PF15" | 1058 | msgstr "PF15" |
| 1059 | 1059 | ||
| 1060 | -#: ui/10functions.xml:365 | 1060 | +#: ui/10functions.xml:53 |
| 1061 | msgid "PF16" | 1061 | msgid "PF16" |
| 1062 | msgstr "PF16" | 1062 | msgstr "PF16" |
| 1063 | 1063 | ||
| 1064 | -#: ui/10functions.xml:366 | 1064 | +#: ui/10functions.xml:54 |
| 1065 | msgid "PF17" | 1065 | msgid "PF17" |
| 1066 | msgstr "PF17" | 1066 | msgstr "PF17" |
| 1067 | 1067 | ||
| 1068 | -#: ui/10functions.xml:367 | 1068 | +#: ui/10functions.xml:55 |
| 1069 | msgid "PF18" | 1069 | msgid "PF18" |
| 1070 | msgstr "PF18" | 1070 | msgstr "PF18" |
| 1071 | 1071 | ||
| 1072 | -#: ui/10functions.xml:368 | 1072 | +#: ui/10functions.xml:56 |
| 1073 | msgid "PF19" | 1073 | msgid "PF19" |
| 1074 | msgstr "PF19" | 1074 | msgstr "PF19" |
| 1075 | 1075 | ||
| 1076 | -#: ui/10functions.xml:349 | 1076 | +#: ui/10functions.xml:37 |
| 1077 | msgid "PF2" | 1077 | msgid "PF2" |
| 1078 | msgstr "PF2" | 1078 | msgstr "PF2" |
| 1079 | 1079 | ||
| 1080 | -#: ui/10functions.xml:369 | 1080 | +#: ui/10functions.xml:57 |
| 1081 | msgid "PF20" | 1081 | msgid "PF20" |
| 1082 | msgstr "PF20" | 1082 | msgstr "PF20" |
| 1083 | 1083 | ||
| 1084 | -#: ui/10functions.xml:370 | 1084 | +#: ui/10functions.xml:58 |
| 1085 | msgid "PF21" | 1085 | msgid "PF21" |
| 1086 | msgstr "PF21" | 1086 | msgstr "PF21" |
| 1087 | 1087 | ||
| 1088 | -#: ui/10functions.xml:371 | 1088 | +#: ui/10functions.xml:59 |
| 1089 | msgid "PF22" | 1089 | msgid "PF22" |
| 1090 | msgstr "PF22" | 1090 | msgstr "PF22" |
| 1091 | 1091 | ||
| 1092 | -#: ui/10functions.xml:372 | 1092 | +#: ui/10functions.xml:60 |
| 1093 | msgid "PF23" | 1093 | msgid "PF23" |
| 1094 | msgstr "PF23" | 1094 | msgstr "PF23" |
| 1095 | 1095 | ||
| 1096 | -#: ui/10functions.xml:373 | 1096 | +#: ui/10functions.xml:61 |
| 1097 | msgid "PF24" | 1097 | msgid "PF24" |
| 1098 | msgstr "PF24" | 1098 | msgstr "PF24" |
| 1099 | 1099 | ||
| 1100 | -#: ui/10functions.xml:350 | 1100 | +#: ui/10functions.xml:38 |
| 1101 | msgid "PF3" | 1101 | msgid "PF3" |
| 1102 | msgstr "PF3" | 1102 | msgstr "PF3" |
| 1103 | 1103 | ||
| 1104 | -#: ui/10functions.xml:351 | 1104 | +#: ui/10functions.xml:39 |
| 1105 | msgid "PF4" | 1105 | msgid "PF4" |
| 1106 | msgstr "PF4" | 1106 | msgstr "PF4" |
| 1107 | 1107 | ||
| 1108 | -#: ui/10functions.xml:352 | 1108 | +#: ui/10functions.xml:40 |
| 1109 | msgid "PF5" | 1109 | msgid "PF5" |
| 1110 | msgstr "PF5" | 1110 | msgstr "PF5" |
| 1111 | 1111 | ||
| 1112 | -#: ui/10functions.xml:353 | 1112 | +#: ui/10functions.xml:41 |
| 1113 | msgid "PF6" | 1113 | msgid "PF6" |
| 1114 | msgstr "PF6" | 1114 | msgstr "PF6" |
| 1115 | 1115 | ||
| 1116 | -#: ui/10functions.xml:354 | 1116 | +#: ui/10functions.xml:42 |
| 1117 | msgid "PF7" | 1117 | msgid "PF7" |
| 1118 | msgstr "PF7" | 1118 | msgstr "PF7" |
| 1119 | 1119 | ||
| 1120 | -#: ui/10functions.xml:355 | 1120 | +#: ui/10functions.xml:43 |
| 1121 | msgid "PF8" | 1121 | msgid "PF8" |
| 1122 | msgstr "PF8" | 1122 | msgstr "PF8" |
| 1123 | 1123 | ||
| 1124 | -#: ui/10functions.xml:356 | 1124 | +#: ui/10functions.xml:44 |
| 1125 | msgid "PF9" | 1125 | msgid "PF9" |
| 1126 | msgstr "PF9" | 1126 | msgstr "PF9" |
| 1127 | 1127 | ||
| 1128 | -#: main.c:348 | 1128 | +#: main.c:336 |
| 1129 | msgid "Parse error" | 1129 | msgid "Parse error" |
| 1130 | msgstr "Erro de interpretação" | 1130 | msgstr "Erro de interpretação" |
| 1131 | 1131 | ||
| @@ -1138,15 +1138,15 @@ msgstr "Erro de interpretação em %s" | @@ -1138,15 +1138,15 @@ msgstr "Erro de interpretação em %s" | ||
| 1138 | msgid "Passthru Proxy: send error" | 1138 | msgid "Passthru Proxy: send error" |
| 1139 | msgstr "Passthru Proxy: Erro ao enviar" | 1139 | msgstr "Passthru Proxy: Erro ao enviar" |
| 1140 | 1140 | ||
| 1141 | -#: ui/00default.xml:66 | 1141 | +#: ui/00default.xml:288 |
| 1142 | msgid "Paste" | 1142 | msgid "Paste" |
| 1143 | msgstr "Colar" | 1143 | msgstr "Colar" |
| 1144 | 1144 | ||
| 1145 | -#: ui/00default.xml:67 | 1145 | +#: ui/00default.xml:289 |
| 1146 | msgid "Paste next" | 1146 | msgid "Paste next" |
| 1147 | msgstr "Colar próximo" | 1147 | msgstr "Colar próximo" |
| 1148 | 1148 | ||
| 1149 | -#: ui/00default.xml:70 | 1149 | +#: ui/00default.xml:292 |
| 1150 | msgid "Paste text file" | 1150 | msgid "Paste text file" |
| 1151 | msgstr "Colar arquivo texto" | 1151 | msgstr "Colar arquivo texto" |
| 1152 | 1152 | ||
| @@ -1154,7 +1154,7 @@ msgstr "Colar arquivo texto" | @@ -1154,7 +1154,7 @@ msgstr "Colar arquivo texto" | ||
| 1154 | msgid "Paste text file contents" | 1154 | msgid "Paste text file contents" |
| 1155 | msgstr "Colar conteúdo de arquivo texto" | 1155 | msgstr "Colar conteúdo de arquivo texto" |
| 1156 | 1156 | ||
| 1157 | -#: ui/00default.xml:123 | 1157 | +#: ui/00default.xml:345 |
| 1158 | msgid "Paste with left margin" | 1158 | msgid "Paste with left margin" |
| 1159 | msgstr "Colar com margem esquerda" | 1159 | msgstr "Colar com margem esquerda" |
| 1160 | 1160 | ||
| @@ -1162,7 +1162,7 @@ msgstr "Colar com margem esquerda" | @@ -1162,7 +1162,7 @@ msgstr "Colar com margem esquerda" | ||
| 1162 | msgid "Path length constraint exceeded" | 1162 | msgid "Path length constraint exceeded" |
| 1163 | msgstr "Path length constraint exceeded" | 1163 | msgstr "Path length constraint exceeded" |
| 1164 | 1164 | ||
| 1165 | -#: main.c:317 | 1165 | +#: main.c:305 |
| 1166 | msgid "Path to application data files" | 1166 | msgid "Path to application data files" |
| 1167 | msgstr "Path to application data files" | 1167 | msgstr "Path to application data files" |
| 1168 | 1168 | ||
| @@ -1170,7 +1170,7 @@ msgstr "Path to application data files" | @@ -1170,7 +1170,7 @@ msgstr "Path to application data files" | ||
| 1170 | msgid "Pink" | 1170 | msgid "Pink" |
| 1171 | msgstr "Rosa" | 1171 | msgstr "Rosa" |
| 1172 | 1172 | ||
| 1173 | -#: ui/00default.xml:188 | 1173 | +#: ui/00default.xml:410 |
| 1174 | msgid "Previous field" | 1174 | msgid "Previous field" |
| 1175 | msgstr "Campo anterior" | 1175 | msgstr "Campo anterior" |
| 1176 | 1176 | ||
| @@ -1178,11 +1178,11 @@ msgstr "Campo anterior" | @@ -1178,11 +1178,11 @@ msgstr "Campo anterior" | ||
| 1178 | msgid "Primary space:" | 1178 | msgid "Primary space:" |
| 1179 | msgstr "Primary space:" | 1179 | msgstr "Primary space:" |
| 1180 | 1180 | ||
| 1181 | -#: ui/00default.xml:49 | 1181 | +#: ui/00default.xml:271 |
| 1182 | msgid "Print" | 1182 | msgid "Print" |
| 1183 | msgstr "Imprimir" | 1183 | msgstr "Imprimir" |
| 1184 | 1184 | ||
| 1185 | -#: ui/00default.xml:51 | 1185 | +#: ui/00default.xml:273 |
| 1186 | msgid "Print copy" | 1186 | msgid "Print copy" |
| 1187 | msgstr "Imprimir cópia" | 1187 | msgstr "Imprimir cópia" |
| 1188 | 1188 | ||
| @@ -1190,7 +1190,7 @@ msgstr "Imprimir cópia" | @@ -1190,7 +1190,7 @@ msgstr "Imprimir cópia" | ||
| 1190 | msgid "Print operation failed" | 1190 | msgid "Print operation failed" |
| 1191 | msgstr "Operação de impressão falhou" | 1191 | msgstr "Operação de impressão falhou" |
| 1192 | 1192 | ||
| 1193 | -#: ui/00default.xml:50 | 1193 | +#: ui/00default.xml:272 |
| 1194 | msgid "Print selected" | 1194 | msgid "Print selected" |
| 1195 | msgstr "Imprimir seleção" | 1195 | msgstr "Imprimir seleção" |
| 1196 | 1196 | ||
| @@ -1198,7 +1198,7 @@ msgstr "Imprimir seleção" | @@ -1198,7 +1198,7 @@ msgstr "Imprimir seleção" | ||
| 1198 | msgid "Print selection box" | 1198 | msgid "Print selection box" |
| 1199 | msgstr "Imprimir marca de seleção" | 1199 | msgstr "Imprimir marca de seleção" |
| 1200 | 1200 | ||
| 1201 | -#: print.c:743 ui/00default.xml:108 | 1201 | +#: print.c:743 ui/00default.xml:330 |
| 1202 | msgid "Print settings" | 1202 | msgid "Print settings" |
| 1203 | msgstr "Configurações de impressão" | 1203 | msgstr "Configurações de impressão" |
| 1204 | 1204 | ||
| @@ -1286,7 +1286,7 @@ msgstr "RPQ: can't resolve '%s': %s" | @@ -1286,7 +1286,7 @@ msgstr "RPQ: can't resolve '%s': %s" | ||
| 1286 | msgid "RPQ: gethostbyname error" | 1286 | msgid "RPQ: gethostbyname error" |
| 1287 | msgstr "RPQ: Erro em gethostbyname" | 1287 | msgstr "RPQ: Erro em gethostbyname" |
| 1288 | 1288 | ||
| 1289 | -#: ui/00default.xml:54 | 1289 | +#: ui/00default.xml:276 |
| 1290 | msgid "Receive file" | 1290 | msgid "Receive file" |
| 1291 | msgstr "Receber arquivo" | 1291 | msgstr "Receber arquivo" |
| 1292 | 1292 | ||
| @@ -1302,27 +1302,27 @@ msgstr "Formato de registro" | @@ -1302,27 +1302,27 @@ msgstr "Formato de registro" | ||
| 1302 | msgid "Red" | 1302 | msgid "Red" |
| 1303 | msgstr "Vermelho" | 1303 | msgstr "Vermelho" |
| 1304 | 1304 | ||
| 1305 | -#: ui/99debug.xml:580 | 1305 | +#: ui/99debug.xml:214 |
| 1306 | msgid "Reload buffer contents" | 1306 | msgid "Reload buffer contents" |
| 1307 | msgstr "Recarregar conteúdo do buffer" | 1307 | msgstr "Recarregar conteúdo do buffer" |
| 1308 | 1308 | ||
| 1309 | -#: ui/00default.xml:75 | 1309 | +#: ui/00default.xml:297 |
| 1310 | msgid "Remove selection" | 1310 | msgid "Remove selection" |
| 1311 | msgstr "Remover seleção" | 1311 | msgstr "Remover seleção" |
| 1312 | 1312 | ||
| 1313 | -#: ui/00default.xml:76 | 1313 | +#: ui/00default.xml:298 |
| 1314 | msgid "Reselect" | 1314 | msgid "Reselect" |
| 1315 | msgstr "Reselecionar" | 1315 | msgstr "Reselecionar" |
| 1316 | 1316 | ||
| 1317 | -#: ui/10keypad.xml:460 | 1317 | +#: ui/10keypad.xml:148 |
| 1318 | msgid "Reset" | 1318 | msgid "Reset" |
| 1319 | msgstr "Reset" | 1319 | msgstr "Reset" |
| 1320 | 1320 | ||
| 1321 | -#: ui/00default.xml:122 | 1321 | +#: ui/00default.xml:344 |
| 1322 | msgid "Resize on alternate screen" | 1322 | msgid "Resize on alternate screen" |
| 1323 | msgstr "Mudar tamanho do terminal em tela alternativa" | 1323 | msgstr "Mudar tamanho do terminal em tela alternativa" |
| 1324 | 1324 | ||
| 1325 | -#: ui/00default.xml:190 | 1325 | +#: ui/00default.xml:412 |
| 1326 | msgid "Return" | 1326 | msgid "Return" |
| 1327 | msgstr "Return" | 1327 | msgstr "Return" |
| 1328 | 1328 | ||
| @@ -1483,7 +1483,7 @@ msgstr "" | @@ -1483,7 +1483,7 @@ msgstr "" | ||
| 1483 | "SSL_write:\n" | 1483 | "SSL_write:\n" |
| 1484 | "%s" | 1484 | "%s" |
| 1485 | 1485 | ||
| 1486 | -#: ui/00default.xml:46 | 1486 | +#: ui/00default.xml:268 |
| 1487 | msgid "Save copy" | 1487 | msgid "Save copy" |
| 1488 | msgstr "Salvar cópia" | 1488 | msgstr "Salvar cópia" |
| 1489 | 1489 | ||
| @@ -1491,7 +1491,7 @@ msgstr "Salvar cópia" | @@ -1491,7 +1491,7 @@ msgstr "Salvar cópia" | ||
| 1491 | msgid "Save copy to file" | 1491 | msgid "Save copy to file" |
| 1492 | msgstr "Salvar cópia para arquivo" | 1492 | msgstr "Salvar cópia para arquivo" |
| 1493 | 1493 | ||
| 1494 | -#: ui/00default.xml:44 | 1494 | +#: ui/00default.xml:266 |
| 1495 | msgid "Save screen" | 1495 | msgid "Save screen" |
| 1496 | msgstr "Salvar tela" | 1496 | msgstr "Salvar tela" |
| 1497 | 1497 | ||
| @@ -1499,7 +1499,7 @@ msgstr "Salvar tela" | @@ -1499,7 +1499,7 @@ msgstr "Salvar tela" | ||
| 1499 | msgid "Save screen to file" | 1499 | msgid "Save screen to file" |
| 1500 | msgstr "Salvar tela para arquivo" | 1500 | msgstr "Salvar tela para arquivo" |
| 1501 | 1501 | ||
| 1502 | -#: ui/00default.xml:45 | 1502 | +#: ui/00default.xml:267 |
| 1503 | msgid "Save selected" | 1503 | msgid "Save selected" |
| 1504 | msgstr "Salvar seleção" | 1504 | msgstr "Salvar seleção" |
| 1505 | 1505 | ||
| @@ -1507,20 +1507,15 @@ msgstr "Salvar seleção" | @@ -1507,20 +1507,15 @@ msgstr "Salvar seleção" | ||
| 1507 | msgid "Save selection to file" | 1507 | msgid "Save selection to file" |
| 1508 | msgstr "Salvar seleção para arquivo" | 1508 | msgstr "Salvar seleção para arquivo" |
| 1509 | 1509 | ||
| 1510 | -#: ui/99debug.xml:572 | 1510 | +#: ui/99debug.xml:206 |
| 1511 | msgid "Screen Trace" | 1511 | msgid "Screen Trace" |
| 1512 | msgstr "Trace de tela" | 1512 | msgstr "Trace de tela" |
| 1513 | 1513 | ||
| 1514 | -#: ui/00default.xml:114 | 1514 | +#: ui/00default.xml:336 |
| 1515 | msgid "Screen size" | 1515 | msgid "Screen size" |
| 1516 | msgstr "Tamanho da tela" | 1516 | msgstr "Tamanho da tela" |
| 1517 | 1517 | ||
| 1518 | -#: ui/09scripts.xml:297 | ||
| 1519 | -#, fuzzy | ||
| 1520 | -msgid "Script" | ||
| 1521 | -msgstr "Scripts" | ||
| 1522 | - | ||
| 1523 | -#: ui/00default.xml:89 | 1518 | +#: ui/00default.xml:311 |
| 1524 | msgid "Scripts" | 1519 | msgid "Scripts" |
| 1525 | msgstr "Scripts" | 1520 | msgstr "Scripts" |
| 1526 | 1521 | ||
| @@ -1532,15 +1527,15 @@ msgstr "Secondary space:" | @@ -1532,15 +1527,15 @@ msgstr "Secondary space:" | ||
| 1532 | msgid "Secure connection was successful." | 1527 | msgid "Secure connection was successful." |
| 1533 | msgstr "Conexão segura efetuada com sucesso." | 1528 | msgstr "Conexão segura efetuada com sucesso." |
| 1534 | 1529 | ||
| 1535 | -#: ui/00default.xml:74 | 1530 | +#: ui/00default.xml:296 |
| 1536 | msgid "Select Field" | 1531 | msgid "Select Field" |
| 1537 | msgstr "Selecionar campo" | 1532 | msgstr "Selecionar campo" |
| 1538 | 1533 | ||
| 1539 | -#: ui/00default.xml:73 | 1534 | +#: ui/00default.xml:295 |
| 1540 | msgid "Select all" | 1535 | msgid "Select all" |
| 1541 | msgstr "Selecionar tudo" | 1536 | msgstr "Selecionar tudo" |
| 1542 | 1537 | ||
| 1543 | -#: ui/00default.xml:126 | 1538 | +#: ui/00default.xml:348 |
| 1544 | msgid "Select by rectangles" | 1539 | msgid "Select by rectangles" |
| 1545 | msgstr "Seleção retangular" | 1540 | msgstr "Seleção retangular" |
| 1546 | 1541 | ||
| @@ -1552,7 +1547,7 @@ msgstr "Selecione arquivo a receber" | @@ -1552,7 +1547,7 @@ msgstr "Selecione arquivo a receber" | ||
| 1552 | msgid "Select file to send" | 1547 | msgid "Select file to send" |
| 1553 | msgstr "Selecione arquivo a enviar" | 1548 | msgstr "Selecione arquivo a enviar" |
| 1554 | 1549 | ||
| 1555 | -#: ui/00default.xml:111 | 1550 | +#: ui/00default.xml:333 |
| 1556 | msgid "Select font" | 1551 | msgid "Select font" |
| 1557 | msgstr "Selecione fonte" | 1552 | msgstr "Selecione fonte" |
| 1558 | 1553 | ||
| @@ -1576,7 +1571,7 @@ msgstr "Self signed certificate" | @@ -1576,7 +1571,7 @@ msgstr "Self signed certificate" | ||
| 1576 | msgid "Self signed certificate in certificate chain" | 1571 | msgid "Self signed certificate in certificate chain" |
| 1577 | msgstr "Self signed certificate in certificate chain" | 1572 | msgstr "Self signed certificate in certificate chain" |
| 1578 | 1573 | ||
| 1579 | -#: ui/00default.xml:55 | 1574 | +#: ui/00default.xml:277 |
| 1580 | msgid "Send file" | 1575 | msgid "Send file" |
| 1581 | msgstr "Enviar arquivo" | 1576 | msgstr "Enviar arquivo" |
| 1582 | 1577 | ||
| @@ -1584,39 +1579,39 @@ msgstr "Enviar arquivo" | @@ -1584,39 +1579,39 @@ msgstr "Enviar arquivo" | ||
| 1584 | msgid "Send file to host" | 1579 | msgid "Send file to host" |
| 1585 | msgstr "Enviar arquivo para o servidor" | 1580 | msgstr "Enviar arquivo para o servidor" |
| 1586 | 1581 | ||
| 1587 | -#: main.c:324 | 1582 | +#: main.c:312 |
| 1588 | msgid "Send messages to syslog" | 1583 | msgid "Send messages to syslog" |
| 1589 | msgstr "Send messages to syslog" | 1584 | msgstr "Send messages to syslog" |
| 1590 | 1585 | ||
| 1591 | -#: ui/00default.xml:54 | 1586 | +#: ui/00default.xml:276 |
| 1592 | msgid "Send/Receive" | 1587 | msgid "Send/Receive" |
| 1593 | msgstr "Enviar/Receber" | 1588 | msgstr "Enviar/Receber" |
| 1594 | 1589 | ||
| 1595 | -#: main.c:319 | 1590 | +#: main.c:307 |
| 1596 | msgid "Session name" | 1591 | msgid "Session name" |
| 1597 | msgstr "Nome da sessão" | 1592 | msgstr "Nome da sessão" |
| 1598 | 1593 | ||
| 1599 | -#: ui/00default.xml:92 | 1594 | +#: ui/00default.xml:314 |
| 1600 | msgid "Set hostname" | 1595 | msgid "Set hostname" |
| 1601 | msgstr "Selecione servidor" | 1596 | msgstr "Selecione servidor" |
| 1602 | 1597 | ||
| 1603 | -#: main.c:321 | 1598 | +#: main.c:309 |
| 1604 | msgid "Set reported colors (8/16)" | 1599 | msgid "Set reported colors (8/16)" |
| 1605 | msgstr "Define número de cores informadas (8/16)" | 1600 | msgstr "Define número de cores informadas (8/16)" |
| 1606 | 1601 | ||
| 1607 | -#: ui/00default.xml:107 | 1602 | +#: ui/00default.xml:329 |
| 1608 | msgid "Settings" | 1603 | msgid "Settings" |
| 1609 | msgstr "Configurações" | 1604 | msgstr "Configurações" |
| 1610 | 1605 | ||
| 1611 | -#: ui/00default.xml:129 | 1606 | +#: ui/00default.xml:351 |
| 1612 | msgid "Show Underline" | 1607 | msgid "Show Underline" |
| 1613 | msgstr "Mostrar sublinhado" | 1608 | msgstr "Mostrar sublinhado" |
| 1614 | 1609 | ||
| 1615 | -#: ui/99debug.xml:579 | 1610 | +#: ui/99debug.xml:213 |
| 1616 | msgid "Show test pattern" | 1611 | msgid "Show test pattern" |
| 1617 | msgstr "Mostrar padrão de teste" | 1612 | msgstr "Mostrar padrão de teste" |
| 1618 | 1613 | ||
| 1619 | -#: ui/00default.xml:131 | 1614 | +#: ui/00default.xml:353 |
| 1620 | msgid "Smart paste" | 1615 | msgid "Smart paste" |
| 1621 | msgstr "Colar inteligente" | 1616 | msgstr "Colar inteligente" |
| 1622 | 1617 | ||
| @@ -1664,18 +1659,6 @@ msgstr "T_otal" | @@ -1664,18 +1659,6 @@ msgstr "T_otal" | ||
| 1664 | msgid "Terminal colors" | 1659 | msgid "Terminal colors" |
| 1665 | msgstr "Cores do terminal" | 1660 | msgstr "Cores do terminal" |
| 1666 | 1661 | ||
| 1667 | -#: ui/09scripts.xml:298 | ||
| 1668 | -msgid "Teste01" | ||
| 1669 | -msgstr "Teste01" | ||
| 1670 | - | ||
| 1671 | -#: ui/09scripts.xml:302 | ||
| 1672 | -msgid "Teste02" | ||
| 1673 | -msgstr "Teste02" | ||
| 1674 | - | ||
| 1675 | -#: ui/09scripts.xml:306 | ||
| 1676 | -msgid "Teste03" | ||
| 1677 | -msgstr "Teste03" | ||
| 1678 | - | ||
| 1679 | #: host.c:216 | 1662 | #: host.c:216 |
| 1680 | msgid "Text before '['" | 1663 | msgid "Text before '['" |
| 1681 | msgstr "Texto antes de '['" | 1664 | msgstr "Texto antes de '['" |
| @@ -1891,7 +1874,7 @@ msgstr "" | @@ -1891,7 +1874,7 @@ msgstr "" | ||
| 1891 | "programa; se não, escreva para a Free Software Foundation, Inc., 59 Temple " | 1874 | "programa; se não, escreva para a Free Software Foundation, Inc., 59 Temple " |
| 1892 | "Place, Suite 330, Boston, MA, 02111-1307, USA" | 1875 | "Place, Suite 330, Boston, MA, 02111-1307, USA" |
| 1893 | 1876 | ||
| 1894 | -#: main.c:387 | 1877 | +#: main.c:375 |
| 1895 | #, c-format | 1878 | #, c-format |
| 1896 | msgid "This program requires GTK version %d.%d.%d" | 1879 | msgid "This program requires GTK version %d.%d.%d" |
| 1897 | msgstr "Este programa precisa do GTK versão %d.%d.%d" | 1880 | msgstr "Este programa precisa do GTK versão %d.%d.%d" |
| @@ -1902,15 +1885,15 @@ msgid "" | @@ -1902,15 +1885,15 @@ msgid "" | ||
| 1902 | "This version of %s was built without support for secure sockets layer (SSL)." | 1885 | "This version of %s was built without support for secure sockets layer (SSL)." |
| 1903 | msgstr "Esta versão do %s foi gerada sem suporte para conexões seguras (SSL)." | 1886 | msgstr "Esta versão do %s foi gerada sem suporte para conexões seguras (SSL)." |
| 1904 | 1887 | ||
| 1905 | -#: ui/00default.xml:148 | 1888 | +#: ui/00default.xml:370 |
| 1906 | msgid "Toolbar" | 1889 | msgid "Toolbar" |
| 1907 | msgstr "Barra de ferramentas" | 1890 | msgstr "Barra de ferramentas" |
| 1908 | 1891 | ||
| 1909 | -#: ui/99debug.xml:571 | 1892 | +#: ui/99debug.xml:205 |
| 1910 | msgid "Trace" | 1893 | msgid "Trace" |
| 1911 | msgstr "Trace" | 1894 | msgstr "Trace" |
| 1912 | 1895 | ||
| 1913 | -#: ui/00default.xml:120 | 1896 | +#: ui/00default.xml:342 |
| 1914 | msgid "Track Cursor" | 1897 | msgid "Track Cursor" |
| 1915 | msgstr "Mostrar posição do cursor" | 1898 | msgstr "Mostrar posição do cursor" |
| 1916 | 1899 | ||
| @@ -2117,7 +2100,7 @@ msgstr "Unsupported passthru host session" | @@ -2117,7 +2100,7 @@ msgstr "Unsupported passthru host session" | ||
| 2117 | msgid "Unsupported socks 4 proxy" | 2100 | msgid "Unsupported socks 4 proxy" |
| 2118 | msgstr "Unsupported socks 4 proxy" | 2101 | msgstr "Unsupported socks 4 proxy" |
| 2119 | 2102 | ||
| 2120 | -#: ui/00default.xml:133 | 2103 | +#: ui/00default.xml:355 |
| 2121 | msgid "Use +/- for field navigation" | 2104 | msgid "Use +/- for field navigation" |
| 2122 | msgstr "Usar teclas +/- para navegar por campos" | 2105 | msgstr "Usar teclas +/- para navegar por campos" |
| 2123 | 2106 | ||
| @@ -2130,7 +2113,7 @@ msgstr "Variável" | @@ -2130,7 +2113,7 @@ msgstr "Variável" | ||
| 2130 | msgid "Version %s - Revision %s" | 2113 | msgid "Version %s - Revision %s" |
| 2131 | msgstr "Versão %s - Revisão %s" | 2114 | msgstr "Versão %s - Revisão %s" |
| 2132 | 2115 | ||
| 2133 | -#: ui/99debug.xml:574 | 2116 | +#: ui/99debug.xml:208 |
| 2134 | msgid "View Field Delimiters" | 2117 | msgid "View Field Delimiters" |
| 2135 | msgstr "Mostrar delimitadores de campo" | 2118 | msgstr "Mostrar delimitadores de campo" |
| 2136 | 2119 | ||
| @@ -2158,7 +2141,7 @@ msgstr "Europa ocidental (ISO 8859-1)" | @@ -2158,7 +2141,7 @@ msgstr "Europa ocidental (ISO 8859-1)" | ||
| 2158 | msgid "White" | 2141 | msgid "White" |
| 2159 | msgstr "Branco" | 2142 | msgstr "Branco" |
| 2160 | 2143 | ||
| 2161 | -#: ui/00default.xml:159 | 2144 | +#: ui/00default.xml:381 |
| 2162 | msgid "Window" | 2145 | msgid "Window" |
| 2163 | msgstr "Janela" | 2146 | msgstr "Janela" |
| 2164 | 2147 | ||
| @@ -2226,19 +2209,19 @@ msgstr "_Procurar" | @@ -2226,19 +2209,19 @@ msgstr "_Procurar" | ||
| 2226 | msgid "_Color table:" | 2209 | msgid "_Color table:" |
| 2227 | msgstr "Tabela de cores:" | 2210 | msgstr "Tabela de cores:" |
| 2228 | 2211 | ||
| 2229 | -#: ui/00default.xml:102 | 2212 | +#: ui/00default.xml:324 |
| 2230 | msgid "_Connect" | 2213 | msgid "_Connect" |
| 2231 | msgstr "_Conectar" | 2214 | msgstr "_Conectar" |
| 2232 | 2215 | ||
| 2233 | -#: ui/00default.xml:103 | 2216 | +#: ui/00default.xml:325 |
| 2234 | msgid "_Disconnect" | 2217 | msgid "_Disconnect" |
| 2235 | msgstr "_Desconectar" | 2218 | msgstr "_Desconectar" |
| 2236 | 2219 | ||
| 2237 | -#: ui/00default.xml:61 | 2220 | +#: ui/99debug.xml:200 |
| 2238 | msgid "_Edit" | 2221 | msgid "_Edit" |
| 2239 | msgstr "_Editar" | 2222 | msgstr "_Editar" |
| 2240 | 2223 | ||
| 2241 | -#: ui/00default.xml:36 | 2224 | +#: ui/00default.xml:258 |
| 2242 | msgid "_File" | 2225 | msgid "_File" |
| 2243 | msgstr "_Arquivo" | 2226 | msgstr "_Arquivo" |
| 2244 | 2227 | ||
| @@ -2266,11 +2249,11 @@ msgstr "Nome do _Host:" | @@ -2266,11 +2249,11 @@ msgstr "Nome do _Host:" | ||
| 2266 | msgid "_Local file name:" | 2249 | msgid "_Local file name:" |
| 2267 | msgstr "Arquivo _local:" | 2250 | msgstr "Arquivo _local:" |
| 2268 | 2251 | ||
| 2269 | -#: ui/00default.xml:92 | 2252 | +#: ui/00default.xml:314 |
| 2270 | msgid "_Network" | 2253 | msgid "_Network" |
| 2271 | msgstr "_Rede" | 2254 | msgstr "_Rede" |
| 2272 | 2255 | ||
| 2273 | -#: ui/00default.xml:117 | 2256 | +#: ui/00default.xml:339 |
| 2274 | msgid "_Options" | 2257 | msgid "_Options" |
| 2275 | msgstr "_Opções" | 2258 | msgstr "_Opções" |
| 2276 | 2259 | ||
| @@ -2298,7 +2281,7 @@ msgstr "Arquivo _texto" | @@ -2298,7 +2281,7 @@ msgstr "Arquivo _texto" | ||
| 2298 | msgid "_To" | 2281 | msgid "_To" |
| 2299 | msgstr "_Para" | 2282 | msgstr "_Para" |
| 2300 | 2283 | ||
| 2301 | -#: ui/00default.xml:87 | 2284 | +#: ui/00default.xml:309 |
| 2302 | msgid "_View" | 2285 | msgid "_View" |
| 2303 | msgstr "_Exibir" | 2286 | msgstr "_Exibir" |
| 2304 | 2287 | ||
| @@ -2345,6 +2328,19 @@ msgid "unknown error" | @@ -2345,6 +2328,19 @@ msgid "unknown error" | ||
| 2345 | msgstr "Erro desconhecido" | 2328 | msgstr "Erro desconhecido" |
| 2346 | 2329 | ||
| 2347 | #, fuzzy | 2330 | #, fuzzy |
| 2331 | +#~ msgid "Script" | ||
| 2332 | +#~ msgstr "Scripts" | ||
| 2333 | + | ||
| 2334 | +#~ msgid "Teste01" | ||
| 2335 | +#~ msgstr "Teste01" | ||
| 2336 | + | ||
| 2337 | +#~ msgid "Teste02" | ||
| 2338 | +#~ msgstr "Teste02" | ||
| 2339 | + | ||
| 2340 | +#~ msgid "Teste03" | ||
| 2341 | +#~ msgstr "Teste03" | ||
| 2342 | + | ||
| 2343 | +#, fuzzy | ||
| 2348 | #~ msgid "Cross hair Cursor" | 2344 | #~ msgid "Cross hair Cursor" |
| 2349 | #~ msgstr "Cursor mira" | 2345 | #~ msgstr "Cursor mira" |
| 2350 | 2346 |
src/include/lib3270.h
| @@ -494,6 +494,7 @@ | @@ -494,6 +494,7 @@ | ||
| 494 | */ | 494 | */ |
| 495 | LIB3270_EXPORT int lib3270_set_string(H3270 *h, const unsigned char *str); | 495 | LIB3270_EXPORT int lib3270_set_string(H3270 *h, const unsigned char *str); |
| 496 | 496 | ||
| 497 | + #define lib3270_set_text_at(h,r,c,t) lib3270_set_string_at(h,r,c,t) | ||
| 497 | LIB3270_EXPORT int lib3270_set_string_at(H3270 *h, int row, int col, const unsigned char *str); | 498 | LIB3270_EXPORT int lib3270_set_string_at(H3270 *h, int row, int col, const unsigned char *str); |
| 498 | LIB3270_EXPORT void lib3270_input_string(H3270 *hSession, const unsigned char *str); | 499 | LIB3270_EXPORT void lib3270_input_string(H3270 *hSession, const unsigned char *str); |
| 499 | 500 | ||
| @@ -689,6 +690,7 @@ | @@ -689,6 +690,7 @@ | ||
| 689 | LIB3270_EXPORT int lib3270_pconnected(H3270 *h); | 690 | LIB3270_EXPORT int lib3270_pconnected(H3270 *h); |
| 690 | LIB3270_EXPORT int lib3270_half_connected(H3270 *h); | 691 | LIB3270_EXPORT int lib3270_half_connected(H3270 *h); |
| 691 | LIB3270_EXPORT int lib3270_connected(H3270 *h); | 692 | LIB3270_EXPORT int lib3270_connected(H3270 *h); |
| 693 | + LIB3270_EXPORT int lib3270_disconnected(H3270 *h); | ||
| 692 | LIB3270_EXPORT int lib3270_in_neither(H3270 *h); | 694 | LIB3270_EXPORT int lib3270_in_neither(H3270 *h); |
| 693 | LIB3270_EXPORT int lib3270_in_ansi(H3270 *h); | 695 | LIB3270_EXPORT int lib3270_in_ansi(H3270 *h); |
| 694 | LIB3270_EXPORT int lib3270_in_3270(H3270 *h); | 696 | LIB3270_EXPORT int lib3270_in_3270(H3270 *h); |
src/lib3270/api.h
| @@ -119,7 +119,7 @@ | @@ -119,7 +119,7 @@ | ||
| 119 | 119 | ||
| 120 | /** connection state */ | 120 | /** connection state */ |
| 121 | #define cstate LIB3270_CSTATE | 121 | #define cstate LIB3270_CSTATE |
| 122 | - #define NOT_CONNECTED LIB3270_NOT_CONNECTED | 122 | +// #define NOT_CONNECTED LIB3270_NOT_CONNECTED |
| 123 | #define RESOLVING LIB3270_RESOLVING | 123 | #define RESOLVING LIB3270_RESOLVING |
| 124 | #define PENDING LIB3270_PENDING | 124 | #define PENDING LIB3270_PENDING |
| 125 | #define CONNECTED_INITIAL LIB3270_CONNECTED_INITIAL | 125 | #define CONNECTED_INITIAL LIB3270_CONNECTED_INITIAL |
src/lib3270/host.c
| @@ -556,7 +556,7 @@ void lib3270_set_disconnected(H3270 *hSession) | @@ -556,7 +556,7 @@ void lib3270_set_disconnected(H3270 *hSession) | ||
| 556 | { | 556 | { |
| 557 | CHECK_SESSION_HANDLE(hSession); | 557 | CHECK_SESSION_HANDLE(hSession); |
| 558 | 558 | ||
| 559 | - hSession->cstate = NOT_CONNECTED; | 559 | + hSession->cstate = LIB3270_NOT_CONNECTED; |
| 560 | hSession->starting = 0; | 560 | hSession->starting = 0; |
| 561 | 561 | ||
| 562 | set_status(hSession,OIA_FLAG_UNDERA,False); | 562 | set_status(hSession,OIA_FLAG_UNDERA,False); |
src/lib3270/state.c
| @@ -55,6 +55,13 @@ LIB3270_EXPORT int lib3270_connected(H3270 *h) | @@ -55,6 +55,13 @@ LIB3270_EXPORT int lib3270_connected(H3270 *h) | ||
| 55 | return ((int) h->cstate >= (int)CONNECTED_INITIAL); | 55 | return ((int) h->cstate >= (int)CONNECTED_INITIAL); |
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | +LIB3270_EXPORT int lib3270_disconnected(H3270 *h) | ||
| 59 | +{ | ||
| 60 | + CHECK_SESSION_HANDLE(h); | ||
| 61 | + return ((int) h->cstate == (int)LIB3270_NOT_CONNECTED); | ||
| 62 | +} | ||
| 63 | + | ||
| 64 | + | ||
| 58 | LIB3270_EXPORT int lib3270_in_neither(H3270 *h) | 65 | LIB3270_EXPORT int lib3270_in_neither(H3270 *h) |
| 59 | { | 66 | { |
| 60 | CHECK_SESSION_HANDLE(h); | 67 | CHECK_SESSION_HANDLE(h); |
src/lib3270/telnet.c
| @@ -2430,7 +2430,7 @@ static void do_lnext(H3270 *hSession, char c) | @@ -2430,7 +2430,7 @@ static void do_lnext(H3270 *hSession, char c) | ||
| 2430 | */ | 2430 | */ |
| 2431 | static void check_in3270(H3270 *hSession) | 2431 | static void check_in3270(H3270 *hSession) |
| 2432 | { | 2432 | { |
| 2433 | - LIB3270_CSTATE new_cstate = NOT_CONNECTED; | 2433 | + LIB3270_CSTATE new_cstate = LIB3270_NOT_CONNECTED; |
| 2434 | 2434 | ||
| 2435 | #if defined(X3270_TRACE) /*[*/ | 2435 | #if defined(X3270_TRACE) /*[*/ |
| 2436 | static const char *state_name[] = | 2436 | static const char *state_name[] = |
src/oxt/globals.hpp
| @@ -51,7 +51,15 @@ | @@ -51,7 +51,15 @@ | ||
| 51 | public: | 51 | public: |
| 52 | session(); | 52 | session(); |
| 53 | virtual ~session(); | 53 | virtual ~session(); |
| 54 | - virtual int get_revision(void) = 0; | 54 | + virtual int get_revision(void) = 0; |
| 55 | + virtual int connect(const char *uri) = 0; | ||
| 56 | + virtual int disconnect(void) = 0; | ||
| 57 | + virtual bool connected(void) = 0; | ||
| 58 | + virtual int enter(void) = 0; | ||
| 59 | + virtual int pfkey(int key) = 0; | ||
| 60 | + virtual int pakey(int key) = 0; | ||
| 61 | + | ||
| 62 | + rtl_TextEncoding getEncoding(); | ||
| 55 | 63 | ||
| 56 | }; | 64 | }; |
| 57 | 65 | ||
| @@ -61,14 +69,33 @@ | @@ -61,14 +69,33 @@ | ||
| 61 | lib3270_session(); | 69 | lib3270_session(); |
| 62 | virtual ~lib3270_session(); | 70 | virtual ~lib3270_session(); |
| 63 | 71 | ||
| 64 | - virtual int get_revision(void); | 72 | + virtual int get_revision(void); |
| 73 | + virtual int connect(const char *uri); | ||
| 74 | + virtual int disconnect(void); | ||
| 75 | + virtual bool connected(void); | ||
| 76 | + virtual int enter(void); | ||
| 77 | + virtual int pfkey(int key); | ||
| 78 | + virtual int pakey(int key); | ||
| 65 | 79 | ||
| 66 | private: | 80 | private: |
| 81 | + bool enabled; | ||
| 67 | oslModule hModule; | 82 | oslModule hModule; |
| 83 | + oslThread hThread; | ||
| 68 | void * hSession; | 84 | void * hSession; |
| 69 | 85 | ||
| 86 | + /* Internal calls */ | ||
| 87 | + static void start_connect(lib3270_session *session); | ||
| 88 | + void network_loop(void); | ||
| 89 | + | ||
| 70 | /* lib3270 entry points */ | 90 | /* lib3270 entry points */ |
| 71 | const char * (* _get_revision)(void); | 91 | const char * (* _get_revision)(void); |
| 92 | + char * (* _get_text_at)(void *,int,int,int); | ||
| 93 | + int (* _set_text_at)(void *,int,int,const unsigned char *); | ||
| 94 | + int (* _cmp_text_at)(void *,int,int,const char *); | ||
| 95 | + int (* _enter)(void *); | ||
| 96 | + int (* _pfkey)(void *, int); | ||
| 97 | + int (* _pakey)(void *, int); | ||
| 98 | + | ||
| 72 | 99 | ||
| 73 | }; | 100 | }; |
| 74 | 101 |
src/oxt/local.cxx
| @@ -30,9 +30,12 @@ | @@ -30,9 +30,12 @@ | ||
| 30 | */ | 30 | */ |
| 31 | 31 | ||
| 32 | #include "globals.hpp" | 32 | #include "globals.hpp" |
| 33 | + #include <errno.h> | ||
| 33 | 34 | ||
| 34 | -// osl_createEmptySocketAddr | ||
| 35 | -// osl_connectSocketTo | 35 | +/* |
| 36 | + * NOTE: Take a better look at osl_createEmptySocketAddr() & osl_connectSocketTo() to see if there's | ||
| 37 | + * a way to use this calls to connect with the host for better performance. | ||
| 38 | + */ | ||
| 36 | 39 | ||
| 37 | /*---[ Statics ]-------------------------------------------------------------------------------------------*/ | 40 | /*---[ Statics ]-------------------------------------------------------------------------------------------*/ |
| 38 | 41 | ||
| @@ -41,15 +44,34 @@ | @@ -41,15 +44,34 @@ | ||
| 41 | 44 | ||
| 42 | pw3270::lib3270_session::lib3270_session() | 45 | pw3270::lib3270_session::lib3270_session() |
| 43 | { | 46 | { |
| 47 | + struct _call | ||
| 48 | + { | ||
| 49 | + void **entry; | ||
| 50 | + const char * name; | ||
| 51 | + } call[] = | ||
| 52 | + { | ||
| 53 | + { (void **) & _get_revision, "lib3270_get_revision" }, | ||
| 54 | + { (void **) & _get_text_at, "lib3270_get_text_at" }, | ||
| 55 | + { (void **) & _set_text_at, "lib3270_set_string_at" }, | ||
| 56 | + { (void **) & _cmp_text_at, "lib3270_cmp_text_at" }, | ||
| 57 | + { (void **) & _enter, "lib3270_enter" }, | ||
| 58 | + { (void **) & _pfkey, "lib3270_pfkey" }, | ||
| 59 | + { (void **) & _pakey, "lib3270_pakey" } | ||
| 60 | + | ||
| 61 | + }; | ||
| 62 | + | ||
| 44 | void * (*lib3270_new)(const char *); | 63 | void * (*lib3270_new)(const char *); |
| 45 | 64 | ||
| 65 | + hThread = NULL; | ||
| 66 | + hSession = NULL; | ||
| 67 | + | ||
| 46 | trace("%s",__FUNCTION__); | 68 | trace("%s",__FUNCTION__); |
| 47 | hModule = osl_loadModuleAscii("lib3270.so",SAL_LOADMODULE_NOW); | 69 | hModule = osl_loadModuleAscii("lib3270.so",SAL_LOADMODULE_NOW); |
| 48 | if(!hModule) | 70 | if(!hModule) |
| 49 | return; | 71 | return; |
| 50 | 72 | ||
| 51 | - _get_revision = (const char * (*)(void)) osl_getAsciiFunctionSymbol(hModule,"lib3270_get_revision"); | ||
| 52 | - | 73 | + for(int f = 0; f < (sizeof (call) / sizeof ((call)[0]));f++) |
| 74 | + *call[f].entry = (void *) osl_getAsciiFunctionSymbol(hModule,call[f].name); | ||
| 53 | 75 | ||
| 54 | /* Get lib3270 session handle */ | 76 | /* Get lib3270 session handle */ |
| 55 | lib3270_new = (void * (*)(const char *)) osl_getAsciiFunctionSymbol(hModule,"lib3270_session_new"); | 77 | lib3270_new = (void * (*)(const char *)) osl_getAsciiFunctionSymbol(hModule,"lib3270_session_new"); |
| @@ -62,6 +84,8 @@ | @@ -62,6 +84,8 @@ | ||
| 62 | 84 | ||
| 63 | trace("%s hModule=%p hSession=%p",__FUNCTION__,hModule,hSession); | 85 | trace("%s hModule=%p hSession=%p",__FUNCTION__,hModule,hSession); |
| 64 | 86 | ||
| 87 | + disconnect(); | ||
| 88 | + | ||
| 65 | if(hModule) | 89 | if(hModule) |
| 66 | { | 90 | { |
| 67 | if(hSession) | 91 | if(hSession) |
| @@ -81,3 +105,99 @@ | @@ -81,3 +105,99 @@ | ||
| 81 | return atoi(_get_revision()); | 105 | return atoi(_get_revision()); |
| 82 | } | 106 | } |
| 83 | 107 | ||
| 108 | + int pw3270::lib3270_session::connect(const char *uri) | ||
| 109 | + { | ||
| 110 | + const char * (*set_host)(void *h, const char *n); | ||
| 111 | + | ||
| 112 | + if(!(hModule && hSession)) | ||
| 113 | + return EINVAL; | ||
| 114 | + | ||
| 115 | + if(hThread) | ||
| 116 | + return EBUSY; | ||
| 117 | + | ||
| 118 | + set_host = (const char * (*)(void *,const char *)) osl_getAsciiFunctionSymbol(hModule,"lib3270_set_host"); | ||
| 119 | + if(!set_host) | ||
| 120 | + return EINVAL; | ||
| 121 | + | ||
| 122 | + set_host(hSession,uri); | ||
| 123 | + | ||
| 124 | + enabled = true; | ||
| 125 | + hThread = osl_createThread((oslWorkerFunction) pw3270::lib3270_session::start_connect, this); | ||
| 126 | + | ||
| 127 | + osl_yieldThread(); | ||
| 128 | + | ||
| 129 | + if(!hThread) | ||
| 130 | + return -1; | ||
| 131 | + | ||
| 132 | + osl_yieldThread(); | ||
| 133 | + | ||
| 134 | + return 0; | ||
| 135 | + } | ||
| 136 | + | ||
| 137 | + int pw3270::lib3270_session::disconnect(void) | ||
| 138 | + { | ||
| 139 | + enabled = false; | ||
| 140 | + return 0; | ||
| 141 | + } | ||
| 142 | + | ||
| 143 | + void pw3270::lib3270_session::start_connect(lib3270_session *session) | ||
| 144 | + { | ||
| 145 | + session->network_loop(); | ||
| 146 | + session->hThread = NULL; | ||
| 147 | + session->enabled = false; | ||
| 148 | + } | ||
| 149 | + | ||
| 150 | + void pw3270::lib3270_session::network_loop(void) | ||
| 151 | + { | ||
| 152 | + /* Lib3270 entry points */ | ||
| 153 | + void (* _disconnect)(void *h) = | ||
| 154 | + (void (*)(void *)) osl_getAsciiFunctionSymbol(hModule,"lib3270_disconnect"); | ||
| 155 | + | ||
| 156 | + int (* _connect)(void *h,const char *n, int wait) = | ||
| 157 | + (int (*)(void *,const char *,int)) osl_getAsciiFunctionSymbol(hModule,"lib3270_connect"); | ||
| 158 | + | ||
| 159 | + int (* _status)(void *h) = | ||
| 160 | + (int (*)(void *)) osl_getAsciiFunctionSymbol(hModule,"lib3270_disconnected"); | ||
| 161 | + | ||
| 162 | + void (*_iterate)(void *h, int wait) = | ||
| 163 | + (void (*)(void *, int)) osl_getAsciiFunctionSymbol(hModule,"lib3270_main_iterate"); | ||
| 164 | + | ||
| 165 | + _connect(hSession,NULL,1); | ||
| 166 | + | ||
| 167 | + while(enabled && !_status(hSession)) | ||
| 168 | + { | ||
| 169 | + osl_yieldThread(); | ||
| 170 | + _iterate(hSession,1); | ||
| 171 | + } | ||
| 172 | + | ||
| 173 | + osl_yieldThread(); | ||
| 174 | + | ||
| 175 | + _disconnect(hSession); | ||
| 176 | + | ||
| 177 | + } | ||
| 178 | + | ||
| 179 | + bool pw3270::lib3270_session::connected(void) | ||
| 180 | + { | ||
| 181 | + return enabled; | ||
| 182 | + } | ||
| 183 | + | ||
| 184 | + int pw3270::lib3270_session::enter(void) | ||
| 185 | + { | ||
| 186 | + if(!hSession) | ||
| 187 | + return EINVAL; | ||
| 188 | + return _enter(hSession); | ||
| 189 | + } | ||
| 190 | + | ||
| 191 | + int pw3270::lib3270_session::pfkey(int key) | ||
| 192 | + { | ||
| 193 | + if(!hSession) | ||
| 194 | + return EINVAL; | ||
| 195 | + return _pfkey(hSession,key); | ||
| 196 | + } | ||
| 197 | + | ||
| 198 | + int pw3270::lib3270_session::pakey(int key) | ||
| 199 | + { | ||
| 200 | + if(!hSession) | ||
| 201 | + return EINVAL; | ||
| 202 | + return _pakey(hSession,key); | ||
| 203 | + } |
src/oxt/main.cxx