Commit 67237cce authored by Aron Gergely's avatar Aron Gergely
Browse files

Add Spanish translation with minor fixes

parent b861f686
This diff is collapsed.
......@@ -27,6 +27,7 @@ python3.5 src/ import_shelters_documents data/shelters/documents/
# Import of the translations
python3.5 src/ import_translation data/translations/sheltersDataTraduction_FR_rev_ED.csv fr
python3.5 src/ import_translation data/translations/sheltersDataTranslation_ES.csv es
# Create database triggers for materialized view table
python3.5 src/ create_db_triggers
......@@ -81,7 +81,7 @@ def available_translations():
result = tree()
subquery = db.session.query(Translation.language_code).group_by(Translation.language_code).subquery()
available_languages = db.session.query(func.string_agg(subquery.c.language_code, ';')).first()
available_languages = db.session.query(func.array_agg(subquery.c.language_code)).first()
#for language in available_languages
result["languages"]= available_languages[0]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment