mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-20 12:52:59 +00:00
Store language (#251)
* clean out unneeded locales * add test to verify that language is picked up in admin.cfg * add basic question for language and use variable in compose * use scriptlet to generate locales before start of kopano-server * add script to check folders of a given mailbox (for language checks) * add tests for locale generation relates to #248
This commit is contained in:
@@ -29,7 +29,7 @@ plugin_menu() {
|
||||
[[ "$msg" ]] && echo "$msg"; :
|
||||
}
|
||||
|
||||
docker_tag_search () {
|
||||
docker_tag_search() {
|
||||
image="$1"
|
||||
results=$(reg tags "$image" 2> /dev/null)
|
||||
echo "$results" | xargs -n1 | sort --version-sort -ru | xargs
|
||||
@@ -153,6 +153,11 @@ if [ ! -e ./.env ]; then
|
||||
LDAP_BIND_PW=$(random_string)
|
||||
fi
|
||||
|
||||
# TODO get locale from system
|
||||
value_default="en_US.UTF-8"
|
||||
read -r -p "Language to be used for new mailoboxes (needs to be available as a locale in the container) [$value_default]: " new_value
|
||||
MAILBOXLANG=${new_value:-$value_default}
|
||||
|
||||
if [ -f /etc/timezone ]; then
|
||||
value_default=$(cat /etc/timezone)
|
||||
elif [ -f /etc/localtime ]; then
|
||||
@@ -294,6 +299,7 @@ MYSQL_DATABASE=$MYSQL_DATABASE
|
||||
KCCONF_SERVER_SERVER_NAME=Kopano
|
||||
|
||||
POSTMASTER_ADDRESS=$POSTMASTER_ADDRESS
|
||||
MAILBOXLANG=$MAILBOXLANG
|
||||
TZ=$TZ
|
||||
|
||||
# Defines how Kopano can be accessed from the outside world
|
||||
|
||||
Reference in New Issue
Block a user