wok-next annotate slitaz-i18n/stuff/locale-pack.functions @ rev 10740

locale-*: we dont need compile rules any more since core pkgs are in slitaz-i18n bdeps
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 30 01:12:54 2011 +0200 (2011-05-30)
parents cb3839ac1096
children 872ecb790c84
rev   line source
pankso@3087 1 #!/bin/sh
pankso@3087 2
paul@4858 3 # Standard directories having translated files.
pankso@3087 4 mk_locale_dir()
pankso@3087 5 {
pankso@3087 6 mkdir -p \
pankso@3087 7 $fs/usr/share/locale/$LOCALE \
pankso@3087 8 $fs/usr/share/slitaz/messages \
pankso@3087 9 $fs/usr/share/doc/slitaz \
pankso@3087 10 $fs/etc/xdg/openbox
pankso@3087 11 }
pankso@3087 12
pankso@3087 13 # Get translated files from SliTaz sub projects: configs, doc, tools.
pankso@3087 14 get_slitaz_messages()
pankso@3087 15 {
pankso@3108 16 [ -d $WOK/slitaz-configs ] && . $WOK/slitaz-configs/receipt
pankso@3087 17 [ -f $WOK/slitaz-configs/slitaz-configs-$VERSION/rootfs/etc/xdg/openbox/menu.${LOCALE}.xml ] && \
pankso@3087 18 cp $WOK/slitaz-configs/slitaz-configs-$VERSION/rootfs/etc/xdg/openbox/menu.${LOCALE}.xml \
pankso@3087 19 $fs/etc/xdg/openbox
pankso@6788 20
pankso@6788 21 # All doc is include and linked in slitaz-doc package
pankso@6788 22 #[ -d $WOK/slitaz-doc ] && . $WOK/slitaz-doc/receipt
pankso@6788 23 #[ -f $WOK/slitaz-doc/slitaz-doc-$VERSION/slitaz/index.${LOCALE}.html ] && \
pankso@6788 24 #cp $WOK/slitaz-doc/slitaz-doc-$VERSION/slitaz/index.${LOCALE}.html \
pankso@6788 25 #$fs/usr/share/doc/slitaz
pankso@3087 26
pankso@3108 27 [ -d $WOK/slitaz-tools ] && . $WOK/slitaz-tools/receipt
pankso@3087 28 [ -d $WOK/slitaz-tools/slitaz-tools-$VERSION/messages/$LOCALE ] && \
pankso@3087 29 cp -a $WOK/slitaz-tools/slitaz-tools-$VERSION/messages/$LOCALE \
pankso@3087 30 $fs/usr/share/slitaz/messages
pankso@3087 31 }
pankso@3087 32
pankso@3087 33 # Get the core packages messages.
pankso@3087 34 get_core_messages()
pankso@3087 35 {
pankso@10740 36 for i in $CORE_PKGS
pankso@3087 37 do
pankso@10740 38 [ -f $WOK/$i/receipt ] && . $WOK/$i/receipt
pankso@10740 39 if [ -d $WOK/$i/install/usr/share/locale/$LOCALE ]; then
pankso@10740 40 cp -a $WOK/$i/install/usr/share/locale/$LOCALE \
pankso@3087 41 $fs/usr/share/locale
pankso@3087 42 fi
pankso@3087 43 done
pankso@3087 44 }