[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [patch]: fdisk-udeb needs reduced .mo files for l10n



>Package: util-linux
>Version: 2.11-4
>Tags: patch, d-i
>
>The fdisk-udeb for debian-installer requires cut-down versions 
>of the .mo files for localisation.
>The following patch produces these.
>
>Regards,
>Alastair
>diff rules.orig rules
>38a39,41
>> CFDISK_PO_DIR=cfdisk-po
>> CFDISK_POT=$(CFDISK_PO_DIR)/cfdisk.pot
>>
>54a58
>>       rm -rf $(CFDISK_PO_DIR)
>244c248,257
><
>---
>>       # Generate a po translations needed for cfdisk
>>       mkdir $(CFDISK_PO_DIR)
>>       xgettext --default-domain=util-linux -C --keyword=_ --keyword=N_ -o

>$(CFDISK_POT) fdisk/*.c
>>       for po in po/*.po ; do  \
>>               LANG=`basename $$po | cut -f1 -d.` ; \
>>               msgmerge $$po $(CFDISK_POT)  > $(CFDISK_PO_DIR)/$$LANG.po ;

>\
>>               msgfmt $(CFDISK_PO_DIR)/$$LANG.po -o $(CFDISK_PO_DIR)/$$LANG.gmo

>; \
>>               mkdir -p debian/tmp-fdisk-udeb/usr/share/locale/$$LANG/LC_MESSAGES

>; \
>>               cp $(CFDISK_PO_DIR)/$$LANG.gmo debian/tmp-fdisk-udeb/usr/share/locale/$$LANG/LC_MESSAGES/util-linux.mo

>; \
>>               done
>

I wrote up a patch to add the missing l10n to cfdisk.
Unfortunately its bloats the udeb a bit:
 
total 4072
  68 bsdutils_2.12-4_i386.deb
 468 fdisk-udeb_2.12-4_i386.udeb
 136 mount_2.12-4_i386.deb
   4 util-linux-2.12
   4 util-linux-2.12.new
 984 util-linux-locales_2.12-4_all.deb
 148 util-linux_2.12-4.diff.gz
   4 util-linux_2.12-4.dsc
  60 util-linux_2.12-4_i386.build
   4 util-linux_2.12-4_i386.changes
 372 util-linux_2.12-4_i386.deb
1820 util-linux_2.12.orig.tar.gz

Around 70K per language added to the udeb.
Is this acceptable, or what else should be done?

Regards,
Alastair McKinstry



Reply to: