Skip to content

Commit 544c3ca

Browse files
committed
Reenabling i18n
1 parent e4ddc6e commit 544c3ca

7 files changed

Lines changed: 92 additions & 86 deletions

File tree

locale/Makefile.in

Lines changed: 0 additions & 55 deletions
This file was deleted.

meson.build

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ pkg_major_version = version_array[0].to_int()
3636
pkg_minor_version = version_array[1].to_int()
3737
pkg_micro_version = version_array[2].to_int()
3838

39-
#libversion = '@0@.@1@'.format(pkg_major_version,pkg_minor_version)
39+
libversion = '@0@.@1@'.format(pkg_major_version,pkg_minor_version)
40+
41+
#
42+
# i18n
43+
#
44+
subdir('po')
4045

4146
#
4247
# Compiler flags

po/LINGUAS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pt_BR

po/POTFILES.in

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
src/core/actions.cc
2+
src/core/calls.cc
3+
src/core/controller.cc
4+
src/core/cursor.cc
5+
src/core/get.cc
6+
src/core/hllapi.cc
7+
src/core/keyboard.cc
8+
src/core/set.cc
9+
src/core/tools.cc
10+
src/core/windows/init.cc
11+
src/core/windows/tools.cc
12+
src/core/private.h
13+
src/include/lib3270/hllapi.h

po/meson.build

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Maintainer: Perry Werneck <perry.werneck@gmail.com>
2+
3+
# SPDX-License-Identifier: LGPL-3.0-or-later
4+
5+
# Copyright (C) 2024 Perry Werneck <perry.werneck@gmail.com>
6+
#
7+
# This program is free software: you can redistribute it and/or modify
8+
# it under the terms of the GNU Lesser General Public License as published
9+
# by the Free Software Foundation, either version 3 of the License, or
10+
# (at your option) any later version.
11+
#
12+
# This program is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
# GNU General Public License for more details.
16+
#
17+
# You should have received a copy of the GNU Lesser General Public License
18+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
19+
20+
#
21+
# References:
22+
#
23+
# https://mesonbuild.com/i18n-module.html
24+
# https://mesonbuild.com/Porting-from-autotools.html
25+
# https://docs.elementary.io/develop/writing-apps/our-first-app/translations
26+
#
27+
28+
# find 'src' -type f -iname '*.c' | grep -v 'build' | sed 's@^./@@g' | grep -v testprogram > po/POTFILES.in
29+
30+
i18n = import('i18n')
31+
32+
gettext_package = 'lib' + meson.project_name() + '-' + libversion
33+
34+
add_project_arguments('-DGETTEXT_PACKAGE="' + gettext_package + '"', language: 'cpp')
35+
36+
i18n.gettext(
37+
gettext_package,
38+
args: '--directory=' + meson.project_source_root()
39+
)
40+

locale/pt_BR.po renamed to po/pt_BR.po

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ msgid ""
55
msgstr ""
66
"Project-Id-Version: pw3270 5.0\n"
77
"Report-Msgid-Bugs-To: \n"
8-
"POT-Creation-Date: 2023-01-30 11:10-0300\n"
8+
"POT-Creation-Date: 2025-09-16 19:54-0300\n"
99
"PO-Revision-Date: 2020-02-05 15:53-0300\n"
1010
"Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n"
1111
"Language-Team: Português <>\n"
@@ -19,38 +19,43 @@ msgstr ""
1919
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
2020
"X-Generator: Gtranslator 2.91.7\n"
2121

22-
#: src/core/hllapi.cc:202 src/core/hllapi.cc:323 src/core/calls.cc:113
22+
#: src/core/actions.cc:44 src/core/calls.cc:76 src/core/cursor.cc:53
23+
#: src/core/get.cc:58 src/core/hllapi.cc:484 src/core/keyboard.cc:54
24+
#: src/core/set.cc:59
25+
msgid "Unexpected error"
26+
msgstr "Erro inesperado"
27+
28+
#: src/core/calls.cc:113 src/core/hllapi.cc:192 src/core/hllapi.cc:313
2329
msgid "Disconnected from host"
2430
msgstr "Desconectado do servidor"
2531

26-
#: src/core/set.cc:70 src/core/set.cc:87 src/core/set.cc:105 src/core/get.cc:70
27-
#: src/core/get.cc:88 src/core/get.cc:93 src/core/get.cc:110
28-
#: src/core/get.cc:115
29-
msgid "Invalid parameter"
30-
msgstr "Parâmetro inválido"
32+
#: src/core/calls.cc:122
33+
msgid "keyboard is locked"
34+
msgstr "Teclado está bloqueado"
3135

32-
#: src/core/set.cc:124
33-
#, fuzzy
34-
msgid "Invalid property name"
35-
msgstr "Sintaxe de proxy inválida"
36+
#: src/core/calls.cc:144
37+
msgid "Unexpected message id"
38+
msgstr "Identificador de mensagem inesperado"
3639

3740
#: src/core/controller.cc:119
3841
msgid "Not initialized"
3942
msgstr "Não inicializado"
4043

41-
#: src/core/set.cc:59 src/core/keyboard.cc:54 src/core/hllapi.cc:494
42-
#: src/core/get.cc:58 src/core/cursor.cc:53 src/core/calls.cc:76
43-
#: src/core/actions.cc:54
44-
msgid "Unexpected error"
45-
msgstr "Erro inesperado"
44+
#: src/core/get.cc:70 src/core/get.cc:88 src/core/get.cc:93 src/core/get.cc:110
45+
#: src/core/get.cc:115 src/core/set.cc:70 src/core/set.cc:87
46+
#: src/core/set.cc:105
47+
msgid "Invalid parameter"
48+
msgstr "Parâmetro inválido"
4649

47-
#: src/core/calls.cc:144
48-
msgid "Unexpected message id"
49-
msgstr "Identificador de mensagem inesperado"
50+
#: src/core/set.cc:124
51+
#, fuzzy
52+
msgid "Invalid property name"
53+
msgstr "Sintaxe de proxy inválida"
5054

51-
#: src/core/calls.cc:122
52-
msgid "keyboard is locked"
53-
msgstr "Teclado está bloqueado"
55+
#: src/core/windows/init.cc:178
56+
#, fuzzy
57+
msgid "Operation not supported"
58+
msgstr "Opção não suportada: '%c:'"
5459

5560
#~ msgid " and <b>%s</b> for %s."
5661
#~ msgstr " e <b>%s</b> para %s."
@@ -1594,9 +1599,6 @@ msgstr "Teclado está bloqueado"
15941599
#~ msgid "Operation has failed"
15951600
#~ msgstr "Operação falhou"
15961601

1597-
#~ msgid "Option '%c:' is not supported"
1598-
#~ msgstr "Opção não suportada: '%c:'"
1599-
16001602
#~ msgid "Options"
16011603
#~ msgstr "Opções"
16021604

@@ -2613,13 +2615,13 @@ msgstr "Teclado está bloqueado"
26132615
#~ msgid ""
26142616
#~ "The current candidate issuer certificate was rejected because its issuer "
26152617
#~ "name and serial number was present and did not match the authority key "
2616-
#~ "identifier of the current certificate. Only displayed when the -"
2617-
#~ "issuer_checks option is set."
2618+
#~ "identifier of the current certificate. Only displayed when the "
2619+
#~ "-issuer_checks option is set."
26182620
#~ msgstr ""
26192621
#~ "The current candidate issuer certificate was rejected because its issuer "
26202622
#~ "name and serial number was present and did not match the authority key "
2621-
#~ "identifier of the current certificate. Only displayed when the -"
2622-
#~ "issuer_checks option is set."
2623+
#~ "identifier of the current certificate. Only displayed when the "
2624+
#~ "-issuer_checks option is set."
26232625

26242626
#~ msgid ""
26252627
#~ "The current candidate issuer certificate was rejected because its "

rpm/libhllapi.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
Summary: HLLAPI client library for lib3270/pw3270
2424
Name: libhllapi
25-
Version: 5.5.0
25+
Version: 5.6.0
2626
Release: 0
2727
License: LGPL-3.0
2828
Source: %{name}-%{version}.tar.xz

0 commit comments

Comments
 (0)