wok view slitaz-i18n/stuff/locale-pack.functions @ rev 10259
Add p0f. A passive OS fingerprinting tool.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat May 21 04:09:33 2011 +0000 (2011-05-21) |
parents | 93f4822fd8b1 |
children | 6a16e4339314 |
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 # All doc is include and linked in slitaz-doc package
22 #[ -d $WOK/slitaz-doc ] && . $WOK/slitaz-doc/receipt
23 #[ -f $WOK/slitaz-doc/slitaz-doc-$VERSION/slitaz/index.${LOCALE}.html ] && \
24 #cp $WOK/slitaz-doc/slitaz-doc-$VERSION/slitaz/index.${LOCALE}.html \
25 #$fs/usr/share/doc/slitaz
27 [ -d $WOK/slitaz-tools ] && . $WOK/slitaz-tools/receipt
28 [ -d $WOK/slitaz-tools/slitaz-tools-$VERSION/messages/$LOCALE ] && \
29 cp -a $WOK/slitaz-tools/slitaz-tools-$VERSION/messages/$LOCALE \
30 $fs/usr/share/slitaz/messages
31 }
33 # Get the core packages messages.
34 get_core_messages()
35 {
37 for pkg in $CORE_PKGS
38 do
39 [ -f $WOK/$pkg/receipt ] && . $WOK/$pkg/receipt
40 if [ -d $WOK/$pkg/install/usr/share/locale/$LOCALE ]; then
41 cp -a $WOK/$pkg/install/usr/share/locale/$LOCALE \
42 $fs/usr/share/locale
43 fi
44 done
45 }