Commit 43023aba3ce40a048eef46c6697f77afffa83ad6

Authored by perry.werneck@gmail.com
1 parent 2574a834

Corrigindo erro na validacao dos nomes de arquivo no dialogo de transferencias

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: 2012-11-06 09:03-0200\n"
  8 +"POT-Creation-Date: 2012-11-22 22:50-0200\n"
9 9 "PO-Revision-Date: 2012-10-31 07:44-0200\n"
10 10 "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n"
11 11 "Language-Team: Português <>\n"
... ... @@ -38,7 +38,7 @@ msgstr &quot;Ação %s precisa de um valor válido&quot;
38 38 msgid "%s action needs src attribute"
39 39 msgstr "Ação %s precisa do atributo src"
40 40  
41   -#: main.c:76
  41 +#: main.c:80
42 42 #, c-format
43 43 msgid "%s requires GTK version %d.%d.%d"
44 44 msgstr "%s requer GTK versão %d.%d.%d"
... ... @@ -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:226
  86 +#: main.c:261
87 87 msgid "- 3270 Emulator for Gtk"
88 88 msgstr "- Emulador 3270 para GTK"
89 89  
... ... @@ -136,7 +136,7 @@ msgstr &quot;&quot;
136 136 "<b>Estado da conexão:</b> %s\n"
137 137 "<b>Mensagem de alerta:</b> %s"
138 138  
139   -#: main.c:246
  139 +#: main.c:281
140 140 msgid ""
141 141 "<b>Valid options:</b>\n"
142 142 "\n"
... ... @@ -160,7 +160,7 @@ msgstr &quot;Abortando&quot;
160 160 msgid "Action failed"
161 161 msgstr "Ação falhou"
162 162  
163   -#: ui/00default.xml:286
  163 +#: ui/00default.xml:64
164 164 msgid "Add to copy"
165 165 msgstr "Adicionar à cópia"
166 166  
... ... @@ -168,15 +168,15 @@ msgstr &quot;Adicionar à cópia&quot;
168 168 msgid "Add/Remove _CR at end of line"
169 169 msgstr "Adicionar/Remover _CR no final da linha"
170 170  
171   -#: ui/00default.xml:354
  171 +#: ui/00default.xml:132
172 172 msgid "Alert sound"
173 173 msgstr "Aviso sonoro"
174 174  
175   -#: main.c:215 main.c:217
  175 +#: main.c:249 main.c:251
176 176 msgid "Application name"
177 177 msgstr "Nome da aplicação"
178 178  
179   -#: ui/10keypad.xml:155
  179 +#: ui/10keypad.xml:417
180 180 msgid "Attn"
181 181 msgstr "Attn"
182 182  
... ... @@ -185,7 +185,7 @@ msgstr &quot;Attn&quot;
185 185 msgid "Attribute \"%s\" is invalid or undefined"
186 186 msgstr "Atributo \"%s\" é invalido ou indefinido"
187 187  
188   -#: ui/00default.xml:349
  188 +#: ui/00default.xml:127
189 189 msgid "Auto-Reconnect"
190 190 msgstr "Reconectar automaticamente"
191 191  
... ... @@ -210,11 +210,11 @@ msgstr &quot;Versão winsock inválida&quot;
210 210 msgid "Black"
211 211 msgstr "Preto"
212 212  
213   -#: ui/00default.xml:347
  213 +#: ui/00default.xml:125
214 214 msgid "Blank Fill"
215 215 msgstr "Completar com espaços"
216 216  
217   -#: ui/00default.xml:340
  217 +#: ui/00default.xml:118
218 218 msgid "Blinking Cursor"
219 219 msgstr "Cursor piscante"
220 220  
... ... @@ -222,7 +222,7 @@ msgstr &quot;Cursor piscante&quot;
222 222 msgid "Blue"
223 223 msgstr "Azul"
224 224  
225   -#: ui/00default.xml:350
  225 +#: ui/00default.xml:128
226 226 msgid "Bold"
227 227 msgstr "Negrito"
228 228  
... ... @@ -230,7 +230,7 @@ msgstr &quot;Negrito&quot;
230 230 msgid "Brazilian Public Software Portal"
231 231 msgstr "Portal do Software Público Brasileiro"
232 232  
233   -#: ui/10keypad.xml:156
  233 +#: ui/10keypad.xml:418
234 234 msgid "Break"
235 235 msgstr "Break"
236 236  
... ... @@ -390,7 +390,7 @@ msgstr &quot;Tabela de tradução tem %d entradas, precisa de 256&quot;
390 390 msgid "Charset has more than 256 entries"
391 391 msgstr "Tabela de tradução tem mais de 256 caracteres"
392 392  
393   -#: ui/10keypad.xml:147
  393 +#: ui/00default.xml:79
394 394 msgid "Clear"
395 395 msgstr "Limpar"
396 396  
... ... @@ -402,7 +402,7 @@ msgstr &quot;Tema de cores:&quot;
402 402 msgid "Color setup"
403 403 msgstr "Configuração de cores"
404 404  
405   -#: ui/00default.xml:329
  405 +#: ui/00default.xml:107
406 406 msgid "Colors"
407 407 msgstr "Cores"
408 408  
... ... @@ -410,7 +410,7 @@ msgstr &quot;Cores&quot;
410 410 msgid "Complete"
411 411 msgstr "Completo"
412 412  
413   -#: ui/00default.xml:339
  413 +#: ui/00default.xml:117
414 414 msgid "Connect on startup"
415 415 msgstr "Conectar ao iniciar"
416 416  
... ... @@ -422,19 +422,23 @@ msgstr &quot;Conexão falhou&quot;
422 422 msgid "Connection reset by peer"
423 423 msgstr "Conexão foi cancelada pelo servidor"
424 424  
425   -#: ui/00default.xml:283
  425 +#: ui/98teste.xml:462
  426 +msgid "Copiar tudo"
  427 +msgstr "Copiar tudo"
  428 +
  429 +#: ui/00default.xml:61
426 430 msgid "Copy"
427 431 msgstr "Copiar"
428 432  
429   -#: ui/99debug.xml:200
  433 +#: ui/99debug.xml:511
430 434 msgid "Copy as HTML"
431 435 msgstr "Copiar como HTML"
432 436  
433   -#: ui/00default.xml:284
  437 +#: ui/00default.xml:62
434 438 msgid "Copy as table"
435 439 msgstr "Copiar como tabela"
436 440  
437   -#: ui/00default.xml:346
  441 +#: ui/00default.xml:124
438 442 msgid "Cross Hair Cursor"
439 443 msgstr "Cursor mira"
440 444  
... ... @@ -451,7 +455,7 @@ msgstr &quot;Atual (%s)&quot;
451 455 msgid "Custom colors"
452 456 msgstr "Cores personalizadas"
453 457  
454   -#: ui/00default.xml:287
  458 +#: ui/00default.xml:65
455 459 msgid "Cut"
456 460 msgstr "Recortar"
457 461  
... ... @@ -463,7 +467,7 @@ msgstr &quot;Cilindros&quot;
463 467 msgid "DFT B_uffer size:"
464 468 msgstr "Tamanho do b_uffer DFT:"
465 469  
466   -#: ui/99debug.xml:205
  470 +#: ui/99debug.xml:516
467 471 msgid "DS Trace"
468 472 msgstr "DS Trace"
469 473  
... ... @@ -479,11 +483,11 @@ msgstr &quot;Verde Escuro&quot;
479 483 msgid "Data conversion error"
480 484 msgstr "Erro na conversão de dados"
481 485  
482   -#: ui/99debug.xml:213
  486 +#: ui/99debug.xml:524
483 487 msgid "Debug"
484 488 msgstr "Depuração"
485 489  
486   -#: ui/99debug.xml:215
  490 +#: ui/99debug.xml:526
487 491 msgid "Debug window updates"
488 492 msgstr "Mostrar atualizações de janela"
489 493  
... ... @@ -491,7 +495,7 @@ msgstr &quot;Mostrar atualizações de janela&quot;
491 495 msgid "Default"
492 496 msgstr "Padrão"
493 497  
494   -#: ui/00default.xml:303
  498 +#: ui/00default.xml:81
495 499 msgid "Delete field"
496 500 msgstr "Apagar campo"
497 501  
... ... @@ -523,7 +527,7 @@ msgstr &quot;Nome do servidor em branco&quot;
523 527 msgid "Empty port name"
524 528 msgstr "Porta em branco"
525 529  
526   -#: ui/10keypad.xml:151
  530 +#: ui/10keypad.xml:413
527 531 msgid ""
528 532 "Erase\n"
529 533 "EOF"
... ... @@ -531,7 +535,7 @@ msgstr &quot;&quot;
531 535 "Apagar\n"
532 536 "Campo"
533 537  
534   -#: ui/10keypad.xml:152
  538 +#: ui/10keypad.xml:414
535 539 msgid ""
536 540 "Erase\n"
537 541 "Input"
... ... @@ -539,15 +543,15 @@ msgstr &quot;&quot;
539 543 "Apagar\n"
540 544 "Campos"
541 545  
542   -#: ui/00default.xml:302
  546 +#: ui/00default.xml:80
543 547 msgid "Erase input"
544 548 msgstr "Apagar campos"
545 549  
546   -#: ui/00default.xml:304
  550 +#: ui/00default.xml:82
547 551 msgid "Erase to end of field"
548 552 msgstr "Apagar até o final do campo"
549 553  
550   -#: ui/00default.xml:305
  554 +#: ui/00default.xml:83
551 555 msgid "Erase to end of line"
552 556 msgstr "Apagar até o final da linha"
553 557  
... ... @@ -590,7 +594,7 @@ msgstr &quot;Erro lendo %s&quot;
590 594 msgid "Error resolving %s: %s"
591 595 msgstr "Erro ao resolver %s: %s"
592 596  
593   -#: ui/99debug.xml:207
  597 +#: ui/99debug.xml:518
594 598 msgid "Event Trace"
595 599 msgstr "Trace de eventos"
596 600  
... ... @@ -622,15 +626,15 @@ msgstr &quot;Transferência de arquivos já está ativa nesta sessão&quot;
622 626 msgid "Fixed"
623 627 msgstr "Fixo"
624 628  
625   -#: ui/00default.xml:343
  629 +#: ui/00default.xml:121
626 630 msgid "Full Screen"
627 631 msgstr "Tela cheia"
628 632  
629   -#: ui/10functions.xml:35
  633 +#: ui/10functions.xml:297
630 634 msgid "Function bar"
631 635 msgstr "Barra de funções"
632 636  
633   -#: main.c:80 main.c:279
  637 +#: main.c:84 main.c:314
634 638 msgid "GTK Version mismatch"
635 639 msgstr "Divergência de versão GTK"
636 640  
... ... @@ -671,7 +675,7 @@ msgstr &quot;HTTP Proxy: EOF inesperado&quot;
671 675 msgid "HTTP Proxy: unrecognized reply"
672 676 msgstr "HTTP Proxy: Resposta desconhecida"
673 677  
674   -#: ui/00default.xml:364
  678 +#: ui/00default.xml:142
675 679 msgid "Help"
676 680 msgstr "Ajuda"
677 681  
... ... @@ -699,7 +703,7 @@ msgstr &quot;Servidor rejeitou o tipo de dispositivo ou requisição&quot;
699 703 msgid "Host rejected resource(s)"
700 704 msgstr "Servidor rejeitou recurso(s)"
701 705  
702   -#: main.c:220
  706 +#: main.c:255
703 707 msgid "Host to connect"
704 708 msgstr "Servidor a conectar"
705 709  
... ... @@ -724,7 +728,7 @@ msgstr &quot;Comprimento de frame inválido&quot;
724 728 msgid "Informations"
725 729 msgstr "Informações"
726 730  
727   -#: ui/00default.xml:359
  731 +#: ui/00default.xml:137
728 732 msgid "Input method"
729 733 msgstr "Método de entrada"
730 734  
... ... @@ -767,7 +771,7 @@ msgstr &quot;Sintaxe de proxy inválida&quot;
767 771 msgid "Invalid proxy type '%.*s'"
768 772 msgstr "Tipo de proxy invalido '%.*s'"
769 773  
770   -#: ui/00default.xml:352
  774 +#: ui/00default.xml:130
771 775 msgid "Keep selected"
772 776 msgstr "Manter selecionado"
773 777  
... ... @@ -779,7 +783,7 @@ msgstr &quot;Teclado está bloqueado&quot;
779 783 msgid "LRECL:"
780 784 msgstr "LRECL:"
781 785  
782   -#: ui/10keypad.xml:101
  786 +#: ui/10keypad.xml:363
783 787 msgid "Lateral keypad"
784 788 msgstr "Barra lateral"
785 789  
... ... @@ -796,7 +800,7 @@ msgstr &quot;Faltando &#39;]&#39;&quot;
796 800 msgid "Model %d (%s)"
797 801 msgstr "Modelo %d (%s)"
798 802  
799   -#: ui/00default.xml:341
  803 +#: ui/00default.xml:119
800 804 msgid "Monocase"
801 805 msgstr "Só Maiúsculas"
802 806  
... ... @@ -828,7 +832,7 @@ msgstr &quot;Erro de rede&quot;
828 832 msgid "Network startup error"
829 833 msgstr "Erro ao iniciar a rede"
830 834  
831   -#: ui/00default.xml:411
  835 +#: ui/00default.xml:189
832 836 msgid "Next field"
833 837 msgstr "Próximo campo"
834 838  
... ... @@ -881,115 +885,115 @@ msgstr &quot;Opções&quot;
881 885 msgid "Orange"
882 886 msgstr "Laranja"
883 887  
884   -#: ui/10keypad.xml:138
  888 +#: ui/10keypad.xml:400
885 889 msgid "PA1"
886 890 msgstr "PA1"
887 891  
888   -#: ui/10keypad.xml:139
  892 +#: ui/10keypad.xml:401
889 893 msgid "PA2"
890 894 msgstr "PA2"
891 895  
892   -#: ui/10keypad.xml:140
  896 +#: ui/10keypad.xml:402
893 897 msgid "PA3"
894 898 msgstr "PA3"
895 899  
896   -#: ui/10functions.xml:36
  900 +#: ui/10functions.xml:298
897 901 msgid "PF1"
898 902 msgstr "PF1"
899 903  
900   -#: ui/10functions.xml:45
  904 +#: ui/10functions.xml:307
901 905 msgid "PF10"
902 906 msgstr "PF10"
903 907  
904   -#: ui/10functions.xml:46
  908 +#: ui/10functions.xml:308
905 909 msgid "PF11"
906 910 msgstr "PF11"
907 911  
908   -#: ui/10functions.xml:47
  912 +#: ui/10functions.xml:309
909 913 msgid "PF12"
910 914 msgstr "PF12"
911 915  
912   -#: ui/10functions.xml:50
  916 +#: ui/10functions.xml:312
913 917 msgid "PF13"
914 918 msgstr "PF13"
915 919  
916   -#: ui/10functions.xml:51
  920 +#: ui/10functions.xml:313
917 921 msgid "PF14"
918 922 msgstr "PF14"
919 923  
920   -#: ui/10functions.xml:52
  924 +#: ui/10functions.xml:314
921 925 msgid "PF15"
922 926 msgstr "PF15"
923 927  
924   -#: ui/10functions.xml:53
  928 +#: ui/10functions.xml:315
925 929 msgid "PF16"
926 930 msgstr "PF16"
927 931  
928   -#: ui/10functions.xml:54
  932 +#: ui/10functions.xml:316
929 933 msgid "PF17"
930 934 msgstr "PF17"
931 935  
932   -#: ui/10functions.xml:55
  936 +#: ui/10functions.xml:317
933 937 msgid "PF18"
934 938 msgstr "PF18"
935 939  
936   -#: ui/10functions.xml:56
  940 +#: ui/10functions.xml:318
937 941 msgid "PF19"
938 942 msgstr "PF19"
939 943  
940   -#: ui/10functions.xml:37
  944 +#: ui/10functions.xml:299
941 945 msgid "PF2"
942 946 msgstr "PF2"
943 947  
944   -#: ui/10functions.xml:57
  948 +#: ui/10functions.xml:319
945 949 msgid "PF20"
946 950 msgstr "PF20"
947 951  
948   -#: ui/10functions.xml:58
  952 +#: ui/10functions.xml:320
949 953 msgid "PF21"
950 954 msgstr "PF21"
951 955  
952   -#: ui/10functions.xml:59
  956 +#: ui/10functions.xml:321
953 957 msgid "PF22"
954 958 msgstr "PF22"
955 959  
956   -#: ui/10functions.xml:60
  960 +#: ui/10functions.xml:322
957 961 msgid "PF23"
958 962 msgstr "PF23"
959 963  
960   -#: ui/10functions.xml:61
  964 +#: ui/10functions.xml:323
961 965 msgid "PF24"
962 966 msgstr "PF24"
963 967  
964   -#: ui/10functions.xml:38
  968 +#: ui/10functions.xml:300
965 969 msgid "PF3"
966 970 msgstr "PF3"
967 971  
968   -#: ui/10functions.xml:39
  972 +#: ui/10functions.xml:301
969 973 msgid "PF4"
970 974 msgstr "PF4"
971 975  
972   -#: ui/10functions.xml:40
  976 +#: ui/10functions.xml:302
973 977 msgid "PF5"
974 978 msgstr "PF5"
975 979  
976   -#: ui/10functions.xml:41
  980 +#: ui/10functions.xml:303
977 981 msgid "PF6"
978 982 msgstr "PF6"
979 983  
980   -#: ui/10functions.xml:42
  984 +#: ui/10functions.xml:304
981 985 msgid "PF7"
982 986 msgstr "PF7"
983 987  
984   -#: ui/10functions.xml:43
  988 +#: ui/10functions.xml:305
985 989 msgid "PF8"
986 990 msgstr "PF8"
987 991  
988   -#: ui/10functions.xml:44
  992 +#: ui/10functions.xml:306
989 993 msgid "PF9"
990 994 msgstr "PF9"
991 995  
992   -#: main.c:244
  996 +#: main.c:279
993 997 msgid "Parse error"
994 998 msgstr "Erro de interpretação"
995 999  
... ... @@ -1002,15 +1006,15 @@ msgstr &quot;Erro de interpretação em %s&quot;
1002 1006 msgid "Passthru Proxy: send error"
1003 1007 msgstr "Passthru Proxy: Erro ao enviar"
1004 1008  
1005   -#: ui/00default.xml:288
  1009 +#: ui/00default.xml:66
1006 1010 msgid "Paste"
1007 1011 msgstr "Colar"
1008 1012  
1009   -#: ui/00default.xml:289
  1013 +#: ui/00default.xml:67
1010 1014 msgid "Paste next"
1011 1015 msgstr "Colar próximo"
1012 1016  
1013   -#: ui/00default.xml:292
  1017 +#: ui/00default.xml:70
1014 1018 msgid "Paste text file"
1015 1019 msgstr "Colar arquivo texto"
1016 1020  
... ... @@ -1018,15 +1022,19 @@ msgstr &quot;Colar arquivo texto&quot;
1018 1022 msgid "Paste text file contents"
1019 1023 msgstr "Colar conteúdo de arquivo texto"
1020 1024  
1021   -#: ui/00default.xml:345
  1025 +#: ui/00default.xml:123
1022 1026 msgid "Paste with left margin"
1023 1027 msgstr "Colar com margem esquerda"
1024 1028  
  1029 +#: main.c:252
  1030 +msgid "Path to application data files"
  1031 +msgstr "Path to application data files"
  1032 +
1025 1033 #: colors.c:379
1026 1034 msgid "Pink"
1027 1035 msgstr "Rosa"
1028 1036  
1029   -#: ui/00default.xml:410
  1037 +#: ui/00default.xml:188
1030 1038 msgid "Previous field"
1031 1039 msgstr "Campo anterior"
1032 1040  
... ... @@ -1034,11 +1042,11 @@ msgstr &quot;Campo anterior&quot;
1034 1042 msgid "Primary space:"
1035 1043 msgstr "Primary space:"
1036 1044  
1037   -#: ui/00default.xml:271
  1045 +#: ui/00default.xml:49
1038 1046 msgid "Print"
1039 1047 msgstr "Imprimir"
1040 1048  
1041   -#: ui/00default.xml:273
  1049 +#: ui/00default.xml:51
1042 1050 msgid "Print copy"
1043 1051 msgstr "Imprimir cópia"
1044 1052  
... ... @@ -1046,7 +1054,7 @@ msgstr &quot;Imprimir cópia&quot;
1046 1054 msgid "Print operation failed"
1047 1055 msgstr "Operação de impressão falhou"
1048 1056  
1049   -#: ui/00default.xml:272
  1057 +#: ui/00default.xml:50
1050 1058 msgid "Print selected"
1051 1059 msgstr "Imprimir seleção"
1052 1060  
... ... @@ -1054,7 +1062,7 @@ msgstr &quot;Imprimir seleção&quot;
1054 1062 msgid "Print selection box"
1055 1063 msgstr "Imprimir marca de seleção"
1056 1064  
1057   -#: print.c:743 ui/00default.xml:330
  1065 +#: print.c:743 ui/00default.xml:108
1058 1066 msgid "Print settings"
1059 1067 msgstr "Configurações de impressão"
1060 1068  
... ... @@ -1142,7 +1150,7 @@ msgstr &quot;RPQ: can&#39;t resolve &#39;%s&#39;: %s&quot;
1142 1150 msgid "RPQ: gethostbyname error"
1143 1151 msgstr "RPQ: Erro em gethostbyname"
1144 1152  
1145   -#: ui/00default.xml:276
  1153 +#: ui/00default.xml:54
1146 1154 msgid "Receive file"
1147 1155 msgstr "Receber arquivo"
1148 1156  
... ... @@ -1158,27 +1166,27 @@ msgstr &quot;Formato de registro&quot;
1158 1166 msgid "Red"
1159 1167 msgstr "Vermelho"
1160 1168  
1161   -#: ui/99debug.xml:214
  1169 +#: ui/99debug.xml:525
1162 1170 msgid "Reload buffer contents"
1163 1171 msgstr "Recarregar conteúdo do buffer"
1164 1172  
1165   -#: ui/00default.xml:297
  1173 +#: ui/00default.xml:75
1166 1174 msgid "Remove selection"
1167 1175 msgstr "Remover seleção"
1168 1176  
1169   -#: ui/00default.xml:298
  1177 +#: ui/00default.xml:76
1170 1178 msgid "Reselect"
1171 1179 msgstr "Reselecionar"
1172 1180  
1173   -#: ui/10keypad.xml:148
  1181 +#: ui/10keypad.xml:410
1174 1182 msgid "Reset"
1175 1183 msgstr "Reset"
1176 1184  
1177   -#: ui/00default.xml:344
  1185 +#: ui/00default.xml:122
1178 1186 msgid "Resize on alternate screen"
1179 1187 msgstr "Mudar tamanho do terminal em tela alternativa"
1180 1188  
1181   -#: ui/00default.xml:412
  1189 +#: ui/00default.xml:190
1182 1190 msgid "Return"
1183 1191 msgstr "Return"
1184 1192  
... ... @@ -1318,14 +1326,29 @@ msgstr &quot;Erro SSL&quot;
1318 1326 msgid "SSL Read error"
1319 1327 msgstr "Erro de leitura SSL"
1320 1328  
  1329 +#: telnet.c:3267
  1330 +#, fuzzy
  1331 +msgid "SSL connect failed!"
  1332 +msgstr "Segundo connect() falhou"
  1333 +
1321 1334 #: host.c:302
1322 1335 msgid "SSL error"
1323 1336 msgstr "Erro SSL"
1324 1337  
  1338 +#: telnet.c:3246
  1339 +#, fuzzy
  1340 +msgid "SSL init failed!"
  1341 +msgstr "Negociação SSL falhou"
  1342 +
1325 1343 #: telnet.c:849
1326 1344 msgid "SSL negotiation failed"
1327 1345 msgstr "Negociação SSL falhou"
1328 1346  
  1347 +#: telnet.c:3255
  1348 +#, fuzzy
  1349 +msgid "SSL_set_fd failed!"
  1350 +msgstr "Negociação SSL falhou"
  1351 +
1329 1352 #: telnet.c:2049
1330 1353 #, c-format
1331 1354 msgid ""
... ... @@ -1335,7 +1358,7 @@ msgstr &quot;&quot;
1335 1358 "SSL_write:\n"
1336 1359 "%s"
1337 1360  
1338   -#: ui/00default.xml:268
  1361 +#: ui/00default.xml:46
1339 1362 msgid "Save copy"
1340 1363 msgstr "Salvar cópia"
1341 1364  
... ... @@ -1343,7 +1366,7 @@ msgstr &quot;Salvar cópia&quot;
1343 1366 msgid "Save copy to file"
1344 1367 msgstr "Salvar cópia para arquivo"
1345 1368  
1346   -#: ui/00default.xml:266
  1369 +#: ui/00default.xml:44
1347 1370 msgid "Save screen"
1348 1371 msgstr "Salvar tela"
1349 1372  
... ... @@ -1351,7 +1374,7 @@ msgstr &quot;Salvar tela&quot;
1351 1374 msgid "Save screen to file"
1352 1375 msgstr "Salvar tela para arquivo"
1353 1376  
1354   -#: ui/00default.xml:267
  1377 +#: ui/00default.xml:45
1355 1378 msgid "Save selected"
1356 1379 msgstr "Salvar seleção"
1357 1380  
... ... @@ -1359,15 +1382,15 @@ msgstr &quot;Salvar seleção&quot;
1359 1382 msgid "Save selection to file"
1360 1383 msgstr "Salvar seleção para arquivo"
1361 1384  
1362   -#: ui/99debug.xml:206
  1385 +#: ui/99debug.xml:517
1363 1386 msgid "Screen Trace"
1364 1387 msgstr "Trace de tela"
1365 1388  
1366   -#: ui/00default.xml:336
  1389 +#: ui/00default.xml:114
1367 1390 msgid "Screen size"
1368 1391 msgstr "Tamanho da tela"
1369 1392  
1370   -#: ui/00default.xml:311
  1393 +#: ui/00default.xml:89
1371 1394 msgid "Scripts"
1372 1395 msgstr "Scripts"
1373 1396  
... ... @@ -1375,15 +1398,15 @@ msgstr &quot;Scripts&quot;
1375 1398 msgid "Secondary space:"
1376 1399 msgstr "Secondary space:"
1377 1400  
1378   -#: ui/00default.xml:296
  1401 +#: ui/00default.xml:74
1379 1402 msgid "Select Field"
1380 1403 msgstr "Selecionar campo"
1381 1404  
1382   -#: ui/00default.xml:295
  1405 +#: ui/00default.xml:73
1383 1406 msgid "Select all"
1384 1407 msgstr "Selecionar tudo"
1385 1408  
1386   -#: ui/00default.xml:348
  1409 +#: ui/00default.xml:126
1387 1410 msgid "Select by rectangles"
1388 1411 msgstr "Seleção retangular"
1389 1412  
... ... @@ -1395,7 +1418,7 @@ msgstr &quot;Selecione arquivo a receber&quot;
1395 1418 msgid "Select file to send"
1396 1419 msgstr "Selecione arquivo a enviar"
1397 1420  
1398   -#: ui/00default.xml:333
  1421 +#: ui/00default.xml:111
1399 1422 msgid "Select font"
1400 1423 msgstr "Selecione fonte"
1401 1424  
... ... @@ -1411,7 +1434,7 @@ msgstr &quot;Fundo da seleção&quot;
1411 1434 msgid "Selection foreground"
1412 1435 msgstr "Frente da seleção"
1413 1436  
1414   -#: ui/00default.xml:277
  1437 +#: ui/00default.xml:55
1415 1438 msgid "Send file"
1416 1439 msgstr "Enviar arquivo"
1417 1440  
... ... @@ -1419,35 +1442,35 @@ msgstr &quot;Enviar arquivo&quot;
1419 1442 msgid "Send file to host"
1420 1443 msgstr "Enviar arquivo para o servidor"
1421 1444  
1422   -#: ui/00default.xml:276
  1445 +#: ui/00default.xml:54
1423 1446 msgid "Send/Receive"
1424 1447 msgstr "Enviar/Receber"
1425 1448  
1426   -#: main.c:219
  1449 +#: main.c:254
1427 1450 msgid "Session name"
1428 1451 msgstr "Nome da sessão"
1429 1452  
1430   -#: ui/00default.xml:314
  1453 +#: ui/00default.xml:92
1431 1454 msgid "Set hostname"
1432 1455 msgstr "Selecione servidor"
1433 1456  
1434   -#: main.c:221
  1457 +#: main.c:256
1435 1458 msgid "Set reported colors (8/16)"
1436 1459 msgstr "Set reported colors (8/16)"
1437 1460  
1438   -#: ui/00default.xml:329
  1461 +#: ui/00default.xml:107
1439 1462 msgid "Settings"
1440 1463 msgstr "Configurações"
1441 1464  
1442   -#: ui/00default.xml:351
  1465 +#: ui/00default.xml:129
1443 1466 msgid "Show Underline"
1444 1467 msgstr "Mostrar sublinhado"
1445 1468  
1446   -#: ui/99debug.xml:213
  1469 +#: ui/99debug.xml:524
1447 1470 msgid "Show test pattern"
1448 1471 msgstr "Mostrar padrão de teste"
1449 1472  
1450   -#: ui/00default.xml:353
  1473 +#: ui/00default.xml:131
1451 1474 msgid "Smart paste"
1452 1475 msgstr "Colar inteligente"
1453 1476  
... ... @@ -1528,7 +1551,7 @@ msgstr &quot;&quot;
1528 1551 "programa; se não, escreva para a Free Software Foundation, Inc., 59 Temple "
1529 1552 "Place, Suite 330, Boston, MA, 02111-1307, USA"
1530 1553  
1531   -#: main.c:275
  1554 +#: main.c:310
1532 1555 #, c-format
1533 1556 msgid "This program requires GTK version %d.%d.%d"
1534 1557 msgstr "Este programa precisa do GTK versão %d.%d.%d"
... ... @@ -1539,15 +1562,15 @@ msgid &quot;&quot;
1539 1562 "This version of %s was built without support for secure sockets layer (SSL)."
1540 1563 msgstr "Esta versão do %s foi gerada sem suporte para conexões seguras (SSL)."
1541 1564  
1542   -#: ui/00default.xml:370
  1565 +#: ui/00default.xml:148
1543 1566 msgid "Toolbar"
1544 1567 msgstr "Barra de ferramentas"
1545 1568  
1546   -#: ui/99debug.xml:205
  1569 +#: ui/99debug.xml:516
1547 1570 msgid "Trace"
1548 1571 msgstr "Trace"
1549 1572  
1550   -#: ui/00default.xml:342
  1573 +#: ui/00default.xml:120
1551 1574 msgid "Track Cursor"
1552 1575 msgstr "Mostrar posição do cursor"
1553 1576  
... ... @@ -1628,7 +1651,7 @@ msgstr &quot;Atributo %s inesperado ou inválido: \&quot;%s\&quot;&quot;
1628 1651 msgid "Unexpected or invalid attribute value \"%s\""
1629 1652 msgstr "Valor de attributo inesperado ou inválido: \"%s\""
1630 1653  
1631   -#: main.c:143
  1654 +#: main.c:181
1632 1655 #, c-format
1633 1656 msgid "Unexpected or invalid color value \"%s\""
1634 1657 msgstr "Valor de cor inválido ou inesperado: \"%s\""
... ... @@ -1709,7 +1732,7 @@ msgstr &quot;Unsupported passthru host session&quot;
1709 1732 msgid "Unsupported socks 4 proxy"
1710 1733 msgstr "Unsupported socks 4 proxy"
1711 1734  
1712   -#: ui/00default.xml:355
  1735 +#: ui/00default.xml:133
1713 1736 msgid "Use +/- for field navigation"
1714 1737 msgstr "Usar teclas +/- para navegar por campos"
1715 1738  
... ... @@ -1722,7 +1745,7 @@ msgstr &quot;Variável&quot;
1722 1745 msgid "Version %s - Revision %s"
1723 1746 msgstr "Versão %s - Revisão %s"
1724 1747  
1725   -#: ui/99debug.xml:208
  1748 +#: ui/99debug.xml:519
1726 1749 msgid "View Field Delimiters"
1727 1750 msgstr "Mostrar delimitadores de campo"
1728 1751  
... ... @@ -1750,7 +1773,7 @@ msgstr &quot;Europa ocidental (ISO 8859-1)&quot;
1750 1773 msgid "White"
1751 1774 msgstr "Branco"
1752 1775  
1753   -#: ui/00default.xml:381
  1776 +#: ui/00default.xml:159
1754 1777 msgid "Window"
1755 1778 msgstr "Janela"
1756 1779  
... ... @@ -1818,19 +1841,19 @@ msgstr &quot;_Acrescentar&quot;
1818 1841 msgid "_Browse"
1819 1842 msgstr "_Procurar"
1820 1843  
1821   -#: ui/00default.xml:324
  1844 +#: ui/00default.xml:102
1822 1845 msgid "_Connect"
1823 1846 msgstr "_Conectar"
1824 1847  
1825   -#: ui/00default.xml:325
  1848 +#: ui/00default.xml:103
1826 1849 msgid "_Disconnect"
1827 1850 msgstr "_Desconectar"
1828 1851  
1829   -#: ui/99debug.xml:200
  1852 +#: ui/00default.xml:61
1830 1853 msgid "_Edit"
1831 1854 msgstr "_Editar"
1832 1855  
1833   -#: ui/00default.xml:258
  1856 +#: ui/00default.xml:36
1834 1857 msgid "_File"
1835 1858 msgstr "_Arquivo"
1836 1859  
... ... @@ -1858,11 +1881,11 @@ msgstr &quot;Nome do _Host:&quot;
1858 1881 msgid "_Local file name:"
1859 1882 msgstr "Arquivo _local:"
1860 1883  
1861   -#: ui/00default.xml:314
  1884 +#: ui/00default.xml:92
1862 1885 msgid "_Network"
1863 1886 msgstr "_Rede"
1864 1887  
1865   -#: ui/00default.xml:339
  1888 +#: ui/00default.xml:117
1866 1889 msgid "_Options"
1867 1890 msgstr "_Opções"
1868 1891  
... ... @@ -1890,7 +1913,7 @@ msgstr &quot;Arquivo _texto&quot;
1890 1913 msgid "_To"
1891 1914 msgstr "_Para"
1892 1915  
1893   -#: ui/00default.xml:309
  1916 +#: ui/00default.xml:87
1894 1917 msgid "_View"
1895 1918 msgstr "_Exibir"
1896 1919  
... ... @@ -1951,9 +1974,6 @@ msgstr &quot;Erro desconhecido&quot;
1951 1974 #~ msgid "SSLv2/v3 read server hello A"
1952 1975 #~ msgstr "SSLv2/v3 read server hello A"
1953 1976  
1954   -#~ msgid "Second connect() failed"
1955   -#~ msgstr "Segundo connect() falhou"
1956   -
1957 1977 #~ msgid "Set terminal model (screen size)"
1958 1978 #~ msgstr "Modelo de terminal (tamanho da tela)"
1959 1979  
... ...
src/pw3270/common/config.c
... ... @@ -570,7 +570,7 @@ gchar * filename_from_va(const gchar *first_element, va_list args)
570 570 if(datadir)
571 571 result = g_string_new(datadir);
572 572  
573   -#if defined( WIN_REGISTRY_ENABLED )
  573 +#if defined( WIN_REGISTRY_ENABLED )
574 574 if(!result)
575 575 {
576 576 // No predefined datadir, search registry
... ... @@ -587,16 +587,31 @@ gchar * filename_from_va(const gchar *first_element, va_list args)
587 587  
588 588 rc = RegOpenKeyEx(HKEY_LOCAL_MACHINE,path,0,KEY_QUERY_VALUE|KEY_WOW64_64KEY,&hKey);
589 589 SetLastError(rc);
590   -
  590 +
591 591 if(rc == ERROR_SUCCESS)
592 592 {
593 593 char data[4096];
594 594 unsigned long datalen = sizeof(data); // data field length(in), data returned length(out)
595 595 unsigned long datatype; // #defined in winnt.h (predefined types 0-11)
596   -
597   - if(RegQueryValueExA(hKey,NULL,NULL,&datatype,(LPBYTE) data,&datalen) == ERROR_SUCCESS)
  596 +
  597 + rc = RegQueryValueExA(hKey,NULL,NULL,&datatype,(LPBYTE) data,&datalen);
  598 + if(rc == ERROR_SUCCESS)
  599 + {
598 600 result = g_string_new(g_strchomp(data));
  601 + }
  602 + else
  603 + {
  604 + gchar *msg = g_win32_error_message(rc);
  605 + g_message("Error \"%s\" when getting application datadir from registry",msg);
  606 + g_free(msg);
  607 + }
599 608 RegCloseKey(hKey);
  609 + }
  610 + else
  611 + {
  612 + gchar *msg = g_win32_error_message(rc);
  613 + g_message("Error \"%s\" when opening datadir key from registry",msg);
  614 + g_free(msg);
600 615 }
601 616  
602 617 g_free(path);
... ...
src/pw3270/filetransfer.c
... ... @@ -129,13 +129,13 @@ static gboolean is_dialog_ok(GtkEditable *editable, struct ftdialog *dlg)
129 129 const gchar *remote = gtk_entry_get_text(GTK_ENTRY(dlg->file[1]));
130 130 int f;
131 131  
132   - if(!(*local && *remote))
  132 + if(!*remote)
133 133 return FALSE;
134   -
135   -
136   - if( (dlg->option&LIB3270_FT_OPTION_RECEIVE) == 0)
137   - {
138   - if(!g_file_test(local,G_FILE_TEST_EXISTS))
  134 +
  135 + if(!(dlg->option&LIB3270_FT_OPTION_RECEIVE))
  136 + {
  137 + // Sending file, should have local and remote filenames
  138 + if(!( *local && g_file_test(local,G_FILE_TEST_EXISTS)))
139 139 return FALSE;
140 140 }
141 141  
... ... @@ -156,9 +156,24 @@ static gboolean is_dialog_ok(GtkEditable *editable, struct ftdialog *dlg)
156 156  
157 157 return TRUE;
158 158 }
  159 +
  160 +static void check_remote_filename(GtkEditable *editable, struct ftdialog *dlg)
  161 +{
  162 +#if GTK_CHECK_VERSION(3,2,0)
  163 + if(!gtk_entry_get_text_length(dlg->file[0]))
  164 + {
  165 + gchar *basename = g_path_get_basename(gtk_entry_get_text(GTK_ENTRY(editable)));
  166 + gchar *filename = g_build_filename(g_get_user_special_dir(G_USER_DIRECTORY_DOCUMENTS),basename,NULL);
  167 + gtk_entry_set_placeholder_text(dlg->file[0],filename);
  168 + g_free(filename);
  169 + g_free(basename);
  170 + }
  171 +#endif // GTK(3,2)
  172 + gtk_widget_set_sensitive(dlg->ready,is_dialog_ok(editable,dlg));
  173 +}
159 174  
160 175 static void check_entry(GtkEditable *editable, struct ftdialog *dlg)
161   -{
  176 +{
162 177 gtk_widget_set_sensitive(dlg->ready,is_dialog_ok(editable,dlg));
163 178 }
164 179  
... ... @@ -365,15 +380,19 @@ static void run_ft_dialog(GObject *action, GtkWidget *widget, struct ftdialog *d
365 380 H3270FT * ft = NULL;
366 381 const char * msg = NULL;
367 382 int f;
368   - int parm[G_N_ELEMENTS(dlg->parm)];
  383 + int parm[G_N_ELEMENTS(dlg->parm)];
  384 + const gchar * remote_filename;
  385 +
  386 + g_signal_connect(G_OBJECT(dlg->file[0]),"changed",G_CALLBACK(check_entry),dlg);
  387 + g_signal_connect(G_OBJECT(dlg->file[1]),"changed",G_CALLBACK(check_remote_filename),dlg);
369 388  
370   - for(f=0;f<2;f++)
  389 + for(f=0;f<2;f++)
371 390 gtk_widget_set_sensitive(dlg->ready,is_dialog_ok(GTK_EDITABLE(dlg->file[f]),dlg));
372 391  
373 392 gtk_widget_show_all(dlg->dialog);
374 393  
375 394 for(f=0;f<G_N_ELEMENTS(dlg->parm);f++)
376   - {
  395 + {
377 396 if(dlg->parm[f])
378 397 {
379 398 gchar *val = get_attribute(action,dlg,gtk_widget_get_name(GTK_WIDGET(dlg->parm[f])));
... ... @@ -406,15 +425,27 @@ static void run_ft_dialog(GObject *action, GtkWidget *widget, struct ftdialog *d
406 425 {
407 426 parm[f] = 0;
408 427 }
409   - }
410   -
  428 + }
  429 +
  430 + remote_filename = gtk_entry_get_text(dlg->file[1]);
  431 +
411 432 set_string_to_config(dlg->name,"local","%s",gtk_entry_get_text(dlg->file[0]));
412   - set_string_to_config(dlg->name,"remote","%s",gtk_entry_get_text(dlg->file[1]));
  433 + set_string_to_config(dlg->name,"remote","%s",remote_filename);
  434 +
  435 + if(!gtk_entry_get_text_length(dlg->file[0]))
  436 + {
  437 + // Local filename wasn´t set, create a new one
  438 + gchar *basename = g_path_get_basename(remote_filename);
  439 + gchar *filename = g_build_filename(g_get_user_special_dir(G_USER_DIRECTORY_DOCUMENTS),basename,NULL);
  440 + gtk_entry_set_text(dlg->file[0],filename);
  441 + g_free(filename);
  442 + g_free(basename);
  443 + }
413 444  
414 445 ft = lib3270_ft_new( v3270_get_session(widget),
415 446 dlg->option,
416 447 gtk_entry_get_text(dlg->file[0]),
417   - gtk_entry_get_text(dlg->file[1]),
  448 + remote_filename,
418 449 parm[0], // lrecl
419 450 parm[2], // blksize
420 451 parm[1], // primspace
... ...
src/pw3270/main.c
... ... @@ -136,32 +136,33 @@ static gboolean appname(const gchar *option_name, const gchar *value, gpointer d
136 136  
137 137 static gboolean datadir(const gchar *option_name, const gchar *value, gpointer data, GError **error)
138 138 {
139   - gchar * path = g_strconcat("SOFTWARE\\",appname,"\\datadir",NULL);
140   - HKEY hKey;
141   - DWORD disp;
142   - int rc;
143   -
144   - rc = RegCreateKeyEx(HKEY_LOCAL_MACHINE,path,0,NULL,REG_OPTION_NON_VOLATILE,KEY_SET_VALUE|KEY_WOW64_64KEY,NULL,&hKey,&disp);
145   - SetLastError(rc);
146   -
147   - trace("%s=\"%s\" create=%d",path,value,rc);
148   -
149   - if(rc == ERROR_SUCCESS)
150   - {
151   - trace("%s: Value set",__FUNCTION__);
152   - RegSetValueEx(hKey,NULL,0,REG_SZ,(const BYTE *) value,strlen(value)+1);
153   - RegCloseKey(hKey);
154   - }
  139 + gchar * path = g_strconcat("SOFTWARE\\",appname,"\\datadir",NULL);
  140 + HKEY hKey;
  141 + DWORD disp;
  142 + int rc;
  143 +
  144 + rc = RegCreateKeyEx(HKEY_LOCAL_MACHINE,path,0,NULL,REG_OPTION_NON_VOLATILE,KEY_SET_VALUE|KEY_WOW64_64KEY,NULL,&hKey,&disp);
  145 + SetLastError(rc);
  146 +
  147 + trace("%s=\"%s\" create=%d",path,value,rc);
  148 +
  149 + if(rc == ERROR_SUCCESS)
  150 + {
  151 + trace("%s: Value set",__FUNCTION__);
  152 + RegSetValueEx(hKey,NULL,0,REG_SZ,(const BYTE *) value,strlen(value)+1);
  153 + RegCloseKey(hKey);
  154 + }
155 155 else
156 156 {
157   - gchar *msg = g_win32_error_message(rc);
158   - trace("%s failed: %s",__FUNCTION__,msg);
159   - *error = g_error_new(ERROR_DOMAIN,EINVAL, "%s", msg);
160   - g_free(msg);
  157 + gchar *msg = g_win32_error_message(rc);
  158 + trace("%s failed: %s",__FUNCTION__,msg);
  159 + *error = g_error_new(ERROR_DOMAIN,EINVAL, "%s", msg);
  160 + g_free(msg);
161 161 }
162   -
163   - g_free(path);
164   - return rc == ERROR_SUCCESS;
  162 +
  163 + g_free(path);
  164 +
  165 + return rc == ERROR_SUCCESS;
165 166 }
166 167  
167 168 #endif // !win32
... ...