This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2] Add target to incorporate translations from translations.org
- From: Carlos O'Donell <carlos at redhat dot com>
- To: Siddhesh Poyarekar <siddhesh at sourceware dot org>, libc-alpha at sourceware dot org
- Date: Thu, 19 Jan 2017 14:41:26 -0500
- Subject: Re: [PATCH v2] Add target to incorporate translations from translations.org
- Authentication-results: sourceware.org; auth=none
- References: <1484230354-16293-1-git-send-email-siddhesh@sourceware.org>
On 01/12/2017 09:12 AM, Siddhesh Poyarekar wrote:
> Add a convenience target for maintainers to download and incorporate
> translation updates from translations.org. Invoke as follows:
>
> make -r PARALLELMFLAGS="" -C ../po objdir=`pwd` update-translations
>
> similar to generating libc.pot.
>
> * po/Makefile (update-translations): New target.
> ---
> po/Makefile | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/po/Makefile b/po/Makefile
> index 302c3b6..122db23 100644
> --- a/po/Makefile
> +++ b/po/Makefile
> @@ -109,3 +109,14 @@ linguas: $(pofiles:$(podir)/%=%)
> linguas.mo: $(pofiles:$(podir)/%.po=%.mo)
>
> endif
> +
> +# Update translations from the translation project.
> +TRANSLATIONS_URL = https://translationproject.org/latest/libc
> +WGET = wget
> +
> +update-translations:
> + $(WGET) -qO- $(TRANSLATIONS_URL) | sed -n 's|.*href="\([^"]\+po\)".*|\1|p' | \
> + while read f; do \
> + $(WGET) -O $(objdir)/$$f-tmp $(TRANSLATIONS_URL)/$$f && \
> + mv -f $(objdir)/$$f-tmp $$f; \
> + done
>
This looks good to me.
Please update the release checklist to mention the use of the new target.
--
Cheers,
Carlos.