mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-15 04:20:28 +08:00
Add target to incorporate translations from translations.org
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.
This commit is contained in:
parent
fe3f0488da
commit
56009aa33c
@ -1,3 +1,7 @@
|
|||||||
|
2017-01-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
|
||||||
|
|
||||||
|
* po/Makefile (update-translations): New target.
|
||||||
|
|
||||||
2017-01-19 Joseph Myers <joseph@codesourcery.com>
|
2017-01-19 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
[BZ #21061]
|
[BZ #21061]
|
||||||
|
11
po/Makefile
11
po/Makefile
@ -109,3 +109,14 @@ linguas: $(pofiles:$(podir)/%=%)
|
|||||||
linguas.mo: $(pofiles:$(podir)/%.po=%.mo)
|
linguas.mo: $(pofiles:$(podir)/%.po=%.mo)
|
||||||
|
|
||||||
endif
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user