Commit d9eb394116c6c909219592280551c92fda196107
1 parent
8ffcf518
Exists in
master
Building translation file.
Showing
6 changed files
with
45 additions
and
66 deletions
Show diff stats
.gitignore
Makefile.in
... | ... | @@ -29,6 +29,7 @@ |
29 | 29 | LIBNAME=libhllapi |
30 | 30 | SONAME=@SONAME@ |
31 | 31 | PRODUCT_NAME=@PRODUCT_NAME@ |
32 | +GETTEXT_PACKAGE=@GETTEXT_PACKAGE@ | |
32 | 33 | |
33 | 34 | SOURCES= \ |
34 | 35 | $(wildcard src/core/*.cc) \ |
... | ... | @@ -38,7 +39,7 @@ SOURCES= \ |
38 | 39 | TEST_SOURCES= \ |
39 | 40 | $(wildcard src/testprogram/*.cc) |
40 | 41 | |
41 | -INSTALL_PACKAGES=@INSTALL_PACKAGES@ | |
42 | +INSTALL_PACKAGES=@INSTALL_PACKAGES@ locale | |
42 | 43 | |
43 | 44 | #---[ Tools ]---------------------------------------------------------------------------- |
44 | 45 | |
... | ... | @@ -203,11 +204,11 @@ $(POTDIR)/$(LIBNAME).pot: \ |
203 | 204 | @$(MSGCAT) --sort-output $^ > $@ |
204 | 205 | |
205 | 206 | locale: \ |
206 | - locale/$(LIBNAME).pot | |
207 | + locale/$(GETTEXT_PACKAGE).pot | |
207 | 208 | |
208 | 209 | @$(MAKE) -C locale all |
209 | 210 | |
210 | -locale/$(LIBNAME).pot: \ | |
211 | +locale/$(GETTEXT_PACKAGE).pot: \ | |
211 | 212 | $(POTDIR)/$(LIBNAME).pot |
212 | 213 | |
213 | 214 | @rm -f $@ |
... | ... | @@ -282,6 +283,18 @@ install-windows-lib: \ |
282 | 283 | $(BINRLS)/$(LIBNAME).def \ |
283 | 284 | $(DESTDIR)$(datarootdir)/$(PRODUCT_NAME)/def |
284 | 285 | |
286 | +install-locale: \ | |
287 | + locale/$(GETTEXT_PACKAGE).pot | |
288 | + | |
289 | + @$(MAKE) -C locale DESTDIR=$(DESTDIR) install | |
290 | + | |
291 | + @$(MKDIR) \ | |
292 | + $(DESTDIR)$(datarootdir)/$(PRODUCT_NAME)/pot | |
293 | + | |
294 | + @$(INSTALL_DATA) \ | |
295 | + locale/$(GETTEXT_PACKAGE).pot \ | |
296 | + $(DESTDIR)$(datarootdir)/$(PRODUCT_NAME)/pot/$(LIBNAME).pot | |
297 | + | |
285 | 298 | |
286 | 299 | doc: |
287 | 300 | @$(DOXYGEN) ./doxygen/doxyfile | ... | ... |
configure.ac
... | ... | @@ -322,6 +322,15 @@ if test "$app_cv_pic" == "yes"; then |
322 | 322 | fi |
323 | 323 | |
324 | 324 | dnl --------------------------------------------------------------------------- |
325 | +dnl Set translation domain. | |
326 | +dnl --------------------------------------------------------------------------- | |
327 | + | |
328 | +app_cv_gettext_package="libhllapi-$app_vrs_major.$app_vrs_minor" | |
329 | + | |
330 | +AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$app_cv_gettext_package") | |
331 | +AC_SUBST(GETTEXT_PACKAGE,"$app_cv_gettext_package") | |
332 | + | |
333 | +dnl --------------------------------------------------------------------------- | |
325 | 334 | dnl Configure which files to generate. |
326 | 335 | dnl --------------------------------------------------------------------------- |
327 | 336 | ... | ... |
locale/Makefile.in
... | ... | @@ -33,7 +33,7 @@ datarootdir=@datarootdir@ |
33 | 33 | localedir=${datarootdir}/locale |
34 | 34 | |
35 | 35 | PACKAGE_NAME=@PACKAGE_NAME@ |
36 | -GETTEXT_PACKAGE=@PACKAGE_NAME@ | |
36 | +GETTEXT_PACKAGE=@GETTEXT_PACKAGE@ | |
37 | 37 | |
38 | 38 | PACKAGE_VERSION=@PACKAGE_VERSION@ |
39 | 39 | PACKAGE_TARNAME=@PACKAGE_TARNAME@ |
... | ... | @@ -65,7 +65,7 @@ $(BINDIR)/%/LC_MESSAGES/$(GETTEXT_PACKAGE).mo: \ |
65 | 65 | @$(MKDIR) `dirname $@` |
66 | 66 | @$(MSGFMT) -c -v -o $@ $^ |
67 | 67 | |
68 | -$(DESTDIR)/$(localedir)/%/LC_MESSAGES/$(GETTEXT_PACKAGE).mo: \ | |
68 | +$(DESTDIR)$(localedir)/%/LC_MESSAGES/$(GETTEXT_PACKAGE).mo: \ | |
69 | 69 | $(BINDIR)/%/LC_MESSAGES/$(GETTEXT_PACKAGE).mo |
70 | 70 | |
71 | 71 | @echo $< ... |
... | ... | @@ -78,7 +78,7 @@ all: \ |
78 | 78 | $(foreach SRC, $(basename $(wildcard *.po)), $(BINDIR)/$(SRC)/LC_MESSAGES/$(GETTEXT_PACKAGE).mo) |
79 | 79 | |
80 | 80 | install: \ |
81 | - $(foreach SRC, $(basename $(wildcard *.po)), $(DESTDIR)/$(localedir)/$(SRC)/LC_MESSAGES/$(GETTEXT_PACKAGE).mo) | |
81 | + $(foreach SRC, $(basename $(wildcard *.po)), $(DESTDIR)$(localedir)/$(SRC)/LC_MESSAGES/$(GETTEXT_PACKAGE).mo) | |
82 | 82 | |
83 | 83 | |
84 | 84 | ... | ... |
locale/libhllapi.pot
... | ... | @@ -1,46 +0,0 @@ |
1 | -# SOME DESCRIPTIVE TITLE. | |
2 | -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | |
3 | -# This file is distributed under the same license as the PACKAGE package. | |
4 | -# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | |
5 | -# | |
6 | -#, fuzzy | |
7 | -msgid "" | |
8 | -msgstr "" | |
9 | -"Project-Id-Version: PACKAGE VERSION\n" | |
10 | -"Report-Msgid-Bugs-To: \n" | |
11 | -"POT-Creation-Date: 2020-02-05 15:52-0300\n" | |
12 | -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | |
13 | -"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | |
14 | -"Language-Team: LANGUAGE <LL@li.org>\n" | |
15 | -"Language: \n" | |
16 | -"MIME-Version: 1.0\n" | |
17 | -"Content-Type: text/plain; charset=CHARSET\n" | |
18 | -"Content-Transfer-Encoding: 8bit\n" | |
19 | - | |
20 | -#: src/core/hllapi.cc:191 src/core/hllapi.cc:312 src/core/cursor.cc:41 | |
21 | -#: src/core/calls.cc:98 | |
22 | -msgid "Disconnected from host" | |
23 | -msgstr "" | |
24 | - | |
25 | -#: src/core/set.cc:93 src/core/set.cc:110 src/core/set.cc:128 | |
26 | -#: src/core/get.cc:66 src/core/get.cc:84 src/core/get.cc:89 src/core/get.cc:108 | |
27 | -#: src/core/get.cc:113 | |
28 | -msgid "Invalid parameter" | |
29 | -msgstr "" | |
30 | - | |
31 | -#: src/core/controller.cc:110 | |
32 | -msgid "Not initialized" | |
33 | -msgstr "" | |
34 | - | |
35 | -#: src/core/set.cc:81 src/core/keyboard.cc:56 src/core/get.cc:54 | |
36 | -#: src/core/cursor.cc:55 src/core/calls.cc:65 src/core/actions.cc:58 | |
37 | -msgid "Unexpected error" | |
38 | -msgstr "" | |
39 | - | |
40 | -#: src/core/calls.cc:125 | |
41 | -msgid "Unexpected message id" | |
42 | -msgstr "" | |
43 | - | |
44 | -#: src/core/calls.cc:107 | |
45 | -msgid "keyboard is locked" | |
46 | -msgstr "" |
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: 2020-02-05 15:52-0300\n" | |
8 | +"POT-Creation-Date: 2021-01-21 18:55-0300\n" | |
9 | 9 | "PO-Revision-Date: 2020-02-05 15:53-0300\n" |
10 | 10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" |
11 | 11 | "Language-Team: Português <>\n" |
... | ... | @@ -19,31 +19,36 @@ msgstr "" |
19 | 19 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" |
20 | 20 | "X-Generator: Gtranslator 2.91.7\n" |
21 | 21 | |
22 | -#: src/core/hllapi.cc:191 src/core/hllapi.cc:312 src/core/cursor.cc:41 | |
23 | -#: src/core/calls.cc:98 | |
22 | +#: src/core/hllapi.cc:201 src/core/hllapi.cc:322 src/core/calls.cc:114 | |
24 | 23 | msgid "Disconnected from host" |
25 | 24 | msgstr "Desconectado do servidor" |
26 | 25 | |
27 | -#: src/core/set.cc:93 src/core/set.cc:110 src/core/set.cc:128 | |
28 | -#: src/core/get.cc:66 src/core/get.cc:84 src/core/get.cc:89 src/core/get.cc:108 | |
29 | -#: src/core/get.cc:113 | |
26 | +#: src/core/set.cc:70 src/core/set.cc:87 src/core/set.cc:105 src/core/get.cc:69 | |
27 | +#: src/core/get.cc:87 src/core/get.cc:92 src/core/get.cc:109 | |
28 | +#: src/core/get.cc:114 | |
30 | 29 | msgid "Invalid parameter" |
31 | 30 | msgstr "Parâmetro inválido" |
32 | 31 | |
33 | -#: src/core/controller.cc:110 | |
32 | +#: src/core/set.cc:124 | |
33 | +#, fuzzy | |
34 | +msgid "Invalid property name" | |
35 | +msgstr "Sintaxe de proxy inválida" | |
36 | + | |
37 | +#: src/core/controller.cc:118 | |
34 | 38 | msgid "Not initialized" |
35 | 39 | msgstr "Não inicializado" |
36 | 40 | |
37 | -#: src/core/set.cc:81 src/core/keyboard.cc:56 src/core/get.cc:54 | |
38 | -#: src/core/cursor.cc:55 src/core/calls.cc:65 src/core/actions.cc:58 | |
41 | +#: src/core/set.cc:59 src/core/keyboard.cc:53 src/core/hllapi.cc:493 | |
42 | +#: src/core/get.cc:57 src/core/cursor.cc:52 src/core/calls.cc:75 | |
43 | +#: src/core/actions.cc:53 | |
39 | 44 | msgid "Unexpected error" |
40 | 45 | msgstr "Erro inesperado" |
41 | 46 | |
42 | -#: src/core/calls.cc:125 | |
47 | +#: src/core/calls.cc:145 | |
43 | 48 | msgid "Unexpected message id" |
44 | 49 | msgstr "Identificador de mensagem inesperado" |
45 | 50 | |
46 | -#: src/core/calls.cc:107 | |
51 | +#: src/core/calls.cc:123 | |
47 | 52 | msgid "keyboard is locked" |
48 | 53 | msgstr "Teclado está bloqueado" |
49 | 54 | |
... | ... | @@ -1375,9 +1380,6 @@ msgstr "Teclado está bloqueado" |
1375 | 1380 | #~ msgid "Invalid proxy hostname syntax" |
1376 | 1381 | #~ msgstr "Erro de sintaxe no nome do proxy" |
1377 | 1382 | |
1378 | -#~ msgid "Invalid proxy syntax" | |
1379 | -#~ msgstr "Sintaxe de proxy inválida" | |
1380 | - | |
1381 | 1383 | #~ msgid "Invalid proxy type '%.*s'" |
1382 | 1384 | #~ msgstr "Tipo de proxy invalido '%.*s'" |
1383 | 1385 | ... | ... |