1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-06-29 01:45:30 +00:00

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

This commit is contained in:
ngourdon 2019-05-05 00:44:43 +02:00 committed by zeripath
parent e0dde8173f
commit 7806deab96

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