From b9effa31a0f858eb0b97c07b3c5b8fea969ff532 Mon Sep 17 00:00:00 2001
From: Otavio Salvador <otavio@ossystems.com.br>
Date: Mon, 24 Sep 2007 18:17:48 -0300
Subject: syslinux: defaults to english text if we lack the specified language

---
 helpers/lh_binary_syslinux | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux
index 77ccc70..b2ad8ae 100755
--- a/helpers/lh_binary_syslinux
+++ b/helpers/lh_binary_syslinux
@@ -364,7 +364,12 @@ case "${LH_BINARY_IMAGES}" in
 		esac
 
 		cp -r "${TEMPLATES}"/common/* binary/isolinux
-		cp -r "${TEMPLATES}"/"${LH_LANGUAGE}"/* binary/isolinux
+		if [ -d "${TEMPLATES}"/"${LH_LANGUAGE}" ]
+		then
+			cp -r "${TEMPLATES}"/"${LH_LANGUAGE}"/* binary/isolinux
+		else
+			cp -r "${TEMPLATES}"/en/* binary/isolinux
+		fi
 
 		for FILE in binary/isolinux/*.live
 		do
-- 
cgit v1.0