wok-6.x view slitaz-i18n/stuff/locale-pack.functions @ rev 5257
Up: autoconf (2.65)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 12 20:49:27 2010 +0200 (2010-04-12) |
parents | d42b38d61b43 |
children | d4fabad5ae11 |
line source
1 #!/bin/sh
3 # Standard directories having translated files.
4 mk_locale_dir()
5 {
6 mkdir -p \
7 $fs/usr/share/locale/$LOCALE \
8 $fs/usr/share/slitaz/messages \
9 $fs/usr/share/doc/slitaz \
10 $fs/etc/xdg/openbox
11 }
13 # Get translated files from SliTaz sub projects: configs, doc, tools.
14 get_slitaz_messages()
15 {
16 [ -d $WOK/slitaz-configs ] && . $WOK/slitaz-configs/receipt
17 [ -f $WOK/slitaz-configs/slitaz-configs-$VERSION/rootfs/etc/xdg/openbox/menu.${LOCALE}.xml ] && \
18 cp $WOK/slitaz-configs/slitaz-configs-$VERSION/rootfs/etc/xdg/openbox/menu.${LOCALE}.xml \
19 $fs/etc/xdg/openbox
21 [ -d $WOK/slitaz-doc ] && . $WOK/slitaz-doc/receipt
22 [ -f $WOK/slitaz-doc/slitaz-doc-$VERSION/slitaz/index.${LOCALE}.html ] && \
23 cp $WOK/slitaz-doc/slitaz-doc-$VERSION/slitaz/index.${LOCALE}.html \
24 $fs/usr/share/doc/slitaz
26 [ -d $WOK/slitaz-tools ] && . $WOK/slitaz-tools/receipt
27 [ -d $WOK/slitaz-tools/slitaz-tools-$VERSION/messages/$LOCALE ] && \
28 cp -a $WOK/slitaz-tools/slitaz-tools-$VERSION/messages/$LOCALE \
29 $fs/usr/share/slitaz/messages
30 }
32 # Get the core packages messages.
33 get_core_messages()
34 {
35 for pkg in $CORE_PKGS
36 do
37 [ -f $WOK/$pkg/receipt ] && . $WOK/$pkg/receipt
38 if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then
39 cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \
40 $fs/usr/share/locale
41 fi
42 done
43 }