dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0268-util-grub-install_header-Use-PACKAGE-.mo-in-message-.patch

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