wok rev 12018

slitaz-i18n: dont include slitaz-tools po files (in tools pkgs) and add transmission
author Christophe Lincoln <pankso@slitaz.org>
date Tue Mar 06 14:15:08 2012 +0100 (2012-03-06)
parents fd41dbde66dc
children 1505de7c87b2
files slitaz-i18n/stuff/locale-pack.conf slitaz-i18n/stuff/locale-pack.functions
line diff
     1.1 --- a/slitaz-i18n/stuff/locale-pack.conf	Tue Mar 06 13:37:22 2012 +0100
     1.2 +++ b/slitaz-i18n/stuff/locale-pack.conf	Tue Mar 06 14:15:08 2012 +0100
     1.3 @@ -1,8 +1,8 @@
     1.4  
     1.5  # Packages LC_MESSAGES included in the locale pack.
     1.6  CORE_PKGS="asunder alsaplayer epdfview galculator viewnior gparted nano \
     1.7 -glib gtk+ leafpad lxpanel lxtask obconf openbox pcmanfm midori mtpaint \
     1.8 -mhwaveedit lostirc"
     1.9 +glib gtk+ leafpad lxpanel lxtask lxrandr obconf openbox pcmanfm midori \
    1.10 +mtpaint mhwaveedit lostirc transmission"
    1.11  
    1.12  # List of all locale pack (locale-xx)
    1.13  LOCALE_PACK="cs da de es fr hu id it pt pt_BR ru sl sv zh_CN zh_TW"
     2.1 --- a/slitaz-i18n/stuff/locale-pack.functions	Tue Mar 06 13:37:22 2012 +0100
     2.2 +++ b/slitaz-i18n/stuff/locale-pack.functions	Tue Mar 06 14:15:08 2012 +0100
     2.3 @@ -5,7 +5,6 @@
     2.4  {
     2.5  	mkdir -p \
     2.6  		$fs/usr/share/locale/$LOCALE \
     2.7 -		$fs/usr/share/slitaz/messages \
     2.8  		$fs/etc/xdg/openbox
     2.9  }
    2.10  
    2.11 @@ -14,16 +13,16 @@
    2.12  {
    2.13  	configs=$WOK/slitaz-configs/source
    2.14  	openbox=$configs/slitaz-configs-*/rootfs/etc/xdg/openbox
    2.15 -	tools=$WOK/slitaz-tools/source
    2.16 +	#tools=$WOK/slitaz-tools/source
    2.17  
    2.18  	# Make tazwok compatible with this.
    2.19  	if [ ! -x /usr/bin/cook ]; then
    2.20  		[ -d $configs ] || tazwok get-src slitaz-configs --target=$configs
    2.21 -		[ -d $tools ] || tazwok get-src slitaz-tools --target=$tools
    2.22 +		#[ -d $tools ] || tazwok get-src slitaz-tools --target=$tools
    2.23  	fi
    2.24  
    2.25  	[ ! -d $configs ] && echo "ERROR: missing source slitaz-configs" && exit 1
    2.26 -	[ ! -d $tools ] && echo "ERROR: missing source slitaz-tools" && exit 1
    2.27 +	#[ ! -d $tools ] && echo "ERROR: missing source slitaz-tools" && exit 1
    2.28  
    2.29  	if [ -f $openbox/menu.${LOCALE}.xml ]; then
    2.30  		echo "* Found $LOCALE locale for: openbox menu"
    2.31 @@ -31,20 +30,23 @@
    2.32  	fi
    2.33  	
    2.34  	# Tools messages will be replace in time by POT files.
    2.35 -	if [ -d $tools/slitaz-tools-*/messages/$LOCALE ]; then
    2.36 -		echo "* Found $LOCALE locale for: slitaz-tools"
    2.37 -		cp -a $tools/slitaz-tools-*/messages/$LOCALE \
    2.38 -			$fs/usr/share/slitaz/messages
    2.39 -	fi
    2.40 +	#
    2.41 +	# NOTE: All po files are now include into slitaz-tools (easy for update)
    2.42 +	#
    2.43 +	#if [ -d $tools/slitaz-tools-*/messages/$LOCALE ]; then
    2.44 +		#echo "* Found $LOCALE locale for: slitaz-tools"
    2.45 +		#cp -a $tools/slitaz-tools-*/messages/$LOCALE \
    2.46 +			#$fs/usr/share/slitaz/messages
    2.47 +	#fi
    2.48  	
    2.49 -	if [ -d $tools/slitaz-tools-*/po/mo/$LOCALE ]; then
    2.50 -		for app in $(ls $tools/slitaz-tools-*/po/mo/$LOCALE)
    2.51 -		do
    2.52 -			echo "* Found $LOCALE locale for: ${app%.mo}"
    2.53 -			cp -a $tools/slitaz-tools-*/po/mo/$LOCALE/$app \
    2.54 -				$fs/usr/share/locale/$LOCALE
    2.55 -		done
    2.56 -	fi
    2.57 +	#if [ -d $tools/slitaz-tools-*/po/mo/$LOCALE ]; then
    2.58 +		#for app in $(ls $tools/slitaz-tools-*/po/mo/$LOCALE)
    2.59 +		#do
    2.60 +			#echo "* Found $LOCALE locale for: ${app%.mo}"
    2.61 +			#cp -a $tools/slitaz-tools-*/po/mo/$LOCALE/$app \
    2.62 +				#$fs/usr/share/locale/$LOCALE
    2.63 +		#done
    2.64 +	#fi
    2.65  }
    2.66  
    2.67  # Get the core packages messages.