[Pkg-xen-devel] Bug#865086: xen-hypervisor-4.8-amd64: Default grub entry broken with locales (how to reproduce)

Hans van Kranenburg hans at knorrie.org
Wed Oct 24 18:04:42 BST 2018


Hi,

Can anyone explain me how I can reproduce this failure, and how exactly
I can verify the fix? From a QA POV I'd like to verify this before
applying. I don't have a lot of experience with gettext.

What I did to test is (buster dom0 with latest xen 4.11 from unstable):

-# dpkg-reconfigure locales
   -> also select nl_NL.UTF-8 UTF-8
   -> choose nl_NL.UTF-8 as default instead of en_US.UTF-8

-# apt-get update
[...]
10,9 kB opgehaald in 1s (7523 B/s)
Pakketlijsten worden ingelezen... Klaar

Ok, that looks dutch.

-# update-grub
Generating grub configuration file ...
[...]
done

-# grep Xen /boot/grub/grub.cfg |sed 's/ --class.*//;s/\$menuentry.*//'
   set default="Debian GNU/Linux, with Xen hypervisor"
menuentry 'Debian GNU/Linux, with Xen hypervisor'
	echo	'Loading Xen 4.11-amd64 ...'
submenu 'Advanced options for Debian GNU/Linux (with Xen hypervisor)'
	submenu 'Xen hypervisor, version 4.11-amd64'
		menuentry 'Debian GNU/Linux, with Xen 4.11-amd64 and Linux 4.18.0-2-amd64'
			echo	'Loading Xen 4.11-amd64 ...'
		menuentry 'Debian GNU/Linux, with Xen 4.11-amd64 and Linux 4.18.0-1-amd64'
			echo	'Loading Xen 4.11-amd64 ...'
	submenu 'Xen hypervisor, version 4.11-amd64.efi'
		menuentry 'Debian GNU/Linux, with Xen 4.11-amd64.efi and Linux
4.18.0-2-amd64'
			echo	'Loading Xen 4.11-amd64.efi ...'
		menuentry 'Debian GNU/Linux, with Xen 4.11-amd64.efi and Linux
4.18.0-1-amd64'
			echo	'Loading Xen 4.11-amd64.efi ...'
	submenu 'Xen hypervisor, version 4.11-amd64.config'
		menuentry 'Debian GNU/Linux, with Xen 4.11-amd64.config and Linux
4.18.0-2-amd64'
			echo	'Loading Xen 4.11-amd64.config ...'
		menuentry 'Debian GNU/Linux, with Xen 4.11-amd64.config and Linux
4.18.0-1-amd64'
			echo	'Loading Xen 4.11-amd64.config ...'

So, as a result of applying this patch, I would like to see all of this
translated in Dutch.

At this point, the first thing I want to test is if I can see that the
gettext commands give me dutch output for things:

-# env |grep LANG
LANG=nl_NL.UTF-8

-# printf "$(gettext "%s, with Xen hypervisor")" "Debian GNU/Linux"
Debian GNU/Linux, with Xen hypervisor

-# dpkg -L grub-common |grep -i nl
/usr/share/locale/nl
/usr/share/locale/nl/LC_MESSAGES
/usr/share/locale/nl/LC_MESSAGES/grub.mo

-# strings /usr/share/locale/nl/LC_MESSAGES/grub.mo |grep Xen
%s, with Xen %s and Linux %s
%s, with Xen hypervisor
Advanced options for %s (with Xen hypervisor)
Check if FILE can be booted as i386 PAE Xen unprivileged guest kernel
Check if FILE can be booted as x86_64 Xen unprivileged guest kernel
Check if FILE can be used as Xen x86 privileged guest kernel
List Xen storage.
Loading Xen %s ...
Xen hypervisor, version %s
you need to load the Xen Hypervisor first
%s, met Xen %s en Linux %s
%s, met Xen-hypervisor
Geavanceerde opties voor %s (met Xen-hypervisor)
Controleren of BESTAND als ongeprivilegieerde i386-PAE-Xen-gast-kernel
gestart kan worden
Controleren of BESTAND als ongeprivilegieerde x86_64-Xen-gast-kernel
gestart kan worden
Controleren of BESTAND als geprivilegieerde x86-Xen-gast-kernel gebruikt
kan worden
Xen-opslag tonen.
Een Xen-hypervisor laden.
Een Xen-module laden.
Laden van Xen %s...
Xen-hypervisor, versie %s
u dient eerst de Xen-hypervisor te laden

Ok, so those are the translations that I can get...

What am I doing wrong, so that the first test already doesn't give me:
"Debian GNU/Linux, met Xen-hypervisor"

Thanks,
Hans



More information about the Pkg-xen-devel mailing list