# HG changeset patch # User Christophe Lincoln # Date 1331039708 -3600 # Node ID 438b7a480f9e8bb0c45c263133f87bf1851ab88e # Parent fd41dbde66dc431165b224d5dbc747c39561e3d7 slitaz-i18n: dont include slitaz-tools po files (in tools pkgs) and add transmission diff -r fd41dbde66dc -r 438b7a480f9e slitaz-i18n/stuff/locale-pack.conf --- a/slitaz-i18n/stuff/locale-pack.conf Tue Mar 06 13:37:22 2012 +0100 +++ b/slitaz-i18n/stuff/locale-pack.conf Tue Mar 06 14:15:08 2012 +0100 @@ -1,8 +1,8 @@ # Packages LC_MESSAGES included in the locale pack. CORE_PKGS="asunder alsaplayer epdfview galculator viewnior gparted nano \ -glib gtk+ leafpad lxpanel lxtask obconf openbox pcmanfm midori mtpaint \ -mhwaveedit lostirc" +glib gtk+ leafpad lxpanel lxtask lxrandr obconf openbox pcmanfm midori \ +mtpaint mhwaveedit lostirc transmission" # List of all locale pack (locale-xx) LOCALE_PACK="cs da de es fr hu id it pt pt_BR ru sl sv zh_CN zh_TW" diff -r fd41dbde66dc -r 438b7a480f9e slitaz-i18n/stuff/locale-pack.functions --- a/slitaz-i18n/stuff/locale-pack.functions Tue Mar 06 13:37:22 2012 +0100 +++ b/slitaz-i18n/stuff/locale-pack.functions Tue Mar 06 14:15:08 2012 +0100 @@ -5,7 +5,6 @@ { mkdir -p \ $fs/usr/share/locale/$LOCALE \ - $fs/usr/share/slitaz/messages \ $fs/etc/xdg/openbox } @@ -14,16 +13,16 @@ { configs=$WOK/slitaz-configs/source openbox=$configs/slitaz-configs-*/rootfs/etc/xdg/openbox - tools=$WOK/slitaz-tools/source + #tools=$WOK/slitaz-tools/source # Make tazwok compatible with this. if [ ! -x /usr/bin/cook ]; then [ -d $configs ] || tazwok get-src slitaz-configs --target=$configs - [ -d $tools ] || tazwok get-src slitaz-tools --target=$tools + #[ -d $tools ] || tazwok get-src slitaz-tools --target=$tools fi [ ! -d $configs ] && echo "ERROR: missing source slitaz-configs" && exit 1 - [ ! -d $tools ] && echo "ERROR: missing source slitaz-tools" && exit 1 + #[ ! -d $tools ] && echo "ERROR: missing source slitaz-tools" && exit 1 if [ -f $openbox/menu.${LOCALE}.xml ]; then echo "* Found $LOCALE locale for: openbox menu" @@ -31,20 +30,23 @@ fi # Tools messages will be replace in time by POT files. - if [ -d $tools/slitaz-tools-*/messages/$LOCALE ]; then - echo "* Found $LOCALE locale for: slitaz-tools" - cp -a $tools/slitaz-tools-*/messages/$LOCALE \ - $fs/usr/share/slitaz/messages - fi + # + # NOTE: All po files are now include into slitaz-tools (easy for update) + # + #if [ -d $tools/slitaz-tools-*/messages/$LOCALE ]; then + #echo "* Found $LOCALE locale for: slitaz-tools" + #cp -a $tools/slitaz-tools-*/messages/$LOCALE \ + #$fs/usr/share/slitaz/messages + #fi - if [ -d $tools/slitaz-tools-*/po/mo/$LOCALE ]; then - for app in $(ls $tools/slitaz-tools-*/po/mo/$LOCALE) - do - echo "* Found $LOCALE locale for: ${app%.mo}" - cp -a $tools/slitaz-tools-*/po/mo/$LOCALE/$app \ - $fs/usr/share/locale/$LOCALE - done - fi + #if [ -d $tools/slitaz-tools-*/po/mo/$LOCALE ]; then + #for app in $(ls $tools/slitaz-tools-*/po/mo/$LOCALE) + #do + #echo "* Found $LOCALE locale for: ${app%.mo}" + #cp -a $tools/slitaz-tools-*/po/mo/$LOCALE/$app \ + #$fs/usr/share/locale/$LOCALE + #done + #fi } # Get the core packages messages.