Skip to content

Commit

Permalink
Merge pull request #9 from ONSdigital/961-eq-translations-7-text-for-…
Browse files Browse the repository at this point in the history
…other-field-label-not-translated-issue

Add other answers to translations
  • Loading branch information
ajmaddaford authored Apr 5, 2017
2 parents fe75d41 + 6987fcf commit c3518a8
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions app/extract_translation_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ def get_options_text(container):
for options in container['options']:
extracted_text.extend(get_text_for_container(options, container['id']))

if 'other' in options:
extracted_text.extend(get_text_for_container(options['other'], container['id']))

return extracted_text


Expand Down
5 changes: 1 addition & 4 deletions app/translate_survey.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,7 @@ def translate_guidance_text(container, context, translations):
def translate_options_text(container, context, translations):
if 'options' in container:
for options in container['options']:
options = translate_container(options, context, translations)

if 'other' in options:
options['other'] = translate_container(options['other'], context, translations)
translate_container(options, context, translations)

return container

Expand Down
Binary file modified translations/census_household_translate_cy.xlsx
Binary file not shown.
Binary file modified translations/census_individual_translate_cy.xlsx
Binary file not shown.

0 comments on commit c3518a8

Please sign in to comment.