Commit cd7c335b authored by Michal Čihař's avatar Michal Čihař

Clarify error messages (issue #745)

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent f75d88d1
...@@ -1105,13 +1105,13 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin): ...@@ -1105,13 +1105,13 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
# Test for unexpected template usage # Test for unexpected template usage
if self.template != '' and self.file_format_cls.monolingual is False: if self.template != '' and self.file_format_cls.monolingual is False:
raise ValidationError( raise ValidationError(
_('You can not base file with bilingual translation!') _('You can not use base file with bilingual translation!')
) )
# Special case for Gettext # Special case for Gettext
if self.template.endswith('.pot') and self.filemask.endswith('.po'): if self.template.endswith('.pot') and self.filemask.endswith('.po'):
raise ValidationError( raise ValidationError(
_('You can not base file with bilingual translation!') _('You can not use base file with bilingual translation!')
) )
# Validate template loading # Validate template loading
......
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