a5bd9f6
From ae1957bc0b8982ee73b60aa194f72bc538c60854 Mon Sep 17 00:00:00 2001
a5bd9f6
From: Andrey Borzenkov  <arvidjaar@gmail.com>
a5bd9f6
Date: Sat, 6 Apr 2013 20:14:29 +0200
a5bd9f6
Subject: [PATCH 267/364] 	* util/grub-install_header: Use @PACKAGE@.mo
a5bd9f6
 in message catalog name 	instead of hardcoding grub.mo.
a5bd9f6
a5bd9f6
---
a5bd9f6
 ChangeLog                | 5 +++++
a5bd9f6
 util/grub-install_header | 8 ++++----
a5bd9f6
 2 files changed, 9 insertions(+), 4 deletions(-)
a5bd9f6
a5bd9f6
diff --git a/ChangeLog b/ChangeLog
a5bd9f6
index 954d85f..300ddd0 100644
a5bd9f6
--- a/ChangeLog
a5bd9f6
+++ b/ChangeLog
a5bd9f6
@@ -1,3 +1,8 @@
a5bd9f6
+2013-04-06  Andrey Borzenkov <arvidjaar@gmail.com>
a5bd9f6
+
a5bd9f6
+	* util/grub-install_header: Use @PACKAGE@.mo in message catalog name
a5bd9f6
+	instead of hardcoding grub.mo.
a5bd9f6
+
a5bd9f6
 2013-04-05  Fedora Ninjas <grub2-owner@fedoraproject.org>
a5bd9f6
 
a5bd9f6
 	* util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
a5bd9f6
diff --git a/util/grub-install_header b/util/grub-install_header
a5bd9f6
index 7c2c0a5..69aac46 100644
a5bd9f6
--- a/util/grub-install_header
a5bd9f6
+++ b/util/grub-install_header
a5bd9f6
@@ -82,16 +82,16 @@ grub_install_files () {
a5bd9f6
 	    fi
a5bd9f6
 	done
a5bd9f6
 	for dir in "${localedir}"/*; do
a5bd9f6
-	    if test -f "$dir/LC_MESSAGES/grub.mo" && ! test -f "${grub_install_files_target_directory}"/locale/"${dir##*/}.mo"; then
a5bd9f6
-		cp -f "$dir/LC_MESSAGES/grub.mo" "${grub_install_files_target_directory}"/locale/"${dir##*/}.mo"
a5bd9f6
+	    if test -f "$dir/LC_MESSAGES/@PACKAGE@.mo" && ! test -f "${grub_install_files_target_directory}"/locale/"${dir##*/}.mo"; then
a5bd9f6
+		cp -f "$dir/LC_MESSAGES/@PACKAGE@.mo" "${grub_install_files_target_directory}"/locale/"${dir##*/}.mo"
a5bd9f6
 	    fi
a5bd9f6
 	done
a5bd9f6
     else
a5bd9f6
 	for locale in $install_locales; do
a5bd9f6
 	    if test -f "${grub_install_files_source_directory}"/po/$locale.mo; then
a5bd9f6
 		cp -f " "${grub_install_files_source_directory}"/po/$locale.mo" "${grub_install_files_target_directory}"/locale/$locale.mo
a5bd9f6
-	    elif test -f "${localedir}/$locale/LC_MESSAGES/grub.mo"; then
a5bd9f6
-		cp -f "${localedir}/$locale/LC_MESSAGES/grub.mo" "${grub_install_files_target_directory}"/locale/$locale.mo
a5bd9f6
+	    elif test -f "${localedir}/$locale/LC_MESSAGES/@PACKAGE@.mo"; then
a5bd9f6
+		cp -f "${localedir}/$locale/LC_MESSAGES/@PACKAGE@.mo" "${grub_install_files_target_directory}"/locale/$locale.mo
a5bd9f6
 	    fi
a5bd9f6
 	done
a5bd9f6
     fi
a5bd9f6
-- 
a5bd9f6
1.8.1.4
a5bd9f6