Permalink
Browse files

introduced selection of locales

reordered logic for configuration questions
  • Loading branch information...
1 parent 7d97ed4 commit 334d888ce125888546c7299d00b1e6ede7c03a5f @racke racke committed Dec 29, 2002
@@ -25,26 +25,35 @@ db_input high interchange-cat-foundation/install || [ $? -eq 30 ]
db_go
db_get interchange-cat-foundation/install
-if [ "$RET" = "true" ]; then
- db_input medium interchange-cat-foundation/purge || [ $? -eq 30 ]
- db_go
- db_input high interchange-cat-foundation/username || [ $? -eq 30 ]
- db_go
- db_input high interchange-cat-foundation/password || [ $? -eq 30 ]
- db_go
-else
+if [ "$RET" == "false" ]; then
exit 0
fi
# overwrite of existing installation
db_input high interchange-cat-foundation/replace || [ $? -eq 30 ]
db_go
+GOAHEAD=false
if [ -d /var/lib/interchange/catalogs/foundation ]; then
db_get interchange-cat-foundation/replace
if [ "$RET" = "ask" ]; then
db_fset interchange-cat-foundation/confirm isdefault true
db_input critical interchange-cat-foundation/confirm
db_go
+ db_get interchange-cat-foundation/confirm
+ GOAHEAD="$RET"
+ elif [ "$RET" == "always" ]; then
+ GOAHEAD=true
fi
+else
+ GOAHEAD=true
fi
+
+db_input medium interchange-cat-foundation/purge || [ $? -eq 30 ]
+db_go
+db_input high interchange-cat-foundation/username || [ $? -eq 30 ]
+db_go
+db_input high interchange-cat-foundation/password || [ $? -eq 30 ]
+db_go
+db_input medium interchange-cat-foundation/locales || [ $? -eq 30 ]
+db_go
@@ -72,8 +72,10 @@ if [ "$GOAHEAD" = "true" ]; then
UI_SUPERUSER=$RET
db_get interchange-cat-foundation/password
UI_PASSWORD=$RET
+ db_get interchange-cat-foundation/locales
+ LOCALES=`echo "$RET" | sed -e 's/, /,/'`
SERVERNAME=`hostname --fqdn`
- MVC_ENABLESECURE=1 MVC_UISECURE=1 MVC_SUPERUSER="$UI_SUPERUSER" MVC_CRYPTPW="$UI_PASSWORD" /usr/bin/makecat \
+ MVC_ENABLESECURE=1 MVC_UISECURE=1 MVC_SUPERUSER="$UI_SUPERUSER" MVC_CRYPTPW="$UI_PASSWORD" MVC_LOCALES="$LOCALES" /usr/bin/makecat \
-F \
-l /var/log/interchange/makecat.log \
--demotype=$CATALOG \
@@ -72,3 +72,13 @@ Template: interchange-cat-foundation/demomode
Type: boolean
Default: yes
Description: Enable demo mode ?
+
+Template: interchange-cat-foundation/locales
+Type: multiselect
+Choices: de_DE, nl_NL
+Description: Select additional locales for the storefront of the demo catalog
+ The Interchange demo catalog is able to display the storefront in a number of
+ different languages. Each selected locale will increase the memory footprint
+ of the Interchange server processes, so it is recommended to choose only
+ locales which are really needed.
+

0 comments on commit 334d888

Please sign in to comment.