Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CHARISM
Shelter Database
Commits
67237cce
Commit
67237cce
authored
Sep 05, 2016
by
Aron Gergely
Browse files
Add Spanish translation with minor fixes
parent
b861f686
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
data/translations/sheltersDataTranslation - Template.xlsx
View file @
67237cce
No preview for this file type
data/translations/sheltersDataTranslation_ES.csv
0 → 100644
View file @
67237cce
This diff is collapsed.
Click to expand it.
data/translations/sheltersDataTranslation_ES.xlsx
0 → 100644
View file @
67237cce
File added
init_db.sh
View file @
67237cce
...
...
@@ -27,6 +27,7 @@ python3.5 src/manager.py import_shelters_documents data/shelters/documents/
# Import of the translations
python3.5 src/manager.py import_translation data/translations/sheltersDataTraduction_FR_rev_ED.csv fr
python3.5 src/manager.py import_translation data/translations/sheltersDataTranslation_ES.csv es
# Create database triggers for materialized view table
python3.5 src/manager.py create_db_triggers
src/web/views/shelterapiv02.py
View file @
67237cce
...
...
@@ -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
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment