Skip to content

Commit

Permalink
Merge pull request #341 from cassidysymons/i18n
Browse files Browse the repository at this point in the history
Fix Country Sorting on Survey in Spanish
  • Loading branch information
wasade authored Jun 4, 2021
2 parents bdbe2b8 + 9974937 commit f614280
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions microsetta_private_api/repo/survey_template_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ def get_survey_template(self, survey_id, language_tag):
language_tag)
triggers = self._get_question_triggers(question_id)

# Quick fix to correctly sort country names in Spanish
if language_tag == localization.ES_MX and \
(question_id == 110 or question_id == 148):
responses[1:len(responses)] = \
sorted(responses[1:len(responses)])

question = SurveyTemplateQuestion(question_id,
localized_text,
short_name,
Expand Down

0 comments on commit f614280

Please sign in to comment.