[PATCH] Fixing texinfo macros in pt_BR localization.

  • Done
  • quality assurance status badge
Details
2 participants
  • pelzflorian (Florian Pelz)
  • Thiago Astrizi
Owner
unassigned
Submitted by
Thiago Astrizi
Severity
normal

Debbugs page

T
T
Thiago Astrizi wrote on 3 Sep 13:33 -0700
(address . guix-patches@gnu.org)
CACGbQispzhmxQGY7=uCnbkAr0Vh+tPCXGaP04t+CxS1f2HLP_w@mail.gmail.com
I use GNU guix in pt_BR and command "guix build -f" always fails
producing error message:

texinfo.scm:92:2: In procedure command-spec:
Throw to key `parser-error' with args `(#f "Unknown command" exemplo)'.

The error disappears if I change the language of my system. Checking
the localization files, I found that the pt_BR translation had some
problems in the texinfo file: some translator incorrectly translated
the name of some commands (eg. @example to @exemplo). Checking the
entire file, I identified 3 mistakes of this kind and I am sending the
patch as attachment.

--
--

Thiago Leucz Astrizi
From 862c7513a18c6b68bc76f2595e69a791f23391ba Mon Sep 17 00:00:00 2001
From: Thiago Leucz Astrizi <thiago@bitbitbit.com.br>
Date: Tue, 3 Sep 2024 17:12:07 -0300
Subject: [PATCH] nls: Fixing Texinfo macros in pt-BR translation.

* po/guix/pt_BR.po: Fixing '@exemplo', '@end exempl' and missing '@file'.

The first 2 cases were macros incorrectly translated, the last was a missing macro.
---
po/guix/pt_BR.po | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Toggle diff (31 lines)
diff --git a/po/guix/pt_BR.po b/po/guix/pt_BR.po
index ba8f7255d7..edb5a07f40 100644
--- a/po/guix/pt_BR.po
+++ b/po/guix/pt_BR.po
@@ -986,7 +986,7 @@ msgid ""
"@code{home-environment} record."
msgstr ""
"Este é o @dfn{perfil do usuário} e pode ser encontrado em\n"
-"@{~/.guix-home/profile}. Ele contém pacotes e arquivos\n"
+"@file{~/.guix-home/profile}. Ele contém pacotes e arquivos\n"
"de configuração que o usuário declarou em seu registro\n"
"@code{home-environment}."
@@ -3651,13 +3651,13 @@ msgstr ""
"Scheme no final do arquivo que consiste apenas no nome da variável do pacote\n"
"que você definiu, como neste exemplo:\n"
"\n"
-"@exemplo\n"
+"@example\n"
"(define-public meu-pacote\n"
" (package\n"
" ...))\n"
"\n"
"meu-pacote\n"
-"@end exempl"
+"@end example"
#: guix/scripts/build.scm:573
msgid ""
--
2.45.2
P
P
pelzflorian (Florian Pelz) wrote on 4 Sep 02:20 -0700
(name . Thiago Astrizi)(address . thiago@bitbitbit.com.br)(address . 73015@debbugs.gnu.org)
87ed5zu65c.fsf@pelzflorian.de
Thank you Thiago for fixing the pt_BR translation mistakes. I will
check those errors on Weblate
resync translations this afternoon.

Regards,
Florian
P
P
pelzflorian (Florian Pelz) wrote on 4 Sep 12:21 -0700
(name . Thiago Astrizi)(address . thiago@bitbitbit.com.br)(address . 73015-done@debbugs.gnu.org)
87v7zbusvm.fsf@pelzflorian.de
Instead of pushing, I’ve fixed your reported errors on Weblate and
resynced. Along with multiple errors of the same kind in other
translations. The @{…} error with missing texinfo markup was a good
find. “LC_ALL=pt_BR.utf8 guix build -f gnu/packages/guile.scm” fails
with a properly displayed error message now.

Thank you! Closing.

Regards,
Florian
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 73015@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 73015
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch