Skip to content

Commit

Permalink
fix(component): allow to add all existing languages in a project
Browse files Browse the repository at this point in the history
We need to include all transation languages, not only source languages.
  • Loading branch information
nijel committed Oct 14, 2024
1 parent 8c48d03 commit 28c3716
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion weblate/trans/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,14 @@ def get_lang_objects(self):
return (
super()
.get_lang_objects()
.filter(Q(code__in=codes) | Q(component__project=self.component.project))
.filter(
# Include basic languages
Q(code__in=codes)
# Include source languages in a project
| Q(component__project=self.component.project)
# Include translations in a project
| Q(translation__component__project=self.component.project)
)
.distinct()
)

Expand Down

0 comments on commit 28c3716

Please sign in to comment.