Stephen R Marenka wrote:i have change NO_I18N to DI_LANG for selecting a single language ( C and others..)
How can I build a single language ram disk? Can it be done?
If the single language is C then you can set NO_I18N and it will delete translations from templates files. This could be extended to support other languages.
example for building: fakeroot make DI_LANG=fr build_floppy_root
the next step is to put DI_LANG as default in languagechooser and put the flag to 'seen' in questions.dat
sylvain
Index: build/Makefile =================================================================== RCS file: /cvsroot/d-i/debian-installer/build/Makefile,v retrieving revision 1.290 diff -u -r1.290 Makefile --- build/Makefile 3 Mar 2004 04:44:02 -0000 1.290 +++ build/Makefile 4 Mar 2004 18:40:09 -0000 @@ -418,12 +418,12 @@ rm -f $(DPKGDIR)/status ln -sf status.udeb $(DPKGDIR)/status -ifdef NO_I18N +ifdef DI_LANG # Remove all internationalization from the templates. # Not ideal, but useful if you're very tight on space. set -e; \ for FILE in $$(find $(TREE) -name "*.templates"); do \ - perl -e 'my $$status = 0; while (<>) { if (/^[A-Z]/ || /^$$/) { if (/^(Choices|Description)-/) { $$status = 0; } else { $$status = 1; } } print if ($$status); }' < $$FILE > temp; \ + perl -e 'my $$status = 0; while (<>) { if (/^[A-Z]/ || /^$$/) { if (/^(Choices|Description)-(?!$(DI_LANG))/) { $$status = 0; } else { $$status = 1; } } print if ($$status); }' < $$FILE > temp; \ mv temp $$FILE; \ done endif