emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#47882: closed ([PATCH] Makefile: Reimplement download-po target)


From: GNU bug Tracking System
Subject: bug#47882: closed ([PATCH] Makefile: Reimplement download-po target)
Date: Sat, 01 May 2021 14:43:02 +0000

Your message dated Sat, 1 May 2021 16:42:01 +0200
with message-id <20210501164148.79449a60@tachikoma.lepiller.eu>
and subject line Re: bug#47882: [PATCH] Makefile: Reimplement download-po target
has caused the debbugs.gnu.org bug report #47882,
regarding [PATCH] Makefile: Reimplement download-po target
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
47882: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=47882
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] Makefile: Reimplement download-po target Date: Mon, 19 Apr 2021 00:09:58 +0200
Hi Guix!

The attached patch reimplements the download-po target in Makefile.am.
The previous implementation was based on the implementation for the TP
and would use the API of Weblate to get files.

However, the rate-limit is very close to the number of files we need to
download, which was a big limitation, and this target would only
download existing files, ignoring new translations.

With this, new translations and existing ones are added/updated. The
target will first do a shallow clone of the repository behind
Weblate. Then, it will check that files are not empty (contain at least
one translated string) and correct (according to scheme-format at
least). If they are correct, it will normalize them and copy them to
the po/ subdir in the repository.

Here is an example output:

copied po/doc/guix-manual.ru.po.
/tmp/tmp.dWvtATfWQA/translations/po/doc/guix-manual.si.po:6:
AVERTISSEMENT : Le champ d'en-tête « PO-Revision-Date » a encore sa
valeur initiale par défaut
WARN: po/doc/guix-manual.si.po (0 translated messages) was not
added/updated.
/tmp/tmp.dWvtATfWQA/translations/po/guix/nl.po:5135: Les spécifications
de format dans « msgid_plural » et « msgstr[1] » ne sont pas
équivalentes
msgfmt: 1 erreur fatale trouvée
WARN: po/guix/nl.po (1001 translated messages) was not added/updated.

In this output, we can see that the Russian manual was copied, the
Sinhala manual was empty, so not copied, and the Dutch translation had
an issue in one string that needs to be fixed, and was not copied.

I chose not to copy the file because an issue in msgfmt would break
guix pull. Unfortunately, this is not enough testing, as the manual and
cookbook are not checked. Checking them requires building the manual,
so before commiting changes, please run "make".

To document the new process:

make download-po
for any new file in po/guix and po/packages, add the language in a
single line in po/guix/LINGUAS or po/packages/LINGUAS.
for any new file in po/doc, add the file name to po/doc/local.mk, in
DOC_PO_FILES or DOC_COOKBOOK_PO_FILES depending on the translation
type. Add the texi file name to doc/local.mk too, in info_TEXINFOS.

Attachment: 0001-Makefile-Reimplement-download-po-target.patch
Description: Text Data


--- End Message ---
--- Begin Message --- Subject: Re: bug#47882: [PATCH] Makefile: Reimplement download-po target Date: Sat, 1 May 2021 16:42:01 +0200
Le Fri, 30 Apr 2021 21:57:05 +0200,
Ludovic Courtès <ludo@gnu.org> a écrit :

> Hi!
> 
> Alright.  This looks like a nice improvement!  Some nitpicking
> follows, but it LGTM overall.

Thank you! I fixed your comments and pushed to master as
45549e9f31e462d0d1519fd678dd782da6ed5cb9. Thank you!

> BTW, I vaguely remember we asked for a Savannah repo but I’m not sure
> what the outcome was; did it eventually stall for some obscure reason?

Yeah, there were still some issues related to copyright. To be honest I
lost my energy to push on this front...


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]