Commit a9ffbf506d9d7a9c6187b80540ec1f4906126401

Authored by Perry Werneck
1 parent 7b85b770

Atualizando tradução pt_br, corrigindo segfault na versão windows.

locale/pt_BR.po
1 1 #
2   -# Perry Werneck <perry.werneck@gmail.com>, 2012, 2013, 2014, 2016, 2017.
  2 +# Perry Werneck <perry.werneck@gmail.com>, 2012, 2013, 2014, 2016, 2017, 2018.
3 3 #
4 4 msgid ""
5 5 msgstr ""
6 6 "Project-Id-Version: pw3270 5.0\n"
7 7 "Report-Msgid-Bugs-To: \n"
8   -"POT-Creation-Date: 2017-08-21 10:15-0300\n"
9   -"PO-Revision-Date: 2017-02-15 17:08-0200\n"
  8 +"POT-Creation-Date: 2018-01-11 17:10-0200\n"
  9 +"PO-Revision-Date: 2018-01-15 13:50-0200\n"
10 10 "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n"
11 11 "Language-Team: Português <perry.werneck@gmail.com>\n"
12 12 "Language: pt_BR\n"
... ... @@ -55,7 +55,7 @@ msgstr &quot;Ação %s precisa de um valor válido&quot;
55 55 msgid "%s action needs src attribute"
56 56 msgstr "Ação %s precisa do atributo src"
57 57  
58   -#: main.c:97
  58 +#: main.c:98
59 59 #, c-format
60 60 msgid "%s requires GTK version %d.%d.%d"
61 61 msgstr "%s requer GTK versão %d.%d.%d"
... ... @@ -95,7 +95,7 @@ msgstr &quot;%s: Tabulação vertical não é suportada&quot;
95 95 msgid "%s<b>%s</b> for %s"
96 96 msgstr "%s<b>%s</b> para %s"
97 97  
98   -#: main.c:400
  98 +#: main.c:402
99 99 msgid "- 3270 Emulator for Gtk"
100 100 msgstr "- Emulador 3270 para GTK"
101 101  
... ... @@ -183,7 +183,7 @@ msgstr &quot;&quot;
183 183 msgid "<b>SSL state is undefined</b>Unexpected SSL status %ld"
184 184 msgstr "<b>Estado do SSL é indefinido</b>Estado SSL inesperado %ld"
185 185  
186   -#: main.c:420
  186 +#: main.c:422
187 187 msgid ""
188 188 "<b>Valid options:</b>\n"
189 189 "\n"
... ... @@ -276,7 +276,7 @@ msgstr &quot;Um parametro de ENVIO/RECEBIMENTO inválido foi enviado para o host.&quot;
276 276 msgid "Appends the source file to the destination file."
277 277 msgstr "Adiciona conteúdo do arquivo origem ao final do arquivo destino."
278 278  
279   -#: main.c:375 main.c:377
  279 +#: main.c:376 main.c:378
280 280 msgid "Application name"
281 281 msgstr "Nome da aplicação"
282 282  
... ... @@ -455,10 +455,15 @@ msgstr &quot;Não foi possível carregar plugin&quot;
455 455 msgid "Can't load plugin %s"
456 456 msgstr "Não foi possível carregar plugin %s"
457 457  
458   -#: main.c:297
  458 +#: main.c:298
459 459 msgid "Can't open file"
460 460 msgstr "Não foi possível abrir arquivo"
461 461  
  462 +#: charset.c:470
  463 +#, c-format
  464 +msgid "Can't parse %s"
  465 +msgstr "Erro ao analisar %s"
  466 +
462 467 #: parser.c:351 parsefile.c:332 parsefile.c:360
463 468 msgid "Can't parse UI"
464 469 msgstr "Não foi possível processar a UI"
... ... @@ -468,6 +473,14 @@ msgstr &quot;Não foi possível processar a UI&quot;
468 473 msgid "Can't parse UI description files in %s"
469 474 msgstr "Incapaz de processar arquivos de descrição de UI em %s"
470 475  
  476 +#: charset.c:366
  477 +msgid "Can't parse cgcsgid value"
  478 +msgstr "Erro ao converter valor do cgcsid"
  479 +
  480 +#: charset.c:284
  481 +msgid "Can't parse character value"
  482 +msgstr "Erro ao analisar valor de caractere"
  483 +
471 484 #: parsefile.c:102 parsefile.c:128
472 485 msgid "Can't parse unnamed element"
473 486 msgstr "Incapaz de processar elemento sem nome"
... ... @@ -513,7 +526,7 @@ msgstr &quot;&quot;
513 526 "Não foi possível salvar a seleção para o arquivo\n"
514 527 "%s"
515 528  
516   -#: main.c:295
  529 +#: main.c:296
517 530 #, c-format
518 531 msgid "Can't save trace data to file %s"
519 532 msgstr "Não foi possível salvar trace no arquivo %s"
... ... @@ -522,7 +535,7 @@ msgstr &quot;Não foi possível salvar trace no arquivo %s&quot;
522 535 msgid "Can't set callback table"
523 536 msgstr "Não foi possível setar a tabela de retornos"
524 537  
525   -#: tools.c:298
  538 +#: tools.c:306
526 539 msgid "Can't set host charset"
527 540 msgstr "Não foi possível definir o charset do host"
528 541  
... ... @@ -614,7 +627,7 @@ msgstr &quot;Certificado revogado&quot;
614 627 msgid "Certificate signature failure"
615 628 msgstr "Falha na assinatura do certificado"
616 629  
617   -#: tools.c:302 selection.c:427
  630 +#: tools.c:310 selection.c:427
618 631 msgid "Charset error"
619 632 msgstr "Erro de codificação de caracteres"
620 633  
... ... @@ -910,7 +923,7 @@ msgstr &quot;Tela cheia&quot;
910 923 msgid "Function bar"
911 924 msgstr "Barra de funções"
912 925  
913   -#: main.c:101 main.c:510
  926 +#: main.c:102 main.c:512
914 927 msgid "GTK Version mismatch"
915 928 msgstr "Divergência de versão GTK"
916 929  
... ... @@ -946,11 +959,11 @@ msgstr &quot;Servidor rejeitou o tipo de dispositivo ou requisição&quot;
946 959 msgid "Host rejected resource(s)"
947 960 msgstr "Servidor rejeitou recurso(s)"
948 961  
949   -#: main.c:383
  962 +#: main.c:384
950 963 msgid "Host system type"
951 964 msgstr "Tipo do sistema no servidor"
952 965  
953   -#: main.c:381
  966 +#: main.c:382
954 967 msgid "Host to connect"
955 968 msgstr "Servidor a conectar"
956 969  
... ... @@ -1055,10 +1068,22 @@ msgid &quot;Invalid callback table, possible version mismatch in lib3270&quot;
1055 1068 msgstr ""
1056 1069 "Tabela de callbacks inválida, possível divergência de versão na lib3270"
1057 1070  
  1071 +#: charset.c:361
  1072 +msgid "Invalid cgcsgid value"
  1073 +msgstr "Valor cgcsgid é inválido"
  1074 +
  1075 +#: charset.c:299
  1076 +msgid "Invalid character value"
  1077 +msgstr "Valor de caractere inválido"
  1078 +
1058 1079 #: selection.c:656
1059 1080 msgid "Invalid cut action"
1060 1081 msgstr "Ação recortar inválida"
1061 1082  
  1083 +#: charset.c:319
  1084 +msgid "Invalid remap scope"
  1085 +msgstr "Escopo de mapeamento inválido"
  1086 +
1062 1087 #: 80javasamples.xml:38
1063 1088 msgid "Java"
1064 1089 msgstr "Java"
... ... @@ -1091,11 +1116,11 @@ msgstr &quot;Ler a fila de um arquivo&quot;
1091 1116 msgid "Local:"
1092 1117 msgstr "Local:"
1093 1118  
1094   -#: main.c:395
  1119 +#: main.c:397
1095 1120 msgid "Log to file"
1096 1121 msgstr "Enviar log para arquivo"
1097 1122  
1098   -#: main.c:388
  1123 +#: main.c:390
1099 1124 msgid "Minutes for auto-disconnect"
1100 1125 msgstr "Minutos para desconexão automática"
1101 1126  
... ... @@ -1332,7 +1357,7 @@ msgstr &quot;PF8&quot;
1332 1357 msgid "PF9"
1333 1358 msgstr "PF9"
1334 1359  
1335   -#: main.c:418
  1360 +#: main.c:420
1336 1361 msgid "Parse error"
1337 1362 msgstr "Erro de interpretação"
1338 1363  
... ... @@ -1361,7 +1386,7 @@ msgstr &quot;Colar com margem esquerda&quot;
1361 1386 msgid "Path and name of the local file"
1362 1387 msgstr "Caminho e nome do arquivo local"
1363 1388  
1364   -#: main.c:389
  1389 +#: main.c:391
1365 1390 msgid "Path for plugin files"
1366 1391 msgstr "Caminho para os arquivos de plugin"
1367 1392  
... ... @@ -1369,7 +1394,7 @@ msgstr &quot;Caminho para os arquivos de plugin&quot;
1369 1394 msgid "Path length constraint exceeded"
1370 1395 msgstr "Path length constraint exceeded"
1371 1396  
1372   -#: main.c:378
  1397 +#: main.c:379
1373 1398 msgid "Path to application data files"
1374 1399 msgstr "Caminho para os arquivos de dados da aplicação"
1375 1400  
... ... @@ -1553,6 +1578,14 @@ msgstr &quot;Vermelho&quot;
1553 1578 msgid "Reload buffer contents"
1554 1579 msgstr "Recarregar conteúdo do buffer"
1555 1580  
  1581 +#: charset.c:474
  1582 +msgid "Remap Failed"
  1583 +msgstr "Remapeamento falhou"
  1584 +
  1585 +#: main.c:388
  1586 +msgid "Remap charset from xml file"
  1587 +msgstr "Remapear caracteres por um arquivo xml"
  1588 +
1556 1589 #: tables.c:67
1557 1590 msgid ""
1558 1591 "Remap the text to ensure maximum compatibility between the workstation's "
... ... @@ -1775,7 +1808,7 @@ msgstr &quot;Certificado auto assinado na cadeia de certificados&quot;
1775 1808 msgid "Send file"
1776 1809 msgstr "Enviar arquivo"
1777 1810  
1778   -#: main.c:392
  1811 +#: main.c:394
1779 1812 msgid "Send messages to syslog"
1780 1813 msgstr "Enviar mensagens para o log do sistema"
1781 1814  
... ... @@ -1791,11 +1824,11 @@ msgstr &quot;Enviar/Receber&quot;
1791 1824 msgid "Sending file"
1792 1825 msgstr "Enviando arquivo"
1793 1826  
1794   -#: main.c:380
  1827 +#: main.c:381
1795 1828 msgid "Session name"
1796 1829 msgstr "Nome da sessão"
1797 1830  
1798   -#: main.c:386
  1831 +#: main.c:387
1799 1832 msgid "Set host charset"
1800 1833 msgstr "Define página de código do host"
1801 1834  
... ... @@ -1803,19 +1836,19 @@ msgstr &quot;Define página de código do host&quot;
1803 1836 msgid "Set insert mode"
1804 1837 msgstr "Set insert mode"
1805 1838  
1806   -#: main.c:382
  1839 +#: main.c:383
1807 1840 msgid "Set reported colors (8/16)"
1808 1841 msgstr "Define número de cores informadas (8/16)"
1809 1842  
1810   -#: main.c:385
  1843 +#: main.c:386
1811 1844 msgid "Set toggles OFF"
1812 1845 msgstr "Desativa toggles"
1813 1846  
1814   -#: main.c:384
  1847 +#: main.c:385
1815 1848 msgid "Set toggles ON"
1816 1849 msgstr "Ativa toggles"
1817 1850  
1818   -#: main.c:394
  1851 +#: main.c:396
1819 1852 msgid "Set trace filename"
1820 1853 msgstr "Define o nome do arquivo de trace"
1821 1854  
... ... @@ -2111,7 +2144,7 @@ msgstr &quot;&quot;
2111 2144 msgid "The known types are %s"
2112 2145 msgstr "Os tipos conhecidos são %s"
2113 2146  
2114   -#: main.c:387
  2147 +#: main.c:389
2115 2148 msgid "The model of 3270 display to be emulated"
2116 2149 msgstr "Modelo de tela 3270 a ser emulada"
2117 2150  
... ... @@ -2162,7 +2195,7 @@ msgstr &quot;&quot;
2162 2195 msgid "There is not enough space available for data on the host."
2163 2196 msgstr "Não existe espaço suficiente no host para os dados."
2164 2197  
2165   -#: tools.c:301
  2198 +#: tools.c:309
2166 2199 #, c-format
2167 2200 msgid "There's no available settings for charset \"%s\""
2168 2201 msgstr "Não encontrei configuração para a tabela de caracteres \"%s\""
... ... @@ -2200,7 +2233,7 @@ msgstr &quot;&quot;
2200 2233 "programa; se não, escreva para a Free Software Foundation, Inc., 59 Temple "
2201 2234 "Place, Suite 330, Boston, MA, 02111-1307, USA"
2202 2235  
2203   -#: main.c:506
  2236 +#: main.c:508
2204 2237 #, c-format
2205 2238 msgid "This program requires GTK version %d.%d.%d"
2206 2239 msgstr "Este programa precisa do GTK versão %d.%d.%d"
... ... @@ -2211,6 +2244,10 @@ msgid &quot;&quot;
2211 2244 "This version of %s was built without support for secure sockets layer (SSL)."
2212 2245 msgstr "Esta versão do %s foi gerada sem suporte para conexões seguras (SSL)."
2213 2246  
  2247 +#: charset.c:376
  2248 +msgid "Too many remaps"
  2249 +msgstr "Muitos remapeamentos"
  2250 +
2214 2251 #: 00default.xml:146
2215 2252 msgid "Toolbar"
2216 2253 msgstr "Barra de ferramentas"
... ... @@ -2385,7 +2422,7 @@ msgstr &quot;Atributo %s inesperado ou inválido: \&quot;%s\&quot;&quot;
2385 2422 msgid "Unexpected or invalid attribute value \"%s\""
2386 2423 msgstr "Valor de attributo inesperado ou inválido: \"%s\""
2387 2424  
2388   -#: main.c:202
  2425 +#: main.c:203
2389 2426 #, c-format
2390 2427 msgid "Unexpected or invalid color value \"%s\""
2391 2428 msgstr "Valor de cor inválido ou inesperado: \"%s\""
... ... @@ -2714,7 +2751,7 @@ msgstr &quot;Atributo inesperado \&quot;action\&quot; em &lt;%s&gt;&quot;
2714 2751 msgid "an action attribute"
2715 2752 msgstr "um atributo \"action\""
2716 2753  
2717   -#: session.c:268
  2754 +#: session.c:271
2718 2755 msgid "bracket"
2719 2756 msgstr "bracket"
2720 2757  
... ... @@ -2938,9 +2975,6 @@ msgstr &quot;translator-credits&quot;
2938 2975 #~ msgid "Informations"
2939 2976 #~ msgstr "Informações"
2940 2977  
2941   -#~ msgid "Invalid (empty) hostname"
2942   -#~ msgstr "Nome do host é invalido (vazio)"
2943   -
2944 2978 #~ msgid "Invalid CGCSGID '%s', ignoring"
2945 2979 #~ msgstr "Invalid CGCSGID '%s', ignoring"
2946 2980  
... ...
locale/pw3270.pot
... ... @@ -9,7 +9,7 @@ msgstr &quot;&quot;
9 9 "#-#-#-#-# lib3270.pot (PACKAGE VERSION) #-#-#-#-#\n"
10 10 "Project-Id-Version: PACKAGE VERSION\n"
11 11 "Report-Msgid-Bugs-To: \n"
12   -"POT-Creation-Date: 2017-09-20 13:50-0300\n"
  12 +"POT-Creation-Date: 2018-01-11 17:20-0200\n"
13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14 14 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15 15 "Language-Team: LANGUAGE <LL@li.org>\n"
... ... @@ -20,7 +20,7 @@ msgstr &quot;&quot;
20 20 "#-#-#-#-# pw3270.pot (PACKAGE VERSION) #-#-#-#-#\n"
21 21 "Project-Id-Version: PACKAGE VERSION\n"
22 22 "Report-Msgid-Bugs-To: \n"
23   -"POT-Creation-Date: 2017-09-20 13:50-0300\n"
  23 +"POT-Creation-Date: 2018-01-11 17:20-0200\n"
24 24 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
25 25 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
26 26 "Language-Team: LANGUAGE <LL@li.org>\n"
... ... @@ -76,7 +76,7 @@ msgstr &quot;&quot;
76 76 msgid "%s action needs src attribute"
77 77 msgstr ""
78 78  
79   -#: main.c:97
  79 +#: main.c:98
80 80 #, c-format
81 81 msgid "%s requires GTK version %d.%d.%d"
82 82 msgstr ""
... ... @@ -116,7 +116,7 @@ msgstr &quot;&quot;
116 116 msgid "%s<b>%s</b> for %s"
117 117 msgstr ""
118 118  
119   -#: main.c:400
  119 +#: main.c:402
120 120 msgid "- 3270 Emulator for Gtk"
121 121 msgstr ""
122 122  
... ... @@ -198,7 +198,7 @@ msgstr &quot;&quot;
198 198 msgid "<b>SSL state is undefined</b>Unexpected SSL status %ld"
199 199 msgstr ""
200 200  
201   -#: main.c:420
  201 +#: main.c:422
202 202 msgid ""
203 203 "<b>Valid options:</b>\n"
204 204 "\n"
... ... @@ -284,7 +284,7 @@ msgstr &quot;&quot;
284 284 msgid "Appends the source file to the destination file."
285 285 msgstr ""
286 286  
287   -#: main.c:375 main.c:377
  287 +#: main.c:376 main.c:378
288 288 msgid "Application name"
289 289 msgstr ""
290 290  
... ... @@ -460,10 +460,15 @@ msgstr &quot;&quot;
460 460 msgid "Can't load plugin %s"
461 461 msgstr ""
462 462  
463   -#: main.c:297
  463 +#: main.c:298
464 464 msgid "Can't open file"
465 465 msgstr ""
466 466  
  467 +#: charset.c:470
  468 +#, c-format
  469 +msgid "Can't parse %s"
  470 +msgstr ""
  471 +
467 472 #: parser.c:351 parsefile.c:332 parsefile.c:360
468 473 msgid "Can't parse UI"
469 474 msgstr ""
... ... @@ -473,6 +478,14 @@ msgstr &quot;&quot;
473 478 msgid "Can't parse UI description files in %s"
474 479 msgstr ""
475 480  
  481 +#: charset.c:366
  482 +msgid "Can't parse cgcsgid value"
  483 +msgstr ""
  484 +
  485 +#: charset.c:284
  486 +msgid "Can't parse character value"
  487 +msgstr ""
  488 +
476 489 #: parsefile.c:102 parsefile.c:128
477 490 msgid "Can't parse unnamed element"
478 491 msgstr ""
... ... @@ -512,7 +525,7 @@ msgid &quot;&quot;
512 525 "%s"
513 526 msgstr ""
514 527  
515   -#: main.c:295
  528 +#: main.c:296
516 529 #, c-format
517 530 msgid "Can't save trace data to file %s"
518 531 msgstr ""
... ... @@ -521,7 +534,7 @@ msgstr &quot;&quot;
521 534 msgid "Can't set callback table"
522 535 msgstr ""
523 536  
524   -#: tools.c:298
  537 +#: tools.c:306
525 538 msgid "Can't set host charset"
526 539 msgstr ""
527 540  
... ... @@ -607,7 +620,7 @@ msgstr &quot;&quot;
607 620 msgid "Certificate signature failure"
608 621 msgstr ""
609 622  
610   -#: tools.c:302 selection.c:427
  623 +#: tools.c:310 selection.c:427
611 624 msgid "Charset error"
612 625 msgstr ""
613 626  
... ... @@ -893,7 +906,7 @@ msgstr &quot;&quot;
893 906 msgid "Function bar"
894 907 msgstr ""
895 908  
896   -#: main.c:101 main.c:510
  909 +#: main.c:102 main.c:512
897 910 msgid "GTK Version mismatch"
898 911 msgstr ""
899 912  
... ... @@ -929,11 +942,11 @@ msgstr &quot;&quot;
929 942 msgid "Host rejected resource(s)"
930 943 msgstr ""
931 944  
932   -#: main.c:383
  945 +#: main.c:384
933 946 msgid "Host system type"
934 947 msgstr ""
935 948  
936   -#: main.c:381
  949 +#: main.c:382
937 950 msgid "Host to connect"
938 951 msgstr ""
939 952  
... ... @@ -1025,10 +1038,22 @@ msgstr &quot;&quot;
1025 1038 msgid "Invalid callback table, possible version mismatch in lib3270"
1026 1039 msgstr ""
1027 1040  
  1041 +#: charset.c:361
  1042 +msgid "Invalid cgcsgid value"
  1043 +msgstr ""
  1044 +
  1045 +#: charset.c:299
  1046 +msgid "Invalid character value"
  1047 +msgstr ""
  1048 +
1028 1049 #: selection.c:656
1029 1050 msgid "Invalid cut action"
1030 1051 msgstr ""
1031 1052  
  1053 +#: charset.c:319
  1054 +msgid "Invalid remap scope"
  1055 +msgstr ""
  1056 +
1032 1057 #: 80javasamples.xml:38
1033 1058 msgid "Java"
1034 1059 msgstr ""
... ... @@ -1061,11 +1086,11 @@ msgstr &quot;&quot;
1061 1086 msgid "Local:"
1062 1087 msgstr ""
1063 1088  
1064   -#: main.c:395
  1089 +#: main.c:397
1065 1090 msgid "Log to file"
1066 1091 msgstr ""
1067 1092  
1068   -#: main.c:388
  1093 +#: main.c:390
1069 1094 msgid "Minutes for auto-disconnect"
1070 1095 msgstr ""
1071 1096  
... ... @@ -1300,7 +1325,7 @@ msgstr &quot;&quot;
1300 1325 msgid "PF9"
1301 1326 msgstr ""
1302 1327  
1303   -#: main.c:418
  1328 +#: main.c:420
1304 1329 msgid "Parse error"
1305 1330 msgstr ""
1306 1331  
... ... @@ -1329,7 +1354,7 @@ msgstr &quot;&quot;
1329 1354 msgid "Path and name of the local file"
1330 1355 msgstr ""
1331 1356  
1332   -#: main.c:389
  1357 +#: main.c:391
1333 1358 msgid "Path for plugin files"
1334 1359 msgstr ""
1335 1360  
... ... @@ -1337,7 +1362,7 @@ msgstr &quot;&quot;
1337 1362 msgid "Path length constraint exceeded"
1338 1363 msgstr ""
1339 1364  
1340   -#: main.c:378
  1365 +#: main.c:379
1341 1366 msgid "Path to application data files"
1342 1367 msgstr ""
1343 1368  
... ... @@ -1519,6 +1544,14 @@ msgstr &quot;&quot;
1519 1544 msgid "Reload buffer contents"
1520 1545 msgstr ""
1521 1546  
  1547 +#: charset.c:474
  1548 +msgid "Remap Failed"
  1549 +msgstr ""
  1550 +
  1551 +#: main.c:388
  1552 +msgid "Remap charset from xml file"
  1553 +msgstr ""
  1554 +
1522 1555 #: tables.c:67
1523 1556 msgid ""
1524 1557 "Remap the text to ensure maximum compatibility between the workstation's "
... ... @@ -1732,7 +1765,7 @@ msgstr &quot;&quot;
1732 1765 msgid "Send file"
1733 1766 msgstr ""
1734 1767  
1735   -#: main.c:392
  1768 +#: main.c:394
1736 1769 msgid "Send messages to syslog"
1737 1770 msgstr ""
1738 1771  
... ... @@ -1748,11 +1781,11 @@ msgstr &quot;&quot;
1748 1781 msgid "Sending file"
1749 1782 msgstr ""
1750 1783  
1751   -#: main.c:380
  1784 +#: main.c:381
1752 1785 msgid "Session name"
1753 1786 msgstr ""
1754 1787  
1755   -#: main.c:386
  1788 +#: main.c:387
1756 1789 msgid "Set host charset"
1757 1790 msgstr ""
1758 1791  
... ... @@ -1760,19 +1793,19 @@ msgstr &quot;&quot;
1760 1793 msgid "Set insert mode"
1761 1794 msgstr ""
1762 1795  
1763   -#: main.c:382
  1796 +#: main.c:383
1764 1797 msgid "Set reported colors (8/16)"
1765 1798 msgstr ""
1766 1799  
1767   -#: main.c:385
  1800 +#: main.c:386
1768 1801 msgid "Set toggles OFF"
1769 1802 msgstr ""
1770 1803  
1771   -#: main.c:384
  1804 +#: main.c:385
1772 1805 msgid "Set toggles ON"
1773 1806 msgstr ""
1774 1807  
1775   -#: main.c:394
  1808 +#: main.c:396
1776 1809 msgid "Set trace filename"
1777 1810 msgstr ""
1778 1811  
... ... @@ -2026,7 +2059,7 @@ msgstr &quot;&quot;
2026 2059 msgid "The known types are %s"
2027 2060 msgstr ""
2028 2061  
2029   -#: main.c:387
  2062 +#: main.c:389
2030 2063 msgid "The model of 3270 display to be emulated"
2031 2064 msgstr ""
2032 2065  
... ... @@ -2069,7 +2102,7 @@ msgstr &quot;&quot;
2069 2102 msgid "There is not enough space available for data on the host."
2070 2103 msgstr ""
2071 2104  
2072   -#: tools.c:301
  2105 +#: tools.c:309
2073 2106 #, c-format
2074 2107 msgid "There's no available settings for charset \"%s\""
2075 2108 msgstr ""
... ... @@ -2095,7 +2128,7 @@ msgid &quot;&quot;
2095 2128 "Franklin St, Fifth Floor, Boston, MA 02111-1307 USA"
2096 2129 msgstr ""
2097 2130  
2098   -#: main.c:506
  2131 +#: main.c:508
2099 2132 #, c-format
2100 2133 msgid "This program requires GTK version %d.%d.%d"
2101 2134 msgstr ""
... ... @@ -2106,6 +2139,10 @@ msgid &quot;&quot;
2106 2139 "This version of %s was built without support for secure sockets layer (SSL)."
2107 2140 msgstr ""
2108 2141  
  2142 +#: charset.c:376
  2143 +msgid "Too many remaps"
  2144 +msgstr ""
  2145 +
2109 2146 #: 00default.xml:146
2110 2147 msgid "Toolbar"
2111 2148 msgstr ""
... ... @@ -2279,7 +2316,7 @@ msgstr &quot;&quot;
2279 2316 msgid "Unexpected or invalid attribute value \"%s\""
2280 2317 msgstr ""
2281 2318  
2282   -#: main.c:202
  2319 +#: main.c:203
2283 2320 #, c-format
2284 2321 msgid "Unexpected or invalid color value \"%s\""
2285 2322 msgstr ""
... ... @@ -2590,7 +2627,7 @@ msgstr &quot;&quot;
2590 2627 msgid "an action attribute"
2591 2628 msgstr ""
2592 2629  
2593   -#: session.c:268
  2630 +#: session.c:271
2594 2631 msgid "bracket"
2595 2632 msgstr ""
2596 2633  
... ...
src/pw3270/actions.c
... ... @@ -135,7 +135,7 @@ static void do_copy(GtkAction *action, GtkWidget *widget, gboolean cut)
135 135  
136 136 int f;
137 137  
138   - for(f=0;f<G_N_ELEMENTS(format);f++)
  138 + for(f=0;f < G_N_ELEMENTS(format);f++)
139 139 {
140 140 if(!g_ascii_strcasecmp(format[f].name,str))
141 141 {
... ...
src/pw3270/dialog.c
... ... @@ -71,7 +71,7 @@
71 71  
72 72 /*--[ Implement ]------------------------------------------------------------------------------------*/
73 73  
74   -
  74 +#ifndef _WIN32
75 75 static void charset_changed(GtkComboBox *widget,gchar **encoding)
76 76 {
77 77 gchar *new_encoding = NULL;
... ... @@ -102,7 +102,6 @@
102 102  
103 103 *encoding = new_encoding;
104 104 }
105   -
106 105 static void add_option_menus(GtkWidget *widget, GtkAction *action, gchar **encoding)
107 106 {
108 107 #if GTK_CHECK_VERSION(3,0,0)
... ... @@ -185,13 +184,14 @@
185 184 gtk_widget_show_all(box);
186 185 gtk_file_chooser_set_extra_widget(GTK_FILE_CHOOSER(widget),box);
187 186  
188   -}
  187 + }
  188 +#endif // _WIN32
189 189  
190 190 static void save_text(GtkWindow *toplevel,const gchar *filename, const gchar *text, const gchar *encoding, const gchar *errmsg)
191 191 {
192 192 GError * error = NULL;
193 193  
194   - if(g_ascii_strcasecmp(encoding,"UTF-8"))
  194 + if(encoding && g_ascii_strcasecmp(encoding,"UTF-8"))
195 195 {
196 196 // Convert to target charset and save
197 197 gsize bytes_written;
... ... @@ -257,20 +257,32 @@
257 257 GtkWindow * toplevel = GTK_WINDOW(gtk_widget_get_toplevel(widget));
258 258 const gchar * user_title = g_object_get_data(G_OBJECT(action),"title");
259 259 const gchar * filename = g_object_get_data(G_OBJECT(action),"filename");
  260 +
  261 + /*
260 262 const gchar * extension = g_object_get_data(G_OBJECT(action),"extension");
261 263  
262 264 if(!extension)
263 265 extension = "txt";
  266 + */
264 267  
265 268 if(!text)
266 269 return 0;
267 270  
  271 +
268 272 if(filename)
269 273 {
270 274 save_text(toplevel,filename,text,g_object_get_data(G_OBJECT(action),"encoding"),errmsg);
271 275 }
272 276 else
273 277 {
  278 +#ifdef _WIN32
  279 + gchar *name = pw3270_file_chooser(GTK_FILE_CHOOSER_ACTION_SAVE, "save_contents", gettext(user_title ? user_title : title), filename);
  280 + if(name)
  281 + {
  282 + save_text(toplevel,name,text,NULL,errmsg);
  283 + g_free(name);
  284 + }
  285 +#else
274 286 GtkWidget * dialog;
275 287 gchar * ptr;
276 288 gchar * encattr = NULL;
... ... @@ -311,6 +323,7 @@
311 323  
312 324 trace("Removing dialog %p",dialog);
313 325 gtk_widget_destroy(dialog);
  326 +#endif // _WIN32
314 327 }
315 328  
316 329 return 0;
... ... @@ -438,7 +451,7 @@
438 451 /*
439 452 const gchar * user_title = g_object_get_data(G_OBJECT(action),"title");
440 453 const gchar * filename = g_object_get_data(G_OBJECT(action),"filename");
441   - gchar * encattr = NULL;
  454 + gchar * encattr = NULL;g_get_charset(&encoding)
442 455 GtkWidget * dialog;
443 456 gchar * ptr;
444 457  
... ...
src/pw3270/v3270/charset.c
... ... @@ -310,7 +310,7 @@
310 310  
311 311 if(!error)
312 312 {
313   - for(i=0;i < N_ELEMENTS(text);i++)
  313 + for(i=0;i < G_N_ELEMENTS(text);i++)
314 314 {
315 315 if(!g_ascii_strcasecmp(str,text[i]))
316 316 return (lib3270_remap_scope) i;
... ...
win/pw3270.nsi.in
... ... @@ -88,9 +88,12 @@ SubSection &quot;@PACKAGE@&quot; SecMain
88 88  
89 89 # UI definition files
90 90 CreateDirectory "$INSTDIR\ui"
91   -
92 91 file "/oname=$INSTDIR\ui\00default.xml" "..\ui\00default.xml"
93 92  
  93 + # Charset definition files
  94 + CreateDirectory "$INSTDIR\charsets"
  95 + file "/oname=$INSTDIR\charsets\bracket.xml.xml" "..\charsets\bracket.xml"
  96 +
94 97 # Locale files
95 98 CreateDirectory "$INSTDIR\locale\pt_BR\LC_MESSAGES"
96 99 file "/oname=$INSTDIR\locale\pt_BR\LC_MESSAGES\@PACKAGE@.mo" "..\.bin\locale\pt_BR\LC_MESSAGES\@PACKAGE@.mo"
... ...