wok-current annotate slitaz-i18n/stuff/locale-pack.functions @ rev 10751

Add slitaz-i18n-extra and first step with locale-fr-extra
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 30 19:03:21 2011 +0200 (2011-05-30)
parents 6a16e4339314
children a4bc0aff568e
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/etc/xdg/openbox
pankso@3087 10 }
pankso@3087 11
pankso@3087 12 # Get translated files from SliTaz sub projects: configs, doc, tools.
pankso@3087 13 get_slitaz_messages()
pankso@3087 14 {
pankso@3108 15 [ -d $WOK/slitaz-configs ] && . $WOK/slitaz-configs/receipt
pankso@3087 16 [ -f $WOK/slitaz-configs/slitaz-configs-$VERSION/rootfs/etc/xdg/openbox/menu.${LOCALE}.xml ] && \
pankso@3087 17 cp $WOK/slitaz-configs/slitaz-configs-$VERSION/rootfs/etc/xdg/openbox/menu.${LOCALE}.xml \
pankso@3087 18 $fs/etc/xdg/openbox
pankso@3087 19
pankso@3108 20 [ -d $WOK/slitaz-tools ] && . $WOK/slitaz-tools/receipt
pankso@3087 21 [ -d $WOK/slitaz-tools/slitaz-tools-$VERSION/messages/$LOCALE ] && \
pankso@3087 22 cp -a $WOK/slitaz-tools/slitaz-tools-$VERSION/messages/$LOCALE \
pankso@3087 23 $fs/usr/share/slitaz/messages
pankso@3087 24 }
pankso@3087 25
pankso@3087 26 # Get the core packages messages.
pankso@3087 27 get_core_messages()
pankso@3087 28 {
pankso@10740 29 for i in $CORE_PKGS
pankso@3087 30 do
pankso@10740 31 if [ -d $WOK/$i/install/usr/share/locale/$LOCALE ]; then
pankso@10751 32 echo "* Found $LOCALE locale for: $i"
pankso@10740 33 cp -a $WOK/$i/install/usr/share/locale/$LOCALE \
pankso@3087 34 $fs/usr/share/locale
pankso@3087 35 fi
pankso@3087 36 done
pankso@3087 37 }