From 876d4227785994d260bffbab1ccaf1c06bc249d5 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Tue, 21 Aug 2012 15:32:31 +0000 Subject: [PATCH] removing dopo.sh call, and compiling .mo at packaging time. --- debian/alternc.postinst | 3 --- debian/rules | 2 ++ install/dopo.sh | 5 +++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/debian/alternc.postinst b/debian/alternc.postinst index 60932858..455aade6 100644 --- a/debian/alternc.postinst +++ b/debian/alternc.postinst @@ -240,9 +240,6 @@ EOF # Apache will not start without this file touch /var/alternc/apache-vhost/vhosts_all.conf - # Update l18n files - /usr/share/alternc/install/dopo.sh - #squirrelmail fix chown -R :alterncpanel /var/lib/squirrelmail/data chmod -R g+w /var/lib/squirrelmail diff --git a/debian/rules b/debian/rules index b57b1ff9..ff694624 100755 --- a/debian/rules +++ b/debian/rules @@ -26,6 +26,7 @@ build: build-stamp build-stamp: dh_testdir /usr/bin/msgfmt po/fr/LC_MESSAGES/alternc-admintools.po -o po/fr/LC_MESSAGES/alternc-admintools.mo + find bureau/locales -mindepth 2 -maxdepth 2 -type d -name "LC_MESSAGES" -exec msgfmt "{}/alternc" -o "{}/alternc.mo" \; touch build-stamp clean: @@ -34,6 +35,7 @@ clean: rm -f build-stamp debconf-updatepo dh_clean + find bureau/locales -mindepth 3 -maxdepth 3 -type d -name "alternc.mo" -delete install: DH_OPTIONS= install: build diff --git a/install/dopo.sh b/install/dopo.sh index 6b5efc6d..d0b7c469 100755 --- a/install/dopo.sh +++ b/install/dopo.sh @@ -1,5 +1,10 @@ #!/bin/sh +#### THIS SCRIPT IS NO LONGER USED, BUT MAY BE USED +#### BY NON-STANDARD EXTENSIONS OF ALTERNC +#### WE ARE NOW USING A UNIQ CENTRALIZED PO FILE FOR OUR TRANSLATIONS, +#### WHICH IS THE RESULT OF A MSGCAT OF ALL PO FILES FROM EVERYWHERE ;) + # AlternC Language file builder # THIS SCRIPT MUST BE LAUNCHED EACH TIME A MODULE IS ADDED OR REMOVED FROM ALTERNC # eg: alternc-procmailbuilder, alternc-mailman ...