wok view slitaz-i18n/stuff/locale-pack.functions @ rev 6312
Up: ghostscript, ghostscript-dev to 8.71.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Sep 17 00:17:09 2010 +0000 (2010-09-17) |
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 }