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:
parent
4b0cd8f813
commit
ce44826e79
5 changed files with 27 additions and 12 deletions
|
@ -188,3 +188,7 @@ version_find_latest ()
|
|||
done
|
||||
echo "$a"
|
||||
}
|
||||
|
||||
gettext_quoted () {
|
||||
gettext "$@" | sed "s/'/'\\\\''/g"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue