wok-current rev 7741
get-opera: add current locale
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Dec 20 18:56:28 2010 +0100 (2010-12-20) |
parents | fbd44bd505d9 |
children | 97c7337c1d54 |
files | get-opera/stuff/get-opera |
line diff
1.1 --- a/get-opera/stuff/get-opera Mon Dec 20 18:44:58 2010 +0100 1.2 +++ b/get-opera/stuff/get-opera Mon Dec 20 18:56:28 2010 +0100 1.3 @@ -106,6 +106,12 @@ 1.4 # Remove unwanted locale 1.5 mv opera-$VERSION/fs/usr/share/opera/locale opera-$VERSION/fs/usr/share/opera/locale-full 1.6 mkdir -p opera-$VERSION/fs/usr/share/opera/locale 1.7 +. /etc/locale.conf 1.8 +for i in $LANG $(echo $LANG | sed 's/_/-/') ${LANG:0:2} ; do 1.9 + [ -d opera-$VERSION/fs/usr/share/opera/locale-full/$i ] && 1.10 + cp -a opera-$VERSION/fs/usr/share/opera/locale-full/$i \ 1.11 + opera-$VERSION/fs/usr/share/opera/locale 1.12 +done 1.13 cp -a opera-$VERSION/fs/usr/share/opera/locale-full/en \ 1.14 opera-$VERSION/fs/usr/share/opera/locale-full/fr \ 1.15 opera-$VERSION/fs/usr/share/opera/locale-full/pt \