Commit 6b12e6ff authored by Michal Čihař's avatar Michal Čihař

Ignore symlinked translations

Fixes #858
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent ada57054
......@@ -972,6 +972,11 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
matches.discard(self.template)
if self.new_base and self.new_base != self.template:
matches.discard(self.new_base)
# Remove symlinked translations
for filename in list(matches):
resolved = self.repository.resolve_symlinks(filename)
if resolved != filename and resolved in matches:
matches.discard(filename)
return sorted(matches)
def create_translations(self, force=False, langs=None, request=None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment