Enclose all translated strings in grub.cfg in single quotes, and

escape them appropriately (Ubuntu bug #552921).
* util/grub-mkconfig_lib.in (gettext_quoted): New function.
* util/grub.d/10_hurd.in: Use it.
* util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
* util/grub.d/10_linux.in (linux_entry): Likewise.
	Also-By: Colin Watson <cjwatson@ubuntu.com>
This commit is contained in:
Carles Pina i Estany 2010-04-13 13:57:56 +01:00 committed by Colin Watson
parent 4b0cd8f813
commit ce44826e79
5 changed files with 27 additions and 12 deletions

View file

@ -188,3 +188,7 @@ version_find_latest ()
done
echo "$a"
}
gettext_quoted () {
gettext "$@" | sed "s/'/'\\\\''/g"
}