From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NEhws-00032v-8j for mharc-grub-devel@gnu.org; Sun, 29 Nov 2009 06:28:14 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NEhwm-00031N-Ik for grub-devel@gnu.org; Sun, 29 Nov 2009 06:28:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NEhwg-0002yc-Nk for grub-devel@gnu.org; Sun, 29 Nov 2009 06:28:07 -0500 Received: from [199.232.76.173] (port=47888 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NEhwf-0002yG-Ms for grub-devel@gnu.org; Sun, 29 Nov 2009 06:28:02 -0500 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:39860 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NEhwe-00055b-PY for grub-devel@gnu.org; Sun, 29 Nov 2009 06:28:01 -0500 Received: from pinux (82-45-164-87.cable.ubr06.hari.blueyonder.co.uk [82.45.164.87]) by mail.pina.cat (Postfix) with ESMTP id 6E329288FBA3F for ; Sun, 29 Nov 2009 12:27:55 +0100 (CET) Received: by pinux (Postfix, from userid 1000) id 7DCD2E1950; Sun, 29 Nov 2009 11:28:02 +0000 (GMT) Date: Sun, 29 Nov 2009 11:28:02 +0000 From: Carles Pina i Estany To: grub-devel@gnu.org Message-ID: <20091129112802.GA3272@pina.cat> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: gettext: install the *.mo files X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Nov 2009 11:28:09 -0000 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, Find attached a patch to install the *.mo files. I've tested grub-mkrescue.in but not grub-install.in (yet) Using for + if + cp and not cp with wildcards to really check that the files exists and so on (like other parts of the file). Comments? Thanks, -- Carles Pina i Estany http://pinux.info --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ChangeLog.copy_mo" 2009-11-29 Carles Pina i Estany * util/grub-install.in: Install the gettext .mo files. * util/grub-mkrescue.in (process_input_dir): Copy the gettext .mo files --envbJBWh7q8WU6mo Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="copy_mo.patch" === modified file 'util/grub-install.in' --- util/grub-install.in 2009-11-12 12:23:11 +0000 +++ util/grub-install.in 2009-11-29 11:21:46 +0000 @@ -247,6 +247,14 @@ if [ "${target_cpu}-${platform}" = "i386 done fi +# Copy gettext files +mkdir -p ${grubdir}/locale/ +for file in ${grubdir}/locale/*.mo ${pkglibdir}/locale/*.mo; do + if test -f "$file"; then + cp -f "$file" ${grubdir}/locale/ + fi +done + # Write device to a variable so we don't have to traverse /dev every time. grub_device=`$grub_probe --target=device ${grubdir}` === modified file 'util/grub-mkrescue.in' --- util/grub-mkrescue.in 2009-11-21 16:40:55 +0000 +++ util/grub-mkrescue.in 2009-11-29 11:17:46 +0000 @@ -100,6 +100,13 @@ process_input_dir () cp -f "$file" ${iso9660_dir}/boot/grub/${target_cpu}-${platform}/ fi done + + mkdir -p ${iso9660_dir}/boot/grub/locale + for file in ${input_dir}/po/*.mo; do + if test -f "$file"; then + cp -f "$file" ${iso9660_dir}/boot/grub/locale/ + fi + done } if [ "${override_dir}" = "" ] ; then --envbJBWh7q8WU6mo--