Commit 166a0dd5 authored by Michal Čihař's avatar Michal Čihař

Fix displaying localized help texts

parent 7816dd97
......@@ -282,41 +282,47 @@ class Project(models.Model):
return ret
class SubProject(models.Model):
name = models.CharField(max_length = 100, help_text = _('Name to display'))
slug = models.SlugField(db_index = True, help_text = _('Name used in URLs'))
name = models.CharField(
max_length = 100,
help_text = ugettext_lazy('Name to display')
)
slug = models.SlugField(
db_index = True,
help_text = ugettext_lazy('Name used in URLs')
)
project = models.ForeignKey(Project)
repo = models.CharField(
max_length = 200,
help_text = _('URL of Git repository, use weblate://project/subproject for sharing with other subproject'),
help_text = ugettext_lazy('URL of Git repository, use weblate://project/subproject for sharing with other subproject'),
validators = [validate_repo],
)
push = models.CharField(
max_length = 200,
help_text = _('URL of push Git repository'),
help_text = ugettext_lazy('URL of push Git repository'),
blank = True
)
repoweb = models.URLField(
help_text = _('Link to repository browser, use %(branch)s for branch, %(file)s and %(line)s as filename and line placeholders'),
help_text = ugettext_lazy('Link to repository browser, use %(branch)s for branch, %(file)s and %(line)s as filename and line placeholders'),
validators = [validate_repoweb],
blank = True,
)
branch = models.CharField(
max_length = 50,
help_text = _('Git branch to translate')
help_text = ugettext_lazy('Git branch to translate')
)
filemask = models.CharField(
max_length = 200,
validators = [validate_filemask],
help_text = _('Path of files to translate, use * instead of language code, for example: po/*.po or locale/*/LC_MESSAGES/django.po')
help_text = ugettext_lazy('Path of files to translate, use * instead of language code, for example: po/*.po or locale/*/LC_MESSAGES/django.po')
)
template = models.CharField(
max_length = 200,
blank = True,
help_text = _('Filename of translations template, this is recommended to use for translations which store only translated string like Android resource strings')
help_text = ugettext_lazy('Filename of translations template, this is recommended to use for translations which store only translated string like Android resource strings')
)
locked = models.BooleanField(
default = False,
help_text = _('Whether subproject is locked for translation updates')
help_text = ugettext_lazy('Whether subproject is locked for translation updates')
)
class Meta:
......
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