wok-current view 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 |
line source
1 #!/bin/sh
3 # Standars directoris 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/usr/lib/locale \
11 $fs/etc/xdg/openbox
12 }
14 # Get translated files from SliTaz sub projects: configs, doc, tools.
15 get_slitaz_messages()
16 {
17 [ -d $WOK/slitaz-configs ] && . $WOK/slitaz-configs/receipt
18 [ -f $WOK/slitaz-configs/slitaz-configs-$VERSION/rootfs/etc/xdg/openbox/menu.${LOCALE}.xml ] && \
19 cp $WOK/slitaz-configs/slitaz-configs-$VERSION/rootfs/etc/xdg/openbox/menu.${LOCALE}.xml \
20 $fs/etc/xdg/openbox
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 {
36 for pkg in $CORE_PKGS
37 do
38 [ -f $WOK/$pkg/receipt ] && . $WOK/$pkg/receipt
39 if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then
40 cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \
41 $fs/usr/share/locale
42 fi
43 done
44 }