wok-current annotate slitaz-i18n/stuff/locale-pack.functions @ rev 6788
slitaz-i18n: improved receipt and cook all locale pack
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Oct 18 23:34:42 2010 +0200 (2010-10-18) |
parents | 7eea84bb457e |
children | 93f4822fd8b1 |
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@3087 | 36 for pkg in $CORE_PKGS |
pankso@3087 | 37 do |
pankso@3087 | 38 [ -f $WOK/$pkg/receipt ] && . $WOK/$pkg/receipt |
pankso@3087 | 39 if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then |
pankso@3087 | 40 cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \ |
pankso@3087 | 41 $fs/usr/share/locale |
pankso@3087 | 42 fi |
pankso@3087 | 43 done |
pankso@3087 | 44 } |