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