Commit dc82c692d1ad294f91927af6181f3ede26db4b9e
1 parent
61d9b463
Exists in
master
and in
5 other branches
Incluindo geração automática da man page.
Showing
6 changed files
with
164 additions
and
107 deletions
Show diff stats
Makefile.in
| ... | ... | @@ -30,6 +30,7 @@ PACKAGE_NAME=@PACKAGE_NAME@ |
| 30 | 30 | PACKAGE_VERSION=@PACKAGE_VERSION@ |
| 31 | 31 | PACKAGE_LEVEL=@PACKAGE_LEVEL@ |
| 32 | 32 | PACKAGE_TARNAME=@PACKAGE_TARNAME@ |
| 33 | +PACKAGE_DESCRIPTION=@PACKAGE_DESCRIPTION@ | |
| 33 | 34 | PLUGINS=@PLUGINS@ |
| 34 | 35 | |
| 35 | 36 | #---[ Paths ]------------------------------------------------------------------ |
| ... | ... | @@ -62,6 +63,7 @@ MKDIR=@MKDIR_P@ |
| 62 | 63 | MSGCAT=@MSGCAT@ |
| 63 | 64 | AMTAR=@AMTAR@ |
| 64 | 65 | RPMBUILD=@RPMBUILD@ |
| 66 | +HELP2MAN=@HELP2MAN@ | |
| 65 | 67 | |
| 66 | 68 | #---[ Rules ]------------------------------------------------------------------ |
| 67 | 69 | |
| ... | ... | @@ -236,6 +238,11 @@ install-app: \ |
| 236 | 238 | @$(MAKE) -C ui install |
| 237 | 239 | @$(MAKE) -C locale install |
| 238 | 240 | |
| 241 | + @$(MKDIR) $(DESTDIR)/$(mandir)/man1 | |
| 242 | + @$(HELP2MAN) \ | |
| 243 | + --version-string="$(PACKAGE_TARNAME) - $(PACKAGE_DESCRIPTION) Vrs. $(PACKAGE_VERSION)" \ | |
| 244 | + $(DESTDIR)$(bindir)/$(PACKAGE_TARNAME)@EXEEXT@ | gzip --best --stdout - > $(DESTDIR)/$(mandir)/man1/$(PACKAGE_NAME).1.gz | |
| 245 | + | |
| 239 | 246 | $(BINRLS)/libpw3270cpp.a: \ |
| 240 | 247 | src/libpw3270cpp/* |
| 241 | 248 | ... | ... |
configure.ac
locale/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: 2017-03-21 15:58-0300\n" | |
| 8 | +"POT-Creation-Date: 2017-05-02 17:27-0300\n" | |
| 9 | 9 | "PO-Revision-Date: 2017-02-15 17:08-0200\n" |
| 10 | 10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" |
| 11 | 11 | "Language-Team: Português <perry.werneck@gmail.com>\n" |
| ... | ... | @@ -95,7 +95,7 @@ msgstr "%s: Tabulação vertical não é suportada" |
| 95 | 95 | msgid "%s<b>%s</b> for %s" |
| 96 | 96 | msgstr "%s<b>%s</b> para %s" |
| 97 | 97 | |
| 98 | -#: main.c:438 | |
| 98 | +#: main.c:400 | |
| 99 | 99 | msgid "- 3270 Emulator for Gtk" |
| 100 | 100 | msgstr "- Emulador 3270 para GTK" |
| 101 | 101 | |
| ... | ... | @@ -183,7 +183,7 @@ msgstr "" |
| 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:458 | |
| 186 | +#: main.c:420 | |
| 187 | 187 | msgid "" |
| 188 | 188 | "<b>Valid options:</b>\n" |
| 189 | 189 | "\n" |
| ... | ... | @@ -276,7 +276,7 @@ msgstr "Um parametro de ENVIO/RECEBIMENTO inválido foi enviado para o host." |
| 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:413 main.c:415 | |
| 279 | +#: main.c:375 main.c:377 | |
| 280 | 280 | msgid "Application name" |
| 281 | 281 | msgstr "Nome da aplicação" |
| 282 | 282 | |
| ... | ... | @@ -419,6 +419,11 @@ msgstr "Não foi possível conectar a %s" |
| 419 | 419 | msgid "Can't connect to %s:%s" |
| 420 | 420 | msgstr "Não foi possível conectar a %s:%s" |
| 421 | 421 | |
| 422 | +#: main.c:70 | |
| 423 | +#, fuzzy | |
| 424 | +msgid "Can't connect to DBUS server" | |
| 425 | +msgstr "Não foi possível conectar a %s" | |
| 426 | + | |
| 422 | 427 | #: selection.c:425 |
| 423 | 428 | #, c-format |
| 424 | 429 | msgid "Can't convert line %d from %s to %s" |
| ... | ... | @@ -433,6 +438,10 @@ msgstr "Recortar não permitido em seleção retangular" |
| 433 | 438 | msgid "Can't determine value for environment variable \"%s\" " |
| 434 | 439 | msgstr "Não consigo determinar o valor da variável de ambiente \"%s\" " |
| 435 | 440 | |
| 441 | +#: main.c:115 | |
| 442 | +msgid "Can't get DBUS object name" | |
| 443 | +msgstr "" | |
| 444 | + | |
| 436 | 445 | #: ft.c:413 |
| 437 | 446 | msgid "Can't get file size" |
| 438 | 447 | msgstr "Não foi possível obter o tamanho do arquivo" |
| ... | ... | @@ -654,6 +663,11 @@ msgstr "Configurar host" |
| 654 | 663 | msgid "Connect on startup" |
| 655 | 664 | msgstr "Conectar ao iniciar" |
| 656 | 665 | |
| 666 | +#: gobject.c:205 | |
| 667 | +#, fuzzy | |
| 668 | +msgid "Connecting to host" | |
| 669 | +msgstr "Não foi possível conectar ao servidor" | |
| 670 | + | |
| 657 | 671 | #: connect.c:215 connect.c:311 connect.c:320 connect.c:382 connect.c:397 |
| 658 | 672 | #: connect.c:413 connect.c:427 connect.c:447 connect.c:461 connect.c:477 |
| 659 | 673 | #: connect.c:573 |
| ... | ... | @@ -910,7 +924,7 @@ msgstr "Tela cheia" |
| 910 | 924 | msgid "Function bar" |
| 911 | 925 | msgstr "Barra de funções" |
| 912 | 926 | |
| 913 | -#: main.c:101 main.c:507 | |
| 927 | +#: main.c:101 main.c:510 | |
| 914 | 928 | msgid "GTK Version mismatch" |
| 915 | 929 | msgstr "Divergência de versão GTK" |
| 916 | 930 | |
| ... | ... | @@ -946,11 +960,11 @@ msgstr "Servidor rejeitou o tipo de dispositivo ou requisição" |
| 946 | 960 | msgid "Host rejected resource(s)" |
| 947 | 961 | msgstr "Servidor rejeitou recurso(s)" |
| 948 | 962 | |
| 949 | -#: main.c:421 | |
| 963 | +#: main.c:383 | |
| 950 | 964 | msgid "Host system type" |
| 951 | 965 | msgstr "Tipo do sistema no servidor" |
| 952 | 966 | |
| 953 | -#: main.c:419 | |
| 967 | +#: main.c:381 | |
| 954 | 968 | msgid "Host to connect" |
| 955 | 969 | msgstr "Servidor a conectar" |
| 956 | 970 | |
| ... | ... | @@ -1091,11 +1105,11 @@ msgstr "Ler a fila de um arquivo" |
| 1091 | 1105 | msgid "Local:" |
| 1092 | 1106 | msgstr "Local:" |
| 1093 | 1107 | |
| 1094 | -#: main.c:433 | |
| 1108 | +#: main.c:395 | |
| 1095 | 1109 | msgid "Log to file" |
| 1096 | 1110 | msgstr "Enviar log para arquivo" |
| 1097 | 1111 | |
| 1098 | -#: main.c:426 | |
| 1112 | +#: main.c:388 | |
| 1099 | 1113 | msgid "Minutes for auto-disconnect" |
| 1100 | 1114 | msgstr "Minutos para desconexão automática" |
| 1101 | 1115 | |
| ... | ... | @@ -1332,7 +1346,7 @@ msgstr "PF8" |
| 1332 | 1346 | msgid "PF9" |
| 1333 | 1347 | msgstr "PF9" |
| 1334 | 1348 | |
| 1335 | -#: main.c:456 | |
| 1349 | +#: main.c:418 | |
| 1336 | 1350 | msgid "Parse error" |
| 1337 | 1351 | msgstr "Erro de interpretação" |
| 1338 | 1352 | |
| ... | ... | @@ -1365,7 +1379,7 @@ msgstr "Colar com margem esquerda" |
| 1365 | 1379 | msgid "Path and name of the local file" |
| 1366 | 1380 | msgstr "Caminho e nome do arquivo local" |
| 1367 | 1381 | |
| 1368 | -#: main.c:427 | |
| 1382 | +#: main.c:389 | |
| 1369 | 1383 | msgid "Path for plugin files" |
| 1370 | 1384 | msgstr "Caminho para os arquivos de plugin" |
| 1371 | 1385 | |
| ... | ... | @@ -1373,7 +1387,7 @@ msgstr "Caminho para os arquivos de plugin" |
| 1373 | 1387 | msgid "Path length constraint exceeded" |
| 1374 | 1388 | msgstr "Path length constraint exceeded" |
| 1375 | 1389 | |
| 1376 | -#: main.c:416 | |
| 1390 | +#: main.c:378 | |
| 1377 | 1391 | msgid "Path to application data files" |
| 1378 | 1392 | msgstr "Caminho para os arquivos de dados da aplicação" |
| 1379 | 1393 | |
| ... | ... | @@ -1779,7 +1793,7 @@ msgstr "Certificado auto assinado na cadeia de certificados" |
| 1779 | 1793 | msgid "Send file" |
| 1780 | 1794 | msgstr "Enviar arquivo" |
| 1781 | 1795 | |
| 1782 | -#: main.c:430 | |
| 1796 | +#: main.c:392 | |
| 1783 | 1797 | msgid "Send messages to syslog" |
| 1784 | 1798 | msgstr "Enviar mensagens para o log do sistema" |
| 1785 | 1799 | |
| ... | ... | @@ -1795,11 +1809,11 @@ msgstr "Enviar/Receber" |
| 1795 | 1809 | msgid "Sending file" |
| 1796 | 1810 | msgstr "Enviando arquivo" |
| 1797 | 1811 | |
| 1798 | -#: main.c:418 | |
| 1812 | +#: main.c:380 | |
| 1799 | 1813 | msgid "Session name" |
| 1800 | 1814 | msgstr "Nome da sessão" |
| 1801 | 1815 | |
| 1802 | -#: main.c:424 | |
| 1816 | +#: main.c:386 | |
| 1803 | 1817 | msgid "Set host charset" |
| 1804 | 1818 | msgstr "Define página de código do host" |
| 1805 | 1819 | |
| ... | ... | @@ -1807,19 +1821,19 @@ msgstr "Define página de código do host" |
| 1807 | 1821 | msgid "Set insert mode" |
| 1808 | 1822 | msgstr "Set insert mode" |
| 1809 | 1823 | |
| 1810 | -#: main.c:420 | |
| 1824 | +#: main.c:382 | |
| 1811 | 1825 | msgid "Set reported colors (8/16)" |
| 1812 | 1826 | msgstr "Define número de cores informadas (8/16)" |
| 1813 | 1827 | |
| 1814 | -#: main.c:423 | |
| 1828 | +#: main.c:385 | |
| 1815 | 1829 | msgid "Set toggles OFF" |
| 1816 | 1830 | msgstr "Desativa toggles" |
| 1817 | 1831 | |
| 1818 | -#: main.c:422 | |
| 1832 | +#: main.c:384 | |
| 1819 | 1833 | msgid "Set toggles ON" |
| 1820 | 1834 | msgstr "Ativa toggles" |
| 1821 | 1835 | |
| 1822 | -#: main.c:432 | |
| 1836 | +#: main.c:394 | |
| 1823 | 1837 | msgid "Set trace filename" |
| 1824 | 1838 | msgstr "Define o nome do arquivo de trace" |
| 1825 | 1839 | |
| ... | ... | @@ -1913,6 +1927,11 @@ msgstr "Iniciar transferência de arquivo" |
| 1913 | 1927 | msgid "Starting" |
| 1914 | 1928 | msgstr "Iniciando" |
| 1915 | 1929 | |
| 1930 | +#: gobject.c:193 | |
| 1931 | +#, c-format | |
| 1932 | +msgid "State %04d can't accept requests" | |
| 1933 | +msgstr "" | |
| 1934 | + | |
| 1916 | 1935 | #: security.c:237 |
| 1917 | 1936 | msgid "Subject issuer mismatch" |
| 1918 | 1937 | msgstr "Divergência na identidade do emissor" |
| ... | ... | @@ -2115,7 +2134,7 @@ msgstr "" |
| 2115 | 2134 | msgid "The known types are %s" |
| 2116 | 2135 | msgstr "Os tipos conhecidos são %s" |
| 2117 | 2136 | |
| 2118 | -#: main.c:425 | |
| 2137 | +#: main.c:387 | |
| 2119 | 2138 | msgid "The model of 3270 display to be emulated" |
| 2120 | 2139 | msgstr "Modelo de tela 3270 a ser emulada" |
| 2121 | 2140 | |
| ... | ... | @@ -2204,7 +2223,7 @@ msgstr "" |
| 2204 | 2223 | "programa; se não, escreva para a Free Software Foundation, Inc., 59 Temple " |
| 2205 | 2224 | "Place, Suite 330, Boston, MA, 02111-1307, USA" |
| 2206 | 2225 | |
| 2207 | -#: main.c:503 | |
| 2226 | +#: main.c:506 | |
| 2208 | 2227 | #, c-format |
| 2209 | 2228 | msgid "This program requires GTK version %d.%d.%d" |
| 2210 | 2229 | msgstr "Este programa precisa do GTK versão %d.%d.%d" |
| ... | ... | @@ -2398,6 +2417,11 @@ msgstr "Valor de cor inválido ou inesperado: \"%s\"" |
| 2398 | 2417 | msgid "Unexpected or unknown security status" |
| 2399 | 2418 | msgstr "Estado de segurança inesperado ou desconhecido." |
| 2400 | 2419 | |
| 2420 | +#: gobject.c:208 | |
| 2421 | +#, fuzzy, c-format | |
| 2422 | +msgid "Unexpected state %04d" | |
| 2423 | +msgstr "Alvo inesperado \"%s\"" | |
| 2424 | + | |
| 2401 | 2425 | #: actions.c:391 |
| 2402 | 2426 | #, c-format |
| 2403 | 2427 | msgid "Unexpected target \"%s\"" |
| ... | ... | @@ -2802,10 +2826,6 @@ msgstr "translator-credits" |
| 2802 | 2826 | #~ "32768. Valores maiores trazem maior performance, porem, nem todos os " |
| 2803 | 2827 | #~ "hosts podem suportá-los." |
| 2804 | 2828 | |
| 2805 | -#, fuzzy | |
| 2806 | -#~ msgid "Can't connect to DBUS server" | |
| 2807 | -#~ msgstr "Não foi possível conectar a %s" | |
| 2808 | - | |
| 2809 | 2829 | #~ msgid "Can't start download." |
| 2810 | 2830 | #~ msgstr "Não foi possível iniciar o download." |
| 2811 | 2831 | |
| ... | ... | @@ -2842,10 +2862,6 @@ msgstr "translator-credits" |
| 2842 | 2862 | #~ msgid "Complete" |
| 2843 | 2863 | #~ msgstr "Completo" |
| 2844 | 2864 | |
| 2845 | -#, fuzzy | |
| 2846 | -#~ msgid "Connecting to host" | |
| 2847 | -#~ msgstr "Não foi possível conectar ao servidor" | |
| 2848 | - | |
| 2849 | 2865 | #~ msgid "Copiar tudo" |
| 2850 | 2866 | #~ msgstr "Copiar tudo" |
| 2851 | 2867 | |
| ... | ... | @@ -3208,10 +3224,6 @@ msgstr "translator-credits" |
| 3208 | 3224 | #~ msgid "Unexpected element <%s>" |
| 3209 | 3225 | #~ msgstr "Elemento <%s> inesperado" |
| 3210 | 3226 | |
| 3211 | -#, fuzzy | |
| 3212 | -#~ msgid "Unexpected state %04d" | |
| 3213 | -#~ msgstr "Alvo inesperado \"%s\"" | |
| 3214 | - | |
| 3215 | 3227 | #~ msgid "" |
| 3216 | 3228 | #~ "Unknown host:\n" |
| 3217 | 3229 | #~ "%s" | ... | ... |
locale/pw3270.pot
| ... | ... | @@ -9,7 +9,7 @@ msgstr "" |
| 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-04-12 14:32-0300\n" | |
| 12 | +"POT-Creation-Date: 2017-05-02 17:27-0300\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 "" |
| 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-04-12 14:32-0300\n" | |
| 23 | +"POT-Creation-Date: 2017-05-02 17:27-0300\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" |
| ... | ... | @@ -39,6 +39,17 @@ msgstr "" |
| 39 | 39 | "MIME-Version: 1.0\n" |
| 40 | 40 | "Content-Type: text/plain; charset=CHARSET\n" |
| 41 | 41 | "Content-Transfer-Encoding: 8bit\n" |
| 42 | +"#-#-#-#-# dbus3270.pot (PACKAGE VERSION) #-#-#-#-#\n" | |
| 43 | +"Project-Id-Version: PACKAGE VERSION\n" | |
| 44 | +"Report-Msgid-Bugs-To: \n" | |
| 45 | +"POT-Creation-Date: 2017-05-02 17:27-0300\n" | |
| 46 | +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | |
| 47 | +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | |
| 48 | +"Language-Team: LANGUAGE <LL@li.org>\n" | |
| 49 | +"Language: \n" | |
| 50 | +"MIME-Version: 1.0\n" | |
| 51 | +"Content-Type: text/plain; charset=CHARSET\n" | |
| 52 | +"Content-Transfer-Encoding: 8bit\n" | |
| 42 | 53 | |
| 43 | 54 | #: window.c:329 |
| 44 | 55 | #, c-format |
| ... | ... | @@ -116,7 +127,7 @@ msgstr "" |
| 116 | 127 | msgid "%s<b>%s</b> for %s" |
| 117 | 128 | msgstr "" |
| 118 | 129 | |
| 119 | -#: main.c:438 | |
| 130 | +#: main.c:400 | |
| 120 | 131 | msgid "- 3270 Emulator for Gtk" |
| 121 | 132 | msgstr "" |
| 122 | 133 | |
| ... | ... | @@ -198,7 +209,7 @@ msgstr "" |
| 198 | 209 | msgid "<b>SSL state is undefined</b>Unexpected SSL status %ld" |
| 199 | 210 | msgstr "" |
| 200 | 211 | |
| 201 | -#: main.c:458 | |
| 212 | +#: main.c:420 | |
| 202 | 213 | msgid "" |
| 203 | 214 | "<b>Valid options:</b>\n" |
| 204 | 215 | "\n" |
| ... | ... | @@ -284,7 +295,7 @@ msgstr "" |
| 284 | 295 | msgid "Appends the source file to the destination file." |
| 285 | 296 | msgstr "" |
| 286 | 297 | |
| 287 | -#: main.c:413 main.c:415 | |
| 298 | +#: main.c:375 main.c:377 | |
| 288 | 299 | msgid "Application name" |
| 289 | 300 | msgstr "" |
| 290 | 301 | |
| ... | ... | @@ -424,6 +435,10 @@ msgstr "" |
| 424 | 435 | msgid "Can't connect to %s:%s" |
| 425 | 436 | msgstr "" |
| 426 | 437 | |
| 438 | +#: main.c:70 | |
| 439 | +msgid "Can't connect to DBUS server" | |
| 440 | +msgstr "" | |
| 441 | + | |
| 427 | 442 | #: selection.c:425 |
| 428 | 443 | #, c-format |
| 429 | 444 | msgid "Can't convert line %d from %s to %s" |
| ... | ... | @@ -438,6 +453,10 @@ msgstr "" |
| 438 | 453 | msgid "Can't determine value for environment variable \"%s\" " |
| 439 | 454 | msgstr "" |
| 440 | 455 | |
| 456 | +#: main.c:115 | |
| 457 | +msgid "Can't get DBUS object name" | |
| 458 | +msgstr "" | |
| 459 | + | |
| 441 | 460 | #: ft.c:413 |
| 442 | 461 | msgid "Can't get file size" |
| 443 | 462 | msgstr "" |
| ... | ... | @@ -647,6 +666,10 @@ msgstr "" |
| 647 | 666 | msgid "Connect on startup" |
| 648 | 667 | msgstr "" |
| 649 | 668 | |
| 669 | +#: gobject.c:205 | |
| 670 | +msgid "Connecting to host" | |
| 671 | +msgstr "" | |
| 672 | + | |
| 650 | 673 | #: connect.c:215 connect.c:311 connect.c:320 connect.c:382 connect.c:397 |
| 651 | 674 | #: connect.c:413 connect.c:427 connect.c:447 connect.c:461 connect.c:477 |
| 652 | 675 | #: connect.c:573 |
| ... | ... | @@ -893,7 +916,7 @@ msgstr "" |
| 893 | 916 | msgid "Function bar" |
| 894 | 917 | msgstr "" |
| 895 | 918 | |
| 896 | -#: main.c:101 main.c:507 | |
| 919 | +#: main.c:101 main.c:510 | |
| 897 | 920 | msgid "GTK Version mismatch" |
| 898 | 921 | msgstr "" |
| 899 | 922 | |
| ... | ... | @@ -929,11 +952,11 @@ msgstr "" |
| 929 | 952 | msgid "Host rejected resource(s)" |
| 930 | 953 | msgstr "" |
| 931 | 954 | |
| 932 | -#: main.c:421 | |
| 955 | +#: main.c:383 | |
| 933 | 956 | msgid "Host system type" |
| 934 | 957 | msgstr "" |
| 935 | 958 | |
| 936 | -#: main.c:419 | |
| 959 | +#: main.c:381 | |
| 937 | 960 | msgid "Host to connect" |
| 938 | 961 | msgstr "" |
| 939 | 962 | |
| ... | ... | @@ -1061,11 +1084,11 @@ msgstr "" |
| 1061 | 1084 | msgid "Local:" |
| 1062 | 1085 | msgstr "" |
| 1063 | 1086 | |
| 1064 | -#: main.c:433 | |
| 1087 | +#: main.c:395 | |
| 1065 | 1088 | msgid "Log to file" |
| 1066 | 1089 | msgstr "" |
| 1067 | 1090 | |
| 1068 | -#: main.c:426 | |
| 1091 | +#: main.c:388 | |
| 1069 | 1092 | msgid "Minutes for auto-disconnect" |
| 1070 | 1093 | msgstr "" |
| 1071 | 1094 | |
| ... | ... | @@ -1300,7 +1323,7 @@ msgstr "" |
| 1300 | 1323 | msgid "PF9" |
| 1301 | 1324 | msgstr "" |
| 1302 | 1325 | |
| 1303 | -#: main.c:456 | |
| 1326 | +#: main.c:418 | |
| 1304 | 1327 | msgid "Parse error" |
| 1305 | 1328 | msgstr "" |
| 1306 | 1329 | |
| ... | ... | @@ -1333,7 +1356,7 @@ msgstr "" |
| 1333 | 1356 | msgid "Path and name of the local file" |
| 1334 | 1357 | msgstr "" |
| 1335 | 1358 | |
| 1336 | -#: main.c:427 | |
| 1359 | +#: main.c:389 | |
| 1337 | 1360 | msgid "Path for plugin files" |
| 1338 | 1361 | msgstr "" |
| 1339 | 1362 | |
| ... | ... | @@ -1341,7 +1364,7 @@ msgstr "" |
| 1341 | 1364 | msgid "Path length constraint exceeded" |
| 1342 | 1365 | msgstr "" |
| 1343 | 1366 | |
| 1344 | -#: main.c:416 | |
| 1367 | +#: main.c:378 | |
| 1345 | 1368 | msgid "Path to application data files" |
| 1346 | 1369 | msgstr "" |
| 1347 | 1370 | |
| ... | ... | @@ -1736,7 +1759,7 @@ msgstr "" |
| 1736 | 1759 | msgid "Send file" |
| 1737 | 1760 | msgstr "" |
| 1738 | 1761 | |
| 1739 | -#: main.c:430 | |
| 1762 | +#: main.c:392 | |
| 1740 | 1763 | msgid "Send messages to syslog" |
| 1741 | 1764 | msgstr "" |
| 1742 | 1765 | |
| ... | ... | @@ -1752,11 +1775,11 @@ msgstr "" |
| 1752 | 1775 | msgid "Sending file" |
| 1753 | 1776 | msgstr "" |
| 1754 | 1777 | |
| 1755 | -#: main.c:418 | |
| 1778 | +#: main.c:380 | |
| 1756 | 1779 | msgid "Session name" |
| 1757 | 1780 | msgstr "" |
| 1758 | 1781 | |
| 1759 | -#: main.c:424 | |
| 1782 | +#: main.c:386 | |
| 1760 | 1783 | msgid "Set host charset" |
| 1761 | 1784 | msgstr "" |
| 1762 | 1785 | |
| ... | ... | @@ -1764,19 +1787,19 @@ msgstr "" |
| 1764 | 1787 | msgid "Set insert mode" |
| 1765 | 1788 | msgstr "" |
| 1766 | 1789 | |
| 1767 | -#: main.c:420 | |
| 1790 | +#: main.c:382 | |
| 1768 | 1791 | msgid "Set reported colors (8/16)" |
| 1769 | 1792 | msgstr "" |
| 1770 | 1793 | |
| 1771 | -#: main.c:423 | |
| 1794 | +#: main.c:385 | |
| 1772 | 1795 | msgid "Set toggles OFF" |
| 1773 | 1796 | msgstr "" |
| 1774 | 1797 | |
| 1775 | -#: main.c:422 | |
| 1798 | +#: main.c:384 | |
| 1776 | 1799 | msgid "Set toggles ON" |
| 1777 | 1800 | msgstr "" |
| 1778 | 1801 | |
| 1779 | -#: main.c:432 | |
| 1802 | +#: main.c:394 | |
| 1780 | 1803 | msgid "Set trace filename" |
| 1781 | 1804 | msgstr "" |
| 1782 | 1805 | |
| ... | ... | @@ -1861,6 +1884,11 @@ msgstr "" |
| 1861 | 1884 | msgid "Starting" |
| 1862 | 1885 | msgstr "" |
| 1863 | 1886 | |
| 1887 | +#: gobject.c:193 | |
| 1888 | +#, c-format | |
| 1889 | +msgid "State %04d can't accept requests" | |
| 1890 | +msgstr "" | |
| 1891 | + | |
| 1864 | 1892 | #: security.c:237 |
| 1865 | 1893 | msgid "Subject issuer mismatch" |
| 1866 | 1894 | msgstr "" |
| ... | ... | @@ -2030,7 +2058,7 @@ msgstr "" |
| 2030 | 2058 | msgid "The known types are %s" |
| 2031 | 2059 | msgstr "" |
| 2032 | 2060 | |
| 2033 | -#: main.c:425 | |
| 2061 | +#: main.c:387 | |
| 2034 | 2062 | msgid "The model of 3270 display to be emulated" |
| 2035 | 2063 | msgstr "" |
| 2036 | 2064 | |
| ... | ... | @@ -2099,7 +2127,7 @@ msgid "" |
| 2099 | 2127 | "Franklin St, Fifth Floor, Boston, MA 02111-1307 USA" |
| 2100 | 2128 | msgstr "" |
| 2101 | 2129 | |
| 2102 | -#: main.c:503 | |
| 2130 | +#: main.c:506 | |
| 2103 | 2131 | #, c-format |
| 2104 | 2132 | msgid "This program requires GTK version %d.%d.%d" |
| 2105 | 2133 | msgstr "" |
| ... | ... | @@ -2292,6 +2320,11 @@ msgstr "" |
| 2292 | 2320 | msgid "Unexpected or unknown security status" |
| 2293 | 2321 | msgstr "" |
| 2294 | 2322 | |
| 2323 | +#: gobject.c:208 | |
| 2324 | +#, c-format | |
| 2325 | +msgid "Unexpected state %04d" | |
| 2326 | +msgstr "" | |
| 2327 | + | |
| 2295 | 2328 | #: actions.c:391 |
| 2296 | 2329 | #, c-format |
| 2297 | 2330 | msgid "Unexpected target \"%s\"" | ... | ... |
rpm/pw3270.spec
| ... | ... | @@ -131,6 +131,7 @@ BuildRequires: pkgconfig |
| 131 | 131 | BuildRequires: sed |
| 132 | 132 | BuildRequires: optipng |
| 133 | 133 | BuildRequires: fdupes |
| 134 | +BuildRequires: help2man | |
| 134 | 135 | |
| 135 | 136 | %description |
| 136 | 137 | Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. |
| ... | ... | @@ -248,7 +249,7 @@ rm -rf %{buildroot} |
| 248 | 249 | %files -f langfiles |
| 249 | 250 | %defattr(-,root,root) |
| 250 | 251 | %doc AUTHORS LICENSE README.md |
| 251 | -# %{_mandir}/*/* | |
| 252 | +%{_mandir}/*/* | |
| 252 | 253 | |
| 253 | 254 | # Main application |
| 254 | 255 | %dir %{_datadir}/pw3270 | ... | ... |
src/pw3270/main.c
| ... | ... | @@ -359,49 +359,11 @@ int main(int argc, char *argv[]) |
| 359 | 359 | g_thread_init(NULL); |
| 360 | 360 | #endif // !GLIB(2,32) |
| 361 | 361 | |
| 362 | - gtk_init(&argc, &argv); | |
| 363 | - | |
| 364 | 362 | // Setup locale |
| 365 | 363 | #ifdef LC_ALL |
| 366 | 364 | setlocale( LC_ALL, "" ); |
| 367 | 365 | #endif |
| 368 | 366 | |
| 369 | -#if defined( WIN32 ) | |
| 370 | - { | |
| 371 | - gchar * appdir = g_win32_get_package_installation_directory_of_module(NULL); | |
| 372 | - gchar * locdir = g_build_filename(appdir,"locale",NULL); | |
| 373 | - | |
| 374 | - g_chdir(appdir); | |
| 375 | - bindtextdomain( PACKAGE_NAME, locdir ); | |
| 376 | - | |
| 377 | - g_free(locdir); | |
| 378 | - g_free(appdir); | |
| 379 | - | |
| 380 | - } | |
| 381 | -#elif defined(HAVE_GTKMAC) | |
| 382 | - { | |
| 383 | - GtkMacBundle * macbundle = gtk_mac_bundle_get_default(); | |
| 384 | - | |
| 385 | - g_chdir(gtk_mac_bundle_get_datadir(macbundle)); | |
| 386 | - bindtextdomain(PACKAGE_NAME,gtk_mac_bundle_get_localedir(macbundle)); | |
| 387 | - | |
| 388 | - osxapp = GTK_OSX_APPLICATION(g_object_new(GTK_TYPE_OSX_APPLICATION,NULL)); | |
| 389 | - | |
| 390 | - } | |
| 391 | -#elif defined( DATAROOTDIR ) | |
| 392 | - { | |
| 393 | - gchar * appdir = g_build_filename(DATAROOTDIR,PACKAGE_NAME,NULL); | |
| 394 | - gchar * locdir = g_build_filename(DATAROOTDIR,"locale",NULL); | |
| 395 | - | |
| 396 | - g_chdir(appdir); | |
| 397 | - bindtextdomain( PACKAGE_NAME, locdir); | |
| 398 | - | |
| 399 | - g_free(locdir); | |
| 400 | - g_free(appdir); | |
| 401 | - | |
| 402 | - } | |
| 403 | -#endif // DATAROOTDIR | |
| 404 | - | |
| 405 | 367 | bind_textdomain_codeset(PACKAGE_NAME, "UTF-8"); |
| 406 | 368 | textdomain(PACKAGE_NAME); |
| 407 | 369 | |
| ... | ... | @@ -470,25 +432,66 @@ int main(int argc, char *argv[]) |
| 470 | 432 | |
| 471 | 433 | return -1; |
| 472 | 434 | } |
| 435 | + } | |
| 436 | + | |
| 437 | + // Init GTK | |
| 438 | + gtk_init(&argc, &argv); | |
| 439 | + | |
| 440 | + // Get DATADIR | |
| 441 | +#if defined( WIN32 ) | |
| 442 | + { | |
| 443 | + gchar * appdir = g_win32_get_package_installation_directory_of_module(NULL); | |
| 444 | + gchar * locdir = g_build_filename(appdir,"locale",NULL); | |
| 445 | + | |
| 446 | + g_chdir(appdir); | |
| 447 | + bindtextdomain( PACKAGE_NAME, locdir ); | |
| 448 | + | |
| 449 | + g_free(locdir); | |
| 450 | + g_free(appdir); | |
| 451 | + | |
| 452 | + } | |
| 453 | +#elif defined(HAVE_GTKMAC) | |
| 454 | + { | |
| 455 | + GtkMacBundle * macbundle = gtk_mac_bundle_get_default(); | |
| 456 | + | |
| 457 | + g_chdir(gtk_mac_bundle_get_datadir(macbundle)); | |
| 458 | + bindtextdomain(PACKAGE_NAME,gtk_mac_bundle_get_localedir(macbundle)); | |
| 459 | + | |
| 460 | + osxapp = GTK_OSX_APPLICATION(g_object_new(GTK_TYPE_OSX_APPLICATION,NULL)); | |
| 461 | + | |
| 462 | + } | |
| 463 | +#elif defined( DATAROOTDIR ) | |
| 464 | + { | |
| 465 | + gchar * appdir = g_build_filename(DATAROOTDIR,PACKAGE_NAME,NULL); | |
| 466 | + gchar * locdir = g_build_filename(DATAROOTDIR,"locale",NULL); | |
| 467 | + | |
| 468 | + g_chdir(appdir); | |
| 469 | + bindtextdomain( PACKAGE_NAME, locdir); | |
| 470 | + | |
| 471 | + g_free(locdir); | |
| 472 | + g_free(appdir); | |
| 473 | + | |
| 474 | + } | |
| 475 | +#endif // DATAROOTDIR | |
| 476 | + | |
| 473 | 477 | |
| 474 | 478 | #if defined( HAVE_SYSLOG ) |
| 475 | - if(log_to_syslog) | |
| 476 | - { | |
| 477 | - openlog(g_get_prgname(), LOG_NDELAY, LOG_USER); | |
| 478 | - g_log_set_default_handler(g_syslog,NULL); | |
| 479 | - } | |
| 480 | - else if(logfile) | |
| 479 | + if(log_to_syslog) | |
| 480 | + { | |
| 481 | + openlog(g_get_prgname(), LOG_NDELAY, LOG_USER); | |
| 482 | + g_log_set_default_handler(g_syslog,NULL); | |
| 483 | + } | |
| 484 | + else if(logfile) | |
| 481 | 485 | #else |
| 482 | - if(logfile) | |
| 486 | + if(logfile) | |
| 483 | 487 | #endif // HAVE_SYSLOG |
| 484 | - { | |
| 485 | - g_log_set_default_handler(g_logfile,NULL); | |
| 486 | - } | |
| 487 | - | |
| 488 | - lib3270_set_trace_handler(g_trace); | |
| 489 | - | |
| 488 | + { | |
| 489 | + g_log_set_default_handler(g_logfile,NULL); | |
| 490 | 490 | } |
| 491 | 491 | |
| 492 | + lib3270_set_trace_handler(g_trace); | |
| 493 | + | |
| 494 | + // Check GTK Version | |
| 492 | 495 | { |
| 493 | 496 | const gchar *msg = gtk_check_version(GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
| 494 | 497 | ... | ... |