wok annotate slitaz-i18n/stuff/locale-pack.functions @ rev 6172
Up: libgnomecanvas to 2.30.1.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Sep 10 12:23:56 2010 +0000 (2010-09-10) |
parents | d42b38d61b43 |
children | d4fabad5ae11 |
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@3087 | 20 |
pankso@3108 | 21 [ -d $WOK/slitaz-doc ] && . $WOK/slitaz-doc/receipt |
pankso@3087 | 22 [ -f $WOK/slitaz-doc/slitaz-doc-$VERSION/slitaz/index.${LOCALE}.html ] && \ |
pankso@3087 | 23 cp $WOK/slitaz-doc/slitaz-doc-$VERSION/slitaz/index.${LOCALE}.html \ |
pankso@3087 | 24 $fs/usr/share/doc/slitaz |
pankso@3087 | 25 |
pankso@3108 | 26 [ -d $WOK/slitaz-tools ] && . $WOK/slitaz-tools/receipt |
pankso@3087 | 27 [ -d $WOK/slitaz-tools/slitaz-tools-$VERSION/messages/$LOCALE ] && \ |
pankso@3087 | 28 cp -a $WOK/slitaz-tools/slitaz-tools-$VERSION/messages/$LOCALE \ |
pankso@3087 | 29 $fs/usr/share/slitaz/messages |
pankso@3087 | 30 } |
pankso@3087 | 31 |
pankso@3087 | 32 # Get the core packages messages. |
pankso@3087 | 33 get_core_messages() |
pankso@3087 | 34 { |
pankso@3087 | 35 for pkg in $CORE_PKGS |
pankso@3087 | 36 do |
pankso@3087 | 37 [ -f $WOK/$pkg/receipt ] && . $WOK/$pkg/receipt |
pankso@3087 | 38 if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then |
pankso@3087 | 39 cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \ |
pankso@3087 | 40 $fs/usr/share/locale |
pankso@3087 | 41 fi |
pankso@3087 | 42 done |
pankso@3087 | 43 } |