diff options
Diffstat (limited to 'langs/i18n/i18n.go')
-rw-r--r-- | langs/i18n/i18n.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/langs/i18n/i18n.go b/langs/i18n/i18n.go index e45a16822..64340c857 100644 --- a/langs/i18n/i18n.go +++ b/langs/i18n/i18n.go @@ -160,7 +160,7 @@ func getPluralCount(v interface{}) interface{} { if f.IsValid() { return toPluralCountValue(f.Interface()) } - m := vv.MethodByName(countFieldName) + m := hreflect.GetMethodByName(vv, countFieldName) if m.IsValid() && m.Type().NumIn() == 0 && m.Type().NumOut() == 1 { c := m.Call(nil) return toPluralCountValue(c[0].Interface()) @@ -169,7 +169,6 @@ func getPluralCount(v interface{}) interface{} { } return toPluralCountValue(v) - } // go-i18n expects floats to be represented by string. |