Skip to content

Commit 9d29d26

Browse files
portuguese, german translations
1 parent a37e5f4 commit 9d29d26

3 files changed

Lines changed: 1515 additions & 505 deletions

File tree

0 Bytes
Binary file not shown.

Input Processing/parse_annotations_xlsx.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@ def parse_annotations_sheet(ws, act_number, isGeneral):
177177

178178
french_annotation = cell_to_html(row[2])
179179
english_annotation = translate(french_annotation, 'FR', 'EN-US')
180-
a['annotation'] = {'fr': french_annotation, 'en': english_annotation}
180+
portuguese_annotation = translate(french_annotation, 'FR', 'PT-BR')
181+
german_annotation = translate(french_annotation, 'FR', 'DE')
182+
a['annotation'] = {'fr': french_annotation, 'en': english_annotation, 'pt': portuguese_annotation, 'de': german_annotation}
181183
a['act'] = act_number
182184
a['is_general'] = isGeneral
183185
a['page_range'] = current_page_range if isGeneral else [0, 0]

0 commit comments

Comments
 (0)