Commit ecf3f0c57df2333548e7cf89aa71ec1e8bfafa0e

Authored by perry.werneck@gmail.com
1 parent 187926cf

Implementando funções na extensão LibreOffice

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