wok rev 10751
Add slitaz-i18n-extra and first step with locale-fr-extra
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 30 19:03:21 2011 +0200 (2011-05-30) |
parents | 2d72c1dcc4bb |
children | 394a91b6b78d |
files | locale-fr-extra/receipt slitaz-i18n-extra/receipt slitaz-i18n-extra/stuff/locale-pack.conf slitaz-i18n-extra/stuff/locale-pack.functions slitaz-i18n/receipt slitaz-i18n/stuff/locale-pack.functions |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/locale-fr-extra/receipt Mon May 30 19:03:21 2011 +0200 1.3 @@ -0,0 +1,22 @@ 1.4 +# SliTaz package receipt 1.5 + 1.6 +PACKAGE="locale-fr-extra" 1.7 +VERSION="4.0" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="Extra French locale pack (with Gimp, Mplayer, Xine)" 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +WEB_SITE="http://www.slitaz.org/" 1.12 + 1.13 +DEPENDS="locale-fr" 1.14 +BUILD_DEPENDS="slitaz-i18n-extra" 1.15 + 1.16 +LOCALE="fr" 1.17 + 1.18 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.19 +genpkg_rules() 1.20 +{ 1.21 + . $WOK/slitaz-i18n-extra/stuff/locale-pack.functions 1.22 + . $WOK/slitaz-i18n-extra/stuff/locale-pack.conf 1.23 + mk_locale_dir 1.24 + get_extra_messages 1.25 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/slitaz-i18n-extra/receipt Mon May 30 19:03:21 2011 +0200 2.3 @@ -0,0 +1,31 @@ 2.4 +# SliTaz package receipt 2.5 + 2.6 +PACKAGE="slitaz-i18n-extra" 2.7 +VERSION="4.0" 2.8 +CATEGORY="meta" 2.9 +SHORT_DESC="SliTaz internationalization meta package to build extra locale pack." 2.10 +MAINTAINER="pankso@slitaz.org" 2.11 +WEB_SITE="http://www.slitaz.org/" 2.12 + 2.13 +# Bdeps ensure packages are built so we can get generated po files. 2.14 +BUILD_DEPENDS="gimp mplayer xine-ui" 2.15 + 2.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.17 +genpkg_rules() 2.18 +{ 2.19 + . $stuff/locale-pack.conf 2.20 + for p in $EXTRA_PKGS 2.21 + do 2.22 + [ ! -d "$WOK/$p/install" ] && echo "Missing in wok: $p" 2.23 + done 2.24 + # Cook all extra locale pack. 2.25 + for i in $LOCALE_PACK 2.26 + do 2.27 + if [ -x /usr/bin/cook ]; then 2.28 + cook locale-$i 2.29 + elif [ -x /usr/bin/tazwok ]; then 2.30 + tazwok cook locale-$i 2.31 + fi 2.32 + done 2.33 + mkdir -p $fs/usr 2.34 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/slitaz-i18n-extra/stuff/locale-pack.conf Mon May 30 19:03:21 2011 +0200 3.3 @@ -0,0 +1,7 @@ 3.4 + 3.5 +# Packages translations included in the language pack. 3.6 +EXTRA_PKGS="gimp mplayer" 3.7 + 3.8 +# List of all locale pack (locale-xx) 3.9 +#LOCALE_PACK="cs de es fr hu id it pt ru sl zh_CN zh_TW" 3.10 +LOCALE_PACK="fr"
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/slitaz-i18n-extra/stuff/locale-pack.functions Mon May 30 19:03:21 2011 +0200 4.3 @@ -0,0 +1,20 @@ 4.4 +#!/bin/sh 4.5 + 4.6 +# Standard directories having translated files. 4.7 +mk_locale_dir() 4.8 +{ 4.9 + mkdir -p $fs/usr/share/locale/$LOCALE 4.10 +} 4.11 + 4.12 +# Get the core packages messages. 4.13 +get_extra_messages() 4.14 +{ 4.15 + for i in $EXTRA_PKGS 4.16 + do 4.17 + if [ -d $WOK/$i/install/usr/share/locale/$LOCALE ]; then 4.18 + echo "* Found $LOCALE locale for: $i" 4.19 + cp -a $WOK/$i/install/usr/share/locale/$LOCALE \ 4.20 + $fs/usr/share/locale 4.21 + fi 4.22 + done 4.23 +}
5.1 --- a/slitaz-i18n/receipt Mon May 30 14:37:56 2011 +0200 5.2 +++ b/slitaz-i18n/receipt Mon May 30 19:03:21 2011 +0200 5.3 @@ -2,19 +2,25 @@ 5.4 5.5 PACKAGE="slitaz-i18n" 5.6 VERSION="4.0" 5.7 -CATEGORY="system-tools" 5.8 +CATEGORY="meta" 5.9 SHORT_DESC="SliTaz internationalization meta package to build locale pack." 5.10 MAINTAINER="pankso@slitaz.org" 5.11 +WEB_SITE="http://www.slitaz.org/" 5.12 + 5.13 +# Bdeps ensure packages are built so we can get generated po files. 5.14 BUILD_DEPENDS="asunder alsaplayer epdfview galculator viewnior gparted \ 5.15 glib gtk+ leafpad lxpanel lxtask obconf openbox pcmanfm" 5.16 -SUGGESTED="locale-de locale-es locale-fr locale-hu locale-pt" 5.17 -WEB_SITE="http://www.slitaz.org/" 5.18 5.19 # Rules to gen a SliTaz package suitable for Tazpkg. 5.20 genpkg_rules() 5.21 { 5.22 mkdir -p $fs/usr/share/doc/slitaz 5.23 . $stuff/locale-pack.conf 5.24 + for p in $CORE_PKGS 5.25 + do 5.26 + [ ! -d "$WOK/$p/install" ] && echo "Missing in wok: $p" 5.27 + done 5.28 + # Cook all locale pack. 5.29 for i in $LOCALE_PACK 5.30 do 5.31 if [ -x /usr/bin/cook ]; then 5.32 @@ -37,9 +43,9 @@ 5.33 $CORE_PKGS 5.34 ---- 5.35 5.36 -SliTaz i18n project coordination is done on the Labs: 5.37 +SliTaz i18n project coordination is done on the SCN and doc is on the website: 5.38 5.39 - http://labs.slitaz.org/wiki/i18n 5.40 + http://www.slitaz.org/i18n.php 5.41 5.42 5.43 ================================================================================
6.1 --- a/slitaz-i18n/stuff/locale-pack.functions Mon May 30 14:37:56 2011 +0200 6.2 +++ b/slitaz-i18n/stuff/locale-pack.functions Mon May 30 19:03:21 2011 +0200 6.3 @@ -6,7 +6,6 @@ 6.4 mkdir -p \ 6.5 $fs/usr/share/locale/$LOCALE \ 6.6 $fs/usr/share/slitaz/messages \ 6.7 - $fs/usr/share/doc/slitaz \ 6.8 $fs/etc/xdg/openbox 6.9 } 6.10 6.11 @@ -17,12 +16,6 @@ 6.12 [ -f $WOK/slitaz-configs/slitaz-configs-$VERSION/rootfs/etc/xdg/openbox/menu.${LOCALE}.xml ] && \ 6.13 cp $WOK/slitaz-configs/slitaz-configs-$VERSION/rootfs/etc/xdg/openbox/menu.${LOCALE}.xml \ 6.14 $fs/etc/xdg/openbox 6.15 - 6.16 - # All doc is include and linked in slitaz-doc package 6.17 - #[ -d $WOK/slitaz-doc ] && . $WOK/slitaz-doc/receipt 6.18 - #[ -f $WOK/slitaz-doc/slitaz-doc-$VERSION/slitaz/index.${LOCALE}.html ] && \ 6.19 - #cp $WOK/slitaz-doc/slitaz-doc-$VERSION/slitaz/index.${LOCALE}.html \ 6.20 - #$fs/usr/share/doc/slitaz 6.21 6.22 [ -d $WOK/slitaz-tools ] && . $WOK/slitaz-tools/receipt 6.23 [ -d $WOK/slitaz-tools/slitaz-tools-$VERSION/messages/$LOCALE ] && \ 6.24 @@ -35,8 +28,8 @@ 6.25 { 6.26 for i in $CORE_PKGS 6.27 do 6.28 - [ -f $WOK/$i/receipt ] && . $WOK/$i/receipt 6.29 if [ -d $WOK/$i/install/usr/share/locale/$LOCALE ]; then 6.30 + echo "* Found $LOCALE locale for: $i" 6.31 cp -a $WOK/$i/install/usr/share/locale/$LOCALE \ 6.32 $fs/usr/share/locale 6.33 fi