Commit ecde8f008d8c954e62be24945b06eb028ab5962b

Authored by perry.werneck@gmail.com
1 parent 530faf11

Ajustes na DLL do HLLAPI

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 07:23-0300\n"
  8 +"POT-Creation-Date: 2013-02-26 19:13-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:318
  86 +#: main.c:330
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:338
  167 +#: main.c:350
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:286
  203 +#: ui/00default.xml:64
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:354
  211 +#: ui/00default.xml:132
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:302 main.c:304
  220 +#: main.c:314 main.c:316
221 221 msgid "Application name"
222 222 msgstr "Nome da aplicação"
223 223  
224   -#: ui/10keypad.xml:155
  224 +#: ui/10keypad.xml:467
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:349
  241 +#: ui/00default.xml:127
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:347
  265 +#: ui/00default.xml:125
266 266 msgid "Blank Fill"
267 267 msgstr "Completar com espaços"
268 268  
269   -#: ui/00default.xml:340
  269 +#: ui/00default.xml:118
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:350
  277 +#: ui/00default.xml:128
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:156
  285 +#: ui/10keypad.xml:468
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/10keypad.xml:147
  477 +#: ui/00default.xml:79
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:329
  489 +#: ui/00default.xml:107
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:339
  497 +#: ui/00default.xml:117
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:283
  505 +#: ui/00default.xml:61
506 506 msgid "Copy"
507 507 msgstr "Copiar"
508 508  
509   -#: ui/99debug.xml:200
  509 +#: ui/99debug.xml:566
510 510 msgid "Copy as HTML"
511 511 msgstr "Copiar como HTML"
512 512  
513   -#: ui/00default.xml:284
  513 +#: ui/00default.xml:62
514 514 msgid "Copy as table"
515 515 msgstr "Copiar como tabela"
516 516  
517   -#: colors.c:418 ui/00default.xml:346
  517 +#: colors.c:418 ui/00default.xml:124
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:287
  530 +#: ui/00default.xml:65
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:205
  542 +#: ui/99debug.xml:571
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:213
  558 +#: ui/99debug.xml:579
559 559 msgid "Debug"
560 560 msgstr "Depuração"
561 561  
562   -#: ui/99debug.xml:215
  562 +#: ui/99debug.xml:581
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:303
  570 +#: ui/00default.xml:81
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:151
  602 +#: ui/10keypad.xml:463
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:152
  610 +#: ui/10keypad.xml:464
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:302
  618 +#: ui/00default.xml:80
619 619 msgid "Erase input"
620 620 msgstr "Apagar campos"
621 621  
622   -#: ui/00default.xml:304
  622 +#: ui/00default.xml:82
623 623 msgid "Erase to end of field"
624 624 msgstr "Apagar até o final do campo"
625 625  
626   -#: ui/00default.xml:305
  626 +#: ui/00default.xml:83
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:207
  669 +#: ui/99debug.xml:573
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:343
  717 +#: ui/00default.xml:121
718 718 msgid "Full Screen"
719 719 msgstr "Tela cheia"
720 720  
721   -#: ui/10functions.xml:35
  721 +#: ui/10functions.xml:347
722 722 msgid "Function bar"
723 723 msgstr "Barra de funções"
724 724  
725   -#: main.c:90 main.c:379
  725 +#: main.c:90 main.c:391
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:364
  766 +#: ui/00default.xml:142
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:310
  794 +#: main.c:322
795 795 msgid "Host system type"
796 796 msgstr "Tipo do sistema no servidor"
797 797  
798   -#: main.c:308
  798 +#: main.c:320
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:359
  827 +#: ui/00default.xml:137
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:352
  874 +#: ui/00default.xml:130
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:101
  890 +#: ui/10keypad.xml:413
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:341
  907 +#: ui/00default.xml:119
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:411
  943 +#: ui/00default.xml:189
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:138
  1020 +#: ui/10keypad.xml:450
1021 1021 msgid "PA1"
1022 1022 msgstr "PA1"
1023 1023  
1024   -#: ui/10keypad.xml:139
  1024 +#: ui/10keypad.xml:451
1025 1025 msgid "PA2"
1026 1026 msgstr "PA2"
1027 1027  
1028   -#: ui/10keypad.xml:140
  1028 +#: ui/10keypad.xml:452
1029 1029 msgid "PA3"
1030 1030 msgstr "PA3"
1031 1031  
1032   -#: ui/10functions.xml:36
  1032 +#: ui/10functions.xml:348
1033 1033 msgid "PF1"
1034 1034 msgstr "PF1"
1035 1035  
1036   -#: ui/10functions.xml:45
  1036 +#: ui/10functions.xml:357
1037 1037 msgid "PF10"
1038 1038 msgstr "PF10"
1039 1039  
1040   -#: ui/10functions.xml:46
  1040 +#: ui/10functions.xml:358
1041 1041 msgid "PF11"
1042 1042 msgstr "PF11"
1043 1043  
1044   -#: ui/10functions.xml:47
  1044 +#: ui/10functions.xml:359
1045 1045 msgid "PF12"
1046 1046 msgstr "PF12"
1047 1047  
1048   -#: ui/10functions.xml:50
  1048 +#: ui/10functions.xml:362
1049 1049 msgid "PF13"
1050 1050 msgstr "PF13"
1051 1051  
1052   -#: ui/10functions.xml:51
  1052 +#: ui/10functions.xml:363
1053 1053 msgid "PF14"
1054 1054 msgstr "PF14"
1055 1055  
1056   -#: ui/10functions.xml:52
  1056 +#: ui/10functions.xml:364
1057 1057 msgid "PF15"
1058 1058 msgstr "PF15"
1059 1059  
1060   -#: ui/10functions.xml:53
  1060 +#: ui/10functions.xml:365
1061 1061 msgid "PF16"
1062 1062 msgstr "PF16"
1063 1063  
1064   -#: ui/10functions.xml:54
  1064 +#: ui/10functions.xml:366
1065 1065 msgid "PF17"
1066 1066 msgstr "PF17"
1067 1067  
1068   -#: ui/10functions.xml:55
  1068 +#: ui/10functions.xml:367
1069 1069 msgid "PF18"
1070 1070 msgstr "PF18"
1071 1071  
1072   -#: ui/10functions.xml:56
  1072 +#: ui/10functions.xml:368
1073 1073 msgid "PF19"
1074 1074 msgstr "PF19"
1075 1075  
1076   -#: ui/10functions.xml:37
  1076 +#: ui/10functions.xml:349
1077 1077 msgid "PF2"
1078 1078 msgstr "PF2"
1079 1079  
1080   -#: ui/10functions.xml:57
  1080 +#: ui/10functions.xml:369
1081 1081 msgid "PF20"
1082 1082 msgstr "PF20"
1083 1083  
1084   -#: ui/10functions.xml:58
  1084 +#: ui/10functions.xml:370
1085 1085 msgid "PF21"
1086 1086 msgstr "PF21"
1087 1087  
1088   -#: ui/10functions.xml:59
  1088 +#: ui/10functions.xml:371
1089 1089 msgid "PF22"
1090 1090 msgstr "PF22"
1091 1091  
1092   -#: ui/10functions.xml:60
  1092 +#: ui/10functions.xml:372
1093 1093 msgid "PF23"
1094 1094 msgstr "PF23"
1095 1095  
1096   -#: ui/10functions.xml:61
  1096 +#: ui/10functions.xml:373
1097 1097 msgid "PF24"
1098 1098 msgstr "PF24"
1099 1099  
1100   -#: ui/10functions.xml:38
  1100 +#: ui/10functions.xml:350
1101 1101 msgid "PF3"
1102 1102 msgstr "PF3"
1103 1103  
1104   -#: ui/10functions.xml:39
  1104 +#: ui/10functions.xml:351
1105 1105 msgid "PF4"
1106 1106 msgstr "PF4"
1107 1107  
1108   -#: ui/10functions.xml:40
  1108 +#: ui/10functions.xml:352
1109 1109 msgid "PF5"
1110 1110 msgstr "PF5"
1111 1111  
1112   -#: ui/10functions.xml:41
  1112 +#: ui/10functions.xml:353
1113 1113 msgid "PF6"
1114 1114 msgstr "PF6"
1115 1115  
1116   -#: ui/10functions.xml:42
  1116 +#: ui/10functions.xml:354
1117 1117 msgid "PF7"
1118 1118 msgstr "PF7"
1119 1119  
1120   -#: ui/10functions.xml:43
  1120 +#: ui/10functions.xml:355
1121 1121 msgid "PF8"
1122 1122 msgstr "PF8"
1123 1123  
1124   -#: ui/10functions.xml:44
  1124 +#: ui/10functions.xml:356
1125 1125 msgid "PF9"
1126 1126 msgstr "PF9"
1127 1127  
1128   -#: main.c:336
  1128 +#: main.c:348
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:288
  1141 +#: ui/00default.xml:66
1142 1142 msgid "Paste"
1143 1143 msgstr "Colar"
1144 1144  
1145   -#: ui/00default.xml:289
  1145 +#: ui/00default.xml:67
1146 1146 msgid "Paste next"
1147 1147 msgstr "Colar próximo"
1148 1148  
1149   -#: ui/00default.xml:292
  1149 +#: ui/00default.xml:70
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:345
  1157 +#: ui/00default.xml:123
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:305
  1165 +#: main.c:317
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:410
  1173 +#: ui/00default.xml:188
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:271
  1181 +#: ui/00default.xml:49
1182 1182 msgid "Print"
1183 1183 msgstr "Imprimir"
1184 1184  
1185   -#: ui/00default.xml:273
  1185 +#: ui/00default.xml:51
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:272
  1193 +#: ui/00default.xml:50
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:330
  1201 +#: print.c:743 ui/00default.xml:108
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:276
  1289 +#: ui/00default.xml:54
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:214
  1305 +#: ui/99debug.xml:580
1306 1306 msgid "Reload buffer contents"
1307 1307 msgstr "Recarregar conteúdo do buffer"
1308 1308  
1309   -#: ui/00default.xml:297
  1309 +#: ui/00default.xml:75
1310 1310 msgid "Remove selection"
1311 1311 msgstr "Remover seleção"
1312 1312  
1313   -#: ui/00default.xml:298
  1313 +#: ui/00default.xml:76
1314 1314 msgid "Reselect"
1315 1315 msgstr "Reselecionar"
1316 1316  
1317   -#: ui/10keypad.xml:148
  1317 +#: ui/10keypad.xml:460
1318 1318 msgid "Reset"
1319 1319 msgstr "Reset"
1320 1320  
1321   -#: ui/00default.xml:344
  1321 +#: ui/00default.xml:122
1322 1322 msgid "Resize on alternate screen"
1323 1323 msgstr "Mudar tamanho do terminal em tela alternativa"
1324 1324  
1325   -#: ui/00default.xml:412
  1325 +#: ui/00default.xml:190
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:268
  1486 +#: ui/00default.xml:46
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:266
  1494 +#: ui/00default.xml:44
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:267
  1502 +#: ui/00default.xml:45
1503 1503 msgid "Save selected"
1504 1504 msgstr "Salvar seleção"
1505 1505  
... ... @@ -1507,15 +1507,20 @@ 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:206
  1510 +#: ui/99debug.xml:572
1511 1511 msgid "Screen Trace"
1512 1512 msgstr "Trace de tela"
1513 1513  
1514   -#: ui/00default.xml:336
  1514 +#: ui/00default.xml:114
1515 1515 msgid "Screen size"
1516 1516 msgstr "Tamanho da tela"
1517 1517  
1518   -#: ui/00default.xml:311
  1518 +#: ui/09scripts.xml:297
  1519 +#, fuzzy
  1520 +msgid "Script"
  1521 +msgstr "Scripts"
  1522 +
  1523 +#: ui/00default.xml:89
1519 1524 msgid "Scripts"
1520 1525 msgstr "Scripts"
1521 1526  
... ... @@ -1527,15 +1532,15 @@ msgstr &quot;Secondary space:&quot;
1527 1532 msgid "Secure connection was successful."
1528 1533 msgstr "Conexão segura efetuada com sucesso."
1529 1534  
1530   -#: ui/00default.xml:296
  1535 +#: ui/00default.xml:74
1531 1536 msgid "Select Field"
1532 1537 msgstr "Selecionar campo"
1533 1538  
1534   -#: ui/00default.xml:295
  1539 +#: ui/00default.xml:73
1535 1540 msgid "Select all"
1536 1541 msgstr "Selecionar tudo"
1537 1542  
1538   -#: ui/00default.xml:348
  1543 +#: ui/00default.xml:126
1539 1544 msgid "Select by rectangles"
1540 1545 msgstr "Seleção retangular"
1541 1546  
... ... @@ -1547,7 +1552,7 @@ msgstr &quot;Selecione arquivo a receber&quot;
1547 1552 msgid "Select file to send"
1548 1553 msgstr "Selecione arquivo a enviar"
1549 1554  
1550   -#: ui/00default.xml:333
  1555 +#: ui/00default.xml:111
1551 1556 msgid "Select font"
1552 1557 msgstr "Selecione fonte"
1553 1558  
... ... @@ -1571,7 +1576,7 @@ msgstr &quot;Self signed certificate&quot;
1571 1576 msgid "Self signed certificate in certificate chain"
1572 1577 msgstr "Self signed certificate in certificate chain"
1573 1578  
1574   -#: ui/00default.xml:277
  1579 +#: ui/00default.xml:55
1575 1580 msgid "Send file"
1576 1581 msgstr "Enviar arquivo"
1577 1582  
... ... @@ -1579,39 +1584,39 @@ msgstr &quot;Enviar arquivo&quot;
1579 1584 msgid "Send file to host"
1580 1585 msgstr "Enviar arquivo para o servidor"
1581 1586  
1582   -#: main.c:312
  1587 +#: main.c:324
1583 1588 msgid "Send messages to syslog"
1584 1589 msgstr "Send messages to syslog"
1585 1590  
1586   -#: ui/00default.xml:276
  1591 +#: ui/00default.xml:54
1587 1592 msgid "Send/Receive"
1588 1593 msgstr "Enviar/Receber"
1589 1594  
1590   -#: main.c:307
  1595 +#: main.c:319
1591 1596 msgid "Session name"
1592 1597 msgstr "Nome da sessão"
1593 1598  
1594   -#: ui/00default.xml:314
  1599 +#: ui/00default.xml:92
1595 1600 msgid "Set hostname"
1596 1601 msgstr "Selecione servidor"
1597 1602  
1598   -#: main.c:309
  1603 +#: main.c:321
1599 1604 msgid "Set reported colors (8/16)"
1600 1605 msgstr "Define número de cores informadas (8/16)"
1601 1606  
1602   -#: ui/00default.xml:329
  1607 +#: ui/00default.xml:107
1603 1608 msgid "Settings"
1604 1609 msgstr "Configurações"
1605 1610  
1606   -#: ui/00default.xml:351
  1611 +#: ui/00default.xml:129
1607 1612 msgid "Show Underline"
1608 1613 msgstr "Mostrar sublinhado"
1609 1614  
1610   -#: ui/99debug.xml:213
  1615 +#: ui/99debug.xml:579
1611 1616 msgid "Show test pattern"
1612 1617 msgstr "Mostrar padrão de teste"
1613 1618  
1614   -#: ui/00default.xml:353
  1619 +#: ui/00default.xml:131
1615 1620 msgid "Smart paste"
1616 1621 msgstr "Colar inteligente"
1617 1622  
... ... @@ -1659,6 +1664,18 @@ msgstr &quot;T_otal&quot;
1659 1664 msgid "Terminal colors"
1660 1665 msgstr "Cores do terminal"
1661 1666  
  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 +
1662 1679 #: host.c:216
1663 1680 msgid "Text before '['"
1664 1681 msgstr "Texto antes de '['"
... ... @@ -1874,7 +1891,7 @@ msgstr &quot;&quot;
1874 1891 "programa; se não, escreva para a Free Software Foundation, Inc., 59 Temple "
1875 1892 "Place, Suite 330, Boston, MA, 02111-1307, USA"
1876 1893  
1877   -#: main.c:375
  1894 +#: main.c:387
1878 1895 #, c-format
1879 1896 msgid "This program requires GTK version %d.%d.%d"
1880 1897 msgstr "Este programa precisa do GTK versão %d.%d.%d"
... ... @@ -1885,15 +1902,15 @@ msgid &quot;&quot;
1885 1902 "This version of %s was built without support for secure sockets layer (SSL)."
1886 1903 msgstr "Esta versão do %s foi gerada sem suporte para conexões seguras (SSL)."
1887 1904  
1888   -#: ui/00default.xml:370
  1905 +#: ui/00default.xml:148
1889 1906 msgid "Toolbar"
1890 1907 msgstr "Barra de ferramentas"
1891 1908  
1892   -#: ui/99debug.xml:205
  1909 +#: ui/99debug.xml:571
1893 1910 msgid "Trace"
1894 1911 msgstr "Trace"
1895 1912  
1896   -#: ui/00default.xml:342
  1913 +#: ui/00default.xml:120
1897 1914 msgid "Track Cursor"
1898 1915 msgstr "Mostrar posição do cursor"
1899 1916  
... ... @@ -2100,7 +2117,7 @@ msgstr &quot;Unsupported passthru host session&quot;
2100 2117 msgid "Unsupported socks 4 proxy"
2101 2118 msgstr "Unsupported socks 4 proxy"
2102 2119  
2103   -#: ui/00default.xml:355
  2120 +#: ui/00default.xml:133
2104 2121 msgid "Use +/- for field navigation"
2105 2122 msgstr "Usar teclas +/- para navegar por campos"
2106 2123  
... ... @@ -2113,7 +2130,7 @@ msgstr &quot;Variável&quot;
2113 2130 msgid "Version %s - Revision %s"
2114 2131 msgstr "Versão %s - Revisão %s"
2115 2132  
2116   -#: ui/99debug.xml:208
  2133 +#: ui/99debug.xml:574
2117 2134 msgid "View Field Delimiters"
2118 2135 msgstr "Mostrar delimitadores de campo"
2119 2136  
... ... @@ -2141,7 +2158,7 @@ msgstr &quot;Europa ocidental (ISO 8859-1)&quot;
2141 2158 msgid "White"
2142 2159 msgstr "Branco"
2143 2160  
2144   -#: ui/00default.xml:381
  2161 +#: ui/00default.xml:159
2145 2162 msgid "Window"
2146 2163 msgstr "Janela"
2147 2164  
... ... @@ -2209,19 +2226,19 @@ msgstr &quot;_Procurar&quot;
2209 2226 msgid "_Color table:"
2210 2227 msgstr "Tabela de cores:"
2211 2228  
2212   -#: ui/00default.xml:324
  2229 +#: ui/00default.xml:102
2213 2230 msgid "_Connect"
2214 2231 msgstr "_Conectar"
2215 2232  
2216   -#: ui/00default.xml:325
  2233 +#: ui/00default.xml:103
2217 2234 msgid "_Disconnect"
2218 2235 msgstr "_Desconectar"
2219 2236  
2220   -#: ui/99debug.xml:200
  2237 +#: ui/00default.xml:61
2221 2238 msgid "_Edit"
2222 2239 msgstr "_Editar"
2223 2240  
2224   -#: ui/00default.xml:258
  2241 +#: ui/00default.xml:36
2225 2242 msgid "_File"
2226 2243 msgstr "_Arquivo"
2227 2244  
... ... @@ -2249,11 +2266,11 @@ msgstr &quot;Nome do _Host:&quot;
2249 2266 msgid "_Local file name:"
2250 2267 msgstr "Arquivo _local:"
2251 2268  
2252   -#: ui/00default.xml:314
  2269 +#: ui/00default.xml:92
2253 2270 msgid "_Network"
2254 2271 msgstr "_Rede"
2255 2272  
2256   -#: ui/00default.xml:339
  2273 +#: ui/00default.xml:117
2257 2274 msgid "_Options"
2258 2275 msgstr "_Opções"
2259 2276  
... ... @@ -2281,7 +2298,7 @@ msgstr &quot;Arquivo _texto&quot;
2281 2298 msgid "_To"
2282 2299 msgstr "_Para"
2283 2300  
2284   -#: ui/00default.xml:309
  2301 +#: ui/00default.xml:87
2285 2302 msgid "_View"
2286 2303 msgstr "_Exibir"
2287 2304  
... ...
pw3270.nsi.in
... ... @@ -14,7 +14,7 @@ installDir $PROGRAMFILES\@PACKAGE@
14 14 icon "src\pw3270\@PACKAGE@.ico"
15 15  
16 16 # Get installation folder from registry if available
17   -InstallDirRegKey HKLM "Software\@PACKAGE@" "datadir"
  17 +InstallDirRegKey HKLM "Software\@PACKAGE@" "InstallLocation"
18 18  
19 19 RequestExecutionLevel admin
20 20  
... ... @@ -80,6 +80,10 @@ SubSection &quot;@PACKAGE@&quot; SecMain
80 80 # Locale files
81 81 CreateDirectory "$INSTDIR\@localedir@\pt_BR\LC_MESSAGES"
82 82 file "/oname=$INSTDIR\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" ".bin\Release\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo"
  83 +
  84 + # Save DataDir
  85 + WriteRegStr HKLM "Software\@PACKAGE@" \
  86 + "datadir" $INSTDIR
83 87  
84 88 # define uninstaller name
85 89 writeUninstaller $INSTDIR\uninstall.exe
... ... @@ -91,7 +95,6 @@ SubSection &quot;@PACKAGE@&quot; SecMain
91 95 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \
92 96 "DisplayVersion" "@PACKAGE_VERSION@ (Rev: @PACKAGE_REVISION@)"
93 97  
94   -
95 98 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \
96 99 "UninstallString" "$INSTDIR\uninstall.exe"
97 100 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \
... ... @@ -105,7 +108,7 @@ SubSection &quot;@PACKAGE@&quot; SecMain
105 108 WriteRegStr HKCU "Software\@PACKAGE@" "" $INSTDIR
106 109  
107 110 # Main library
108   - file "/oname=$SYSDIR\lib3270.dll.@PACKAGE_VERSION@" ".bin\Release\lib3270.dll.@PACKAGE_VERSION@"
  111 + file "/oname=$SYSDIR\lib3270.dll.@PACKAGE_VERSION@" ".bin\Release\lib3270.dll.@PACKAGE_VERSION@"
109 112 file "/oname=$SYSDIR\libpw3270.dll.@PACKAGE_VERSION@" ".bin\Release\libpw3270.dll.@PACKAGE_VERSION@"
110 113  
111 114 sectionEnd
... ... @@ -196,6 +199,7 @@ section &quot;Uninstall&quot;
196 199  
197 200 # Remove registry
198 201 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@"
  202 + DeleteRegKey HKLM "Software\@PACKAGE@"
199 203  
200 204 # Delete System libraries
201 205 delete $SYSDIR\lib3270.dll.@PACKAGE_VERSION@
... ...
src/plugins/remotectl/Makefile.in
... ... @@ -133,6 +133,15 @@ testprogram@EXEEXT@: testprogram.c
133 133  
134 134 test: testprogram@EXEEXT@
135 135 @PATH="../../../$(BINDIR)/Debug:$(PATH)" ./testprogram@EXEEXT@
  136 +
  137 +install: $(BINRLS)/plugins/$(MODULE_NAME)@DLLEXT@
  138 + @$(MKDIR) $(DESTDIR)$(libdir)/$(PACKAGE_NAME)-plugins
  139 + @$(INSTALL_PROGRAM) $(BINRLS)/plugins/$(MODULE_NAME)@DLLEXT@ $(DESTDIR)$(libdir)/$(PACKAGE_NAME)-plugins
  140 +
  141 +$(DEBDIR)/$(MODULE_NAME).install: Makefile
  142 + @$(MKDIR) `dirname $@`
  143 + @rm -f $@
  144 + @echo $(libdir)/$(PACKAGE_NAME)-plugins/$(MODULE_NAME)@DLLEXT@ > $@
136 145  
137 146 clean:
138 147 @rm -fr $(OBJDIR)
... ...
src/plugins/remotectl/calls.c
... ... @@ -83,8 +83,18 @@
83 83 };
84 84  
85 85 #undef trace
86   -#define trace(...) { FILE *__dbg = fopen("c:\\users\\perry\\debug.txt","a"); fprintf(__dbg,__VA_ARGS__); fclose(__dbg); }
87   -
  86 +
  87 +#ifdef DEBUG
  88 + #define trace(...) { FILE *__dbg = fopen("c:\\users\\perry\\debug.txt","a"); if(__dbg) { fprintf(__dbg,__VA_ARGS__); fclose(__dbg); }; }
  89 +#else
  90 + #define trace(...) /* */
  91 +#endif // DEBUG
  92 +
  93 +#ifndef LOAD_LIBRARY_SEARCH_DEFAULT_DIRS
  94 + // http://msdn.microsoft.com/en-us/library/windows/desktop/ms684179(v=vs.85).aspx
  95 + #define LOAD_LIBRARY_SEARCH_DEFAULT_DIRS 0x00001000
  96 +#endif // LOAD_LIBRARY_SEARCH_DEFAULT_DIRS
  97 +
88 98 /*--[ Implement ]------------------------------------------------------------------------------------*/
89 99  
90 100 __declspec (dllexport) DWORD __stdcall hllapi_init(LPSTR mode)
... ... @@ -95,26 +105,58 @@
95 105 if(hModule)
96 106 return EBUSY;
97 107  
98   - if(!*mode)
  108 + if(!(mode && *mode))
99 109 {
100 110 // Direct mode, load lib3270.dll, get pointers to the calls
101   - int f;
  111 + int f;
  112 + HKEY hKey = 0;
  113 + HMODULE kernel = LoadLibrary("kernel32.dll");
  114 + HANDLE cookie = NULL;
  115 + DWORD rc;
  116 + HANDLE (*AddDllDirectory)(PCWSTR NewDirectory) = (HANDLE (*)(PCWSTR)) GetProcAddress(kernel,"AddDllDirectory");
  117 + BOOL (*RemoveDllDirectory)(HANDLE Cookie) = (BOOL (*)(HANDLE)) GetProcAddress(kernel,"RemoveDllDirectory");
102 118  
103   -#ifdef DEBUG
104 119 // Notify user in case of error loading protocol DLL
105   - SetErrorMode(0);
106   -#endif // DEBUG
  120 + UINT errorMode = SetErrorMode(0);
107 121  
108   - hModule = LoadLibrary("lib3270.dll");
109   - trace("hModule=%p\n",hModule);
  122 + if(RegOpenKeyEx(HKEY_LOCAL_MACHINE,"Software\\pw3270",0,KEY_QUERY_VALUE,&hKey) == ERROR_SUCCESS)
  123 + {
  124 + char data[4096];
  125 + unsigned long datalen = sizeof(data); // data field length(in), data returned length(out)
  126 + unsigned long datatype; // #defined in winnt.h (predefined types 0-11)
  127 + if(RegQueryValueExA(hKey,"datadir",NULL,&datatype,(LPBYTE) data,&datalen) == ERROR_SUCCESS)
  128 + {
  129 + // Datadir is set, add it to DLL load path
  130 + wchar_t path[4096];
  131 + mbstowcs(path, data, 4095);
  132 + trace("Datadir=[%s] AddDllDirectory=%p RemoveDllDirectory=%p\n",data,AddDllDirectory,RemoveDllDirectory);
  133 + if(AddDllDirectory)
  134 + cookie = AddDllDirectory(path);
  135 + }
  136 + RegCloseKey(hKey);
  137 + }
  138 +
  139 + hModule = LoadLibraryEx("lib3270.dll.5.0",NULL,LOAD_LIBRARY_SEARCH_DEFAULT_DIRS);
  140 + rc = GetLastError();
  141 +
  142 + SetErrorMode(errorMode);
  143 +
  144 + if(cookie && RemoveDllDirectory)
  145 + RemoveDllDirectory(cookie);
  146 +
  147 + if(kernel)
  148 + FreeLibrary(kernel);
110 149  
111 150 if(!hModule)
112   - return GetLastError();
  151 + return rc;
113 152  
114 153 // Get library entry pointers
115 154 for(f=0;entry_point[f].name;f++)
116 155 {
117 156 void *ptr = (void *) GetProcAddress(hModule,entry_point[f].name);
  157 +
  158 + trace("%d %s=%p\n",f,entry_point[f].name,ptr);
  159 +
118 160 if(!ptr)
119 161 {
120 162 fprintf(stderr,"Can´t load \"%s\"\n",entry_point[f].name);
... ...
src/pw3270/common/config.c
... ... @@ -579,14 +579,14 @@ gchar * filename_from_va(const gchar *first_element, va_list args)
579 579  
580 580 for(p=0;p<G_N_ELEMENTS(appname) && !result;p++)
581 581 {
582   - gchar * path = g_strconcat("SOFTWARE\\",appname[p],"\\datadir",NULL);
  582 + gchar * path = g_strconcat("Software\\",appname[p],NULL);
583 583 HKEY hKey = 0;
584 584 LONG rc = 0;
585 585  
586 586 // Note: This could be needed: http://support.microsoft.com/kb/556009
587 587 // http://msdn.microsoft.com/en-us/library/windows/desktop/aa384129(v=vs.85).aspx
588 588  
589   - rc = RegOpenKeyEx(HKEY_LOCAL_MACHINE,path,0,KEY_QUERY_VALUE|KEY_WOW64_64KEY,&hKey);
  589 + rc = RegOpenKeyEx(HKEY_LOCAL_MACHINE,path,0,KEY_QUERY_VALUE,&hKey);
590 590 SetLastError(rc);
591 591  
592 592 if(rc == ERROR_SUCCESS)
... ... @@ -595,7 +595,7 @@ gchar * filename_from_va(const gchar *first_element, va_list args)
595 595 unsigned long datalen = sizeof(data); // data field length(in), data returned length(out)
596 596 unsigned long datatype; // #defined in winnt.h (predefined types 0-11)
597 597  
598   - rc = RegQueryValueExA(hKey,NULL,NULL,&datatype,(LPBYTE) data,&datalen);
  598 + rc = RegQueryValueExA(hKey,"datadir",NULL,&datatype,(LPBYTE) data,&datalen);
599 599 if(rc == ERROR_SUCCESS)
600 600 {
601 601 result = g_string_new(g_strchomp(data));
... ...
src/pw3270/main.c
... ... @@ -142,12 +142,12 @@ static gboolean appname(const gchar *option_name, const gchar *value, gpointer d
142 142  
143 143 static gboolean datadir(const gchar *option_name, const gchar *value, gpointer data, GError **error)
144 144 {
145   - gchar * path = g_strconcat("SOFTWARE\\",appname,"\\datadir",NULL);
  145 + gchar * path = g_strconcat("SOFTWARE\\",appname,NULL);
146 146 HKEY hKey;
147 147 DWORD disp;
148 148 int rc;
149 149  
150   - rc = RegCreateKeyEx(HKEY_LOCAL_MACHINE,path,0,NULL,REG_OPTION_NON_VOLATILE,KEY_SET_VALUE|KEY_WOW64_64KEY,NULL,&hKey,&disp);
  150 + rc = RegCreateKeyEx(HKEY_LOCAL_MACHINE,path,0,NULL,REG_OPTION_NON_VOLATILE,KEY_SET_VALUE,NULL,&hKey,&disp);
151 151 SetLastError(rc);
152 152  
153 153 trace("%s=\"%s\" create=%d",path,value,rc);
... ... @@ -155,7 +155,7 @@ static gboolean datadir(const gchar *option_name, const gchar *value, gpointer d
155 155 if(rc == ERROR_SUCCESS)
156 156 {
157 157 trace("%s: Value set",__FUNCTION__);
158   - RegSetValueEx(hKey,NULL,0,REG_SZ,(const BYTE *) value,strlen(value)+1);
  158 + RegSetValueEx(hKey,"datadir",0,REG_SZ,(const BYTE *) value,strlen(value)+1);
159 159 RegCloseKey(hKey);
160 160 }
161 161 else
... ... @@ -261,8 +261,8 @@ int main(int argc, char *argv[])
261 261 gchar * locdir = g_build_filename(appdir,"locale",NULL);
262 262  
263 263 g_chdir(appdir);
264   - bindtextdomain( PACKAGE_NAME, locdir );
265   -
  264 + bindtextdomain( PACKAGE_NAME, locdir );
  265 +
266 266 g_free(locdir);
267 267 g_free(appdir);
268 268  
... ...