Skip to content

Commit

Permalink
Translation: Add comment about ghost translations
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Jul 28, 2020
1 parent f747bb8 commit 138d10a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion weblate/trans/views/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ def show_translation(request, project, component, lang):

search_form = SearchForm(request.user)

# Translations to same language from other components in this project
other_translations = prefetch_stats(
list(
Translation.objects.prefetch()
Expand All @@ -304,7 +305,8 @@ def show_translation(request, project, component, lang):
)
)

# Include ghost translations for other components
# Include ghost translations for other components, this
# adds quick way to create transaltions in other components
existing = {translation.component.slug for translation in other_translations}
existing.add(obj.component.slug)
for test_component in obj.component.project.component_set.filter_access(
Expand Down

0 comments on commit 138d10a

Please sign in to comment.