wok-next diff slitaz-i18n-extra/stuff/locale-pack.functions @ rev 20738

Up scons (3.0.1); add scons2 (2.5.1)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 29 21:13:51 2018 +0300 (2018-05-29)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/slitaz-i18n-extra/stuff/locale-pack.functions	Tue May 29 21:13:51 2018 +0300
     1.3 @@ -0,0 +1,20 @@
     1.4 +#!/bin/sh
     1.5 +
     1.6 +# Standard directories having translated files.
     1.7 +mk_locale_dir()
     1.8 +{
     1.9 +	mkdir -p $fs/usr/share/locale/$LOCALE
    1.10 +}
    1.11 +
    1.12 +# Get the core packages messages.
    1.13 +get_extra_messages()
    1.14 +{
    1.15 +	for i in $EXTRA_PKGS
    1.16 +	do
    1.17 +		if [ -d $WOK/$i/install/usr/share/locale/$LOCALE ]; then
    1.18 +			echo "* Found $LOCALE locale for: $i"
    1.19 +			cp -a $WOK/$i/install/usr/share/locale/$LOCALE \
    1.20 +				$fs/usr/share/locale
    1.21 +		fi
    1.22 +	done
    1.23 +}