wok-6.x rev 6788

slitaz-i18n: improved receipt and cook all locale pack
author Christophe Lincoln <pankso@slitaz.org>
date Mon Oct 18 23:34:42 2010 +0200 (2010-10-18)
parents 31adf89b4637
children 07b433a23a44
files slitaz-i18n/receipt slitaz-i18n/stuff/locale-pack.conf slitaz-i18n/stuff/locale-pack.functions
line diff
     1.1 --- a/slitaz-i18n/receipt	Mon Oct 18 16:46:27 2010 +0000
     1.2 +++ b/slitaz-i18n/receipt	Mon Oct 18 23:34:42 2010 +0200
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt
     1.5  
     1.6  PACKAGE="slitaz-i18n"
     1.7 -VERSION="3.0"
     1.8 +VERSION="4.0"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="SliTaz internationalization meta package to build locale pack."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12 @@ -14,6 +14,10 @@
    1.13  {
    1.14  	mkdir -p $fs/usr/share/doc/slitaz
    1.15  	. stuff/locale-pack.conf
    1.16 +	for i in $LOCALE_PACK
    1.17 +	do
    1.18 +		tazwok cook locale-$i
    1.19 +	done
    1.20  	cat > $fs/usr/share/doc/slitaz/i18n.txt << _EOT_
    1.21  SliTaz i18n information
    1.22  ================================================================================
     2.1 --- a/slitaz-i18n/stuff/locale-pack.conf	Mon Oct 18 16:46:27 2010 +0000
     2.2 +++ b/slitaz-i18n/stuff/locale-pack.conf	Mon Oct 18 23:34:42 2010 +0200
     2.3 @@ -1,4 +1,7 @@
     2.4 +
     2.5  # Packages translations included in the language pack.
     2.6 -
     2.7  CORE_PKGS="asunder alsaplayer epdfview galculator viewnior gparted \
     2.8  glib gtk+ leafpad lxpanel lxtask obconf openbox pcmanfm"
     2.9 +
    2.10 +# List of all locale pack (locale-xx)
    2.11 +LOCALE_PACK="cs de es fr hu id it pt ru sl zh_CN zh_TW"
     3.1 --- a/slitaz-i18n/stuff/locale-pack.functions	Mon Oct 18 16:46:27 2010 +0000
     3.2 +++ b/slitaz-i18n/stuff/locale-pack.functions	Mon Oct 18 23:34:42 2010 +0200
     3.3 @@ -17,11 +17,12 @@
     3.4  	[ -f $WOK/slitaz-configs/slitaz-configs-$VERSION/rootfs/etc/xdg/openbox/menu.${LOCALE}.xml ] && \
     3.5  		cp $WOK/slitaz-configs/slitaz-configs-$VERSION/rootfs/etc/xdg/openbox/menu.${LOCALE}.xml \
     3.6  		$fs/etc/xdg/openbox
     3.7 -
     3.8 -	[ -d $WOK/slitaz-doc ] && . $WOK/slitaz-doc/receipt
     3.9 -	[ -f $WOK/slitaz-doc/slitaz-doc-$VERSION/slitaz/index.${LOCALE}.html ] && \
    3.10 -		cp $WOK/slitaz-doc/slitaz-doc-$VERSION/slitaz/index.${LOCALE}.html \
    3.11 -		$fs/usr/share/doc/slitaz
    3.12 +	
    3.13 +	# All doc is include and linked in slitaz-doc package
    3.14 +	#[ -d $WOK/slitaz-doc ] && . $WOK/slitaz-doc/receipt
    3.15 +	#[ -f $WOK/slitaz-doc/slitaz-doc-$VERSION/slitaz/index.${LOCALE}.html ] && \
    3.16 +		#cp $WOK/slitaz-doc/slitaz-doc-$VERSION/slitaz/index.${LOCALE}.html \
    3.17 +		#$fs/usr/share/doc/slitaz
    3.18  
    3.19  	[ -d $WOK/slitaz-tools ] && . $WOK/slitaz-tools/receipt
    3.20  	[ -d $WOK/slitaz-tools/slitaz-tools-$VERSION/messages/$LOCALE ] && \