* util/grub-install_header: Use @PACKAGE@.mo in message catalog name
instead of hardcoding grub.mo.
This commit is contained in:
parent
1f44478c26
commit
59624ca858
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
|
||||||
|
|
||||||
|
* util/grub-install_header: Use @PACKAGE@.mo in message catalog name
|
||||||
|
instead of hardcoding grub.mo.
|
||||||
|
|
||||||
2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
|
2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
|
||||||
|
|
||||||
* util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
|
* util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
|
||||||
|
|
|
@ -82,16 +82,16 @@ grub_install_files () {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
for dir in "${localedir}"/*; do
|
for dir in "${localedir}"/*; do
|
||||||
if test -f "$dir/LC_MESSAGES/grub.mo" && ! test -f "${grub_install_files_target_directory}"/locale/"${dir##*/}.mo"; then
|
if test -f "$dir/LC_MESSAGES/@PACKAGE@.mo" && ! test -f "${grub_install_files_target_directory}"/locale/"${dir##*/}.mo"; then
|
||||||
cp -f "$dir/LC_MESSAGES/grub.mo" "${grub_install_files_target_directory}"/locale/"${dir##*/}.mo"
|
cp -f "$dir/LC_MESSAGES/@PACKAGE@.mo" "${grub_install_files_target_directory}"/locale/"${dir##*/}.mo"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
for locale in $install_locales; do
|
for locale in $install_locales; do
|
||||||
if test -f "${grub_install_files_source_directory}"/po/$locale.mo; then
|
if test -f "${grub_install_files_source_directory}"/po/$locale.mo; then
|
||||||
cp -f " "${grub_install_files_source_directory}"/po/$locale.mo" "${grub_install_files_target_directory}"/locale/$locale.mo
|
cp -f " "${grub_install_files_source_directory}"/po/$locale.mo" "${grub_install_files_target_directory}"/locale/$locale.mo
|
||||||
elif test -f "${localedir}/$locale/LC_MESSAGES/grub.mo"; then
|
elif test -f "${localedir}/$locale/LC_MESSAGES/@PACKAGE@.mo"; then
|
||||||
cp -f "${localedir}/$locale/LC_MESSAGES/grub.mo" "${grub_install_files_target_directory}"/locale/$locale.mo
|
cp -f "${localedir}/$locale/LC_MESSAGES/@PACKAGE@.mo" "${grub_install_files_target_directory}"/locale/$locale.mo
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue