diff options
Diffstat (limited to 'models/admin.go')
-rw-r--r-- | models/admin.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/models/admin.go b/models/admin.go index 903e35b0c9..420adbcda9 100644 --- a/models/admin.go +++ b/models/admin.go @@ -12,8 +12,6 @@ import ( "code.gitea.io/gitea/modules/storage" "code.gitea.io/gitea/modules/timeutil" "code.gitea.io/gitea/modules/util" - - "github.com/unknwon/com" ) //NoticeType describes the notice type @@ -36,7 +34,7 @@ type Notice struct { // TrStr returns a translation format string. func (n *Notice) TrStr() string { - return "admin.notices.type_" + com.ToStr(n.Type) + return fmt.Sprintf("admin.notices.type_%d", n.Type) } // CreateNotice creates new system notice. |