sync_lang.sh now accepts parameters --iconv/--recode for forcing used convertor
This commit is contained in:
@@ -9,6 +9,8 @@ $Source$
|
|||||||
* lang/*.php3, tbl_properties_export.php3: removed duplicate message
|
* lang/*.php3, tbl_properties_export.php3: removed duplicate message
|
||||||
with typo in name strCvsData (replaced by strStrucCSV)
|
with typo in name strCvsData (replaced by strStrucCSV)
|
||||||
* lang/czech-*.inc.php3: Updates.
|
* lang/czech-*.inc.php3: Updates.
|
||||||
|
* lang/sync_lang.sh: accepts parameters --iconv/--recode to force
|
||||||
|
convertor
|
||||||
|
|
||||||
2002-09-17 Marc Delisle <lem9@users.sourceforge.net>
|
2002-09-17 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* lang/spanish: update, thanks to Daniel Hinostroza
|
* lang/spanish: update, thanks to Daniel Hinostroza
|
||||||
|
@@ -3,14 +3,17 @@
|
|||||||
##
|
##
|
||||||
# Shell script that synchronises all translations in phpMyAdmin
|
# Shell script that synchronises all translations in phpMyAdmin
|
||||||
##
|
##
|
||||||
# Any parameters will be passed to grep to filter processed translation, for
|
# Any parameters (except --iconv/--recode) will be passed to grep to filter
|
||||||
# example: './sync_lang.sh czech' will process only czech translation,
|
# processed translation, for example: './sync_lang.sh czech' will process only
|
||||||
# './sync_lang.sh -e czech -e english' will process czech and english
|
# czech translation, './sync_lang.sh -e czech -e english' will process czech
|
||||||
# translations.
|
# and english translations.
|
||||||
##
|
##
|
||||||
# Written by Michal Cihar <nijel at users.sourceforge.net>
|
# Written by Michal Cihar <nijel at users.sourceforge.net>
|
||||||
##
|
##
|
||||||
# Changes:
|
# Changes:
|
||||||
|
# 2002-09-18
|
||||||
|
# * now accepts parameters --iconv/--recode for specifying which convertor
|
||||||
|
# to use
|
||||||
# 2002-08-13
|
# 2002-08-13
|
||||||
# * support for synchronisation only for selected language(s)
|
# * support for synchronisation only for selected language(s)
|
||||||
# 2002-07-18
|
# 2002-07-18
|
||||||
@@ -25,12 +28,25 @@
|
|||||||
# CONVERTOR_PARAMS is used for printf and it also receives two params: source
|
# CONVERTOR_PARAMS is used for printf and it also receives two params: source
|
||||||
# and target charset
|
# and target charset
|
||||||
#
|
#
|
||||||
#for iconv
|
case "$1" in
|
||||||
#CONVERTOR=iconv
|
--iconv)
|
||||||
#CONVERTOR_PARAMS="-f %s -t %s"
|
echo Using iconv on user request
|
||||||
#for recode:
|
CONVERTOR=iconv
|
||||||
CONVERTOR=recode
|
CONVERTOR_PARAMS="-f %s -t %s"
|
||||||
CONVERTOR_PARAMS="%s..%s"
|
shift
|
||||||
|
;;
|
||||||
|
--recode)
|
||||||
|
echo Using recode on user request
|
||||||
|
CONVERTOR=recode
|
||||||
|
CONVERTOR_PARAMS="%s..%s"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo Using recode as default, force with --iconv/--recode
|
||||||
|
CONVERTOR=recode
|
||||||
|
CONVERTOR_PARAMS="%s..%s"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
##
|
##
|
||||||
|
Reference in New Issue
Block a user