wok rev 10752

Add locale-sv (Swedish) and mhwaveedit to core po files
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 30 19:18:49 2011 +0200 (2011-05-30)
parents 872ecb790c84
children 6f1eb2f503aa
files locale-sv/receipt slitaz-i18n/stuff/locale-pack.conf
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/locale-sv/receipt	Mon May 30 19:18:49 2011 +0200
     1.3 @@ -0,0 +1,35 @@
     1.4 +# SliTaz package receipt
     1.5 +
     1.6 +PACKAGE="locale-sv"
     1.7 +VERSION="4.0"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="Swedish locale pack."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +DEPENDS="glibc-base"
    1.12 +BUILD_DEPENDS="glibc glibc-locale slitaz-i18n"
    1.13 +WEB_SITE="http://www.slitaz.org/"
    1.14 +
    1.15 +LOCALE="sv"
    1.16 +
    1.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 +genpkg_rules()
    1.19 +{
    1.20 +	. $WOK/slitaz-i18n/stuff/locale-pack.functions
    1.21 +	. $WOK/slitaz-i18n/stuff/locale-pack.conf
    1.22 +	PKG_NAME="$PACKAGE"
    1.23 +	PKG_VERS="$VERSION"
    1.24 +	mk_locale_dir
    1.25 +	get_slitaz_messages
    1.26 +	get_core_messages
    1.27 +	PACKAGE="$PKG_NAME"
    1.28 +	VERSION="$PKG_VERS"
    1.29 +}
    1.30 +
    1.31 +# Back to C if it's the last used locale.
    1.32 +post_remove()
    1.33 +{
    1.34 +	if grep -q $LOCALEDEF /etc/locale.conf; then
    1.35 +		echo "LANG=C" > /etc/locale.conf
    1.36 +		echo "LC_ALL=C" >> /etc/locale.conf
    1.37 +	fi
    1.38 +}
     2.1 --- a/slitaz-i18n/stuff/locale-pack.conf	Mon May 30 19:03:21 2011 +0200
     2.2 +++ b/slitaz-i18n/stuff/locale-pack.conf	Mon May 30 19:18:49 2011 +0200
     2.3 @@ -1,7 +1,8 @@
     2.4  
     2.5  # Packages translations included in the language pack.
     2.6  CORE_PKGS="asunder alsaplayer epdfview galculator viewnior gparted nano \
     2.7 -glib gtk+ leafpad lxpanel lxtask obconf openbox pcmanfm midori mtpaint"
     2.8 +glib gtk+ leafpad lxpanel lxtask obconf openbox pcmanfm midori mtpaint \
     2.9 +mhwaveedit"
    2.10  
    2.11  # List of all locale pack (locale-xx)
    2.12 -LOCALE_PACK="cs de es fr hu id it pt ru sl zh_CN zh_TW"
    2.13 +LOCALE_PACK="cs de es fr hu id it pt ru sl sv zh_CN zh_TW"