From a3258735738aaf745814c4fac2caa67b68c3c188 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sat, 16 Sep 2017 13:50:00 +0200 Subject: [PATCH] Change Sahana Czech locale identifier from "cz" to "cs" --- 02-sahana.sh | 2 +- .../srv/sahana/applications/eden/languages/{cz.py => cs.py} | 0 .../applications/eden/modules/templates/default/config.py | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) rename sahana/srv/sahana/applications/eden/languages/{cz.py => cs.py} (100%) diff --git a/02-sahana.sh b/02-sahana.sh index 6ef84e7..03500d8 100755 --- a/02-sahana.sh +++ b/02-sahana.sh @@ -35,7 +35,7 @@ cp ${SOURCE_DIR}/sahana/srv/sahana/applications/eden/modules/templates/default/c export SAHANA_ADMIN_USER=admin@example.com export SAHANA_ADMIN_PWD=$(head -c 18 /dev/urandom | base64) envsubst <${SOURCE_DIR}/sahana/srv/sahana/applications/eden/modules/templates/default/users/masterUsers.csv >/srv/sahana/applications/eden/modules/templates/default/users/masterUsers.csv -cp ${SOURCE_DIR}/sahana/srv/sahana/applications/eden/languages/cz.py /srv/sahana/applications/eden/languages/cz.py +cp ${SOURCE_DIR}/sahana/srv/sahana/applications/eden/languages/cs.py /srv/sahana/applications/eden/languages/cs.py # Create OS user adduser --system --group --home /srv/sahana --shell /bin/false sahana diff --git a/sahana/srv/sahana/applications/eden/languages/cz.py b/sahana/srv/sahana/applications/eden/languages/cs.py similarity index 100% rename from sahana/srv/sahana/applications/eden/languages/cz.py rename to sahana/srv/sahana/applications/eden/languages/cs.py diff --git a/sahana/srv/sahana/applications/eden/modules/templates/default/config.py b/sahana/srv/sahana/applications/eden/modules/templates/default/config.py index c2ea834..cf13ddf 100644 --- a/sahana/srv/sahana/applications/eden/modules/templates/default/config.py +++ b/sahana/srv/sahana/applications/eden/modules/templates/default/config.py @@ -126,11 +126,11 @@ def config(settings): # Languages used in the deployment (used for Language Toolbar & GIS Locations) # http://www.loc.gov/standards/iso639-2/php/code_list.php settings.L10n.languages = OrderedDict([ - ("cz", "Česky"), + ("cs", "Česky"), ("en", "English"), ]) # Default language for Language Toolbar (& GIS Locations in future) - settings.L10n.default_language = "cz" + settings.L10n.default_language = "cs" # Uncomment to Hide the language toolbar #settings.L10n.display_toolbar = False # Default timezone for users