ubuntu-developer-manual team mailing list archive
-
ubuntu-developer-manual team
-
Mailing list archive
-
Message #00159
Re: Proposal for localized screenshots
On 01/07/2011 10:24 AM, Kyle Nitzsche wrote:
* Its contents are created at PDF build time as follows:
- lang_pdfs script (localized builds only): updates <lingua>-images
branches for each lingua in LINGUAS file
- Makefile: cp en-images to images/ (This establishes en-images as the
default images)
- Makefile, for localized PDF builds, cp <lingua>-images/* images/ (This
replaces en-images/ files with
Here's the new Makefile target the creates localized ../images that contains
../en-images copied in first, then ../<lang>-images copied in (if it exists),
thus creating the lingua-specific images directory.
localize-images:
>.......@echo 'CREATING $(IMAGES) directory for $(LANG)'
>.......@if [ ! -d ../en-images ]; then \
>.......>.......echo 'Error: ../en-images dir is required and not present.
Stopping'; \
>.......>.......false; \
>.......fi;
>.......@if [ -d $(IMAGES) ]; then \
>.......>.......echo "exists."; \
>.......>.......rm -rf $(IMAGES); \
>.......fi;
>.......mkdir $(IMAGES);
>.......@cp ../en-images/* $(IMAGES)
>.......@if [ -d ../$(LANG)-images ]; then \
>.......>.......cp ../$(LANG)-images/* $(IMAGES); \
>.......else \
>.......>.......echo 'WARNING: ../$(LANG)-images dir is not present. No
localized images.'; \
>.......fi;
So that's proof-of-concept impl #two.
Other bits still outstanding are whether this approach fails for some reason I
don't quite yet grok ;) Before this week I never cracked open a tex file or read
anything about LaTeX, so if I have wandered into some misconception, please
inform me (us).
Cheers,
Kyle
Follow ups
References