wok-current annotate slitaz-i18n/stuff/locale-pack.functions @ rev 3338
Add: libsmpeg* (svn rev 380)
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Thu Jun 11 01:45:50 2009 +0000 (2009-06-11) |
parents | a51ace1961b2 |
children | d42b38d61b43 |
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@3108 | 17 [ -d $WOK/slitaz-configs ] && . $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@3108 | 22 [ -d $WOK/slitaz-doc ] && . $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@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 } |