# HG changeset patch # User Christophe Lincoln # Date 1287437682 -7200 # Node ID d4fabad5ae116a68644ac713c3d8ce2da01662ae # Parent 31adf89b4637c273616efc1e4b09b40cb7264254 slitaz-i18n: improved receipt and cook all locale pack diff -r 31adf89b4637 -r d4fabad5ae11 slitaz-i18n/receipt --- a/slitaz-i18n/receipt Mon Oct 18 16:46:27 2010 +0000 +++ b/slitaz-i18n/receipt Mon Oct 18 23:34:42 2010 +0200 @@ -1,7 +1,7 @@ # SliTaz package receipt PACKAGE="slitaz-i18n" -VERSION="3.0" +VERSION="4.0" CATEGORY="system-tools" SHORT_DESC="SliTaz internationalization meta package to build locale pack." MAINTAINER="pankso@slitaz.org" @@ -14,6 +14,10 @@ { mkdir -p $fs/usr/share/doc/slitaz . stuff/locale-pack.conf + for i in $LOCALE_PACK + do + tazwok cook locale-$i + done cat > $fs/usr/share/doc/slitaz/i18n.txt << _EOT_ SliTaz i18n information ================================================================================ diff -r 31adf89b4637 -r d4fabad5ae11 slitaz-i18n/stuff/locale-pack.conf --- a/slitaz-i18n/stuff/locale-pack.conf Mon Oct 18 16:46:27 2010 +0000 +++ b/slitaz-i18n/stuff/locale-pack.conf Mon Oct 18 23:34:42 2010 +0200 @@ -1,4 +1,7 @@ + # Packages translations included in the language pack. - CORE_PKGS="asunder alsaplayer epdfview galculator viewnior gparted \ glib gtk+ leafpad lxpanel lxtask obconf openbox pcmanfm" + +# List of all locale pack (locale-xx) +LOCALE_PACK="cs de es fr hu id it pt ru sl zh_CN zh_TW" diff -r 31adf89b4637 -r d4fabad5ae11 slitaz-i18n/stuff/locale-pack.functions --- a/slitaz-i18n/stuff/locale-pack.functions Mon Oct 18 16:46:27 2010 +0000 +++ b/slitaz-i18n/stuff/locale-pack.functions Mon Oct 18 23:34:42 2010 +0200 @@ -17,11 +17,12 @@ [ -f $WOK/slitaz-configs/slitaz-configs-$VERSION/rootfs/etc/xdg/openbox/menu.${LOCALE}.xml ] && \ cp $WOK/slitaz-configs/slitaz-configs-$VERSION/rootfs/etc/xdg/openbox/menu.${LOCALE}.xml \ $fs/etc/xdg/openbox - - [ -d $WOK/slitaz-doc ] && . $WOK/slitaz-doc/receipt - [ -f $WOK/slitaz-doc/slitaz-doc-$VERSION/slitaz/index.${LOCALE}.html ] && \ - cp $WOK/slitaz-doc/slitaz-doc-$VERSION/slitaz/index.${LOCALE}.html \ - $fs/usr/share/doc/slitaz + + # All doc is include and linked in slitaz-doc package + #[ -d $WOK/slitaz-doc ] && . $WOK/slitaz-doc/receipt + #[ -f $WOK/slitaz-doc/slitaz-doc-$VERSION/slitaz/index.${LOCALE}.html ] && \ + #cp $WOK/slitaz-doc/slitaz-doc-$VERSION/slitaz/index.${LOCALE}.html \ + #$fs/usr/share/doc/slitaz [ -d $WOK/slitaz-tools ] && . $WOK/slitaz-tools/receipt [ -d $WOK/slitaz-tools/slitaz-tools-$VERSION/messages/$LOCALE ] && \