wok diff slitaz-i18n/stuff/locale-pack.functions @ rev 12266
Up: binutils (2.22) - New linker for the toolchain
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Apr 12 14:40:48 2012 +0200 (2012-04-12) |
parents | 6916f08d8107 |
children | 919b102812ab |
line diff
1.1 --- a/slitaz-i18n/stuff/locale-pack.functions Sat Dec 10 19:47:39 2011 +0100 1.2 +++ b/slitaz-i18n/stuff/locale-pack.functions Thu Apr 12 14:40:48 2012 +0200 1.3 @@ -5,7 +5,6 @@ 1.4 { 1.5 mkdir -p \ 1.6 $fs/usr/share/locale/$LOCALE \ 1.7 - $fs/usr/share/slitaz/messages \ 1.8 $fs/etc/xdg/openbox 1.9 } 1.10 1.11 @@ -14,16 +13,16 @@ 1.12 { 1.13 configs=$WOK/slitaz-configs/source 1.14 openbox=$configs/slitaz-configs-*/rootfs/etc/xdg/openbox 1.15 - tools=$WOK/slitaz-tools/source 1.16 + #tools=$WOK/slitaz-tools/source 1.17 1.18 # Make tazwok compatible with this. 1.19 if [ ! -x /usr/bin/cook ]; then 1.20 [ -d $configs ] || tazwok get-src slitaz-configs --target=$configs 1.21 - [ -d $tools ] || tazwok get-src slitaz-tools --target=$tools 1.22 + #[ -d $tools ] || tazwok get-src slitaz-tools --target=$tools 1.23 fi 1.24 1.25 [ ! -d $configs ] && echo "ERROR: missing source slitaz-configs" && exit 1 1.26 - [ ! -d $tools ] && echo "ERROR: missing source slitaz-tools" && exit 1 1.27 + #[ ! -d $tools ] && echo "ERROR: missing source slitaz-tools" && exit 1 1.28 1.29 if [ -f $openbox/menu.${LOCALE}.xml ]; then 1.30 echo "* Found $LOCALE locale for: openbox menu" 1.31 @@ -31,20 +30,23 @@ 1.32 fi 1.33 1.34 # Tools messages will be replace in time by POT files. 1.35 - if [ -d $tools/slitaz-tools-*/messages/$LOCALE ]; then 1.36 - echo "* Found $LOCALE locale for: slitaz-tools" 1.37 - cp -a $tools/slitaz-tools-*/messages/$LOCALE \ 1.38 - $fs/usr/share/slitaz/messages 1.39 - fi 1.40 + # 1.41 + # NOTE: All po files are now include into slitaz-tools (easy for update) 1.42 + # 1.43 + #if [ -d $tools/slitaz-tools-*/messages/$LOCALE ]; then 1.44 + #echo "* Found $LOCALE locale for: slitaz-tools" 1.45 + #cp -a $tools/slitaz-tools-*/messages/$LOCALE \ 1.46 + #$fs/usr/share/slitaz/messages 1.47 + #fi 1.48 1.49 - if [ -d $tools/slitaz-tools-*/po/mo/$LOCALE ]; then 1.50 - for app in $(ls $tools/slitaz-tools-*/po/mo/$LOCALE) 1.51 - do 1.52 - echo "* Found $LOCALE locale for: ${app%.mo}" 1.53 - cp -a $tools/slitaz-tools-*/po/mo/$LOCALE/$app \ 1.54 - $fs/usr/share/locale/$LOCALE 1.55 - done 1.56 - fi 1.57 + #if [ -d $tools/slitaz-tools-*/po/mo/$LOCALE ]; then 1.58 + #for app in $(ls $tools/slitaz-tools-*/po/mo/$LOCALE) 1.59 + #do 1.60 + #echo "* Found $LOCALE locale for: ${app%.mo}" 1.61 + #cp -a $tools/slitaz-tools-*/po/mo/$LOCALE/$app \ 1.62 + #$fs/usr/share/locale/$LOCALE 1.63 + #done 1.64 + #fi 1.65 } 1.66 1.67 # Get the core packages messages.