From patchwork Sat Jul 15 07:26:47 2006 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucian Muresan X-Patchwork-Id: 12357 Received: from moutng.kundenserver.de ([212.227.126.186]) by www.linuxtv.org with esmtp (Exim 4.50) id 1G1edi-0002KX-Nm for vdr@linuxtv.org; Sat, 15 Jul 2006 09:32:38 +0200 Received: from [84.149.10.213] (helo=gugumirx.no-ip.org) by mrelayeu.kundenserver.de (node=mrelayeu6) with ESMTP (Nemesis), id 0ML29c-1G1eYJ0Nxz-0005bm; Sat, 15 Jul 2006 09:27:23 +0200 Received: from localhost (localhost [127.0.0.1]) by gugumirx.no-ip.org (Postfix) with ESMTP id B2E216F0E9 for ; Sat, 15 Jul 2006 09:27:04 +0200 (CEST) Received: from gugumirx.no-ip.org ([127.0.0.1]) by localhost (gugumirx.no-ip.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04100-10 for ; Sat, 15 Jul 2006 09:26:47 +0200 (CEST) Received: from [192.168.178.80] (blues.gugumirx.no-ip.org [192.168.178.80]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gugumirx.no-ip.org (Postfix) with ESMTP id A0C4D6EEE7 for ; Sat, 15 Jul 2006 09:26:46 +0200 (CEST) Message-ID: <44B898B7.2070303@users.sourceforge.net> Date: Sat, 15 Jul 2006 09:26:47 +0200 From: Lucian Muresan User-Agent: Thunderbird 1.5.0.4 (X11/20060618) MIME-Version: 1.0 To: vdr@linuxtv.org X-Virus-Scanned: amavisd-new at gugumirx.no-ip.org X-Provags-ID: kundenserver.de abuse@kundenserver.de login:bc0772ca0f677a4ff000d75d9f89eb79 Subject: [vdr] VDRAdmin-AM-3.4.6 en_US.utf8 locale patch X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Jul 2006 07:32:38 -0000 Status: O X-Status: X-Keywords: X-UID: 10110 Hello, for those interested in displaying EPG content in UTF-8, but don't care about a localization of VDRAdmin, you might be interested in this patch. It will add a script which will generate an en_US.utf8 locale PO-file right from the POT file (will thus always be up to date), and also add "en_US.utf8" to the LANG variable in the make.sh and install.sh scripts. All you have to do after generating the "new" locale is to run "make.sh po" before installing, that way the new locale will also be compiled (assumes gettext installed on the system, which shouldn't be a problem). Then you can configure the en_US.utf8 locale at least from VDRAdmin's Configuration page, if you don't want to set it globally for your system. If you want to use a similar technique for a localized VDRAdmin-AM, you can convert the respective PO-file to UTF-8, let the "ISO-8859-1" msgid (one of the first messages) map to "UTF-8" and add the new locale to the build system. Have phun, Lucian P.S. The other patch is for the current gentoo ebuild, for those gentoo-ers who can't wait until hd_brummy provides a new one. diff -Naur vdradmin-am-3.4.6_orig/en_US.utf8.sh vdradmin-am-3.4.6/en_US.utf8.sh --- vdradmin-am-3.4.6_orig/en_US.utf8.sh 1970-01-01 01:00:00.000000000 +0100 +++ vdradmin-am-3.4.6/en_US.utf8.sh 2006-07-15 01:41:20.000000000 +0200 @@ -0,0 +1,6 @@ +#!/bin/bash +rm -f po/en_US.utf8.po +rm -f po/en_US.utf8.po0 +msginit -i po/vdradmin.pot -o po/en_US.utf8.po0 -l en_US.utf8 --no-translator +sed -e 's:msgstr "ISO-8859-1":msgstr "UTF-8":g' po/en_US.utf8.po0 > po/en_US.utf8.po +rm -f po/en_US.utf8.po0 diff -Naur vdradmin-am-3.4.6_orig/install.sh vdradmin-am-3.4.6/install.sh --- vdradmin-am-3.4.6_orig/install.sh 2006-07-07 11:17:13.000000000 +0200 +++ vdradmin-am-3.4.6/install.sh 2006-07-15 01:32:55.000000000 +0200 @@ -20,7 +20,7 @@ VDRCONF=${VDRCONF:-$VIDEODIR} EPGDATA=${EPGDATA:-$VIDEODIR/epg.data} -LANGS="de es fi fr nl ru" +LANGS="de es fi fr nl ru en_US.utf8" function usage() { diff -Naur vdradmin-am-3.4.6_orig/make.sh vdradmin-am-3.4.6/make.sh --- vdradmin-am-3.4.6_orig/make.sh 2006-07-13 16:06:29.000000000 +0200 +++ vdradmin-am-3.4.6/make.sh 2006-07-15 01:32:34.000000000 +0200 @@ -1,6 +1,6 @@ #!/bin/bash -LANGS="de es fr fi nl ru" +LANGS="de es fr fi nl ru en_US.utf8" DIST_FILES="COPYING CREDITS FAQ HISTORY INSTALL README README.translators REQUIREMENTS contrib convert.pl install.sh lib locale make.sh template uninstall.sh vdradmind.pl vdradmind.pl.1" INSTALL_SH=./install.sh TMPDIR=/tmp