wok-current rev 22847

webgames: add fr translations
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 15 16:06:57 2020 +0100 (2020-02-15)
parents 3adbd5bf350f
children ffed896b80ca
files ppp/receipt tazpanel-extra/receipt tazpanel/receipt webgames/receipt
line diff
     1.1 --- a/ppp/receipt	Sat Feb 15 15:33:13 2020 +0100
     1.2 +++ b/ppp/receipt	Sat Feb 15 16:06:57 2020 +0100
     1.3 @@ -90,6 +90,7 @@
     1.4  	chmod 711 $fs/etc/ppp/ip-up $fs/etc/ppp/ip-down
     1.5  
     1.6  	# insert #!/bin/sh  on top line in ip* scripts
     1.7 +	sed -i '/#!\/bin\/sh/d' $fs/etc/ppp/ip* 2>/dev/null	
     1.8  	sed -i '1i\#!/bin/sh' $fs/etc/ppp/ip* 2>/dev/null	
     1.9  	# add empty peers dir
    1.10  	mkdir -p $fs/etc/ppp/peers
     2.1 --- a/tazpanel-extra/receipt	Sat Feb 15 15:33:13 2020 +0100
     2.2 +++ b/tazpanel-extra/receipt	Sat Feb 15 16:06:57 2020 +0100
     2.3 @@ -1,7 +1,7 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="tazpanel-extra"
     2.7 -VERSION="631"
     2.8 +VERSION="632"
     2.9  CATEGORY="system-tools"
    2.10  SHORT_DESC="SliTaz administration and configuration panel extra modules."
    2.11  MAINTAINER="pascal.bellard@slitaz.org"
     3.1 --- a/tazpanel/receipt	Sat Feb 15 15:33:13 2020 +0100
     3.2 +++ b/tazpanel/receipt	Sat Feb 15 16:06:57 2020 +0100
     3.3 @@ -1,7 +1,7 @@
     3.4  # SliTaz package receipt.
     3.5  
     3.6  PACKAGE="tazpanel"
     3.7 -VERSION="631"
     3.8 +VERSION="632"
     3.9  CATEGORY="system-tools"
    3.10  SHORT_DESC="SliTaz administration and configuration panel."
    3.11  MAINTAINER="pankso@slitaz.org"
     4.1 --- a/webgames/receipt	Sat Feb 15 15:33:13 2020 +0100
     4.2 +++ b/webgames/receipt	Sat Feb 15 16:06:57 2020 +0100
     4.3 @@ -8,31 +8,44 @@
     4.4  LICENSE="MIT"
     4.5  WEB_SITE="http://www.slitaz.org/"
     4.6  
     4.7 +mline()
     4.8 +{
     4.9 +	type=$1
    4.10 +	IFS='|'; set -- $2
    4.11 +	echo "$type=$1"; shift
    4.12 +	while [ "$1" ]; do
    4.13 +		echo "$type${1%]*}]=${1#*]}"
    4.14 +		shift
    4.15 +	done
    4.16 +}
    4.17 +
    4.18  # Rules to gen a SliTaz package suitable for Tazpkg.
    4.19  genpkg_rules()
    4.20  {
    4.21  	mkdir -p $fs/usr/share/applications
    4.22  	while read url name comment icon; do
    4.23 -		cat > $fs/usr/share/applications/$(echo $name | \
    4.24 +		cat > $fs/usr/share/applications/$(echo ${name%|*} | \
    4.25  			tr [A-Z\ ] [a-z_]).desktop <<EOT
    4.26  [Desktop Entry]
    4.27  Type=Application
    4.28 -Name=$name
    4.29 +$(mline Name "$name")${comment:+
    4.30 +$(mline Comment "$comment")}
    4.31  Exec=sh -c "url=$url; tazweb --notoolbar \$url || browser \$url"
    4.32  Terminal=false
    4.33  Categories=Game;
    4.34 -Comment=${comment:-$name game}
    4.35  Icon=${icon:-text-html}
    4.36  EOT
    4.37  	done <<EOT
    4.38 -https://sokoban.info/	Sokoban
    4.39 -http://minesweeper.biz/	MineSweeper
    4.40 -http://playcheckers.org/	Checkers
    4.41 -http://4-in-a-row.com/	4\ in\ a\ raw
    4.42 -http://chinese-checkers.net/	Chinese\ Checkers
    4.43 +https://sokoban.info/		Sokoban
    4.44 +http://minesweeper.biz/		MineSweeper|[fr]Démineur
    4.45 +http://playcheckers.org/	Checkers|[fr]Dames
    4.46 +http://4-in-a-row.com/		4\ in\ a\ raw|[fr]4\ en\ ligne
    4.47 +http://chinese-checkers.net/	Chinese\ Checkers|[fr]Dames\ chinoises
    4.48  https://www.quaxio.com/2048/	2048
    4.49 -http://sudokus.org/	Sudoku
    4.50 -http://games.slitaz.org/loderunner/lodeRunner.html	Lode\ Runner	Plateform\ game
    4.51 -http://games.slitaz.org/digger/digger.html	Digger	Plateform\ game
    4.52 +http://sudokus.org/		Sudoku
    4.53 +http://games.slitaz.org/loderunner/lodeRunner.html\
    4.54 +	Lode\ Runner	Plateform\ game|[fr]Jeu\ de\ plateforme
    4.55 +http://games.slitaz.org/digger/digger.html\
    4.56 +	Digger		Plateform\ game|[fr]Jeu\ de\ plateforme
    4.57  EOT
    4.58  }