wok annotate slitaz-i18n/stuff/locale-pack.functions @ rev 3087
Add slitaz-i18n (provide script and conf to build languages pack) + clean up
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat May 16 02:25:40 2009 +0200 (2009-05-16) |
parents | |
children | 23947c5158a4 |
rev | line source |
---|---|
pankso@3087 | 1 #!/bin/sh |
pankso@3087 | 2 |
pankso@3087 | 3 # Standars directoris 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/usr/lib/locale \ |
pankso@3087 | 11 $fs/etc/xdg/openbox |
pankso@3087 | 12 } |
pankso@3087 | 13 |
pankso@3087 | 14 # Get translated files from SliTaz sub projects: configs, doc, tools. |
pankso@3087 | 15 get_slitaz_messages() |
pankso@3087 | 16 { |
pankso@3087 | 17 . $WOK/slitaz-configs/receipt |
pankso@3087 | 18 [ -f $WOK/slitaz-configs/slitaz-configs-$VERSION/rootfs/etc/xdg/openbox/menu.${LOCALE}.xml ] && \ |
pankso@3087 | 19 cp $WOK/slitaz-configs/slitaz-configs-$VERSION/rootfs/etc/xdg/openbox/menu.${LOCALE}.xml \ |
pankso@3087 | 20 $fs/etc/xdg/openbox |
pankso@3087 | 21 |
pankso@3087 | 22 . $WOK/slitaz-doc/receipt |
pankso@3087 | 23 [ -f $WOK/slitaz-doc/slitaz-doc-$VERSION/slitaz/index.${LOCALE}.html ] && \ |
pankso@3087 | 24 cp $WOK/slitaz-doc/slitaz-doc-$VERSION/slitaz/index.${LOCALE}.html \ |
pankso@3087 | 25 $fs/usr/share/doc/slitaz |
pankso@3087 | 26 |
pankso@3087 | 27 . $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 } |