i18n for boot-floppies
Hi,
while creating German boot-floppies and have encountered some minor
glitches.
One of them was that I had to include some .mo files for applications
used on the root.bin.
Especially I had to use the following patch:
diff -Nur orig/boot-floppies/scripts/rootdisk/SMALL_BASE_LIST_all boot-floppies/scripts/rootdisk/SMALL_BASE_LIST_all
--- orig/boot-floppies/scripts/rootdisk/SMALL_BASE_LIST_all Sun Jan 31 12:55:55 1999
+++ boot-floppies/scripts/rootdisk/SMALL_BASE_LIST_all Thu May 6 21:34:38 1999
@@ -19,3 +19,6 @@
sbin/rmmod
sbin/route
usr/bin/whiptail
+usr/share/locale/de/LC_MESSAGES/e2fsprogs.mo
+usr/share/locale/de/LC_MESSAGES/util-linux.mo
+usr/share/locale/de/LC_MESSAGES/shadow.mo
However this patch only works for German boot floppies which cannot
be used generally.
Thus we need some generic mechanism that has a set of textdomains
and will add them if neeeeded. I'm thinking of something like
the following fragment:
domains='e2fsprogs util-linux shadow'
...
for domain in $domains
do
if [ -f $foo/usr/share/locale/${LINGUA}/LC_MESSAGES/${domain}.mo ]
then
cp $foo/usr/share/locale/${LINGUA}/LC_MESSAGES/${domain}.mo \
$R/usr/share/locale/${LINGUA}/LC_MESSAGES/${domain}.mo
fi
done
Please consider this before I might scrunge some code.
Regards,
Joey
--
GNU does not eliminate all the world's problems, only some of them.
-- The GNU Manifesto
Please always Cc to me when replying to me on the lists.
Reply to: