Skip to content

Commit

Permalink
comment is an attribute, translator fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Manrique committed Nov 23, 2024
1 parent 9fd2ae2 commit dffc525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def create_directories(dir_language):
for i in range(len(root)):
if 'translatable' not in root[i].attrib:
value = root[i].text
context = root[i].comment
context = root[i].attrib.get('comment')
if value is not None:
params = {
'auth_key' : API_KEY,
Expand Down

0 comments on commit dffc525

Please sign in to comment.