Skip to content

Commit

Permalink
Change verbose name
Browse files Browse the repository at this point in the history
  • Loading branch information
zengqiu committed Jan 29, 2024
1 parent 35f2520 commit 23cf555
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ MANIFEST
docs/_build
.coverage
*.sqlite3
.idea/
2 changes: 1 addition & 1 deletion reversion/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

class ReversionConfig(AppConfig):
name = 'reversion'
verbose_name = _('Reversions')
verbose_name = _('Reversion')
default_auto_field = 'django.db.models.AutoField'
10 changes: 5 additions & 5 deletions reversion/locale/zh_Hans/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ msgid "Recover deleted %(name)s"
msgstr "恢复已删除的 %(name)s"

#: .\apps.py:7
msgid "Reversions"
msgid "Reversion"
msgstr "版本记录"

#: .\models.py:39
Expand All @@ -71,12 +71,12 @@ msgid "comment"
msgstr "评论"

#: .\models.py:116
msgid "reversion"
msgstr "版本记录"
msgid "revision"
msgstr "修改"

#: .\models.py:117
msgid "reversions"
msgstr "版本记录"
msgid "revisions"
msgstr "修改"

#: .\models.py:275
#, python-format
Expand Down
4 changes: 2 additions & 2 deletions reversion/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ def __str__(self):
return ", ".join(force_str(version) for version in self.version_set.all())

class Meta:
verbose_name = _('reversion')
verbose_name_plural = _('reversions')
verbose_name = _('revision')
verbose_name_plural = _('revisions')
app_label = "reversion"
ordering = ("-pk",)

Expand Down

0 comments on commit 23cf555

Please sign in to comment.