fix translation

This commit is contained in:
bkfox
2020-05-30 15:57:17 +02:00
parent a6321de5d2
commit 46208a4bf7
5 changed files with 315 additions and 275 deletions

File diff suppressed because it is too large Load Diff

View File

@ -202,6 +202,10 @@ class Comment(models.Model):
date = models.DateTimeField(auto_now_add=True)
content = models.TextField(_('content'), max_length=1024)
class Meta:
verbose_name = _('Comment')
verbose_name_plural = _('Comments')
class NavItem(models.Model):
""" Navigation menu items """
@ -221,6 +225,7 @@ class NavItem(models.Model):
class Meta:
verbose_name = _('Menu item')
verbose_name_plural = _('Menu items')
ordering = ('order', 'pk')
def render(self, request, css_class='', active_class=''):

View File

@ -71,7 +71,7 @@ Context:
{% endfor %}
<div class="has-text-right">
<button type="reset" class="button is-danger">{% trans "Reset" %}</button>
<button type="submit" class="button is-success">{% trans "Comment" %}</button>
<button type="submit" class="button is-success">{% trans "Post comment" %}</button>
</div>
</form>
{% endif %}