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