exclusion
This commit is contained in:
@@ -12,6 +12,8 @@ $Source$
|
|||||||
* lang/chinese update, thanks to Siu Sun
|
* lang/chinese update, thanks to Siu Sun
|
||||||
* lang/albanian update, thanks to Laurent Dhima.
|
* lang/albanian update, thanks to Laurent Dhima.
|
||||||
* lang/czech update, thanks to Michal Cihar
|
* lang/czech update, thanks to Michal Cihar
|
||||||
|
* lang/sync_lang.sh, can exclude some languages from conversion,
|
||||||
|
thanks to Michal Cihar
|
||||||
|
|
||||||
2002-07-18 Steve Alberty <staybyte@users.sourceforge.net>
|
2002-07-18 Steve Alberty <staybyte@users.sourceforge.net>
|
||||||
* It is now possible to print stats for more than 2 GB (up to exa byte)
|
* It is now possible to print stats for more than 2 GB (up to exa byte)
|
||||||
|
@@ -69,14 +69,25 @@ EOT`
|
|||||||
##
|
##
|
||||||
# which translations should not be translated to utf-8
|
# which translations should not be translated to utf-8
|
||||||
##
|
##
|
||||||
# List here any translation should not be converted to utf-8. The name is same
|
# List here any translation that should not be converted to utf-8. The name is
|
||||||
# as above.
|
# same as above.
|
||||||
#
|
#
|
||||||
IGNORE_UTF=`cat <<EOT
|
IGNORE_UTF=`cat <<EOT
|
||||||
hebrew-iso-8859-8-i
|
hebrew-iso-8859-8-i
|
||||||
korean-ks_c_5601-1987
|
korean-ks_c_5601-1987
|
||||||
EOT`
|
EOT`
|
||||||
|
|
||||||
|
##
|
||||||
|
# which translations should not be automatically generated
|
||||||
|
##
|
||||||
|
# List here any translation should not be automatically generated from base
|
||||||
|
# translation for that language (usually for those which are not correctly
|
||||||
|
# supported by convertor).
|
||||||
|
#
|
||||||
|
IGNORE_TRANSLATIONS=`cat <<EOT
|
||||||
|
japanese-sjis
|
||||||
|
EOT`
|
||||||
|
|
||||||
##
|
##
|
||||||
# end of configuration, you hopefully won't need to edit anything bellow
|
# end of configuration, you hopefully won't need to edit anything bellow
|
||||||
##
|
##
|
||||||
@@ -88,6 +99,10 @@ for base in $BASE_TRANSLATIONS ; do
|
|||||||
# which files will we create from current?
|
# which files will we create from current?
|
||||||
create_files=$(ls --color=none -1 $lang*.inc.php3|grep -v $base.inc.php3)
|
create_files=$(ls --color=none -1 $lang*.inc.php3|grep -v $base.inc.php3)
|
||||||
|
|
||||||
|
for ignore in $IGNORE_TRANSLATIONS ; do
|
||||||
|
create_files=$(echo "$create_files" | grep -v $ignore)
|
||||||
|
done
|
||||||
|
|
||||||
# charset of source file
|
# charset of source file
|
||||||
src_charset=$(grep '\$charset' $base.inc.php3 | sed "s%^[^'\"]*['\"]\\([^'\"]*\\)['\"][^'\"]*$%\\1%")
|
src_charset=$(grep '\$charset' $base.inc.php3 | sed "s%^[^'\"]*['\"]\\([^'\"]*\\)['\"][^'\"]*$%\\1%")
|
||||||
echo "$base [charset $src_charset]"
|
echo "$base [charset $src_charset]"
|
||||||
|
Reference in New Issue
Block a user