This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
add french specific rule for translating plural texts (
#6846
)
tags/v1.21.12.1
ngourdon
zeripath
6 years ago
parent
e0dde8173f
commit
7806deab96
1 changed files
with
6 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
Loading…
Cancel
Save