Browse Source

add french specific rule for translating plural texts (#6846)

for-closed-social
ngourdon 5 years ago
committed by zeripath
parent
commit
7806deab96
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      modules/templates/helper.go

+ 6
- 0
modules/templates/helper.go View File

@ -486,6 +486,12 @@ var trNLangRules = map[string]func(int64) int{
"zh-TW": func(cnt int64) int {
return 0
},
"fr-FR": func(cnt int64) int {
if cnt > -2 && cnt < 2 {
return 0
}
return 1
},
}
// TrN returns key to be used for plural text translation

Loading…
Cancel
Save