=== modified file 'util/grub-mkconfig_lib.in' --- util/grub-mkconfig_lib.in 2010-02-25 13:30:50 +0000 +++ util/grub-mkconfig_lib.in 2010-04-10 20:47:18 +0000 @@ -188,3 +188,8 @@ version_find_latest () done echo "$a" } + +gettext_escape_double_quotes () +{ + echo -n $(gettext $@) | sed 's/\"/\\\"/' +} === modified file 'util/grub.d/10_linux.in' --- util/grub.d/10_linux.in 2010-04-08 09:54:44 +0000 +++ util/grub.d/10_linux.in 2010-04-10 20:49:06 +0000 @@ -56,9 +56,9 @@ linux_entry () recovery="$3" args="$4" if ${recovery} ; then - title="$(gettext "%s, with Linux %s (recovery mode)")" + title="$(gettext_escape_double_quotes "%s, with Linux %s (recovery mode)")" else - title="$(gettext "%s, with Linux %s")" + title="$(gettext_escape_double_quotes "%s, with Linux %s")" fi printf "menuentry \"${title}\" ${CLASS} {\n" "${os}" "${version}" save_default_entry | sed -e "s/^/\t/" @@ -83,12 +83,12 @@ EOF fi printf '%s\n' "${prepare_boot_cache}" cat << EOF - echo $(printf "$(gettext "Loading Linux %s ...")" ${version}) + echo \"$(printf "$(gettext_escape_double_quotes "Loading Linux %s ...")" ${version})\" linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args} EOF if test -n "${initrd}" ; then cat << EOF - echo $(gettext "Loading initial ramdisk ...") + echo \"$(gettext_escape_double_quotes "Loading initial ramdisk ...")\" initrd ${rel_dirname}/${initrd} EOF fi